{
"version": 3,
"sources": ["../../@abi-software/scaffoldvuer/dist/scaffoldvuer.js"],
"sourcesContent": ["import { shallowRef as Cn, watchEffect as s0, readonly as o0, unref as G, getCurrentScope as a0, onScopeDispose as l0, getCurrentInstance as sn, onMounted as tn, nextTick as wt, watch as qe, ref as Ae, defineComponent as De, openBlock as ge, createElementBlock as Re, createElementVNode as Fe, warn as qw, isVNode as ed, computed as ce, inject as ht, isRef as Ls, onBeforeUnmount as oi, onBeforeMount as Qw, provide as dn, mergeProps as Ii, renderSlot as Xe, toRef as Dn, onUnmounted as c0, useAttrs as e1, useSlots as ou, createCommentVNode as Ge, Fragment as Vt, normalizeClass as Le, createBlock as He, withCtx as me, resolveDynamicComponent as Nn, withModifiers as cn, createVNode as ae, toDisplayString as xt, normalizeStyle as Pt, Transition as hl, withDirectives as Ot, vShow as gn, reactive as Yn, onActivated as t1, onUpdated as sf, cloneVNode as n1, Text as u0, Comment as i1, Teleport as r1, onDeactivated as s1, toHandlers as o1, withKeys as gi, createTextVNode as vt, createSlots as a1, toRaw as of, toRefs as lr, resolveComponent as $n, resolveDirective as l1, toHandlerKey as c1, renderList as ni, vModelText as u1, h as bo, createApp as h1, markRaw as Sn, hasInjectionContext as d1, effectScope as f1, isReactive as af, pushScopeId as p1, popScopeId as m1 } from \"vue\";\nimport { TreeControls as g1, CreateTooltipContent as v1, Tooltip as y1, DrawToolbar as b1 } from \"@abi-software/map-utilities\";\nimport { MapSvgIcon as x1, MapSvgSpriteColor as w1 } from \"@abi-software/svg-sprite\";\nconst qi = (n, e, { checkForDefaultPrevented: t = !0 } = {}) => (r) => {\n const s = n == null ? void 0 : n(r);\n if (t === !1 || !s)\n return e == null ? void 0 : e(r);\n};\nvar M1 = Object.defineProperty, _1 = Object.defineProperties, S1 = Object.getOwnPropertyDescriptors, Gp = Object.getOwnPropertySymbols, T1 = Object.prototype.hasOwnProperty, E1 = Object.prototype.propertyIsEnumerable, Hp = (n, e, t) => e in n ? M1(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, A1 = (n, e) => {\n for (var t in e || (e = {}))\n T1.call(e, t) && Hp(n, t, e[t]);\n if (Gp)\n for (var t of Gp(e))\n E1.call(e, t) && Hp(n, t, e[t]);\n return n;\n}, C1 = (n, e) => _1(n, S1(e));\nfunction Wp(n, e) {\n var t;\n const i = Cn();\n return s0(() => {\n i.value = n();\n }, C1(A1({}, e), {\n flush: (t = void 0) != null ? t : \"sync\"\n })), o0(i);\n}\nvar jp;\nconst Qt = typeof window < \"u\", L1 = (n) => typeof n == \"string\", h0 = () => {\n}, td = Qt && ((jp = window == null ? void 0 : window.navigator) == null ? void 0 : jp.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);\nfunction d0(n) {\n return typeof n == \"function\" ? n() : G(n);\n}\nfunction R1(n) {\n return n;\n}\nfunction au(n) {\n return a0() ? (l0(n), !0) : !1;\n}\nfunction P1(n, e = !0) {\n sn() ? tn(n) : e ? n() : wt(n);\n}\nfunction nr(n) {\n var e;\n const t = d0(n);\n return (e = t == null ? void 0 : t.$el) != null ? e : t;\n}\nconst dl = Qt ? window : void 0, I1 = Qt ? window.document : void 0;\nfunction un(...n) {\n let e, t, i, r;\n if (L1(n[0]) || Array.isArray(n[0]) ? ([t, i, r] = n, e = dl) : [e, t, i, r] = n, !e)\n return h0;\n Array.isArray(t) || (t = [t]), Array.isArray(i) || (i = [i]);\n const s = [], o = () => {\n s.forEach((d) => d()), s.length = 0;\n }, a = (d, h, f, g) => (d.addEventListener(h, f, g), () => d.removeEventListener(h, f, g)), c = qe(() => [nr(e), d0(r)], ([d, h]) => {\n o(), d && s.push(...t.flatMap((f) => i.map((g) => a(d, f, g, h))));\n }, { immediate: !0, flush: \"post\" }), l = () => {\n c(), o();\n };\n return au(l), l;\n}\nlet $p = !1;\nfunction O1(n, e, t = {}) {\n const { window: i = dl, ignore: r = [], capture: s = !0, detectIframe: o = !1 } = t;\n if (!i)\n return;\n td && !$p && ($p = !0, Array.from(i.document.body.children).forEach((f) => f.addEventListener(\"click\", h0)));\n let a = !0;\n const c = (f) => r.some((g) => {\n if (typeof g == \"string\")\n return Array.from(i.document.querySelectorAll(g)).some((p) => p === f.target || f.composedPath().includes(p));\n {\n const p = nr(g);\n return p && (f.target === p || f.composedPath().includes(p));\n }\n }), d = [\n un(i, \"click\", (f) => {\n const g = nr(n);\n if (!(!g || g === f.target || f.composedPath().includes(g))) {\n if (f.detail === 0 && (a = !c(f)), !a) {\n a = !0;\n return;\n }\n e(f);\n }\n }, { passive: !0, capture: s }),\n un(i, \"pointerdown\", (f) => {\n const g = nr(n);\n g && (a = !f.composedPath().includes(g) && !c(f));\n }, { passive: !0 }),\n o && un(i, \"blur\", (f) => {\n var g;\n const p = nr(n);\n ((g = i.document.activeElement) == null ? void 0 : g.tagName) === \"IFRAME\" && !(p != null && p.contains(i.document.activeElement)) && e(f);\n })\n ].filter(Boolean);\n return () => d.forEach((f) => f());\n}\nfunction f0(n, e = !1) {\n const t = Ae(), i = () => t.value = !!n();\n return i(), P1(i, e), t;\n}\nconst Zp = typeof globalThis < \"u\" ? globalThis : typeof window < \"u\" ? window : typeof global < \"u\" ? global : typeof self < \"u\" ? self : {}, Xp = \"__vueuse_ssr_handlers__\";\nZp[Xp] = Zp[Xp] || {};\nfunction D1({ document: n = I1 } = {}) {\n if (!n)\n return Ae(\"visible\");\n const e = Ae(n.visibilityState);\n return un(n, \"visibilitychange\", () => {\n e.value = n.visibilityState;\n }), e;\n}\nvar Yp = Object.getOwnPropertySymbols, N1 = Object.prototype.hasOwnProperty, B1 = Object.prototype.propertyIsEnumerable, F1 = (n, e) => {\n var t = {};\n for (var i in n)\n N1.call(n, i) && e.indexOf(i) < 0 && (t[i] = n[i]);\n if (n != null && Yp)\n for (var i of Yp(n))\n e.indexOf(i) < 0 && B1.call(n, i) && (t[i] = n[i]);\n return t;\n};\nfunction ti(n, e, t = {}) {\n const i = t, { window: r = dl } = i, s = F1(i, [\"window\"]);\n let o;\n const a = f0(() => r && \"ResizeObserver\" in r), c = () => {\n o && (o.disconnect(), o = void 0);\n }, l = qe(() => nr(n), (h) => {\n c(), a.value && r && h && (o = new ResizeObserver(e), o.observe(h, s));\n }, { immediate: !0, flush: \"post\" }), d = () => {\n c(), l();\n };\n return au(d), {\n isSupported: a,\n stop: d\n };\n}\nvar Jp = Object.getOwnPropertySymbols, z1 = Object.prototype.hasOwnProperty, U1 = Object.prototype.propertyIsEnumerable, V1 = (n, e) => {\n var t = {};\n for (var i in n)\n z1.call(n, i) && e.indexOf(i) < 0 && (t[i] = n[i]);\n if (n != null && Jp)\n for (var i of Jp(n))\n e.indexOf(i) < 0 && U1.call(n, i) && (t[i] = n[i]);\n return t;\n};\nfunction k1(n, e, t = {}) {\n const i = t, { window: r = dl } = i, s = V1(i, [\"window\"]);\n let o;\n const a = f0(() => r && \"MutationObserver\" in r), c = () => {\n o && (o.disconnect(), o = void 0);\n }, l = qe(() => nr(n), (h) => {\n c(), a.value && r && h && (o = new MutationObserver(e), o.observe(h, s));\n }, { immediate: !0 }), d = () => {\n c(), l();\n };\n return au(d), {\n isSupported: a,\n stop: d\n };\n}\nvar Kp;\n(function(n) {\n n.UP = \"UP\", n.RIGHT = \"RIGHT\", n.DOWN = \"DOWN\", n.LEFT = \"LEFT\", n.NONE = \"NONE\";\n})(Kp || (Kp = {}));\nvar G1 = Object.defineProperty, qp = Object.getOwnPropertySymbols, H1 = Object.prototype.hasOwnProperty, W1 = Object.prototype.propertyIsEnumerable, Qp = (n, e, t) => e in n ? G1(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, j1 = (n, e) => {\n for (var t in e || (e = {}))\n H1.call(e, t) && Qp(n, t, e[t]);\n if (qp)\n for (var t of qp(e))\n W1.call(e, t) && Qp(n, t, e[t]);\n return n;\n};\nconst $1 = {\n easeInSine: [0.12, 0, 0.39, 0],\n easeOutSine: [0.61, 1, 0.88, 1],\n easeInOutSine: [0.37, 0, 0.63, 1],\n easeInQuad: [0.11, 0, 0.5, 0],\n easeOutQuad: [0.5, 1, 0.89, 1],\n easeInOutQuad: [0.45, 0, 0.55, 1],\n easeInCubic: [0.32, 0, 0.67, 0],\n easeOutCubic: [0.33, 1, 0.68, 1],\n easeInOutCubic: [0.65, 0, 0.35, 1],\n easeInQuart: [0.5, 0, 0.75, 0],\n easeOutQuart: [0.25, 1, 0.5, 1],\n easeInOutQuart: [0.76, 0, 0.24, 1],\n easeInQuint: [0.64, 0, 0.78, 0],\n easeOutQuint: [0.22, 1, 0.36, 1],\n easeInOutQuint: [0.83, 0, 0.17, 1],\n easeInExpo: [0.7, 0, 0.84, 0],\n easeOutExpo: [0.16, 1, 0.3, 1],\n easeInOutExpo: [0.87, 0, 0.13, 1],\n easeInCirc: [0.55, 0, 1, 0.45],\n easeOutCirc: [0, 0.55, 0.45, 1],\n easeInOutCirc: [0.85, 0, 0.15, 1],\n easeInBack: [0.36, 0, 0.66, -0.56],\n easeOutBack: [0.34, 1.56, 0.64, 1],\n easeInOutBack: [0.68, -0.6, 0.32, 1.6]\n};\nj1({\n linear: R1\n}, $1);\nfunction Z1({ window: n = dl } = {}) {\n if (!n)\n return Ae(!1);\n const e = Ae(n.document.hasFocus());\n return un(n, \"blur\", () => {\n e.value = !1;\n }), un(n, \"focus\", () => {\n e.value = !0;\n }), e;\n}\nconst X1 = () => Qt && /firefox/i.test(window.navigator.userAgent);\n/**\n* @vue/shared v3.5.11\n* (c) 2018-present Yuxi (Evan) You and Vue contributors\n* @license MIT\n**/\nprocess.env.NODE_ENV !== \"production\" && Object.freeze({});\nprocess.env.NODE_ENV !== \"production\" && Object.freeze([]);\nconst $a = () => {\n}, Y1 = Object.prototype.hasOwnProperty, em = (n, e) => Y1.call(n, e), Bn = Array.isArray, Tn = (n) => typeof n == \"function\", Ln = (n) => typeof n == \"string\", An = (n) => n !== null && typeof n == \"object\", J1 = Object.prototype.toString, K1 = (n) => J1.call(n), ju = (n) => K1(n).slice(8, -1), lf = (n) => {\n const e = /* @__PURE__ */ Object.create(null);\n return (t) => e[t] || (e[t] = n(t));\n}, q1 = /-(\\w)/g, Q1 = lf(\n (n) => n.replace(q1, (e, t) => t ? t.toUpperCase() : \"\")\n), eM = /\\B([A-Z])/g, tM = lf(\n (n) => n.replace(eM, \"-$1\").toLowerCase()\n), nM = lf((n) => n.charAt(0).toUpperCase() + n.slice(1));\nvar p0 = typeof global == \"object\" && global && global.Object === Object && global, iM = typeof self == \"object\" && self && self.Object === Object && self, ki = p0 || iM || Function(\"return this\")(), Bi = ki.Symbol, m0 = Object.prototype, rM = m0.hasOwnProperty, sM = m0.toString, ga = Bi ? Bi.toStringTag : void 0;\nfunction oM(n) {\n var e = rM.call(n, ga), t = n[ga];\n try {\n n[ga] = void 0;\n var i = !0;\n } catch {\n }\n var r = sM.call(n);\n return i && (e ? n[ga] = t : delete n[ga]), r;\n}\nvar aM = Object.prototype, lM = aM.toString;\nfunction cM(n) {\n return lM.call(n);\n}\nvar uM = \"[object Null]\", hM = \"[object Undefined]\", tm = Bi ? Bi.toStringTag : void 0;\nfunction ta(n) {\n return n == null ? n === void 0 ? hM : uM : tm && tm in Object(n) ? oM(n) : cM(n);\n}\nfunction Co(n) {\n return n != null && typeof n == \"object\";\n}\nvar dM = \"[object Symbol]\";\nfunction lu(n) {\n return typeof n == \"symbol\" || Co(n) && ta(n) == dM;\n}\nfunction fM(n, e) {\n for (var t = -1, i = n == null ? 0 : n.length, r = Array(i); ++t < i; )\n r[t] = e(n[t], t, n);\n return r;\n}\nvar bi = Array.isArray, pM = 1 / 0, nm = Bi ? Bi.prototype : void 0, im = nm ? nm.toString : void 0;\nfunction g0(n) {\n if (typeof n == \"string\")\n return n;\n if (bi(n))\n return fM(n, g0) + \"\";\n if (lu(n))\n return im ? im.call(n) : \"\";\n var e = n + \"\";\n return e == \"0\" && 1 / n == -pM ? \"-0\" : e;\n}\nvar mM = /\\s/;\nfunction gM(n) {\n for (var e = n.length; e-- && mM.test(n.charAt(e)); )\n ;\n return e;\n}\nvar vM = /^\\s+/;\nfunction yM(n) {\n return n && n.slice(0, gM(n) + 1).replace(vM, \"\");\n}\nfunction Hr(n) {\n var e = typeof n;\n return n != null && (e == \"object\" || e == \"function\");\n}\nvar rm = NaN, bM = /^[-+]0x[0-9a-f]+$/i, xM = /^0b[01]+$/i, wM = /^0o[0-7]+$/i, MM = parseInt;\nfunction sm(n) {\n if (typeof n == \"number\")\n return n;\n if (lu(n))\n return rm;\n if (Hr(n)) {\n var e = typeof n.valueOf == \"function\" ? n.valueOf() : n;\n n = Hr(e) ? e + \"\" : e;\n }\n if (typeof n != \"string\")\n return n === 0 ? n : +n;\n n = yM(n);\n var t = xM.test(n);\n return t || wM.test(n) ? MM(n.slice(2), t ? 2 : 8) : bM.test(n) ? rm : +n;\n}\nfunction v0(n) {\n return n;\n}\nvar _M = \"[object AsyncFunction]\", SM = \"[object Function]\", TM = \"[object GeneratorFunction]\", EM = \"[object Proxy]\";\nfunction y0(n) {\n if (!Hr(n))\n return !1;\n var e = ta(n);\n return e == SM || e == TM || e == _M || e == EM;\n}\nvar $u = ki[\"__core-js_shared__\"], om = function() {\n var n = /[^.]+$/.exec($u && $u.keys && $u.keys.IE_PROTO || \"\");\n return n ? \"Symbol(src)_1.\" + n : \"\";\n}();\nfunction AM(n) {\n return !!om && om in n;\n}\nvar CM = Function.prototype, LM = CM.toString;\nfunction Vs(n) {\n if (n != null) {\n try {\n return LM.call(n);\n } catch {\n }\n try {\n return n + \"\";\n } catch {\n }\n }\n return \"\";\n}\nvar RM = /[\\\\^$.*+?()[\\]{}|]/g, PM = /^\\[object .+?Constructor\\]$/, IM = Function.prototype, OM = Object.prototype, DM = IM.toString, NM = OM.hasOwnProperty, BM = RegExp(\n \"^\" + DM.call(NM).replace(RM, \"\\\\$&\").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, \"$1.*?\") + \"$\"\n);\nfunction FM(n) {\n if (!Hr(n) || AM(n))\n return !1;\n var e = y0(n) ? BM : PM;\n return e.test(Vs(n));\n}\nfunction zM(n, e) {\n return n == null ? void 0 : n[e];\n}\nfunction ks(n, e) {\n var t = zM(n, e);\n return FM(t) ? t : void 0;\n}\nvar nd = ks(ki, \"WeakMap\");\nfunction UM(n, e, t) {\n switch (t.length) {\n case 0:\n return n.call(e);\n case 1:\n return n.call(e, t[0]);\n case 2:\n return n.call(e, t[0], t[1]);\n case 3:\n return n.call(e, t[0], t[1], t[2]);\n }\n return n.apply(e, t);\n}\nvar VM = 800, kM = 16, GM = Date.now;\nfunction HM(n) {\n var e = 0, t = 0;\n return function() {\n var i = GM(), r = kM - (i - t);\n if (t = i, r > 0) {\n if (++e >= VM)\n return arguments[0];\n } else\n e = 0;\n return n.apply(void 0, arguments);\n };\n}\nfunction WM(n) {\n return function() {\n return n;\n };\n}\nvar Hc = function() {\n try {\n var n = ks(Object, \"defineProperty\");\n return n({}, \"\", {}), n;\n } catch {\n }\n}(), jM = Hc ? function(n, e) {\n return Hc(n, \"toString\", {\n configurable: !0,\n enumerable: !1,\n value: WM(e),\n writable: !0\n });\n} : v0, $M = HM(jM);\nfunction ZM(n, e, t, i) {\n n.length;\n for (var r = t + 1; r--; )\n if (e(n[r], r, n))\n return r;\n return -1;\n}\nvar XM = 9007199254740991, YM = /^(?:0|[1-9]\\d*)$/;\nfunction cf(n, e) {\n var t = typeof n;\n return e = e ?? XM, !!e && (t == \"number\" || t != \"symbol\" && YM.test(n)) && n > -1 && n % 1 == 0 && n < e;\n}\nfunction JM(n, e, t) {\n e == \"__proto__\" && Hc ? Hc(n, e, {\n configurable: !0,\n enumerable: !0,\n value: t,\n writable: !0\n }) : n[e] = t;\n}\nfunction uf(n, e) {\n return n === e || n !== n && e !== e;\n}\nvar KM = Object.prototype, qM = KM.hasOwnProperty;\nfunction QM(n, e, t) {\n var i = n[e];\n (!(qM.call(n, e) && uf(i, t)) || t === void 0 && !(e in n)) && JM(n, e, t);\n}\nvar am = Math.max;\nfunction e_(n, e, t) {\n return e = am(e === void 0 ? n.length - 1 : e, 0), function() {\n for (var i = arguments, r = -1, s = am(i.length - e, 0), o = Array(s); ++r < s; )\n o[r] = i[e + r];\n r = -1;\n for (var a = Array(e + 1); ++r < e; )\n a[r] = i[r];\n return a[e] = t(o), UM(n, this, a);\n };\n}\nvar t_ = 9007199254740991;\nfunction hf(n) {\n return typeof n == \"number\" && n > -1 && n % 1 == 0 && n <= t_;\n}\nfunction n_(n) {\n return n != null && hf(n.length) && !y0(n);\n}\nvar i_ = Object.prototype;\nfunction r_(n) {\n var e = n && n.constructor, t = typeof e == \"function\" && e.prototype || i_;\n return n === t;\n}\nfunction s_(n, e) {\n for (var t = -1, i = Array(n); ++t < n; )\n i[t] = e(t);\n return i;\n}\nvar o_ = \"[object Arguments]\";\nfunction lm(n) {\n return Co(n) && ta(n) == o_;\n}\nvar b0 = Object.prototype, a_ = b0.hasOwnProperty, l_ = b0.propertyIsEnumerable, df = lm(/* @__PURE__ */ function() {\n return arguments;\n}()) ? lm : function(n) {\n return Co(n) && a_.call(n, \"callee\") && !l_.call(n, \"callee\");\n};\nfunction c_() {\n return !1;\n}\nvar x0 = typeof exports == \"object\" && exports && !exports.nodeType && exports, cm = x0 && typeof module == \"object\" && module && !module.nodeType && module, u_ = cm && cm.exports === x0, um = u_ ? ki.Buffer : void 0, h_ = um ? um.isBuffer : void 0, id = h_ || c_, d_ = \"[object Arguments]\", f_ = \"[object Array]\", p_ = \"[object Boolean]\", m_ = \"[object Date]\", g_ = \"[object Error]\", v_ = \"[object Function]\", y_ = \"[object Map]\", b_ = \"[object Number]\", x_ = \"[object Object]\", w_ = \"[object RegExp]\", M_ = \"[object Set]\", __ = \"[object String]\", S_ = \"[object WeakMap]\", T_ = \"[object ArrayBuffer]\", E_ = \"[object DataView]\", A_ = \"[object Float32Array]\", C_ = \"[object Float64Array]\", L_ = \"[object Int8Array]\", R_ = \"[object Int16Array]\", P_ = \"[object Int32Array]\", I_ = \"[object Uint8Array]\", O_ = \"[object Uint8ClampedArray]\", D_ = \"[object Uint16Array]\", N_ = \"[object Uint32Array]\", Ct = {};\nCt[A_] = Ct[C_] = Ct[L_] = Ct[R_] = Ct[P_] = Ct[I_] = Ct[O_] = Ct[D_] = Ct[N_] = !0;\nCt[d_] = Ct[f_] = Ct[T_] = Ct[p_] = Ct[E_] = Ct[m_] = Ct[g_] = Ct[v_] = Ct[y_] = Ct[b_] = Ct[x_] = Ct[w_] = Ct[M_] = Ct[__] = Ct[S_] = !1;\nfunction B_(n) {\n return Co(n) && hf(n.length) && !!Ct[ta(n)];\n}\nfunction F_(n) {\n return function(e) {\n return n(e);\n };\n}\nvar w0 = typeof exports == \"object\" && exports && !exports.nodeType && exports, Fa = w0 && typeof module == \"object\" && module && !module.nodeType && module, z_ = Fa && Fa.exports === w0, Zu = z_ && p0.process, hm = function() {\n try {\n var n = Fa && Fa.require && Fa.require(\"util\").types;\n return n || Zu && Zu.binding && Zu.binding(\"util\");\n } catch {\n }\n}(), dm = hm && hm.isTypedArray, M0 = dm ? F_(dm) : B_, U_ = Object.prototype, V_ = U_.hasOwnProperty;\nfunction k_(n, e) {\n var t = bi(n), i = !t && df(n), r = !t && !i && id(n), s = !t && !i && !r && M0(n), o = t || i || r || s, a = o ? s_(n.length, String) : [], c = a.length;\n for (var l in n)\n V_.call(n, l) && !(o && // Safari 9 has enumerable `arguments.length` in strict mode.\n (l == \"length\" || // Node.js 0.10 has enumerable non-index properties on buffers.\n r && (l == \"offset\" || l == \"parent\") || // PhantomJS 2 has enumerable non-index properties on typed arrays.\n s && (l == \"buffer\" || l == \"byteLength\" || l == \"byteOffset\") || // Skip index properties.\n cf(l, c))) && a.push(l);\n return a;\n}\nfunction G_(n, e) {\n return function(t) {\n return n(e(t));\n };\n}\nvar H_ = G_(Object.keys, Object), W_ = Object.prototype, j_ = W_.hasOwnProperty;\nfunction $_(n) {\n if (!r_(n))\n return H_(n);\n var e = [];\n for (var t in Object(n))\n j_.call(n, t) && t != \"constructor\" && e.push(t);\n return e;\n}\nfunction _0(n) {\n return n_(n) ? k_(n) : $_(n);\n}\nvar Z_ = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/, X_ = /^\\w*$/;\nfunction ff(n, e) {\n if (bi(n))\n return !1;\n var t = typeof n;\n return t == \"number\" || t == \"symbol\" || t == \"boolean\" || n == null || lu(n) ? !0 : X_.test(n) || !Z_.test(n) || e != null && n in Object(e);\n}\nvar Za = ks(Object, \"create\");\nfunction Y_() {\n this.__data__ = Za ? Za(null) : {}, this.size = 0;\n}\nfunction J_(n) {\n var e = this.has(n) && delete this.__data__[n];\n return this.size -= e ? 1 : 0, e;\n}\nvar K_ = \"__lodash_hash_undefined__\", q_ = Object.prototype, Q_ = q_.hasOwnProperty;\nfunction eS(n) {\n var e = this.__data__;\n if (Za) {\n var t = e[n];\n return t === K_ ? void 0 : t;\n }\n return Q_.call(e, n) ? e[n] : void 0;\n}\nvar tS = Object.prototype, nS = tS.hasOwnProperty;\nfunction iS(n) {\n var e = this.__data__;\n return Za ? e[n] !== void 0 : nS.call(e, n);\n}\nvar rS = \"__lodash_hash_undefined__\";\nfunction sS(n, e) {\n var t = this.__data__;\n return this.size += this.has(n) ? 0 : 1, t[n] = Za && e === void 0 ? rS : e, this;\n}\nfunction Rs(n) {\n var e = -1, t = n == null ? 0 : n.length;\n for (this.clear(); ++e < t; ) {\n var i = n[e];\n this.set(i[0], i[1]);\n }\n}\nRs.prototype.clear = Y_;\nRs.prototype.delete = J_;\nRs.prototype.get = eS;\nRs.prototype.has = iS;\nRs.prototype.set = sS;\nfunction oS() {\n this.__data__ = [], this.size = 0;\n}\nfunction cu(n, e) {\n for (var t = n.length; t--; )\n if (uf(n[t][0], e))\n return t;\n return -1;\n}\nvar aS = Array.prototype, lS = aS.splice;\nfunction cS(n) {\n var e = this.__data__, t = cu(e, n);\n if (t < 0)\n return !1;\n var i = e.length - 1;\n return t == i ? e.pop() : lS.call(e, t, 1), --this.size, !0;\n}\nfunction uS(n) {\n var e = this.__data__, t = cu(e, n);\n return t < 0 ? void 0 : e[t][1];\n}\nfunction hS(n) {\n return cu(this.__data__, n) > -1;\n}\nfunction dS(n, e) {\n var t = this.__data__, i = cu(t, n);\n return i < 0 ? (++this.size, t.push([n, e])) : t[i][1] = e, this;\n}\nfunction fr(n) {\n var e = -1, t = n == null ? 0 : n.length;\n for (this.clear(); ++e < t; ) {\n var i = n[e];\n this.set(i[0], i[1]);\n }\n}\nfr.prototype.clear = oS;\nfr.prototype.delete = cS;\nfr.prototype.get = uS;\nfr.prototype.has = hS;\nfr.prototype.set = dS;\nvar Xa = ks(ki, \"Map\");\nfunction fS() {\n this.size = 0, this.__data__ = {\n hash: new Rs(),\n map: new (Xa || fr)(),\n string: new Rs()\n };\n}\nfunction pS(n) {\n var e = typeof n;\n return e == \"string\" || e == \"number\" || e == \"symbol\" || e == \"boolean\" ? n !== \"__proto__\" : n === null;\n}\nfunction uu(n, e) {\n var t = n.__data__;\n return pS(e) ? t[typeof e == \"string\" ? \"string\" : \"hash\"] : t.map;\n}\nfunction mS(n) {\n var e = uu(this, n).delete(n);\n return this.size -= e ? 1 : 0, e;\n}\nfunction gS(n) {\n return uu(this, n).get(n);\n}\nfunction vS(n) {\n return uu(this, n).has(n);\n}\nfunction yS(n, e) {\n var t = uu(this, n), i = t.size;\n return t.set(n, e), this.size += t.size == i ? 0 : 1, this;\n}\nfunction pr(n) {\n var e = -1, t = n == null ? 0 : n.length;\n for (this.clear(); ++e < t; ) {\n var i = n[e];\n this.set(i[0], i[1]);\n }\n}\npr.prototype.clear = fS;\npr.prototype.delete = mS;\npr.prototype.get = gS;\npr.prototype.has = vS;\npr.prototype.set = yS;\nvar bS = \"Expected a function\";\nfunction pf(n, e) {\n if (typeof n != \"function\" || e != null && typeof e != \"function\")\n throw new TypeError(bS);\n var t = function() {\n var i = arguments, r = e ? e.apply(this, i) : i[0], s = t.cache;\n if (s.has(r))\n return s.get(r);\n var o = n.apply(this, i);\n return t.cache = s.set(r, o) || s, o;\n };\n return t.cache = new (pf.Cache || pr)(), t;\n}\npf.Cache = pr;\nvar xS = 500;\nfunction wS(n) {\n var e = pf(n, function(i) {\n return t.size === xS && t.clear(), i;\n }), t = e.cache;\n return e;\n}\nvar MS = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g, _S = /\\\\(\\\\)?/g, SS = wS(function(n) {\n var e = [];\n return n.charCodeAt(0) === 46 && e.push(\"\"), n.replace(MS, function(t, i, r, s) {\n e.push(r ? s.replace(_S, \"$1\") : i || t);\n }), e;\n});\nfunction TS(n) {\n return n == null ? \"\" : g0(n);\n}\nfunction hu(n, e) {\n return bi(n) ? n : ff(n, e) ? [n] : SS(TS(n));\n}\nvar ES = 1 / 0;\nfunction fl(n) {\n if (typeof n == \"string\" || lu(n))\n return n;\n var e = n + \"\";\n return e == \"0\" && 1 / n == -ES ? \"-0\" : e;\n}\nfunction mf(n, e) {\n e = hu(e, n);\n for (var t = 0, i = e.length; n != null && t < i; )\n n = n[fl(e[t++])];\n return t && t == i ? n : void 0;\n}\nfunction Qi(n, e, t) {\n var i = n == null ? void 0 : mf(n, e);\n return i === void 0 ? t : i;\n}\nfunction S0(n, e) {\n for (var t = -1, i = e.length, r = n.length; ++t < i; )\n n[r + t] = e[t];\n return n;\n}\nvar fm = Bi ? Bi.isConcatSpreadable : void 0;\nfunction AS(n) {\n return bi(n) || df(n) || !!(fm && n && n[fm]);\n}\nfunction CS(n, e, t, i, r) {\n var s = -1, o = n.length;\n for (t || (t = AS), r || (r = []); ++s < o; ) {\n var a = n[s];\n t(a) ? S0(r, a) : r[r.length] = a;\n }\n return r;\n}\nfunction LS(n) {\n var e = n == null ? 0 : n.length;\n return e ? CS(n) : [];\n}\nfunction RS(n) {\n return $M(e_(n, void 0, LS), n + \"\");\n}\nfunction Li() {\n if (!arguments.length)\n return [];\n var n = arguments[0];\n return bi(n) ? n : [n];\n}\nfunction PS() {\n this.__data__ = new fr(), this.size = 0;\n}\nfunction IS(n) {\n var e = this.__data__, t = e.delete(n);\n return this.size = e.size, t;\n}\nfunction OS(n) {\n return this.__data__.get(n);\n}\nfunction DS(n) {\n return this.__data__.has(n);\n}\nvar NS = 200;\nfunction BS(n, e) {\n var t = this.__data__;\n if (t instanceof fr) {\n var i = t.__data__;\n if (!Xa || i.length < NS - 1)\n return i.push([n, e]), this.size = ++t.size, this;\n t = this.__data__ = new pr(i);\n }\n return t.set(n, e), this.size = t.size, this;\n}\nfunction ir(n) {\n var e = this.__data__ = new fr(n);\n this.size = e.size;\n}\nir.prototype.clear = PS;\nir.prototype.delete = IS;\nir.prototype.get = OS;\nir.prototype.has = DS;\nir.prototype.set = BS;\nfunction FS(n, e) {\n for (var t = -1, i = n == null ? 0 : n.length, r = 0, s = []; ++t < i; ) {\n var o = n[t];\n e(o, t, n) && (s[r++] = o);\n }\n return s;\n}\nfunction zS() {\n return [];\n}\nvar US = Object.prototype, VS = US.propertyIsEnumerable, pm = Object.getOwnPropertySymbols, kS = pm ? function(n) {\n return n == null ? [] : (n = Object(n), FS(pm(n), function(e) {\n return VS.call(n, e);\n }));\n} : zS;\nfunction GS(n, e, t) {\n var i = e(n);\n return bi(n) ? i : S0(i, t(n));\n}\nfunction mm(n) {\n return GS(n, _0, kS);\n}\nvar rd = ks(ki, \"DataView\"), sd = ks(ki, \"Promise\"), od = ks(ki, \"Set\"), gm = \"[object Map]\", HS = \"[object Object]\", vm = \"[object Promise]\", ym = \"[object Set]\", bm = \"[object WeakMap]\", xm = \"[object DataView]\", WS = Vs(rd), jS = Vs(Xa), $S = Vs(sd), ZS = Vs(od), XS = Vs(nd), Dr = ta;\n(rd && Dr(new rd(new ArrayBuffer(1))) != xm || Xa && Dr(new Xa()) != gm || sd && Dr(sd.resolve()) != vm || od && Dr(new od()) != ym || nd && Dr(new nd()) != bm) && (Dr = function(n) {\n var e = ta(n), t = e == HS ? n.constructor : void 0, i = t ? Vs(t) : \"\";\n if (i)\n switch (i) {\n case WS:\n return xm;\n case jS:\n return gm;\n case $S:\n return vm;\n case ZS:\n return ym;\n case XS:\n return bm;\n }\n return e;\n});\nvar wm = ki.Uint8Array, YS = \"__lodash_hash_undefined__\";\nfunction JS(n) {\n return this.__data__.set(n, YS), this;\n}\nfunction KS(n) {\n return this.__data__.has(n);\n}\nfunction Wc(n) {\n var e = -1, t = n == null ? 0 : n.length;\n for (this.__data__ = new pr(); ++e < t; )\n this.add(n[e]);\n}\nWc.prototype.add = Wc.prototype.push = JS;\nWc.prototype.has = KS;\nfunction qS(n, e) {\n for (var t = -1, i = n == null ? 0 : n.length; ++t < i; )\n if (e(n[t], t, n))\n return !0;\n return !1;\n}\nfunction QS(n, e) {\n return n.has(e);\n}\nvar eT = 1, tT = 2;\nfunction T0(n, e, t, i, r, s) {\n var o = t & eT, a = n.length, c = e.length;\n if (a != c && !(o && c > a))\n return !1;\n var l = s.get(n), d = s.get(e);\n if (l && d)\n return l == e && d == n;\n var h = -1, f = !0, g = t & tT ? new Wc() : void 0;\n for (s.set(n, e), s.set(e, n); ++h < a; ) {\n var p = n[h], u = e[h];\n if (i)\n var y = o ? i(u, p, h, e, n, s) : i(p, u, h, n, e, s);\n if (y !== void 0) {\n if (y)\n continue;\n f = !1;\n break;\n }\n if (g) {\n if (!qS(e, function(v, m) {\n if (!QS(g, m) && (p === v || r(p, v, t, i, s)))\n return g.push(m);\n })) {\n f = !1;\n break;\n }\n } else if (!(p === u || r(p, u, t, i, s))) {\n f = !1;\n break;\n }\n }\n return s.delete(n), s.delete(e), f;\n}\nfunction nT(n) {\n var e = -1, t = Array(n.size);\n return n.forEach(function(i, r) {\n t[++e] = [r, i];\n }), t;\n}\nfunction iT(n) {\n var e = -1, t = Array(n.size);\n return n.forEach(function(i) {\n t[++e] = i;\n }), t;\n}\nvar rT = 1, sT = 2, oT = \"[object Boolean]\", aT = \"[object Date]\", lT = \"[object Error]\", cT = \"[object Map]\", uT = \"[object Number]\", hT = \"[object RegExp]\", dT = \"[object Set]\", fT = \"[object String]\", pT = \"[object Symbol]\", mT = \"[object ArrayBuffer]\", gT = \"[object DataView]\", Mm = Bi ? Bi.prototype : void 0, Xu = Mm ? Mm.valueOf : void 0;\nfunction vT(n, e, t, i, r, s, o) {\n switch (t) {\n case gT:\n if (n.byteLength != e.byteLength || n.byteOffset != e.byteOffset)\n return !1;\n n = n.buffer, e = e.buffer;\n case mT:\n return !(n.byteLength != e.byteLength || !s(new wm(n), new wm(e)));\n case oT:\n case aT:\n case uT:\n return uf(+n, +e);\n case lT:\n return n.name == e.name && n.message == e.message;\n case hT:\n case fT:\n return n == e + \"\";\n case cT:\n var a = nT;\n case dT:\n var c = i & rT;\n if (a || (a = iT), n.size != e.size && !c)\n return !1;\n var l = o.get(n);\n if (l)\n return l == e;\n i |= sT, o.set(n, e);\n var d = T0(a(n), a(e), i, r, s, o);\n return o.delete(n), d;\n case pT:\n if (Xu)\n return Xu.call(n) == Xu.call(e);\n }\n return !1;\n}\nvar yT = 1, bT = Object.prototype, xT = bT.hasOwnProperty;\nfunction wT(n, e, t, i, r, s) {\n var o = t & yT, a = mm(n), c = a.length, l = mm(e), d = l.length;\n if (c != d && !o)\n return !1;\n for (var h = c; h--; ) {\n var f = a[h];\n if (!(o ? f in e : xT.call(e, f)))\n return !1;\n }\n var g = s.get(n), p = s.get(e);\n if (g && p)\n return g == e && p == n;\n var u = !0;\n s.set(n, e), s.set(e, n);\n for (var y = o; ++h < c; ) {\n f = a[h];\n var v = n[f], m = e[f];\n if (i)\n var w = o ? i(m, v, f, e, n, s) : i(v, m, f, n, e, s);\n if (!(w === void 0 ? v === m || r(v, m, t, i, s) : w)) {\n u = !1;\n break;\n }\n y || (y = f == \"constructor\");\n }\n if (u && !y) {\n var _ = n.constructor, S = e.constructor;\n _ != S && \"constructor\" in n && \"constructor\" in e && !(typeof _ == \"function\" && _ instanceof _ && typeof S == \"function\" && S instanceof S) && (u = !1);\n }\n return s.delete(n), s.delete(e), u;\n}\nvar MT = 1, _m = \"[object Arguments]\", Sm = \"[object Array]\", Nl = \"[object Object]\", _T = Object.prototype, Tm = _T.hasOwnProperty;\nfunction ST(n, e, t, i, r, s) {\n var o = bi(n), a = bi(e), c = o ? Sm : Dr(n), l = a ? Sm : Dr(e);\n c = c == _m ? Nl : c, l = l == _m ? Nl : l;\n var d = c == Nl, h = l == Nl, f = c == l;\n if (f && id(n)) {\n if (!id(e))\n return !1;\n o = !0, d = !1;\n }\n if (f && !d)\n return s || (s = new ir()), o || M0(n) ? T0(n, e, t, i, r, s) : vT(n, e, c, t, i, r, s);\n if (!(t & MT)) {\n var g = d && Tm.call(n, \"__wrapped__\"), p = h && Tm.call(e, \"__wrapped__\");\n if (g || p) {\n var u = g ? n.value() : n, y = p ? e.value() : e;\n return s || (s = new ir()), r(u, y, t, i, s);\n }\n }\n return f ? (s || (s = new ir()), wT(n, e, t, i, r, s)) : !1;\n}\nfunction du(n, e, t, i, r) {\n return n === e ? !0 : n == null || e == null || !Co(n) && !Co(e) ? n !== n && e !== e : ST(n, e, t, i, du, r);\n}\nvar TT = 1, ET = 2;\nfunction AT(n, e, t, i) {\n var r = t.length, s = r;\n if (n == null)\n return !s;\n for (n = Object(n); r--; ) {\n var o = t[r];\n if (o[2] ? o[1] !== n[o[0]] : !(o[0] in n))\n return !1;\n }\n for (; ++r < s; ) {\n o = t[r];\n var a = o[0], c = n[a], l = o[1];\n if (o[2]) {\n if (c === void 0 && !(a in n))\n return !1;\n } else {\n var d = new ir(), h;\n if (!(h === void 0 ? du(l, c, TT | ET, i, d) : h))\n return !1;\n }\n }\n return !0;\n}\nfunction E0(n) {\n return n === n && !Hr(n);\n}\nfunction CT(n) {\n for (var e = _0(n), t = e.length; t--; ) {\n var i = e[t], r = n[i];\n e[t] = [i, r, E0(r)];\n }\n return e;\n}\nfunction A0(n, e) {\n return function(t) {\n return t == null ? !1 : t[n] === e && (e !== void 0 || n in Object(t));\n };\n}\nfunction LT(n) {\n var e = CT(n);\n return e.length == 1 && e[0][2] ? A0(e[0][0], e[0][1]) : function(t) {\n return t === n || AT(t, n, e);\n };\n}\nfunction RT(n, e) {\n return n != null && e in Object(n);\n}\nfunction PT(n, e, t) {\n e = hu(e, n);\n for (var i = -1, r = e.length, s = !1; ++i < r; ) {\n var o = fl(e[i]);\n if (!(s = n != null && t(n, o)))\n break;\n n = n[o];\n }\n return s || ++i != r ? s : (r = n == null ? 0 : n.length, !!r && hf(r) && cf(o, r) && (bi(n) || df(n)));\n}\nfunction C0(n, e) {\n return n != null && PT(n, e, RT);\n}\nvar IT = 1, OT = 2;\nfunction DT(n, e) {\n return ff(n) && E0(e) ? A0(fl(n), e) : function(t) {\n var i = Qi(t, n);\n return i === void 0 && i === e ? C0(t, n) : du(e, i, IT | OT);\n };\n}\nfunction NT(n) {\n return function(e) {\n return e == null ? void 0 : e[n];\n };\n}\nfunction BT(n) {\n return function(e) {\n return mf(e, n);\n };\n}\nfunction FT(n) {\n return ff(n) ? NT(fl(n)) : BT(n);\n}\nfunction zT(n) {\n return typeof n == \"function\" ? n : n == null ? v0 : typeof n == \"object\" ? bi(n) ? DT(n[0], n[1]) : LT(n) : FT(n);\n}\nvar Yu = function() {\n return ki.Date.now();\n}, UT = \"Expected a function\", VT = Math.max, kT = Math.min;\nfunction ad(n, e, t) {\n var i, r, s, o, a, c, l = 0, d = !1, h = !1, f = !0;\n if (typeof n != \"function\")\n throw new TypeError(UT);\n e = sm(e) || 0, Hr(t) && (d = !!t.leading, h = \"maxWait\" in t, s = h ? VT(sm(t.maxWait) || 0, e) : s, f = \"trailing\" in t ? !!t.trailing : f);\n function g(M) {\n var x = i, A = r;\n return i = r = void 0, l = M, o = n.apply(A, x), o;\n }\n function p(M) {\n return l = M, a = setTimeout(v, e), d ? g(M) : o;\n }\n function u(M) {\n var x = M - c, A = M - l, P = e - x;\n return h ? kT(P, s - A) : P;\n }\n function y(M) {\n var x = M - c, A = M - l;\n return c === void 0 || x >= e || x < 0 || h && A >= s;\n }\n function v() {\n var M = Yu();\n if (y(M))\n return m(M);\n a = setTimeout(v, u(M));\n }\n function m(M) {\n return a = void 0, f && i ? g(M) : (i = r = void 0, o);\n }\n function w() {\n a !== void 0 && clearTimeout(a), l = 0, i = c = r = a = void 0;\n }\n function _() {\n return a === void 0 ? o : m(Yu());\n }\n function S() {\n var M = Yu(), x = y(M);\n if (i = arguments, r = this, c = M, x) {\n if (a === void 0)\n return p(c);\n if (h)\n return clearTimeout(a), a = setTimeout(v, e), g(c);\n }\n return a === void 0 && (a = setTimeout(v, e)), o;\n }\n return S.cancel = w, S.flush = _, S;\n}\nfunction GT(n, e, t) {\n var i = n == null ? 0 : n.length;\n if (!i)\n return -1;\n var r = i - 1;\n return ZM(n, zT(e), r);\n}\nfunction jc(n) {\n for (var e = -1, t = n == null ? 0 : n.length, i = {}; ++e < t; ) {\n var r = n[e];\n i[r[0]] = r[1];\n }\n return i;\n}\nfunction ld(n, e) {\n return du(n, e);\n}\nfunction rr(n) {\n return n == null;\n}\nfunction HT(n) {\n return n === void 0;\n}\nfunction WT(n, e, t, i) {\n if (!Hr(n))\n return n;\n e = hu(e, n);\n for (var r = -1, s = e.length, o = s - 1, a = n; a != null && ++r < s; ) {\n var c = fl(e[r]), l = t;\n if (c === \"__proto__\" || c === \"constructor\" || c === \"prototype\")\n return n;\n if (r != o) {\n var d = a[c];\n l = void 0, l === void 0 && (l = Hr(d) ? d : cf(e[r + 1]) ? [] : {});\n }\n QM(a, c, l), a = a[c];\n }\n return n;\n}\nfunction jT(n, e, t) {\n for (var i = -1, r = e.length, s = {}; ++i < r; ) {\n var o = e[i], a = mf(n, o);\n t(a, o) && WT(s, hu(o, n), a);\n }\n return s;\n}\nfunction $T(n, e) {\n return jT(n, e, function(t, i) {\n return C0(n, i);\n });\n}\nvar ZT = RS(function(n, e) {\n return n == null ? {} : $T(n, e);\n});\nconst vi = (n) => n === void 0, gf = (n) => typeof n == \"boolean\", Mt = (n) => typeof n == \"number\", Ms = (n) => typeof Element > \"u\" ? !1 : n instanceof Element, XT = (n) => Ln(n) ? !Number.isNaN(Number(n)) : !1, YT = (n = \"\") => n.replace(/[|\\\\{}()[\\]^$+*?.]/g, \"\\\\$&\").replace(/-/g, \"\\\\x2d\"), Br = (n) => nM(n), Em = (n) => Object.keys(n);\nclass L0 extends Error {\n constructor(e) {\n super(e), this.name = \"ElementPlusError\";\n }\n}\nfunction na(n, e) {\n throw new L0(`[${n}] ${e}`);\n}\nfunction Jt(n, e) {\n if (process.env.NODE_ENV !== \"production\") {\n const t = Ln(n) ? new L0(`[${n}] ${e}`) : n;\n console.warn(t);\n }\n}\nconst JT = \"utils/dom/style\", R0 = (n = \"\") => n.split(\" \").filter((e) => !!e.trim()), Am = (n, e) => {\n !n || !e.trim() || n.classList.add(...R0(e));\n}, $c = (n, e) => {\n !n || !e.trim() || n.classList.remove(...R0(e));\n}, va = (n, e) => {\n var t;\n if (!Qt || !n || !e)\n return \"\";\n let i = Q1(e);\n i === \"float\" && (i = \"cssFloat\");\n try {\n const r = n.style[i];\n if (r)\n return r;\n const s = (t = document.defaultView) == null ? void 0 : t.getComputedStyle(n, \"\");\n return s ? s[i] : \"\";\n } catch {\n return n.style[i];\n }\n};\nfunction Zc(n, e = \"px\") {\n if (!n)\n return \"\";\n if (Mt(n) || XT(n))\n return `${n}${e}`;\n if (Ln(n))\n return n;\n Jt(JT, \"binding value must be a string or number\");\n}\nfunction KT(n, e) {\n if (!Qt)\n return;\n if (!e) {\n n.scrollTop = 0;\n return;\n }\n const t = [];\n let i = e.offsetParent;\n for (; i !== null && n !== i && n.contains(i); )\n t.push(i), i = i.offsetParent;\n const r = e.offsetTop + t.reduce((c, l) => c + l.offsetTop, 0), s = r + e.offsetHeight, o = n.scrollTop, a = o + n.clientHeight;\n r < o ? n.scrollTop = r : s > a && (n.scrollTop = s - n.clientHeight);\n}\n/*! Element Plus Icons Vue v2.3.1 */\nvar qT = /* @__PURE__ */ De({\n name: \"ArrowDown\",\n __name: \"arrow-down\",\n setup(n) {\n return (e, t) => (ge(), Re(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 1024 1024\"\n }, [\n Fe(\"path\", {\n fill: \"currentColor\",\n d: \"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z\"\n })\n ]));\n }\n}), vf = qT, QT = /* @__PURE__ */ De({\n name: \"ArrowLeft\",\n __name: \"arrow-left\",\n setup(n) {\n return (e, t) => (ge(), Re(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 1024 1024\"\n }, [\n Fe(\"path\", {\n fill: \"currentColor\",\n d: \"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z\"\n })\n ]));\n }\n}), Wr = QT, eE = /* @__PURE__ */ De({\n name: \"ArrowRight\",\n __name: \"arrow-right\",\n setup(n) {\n return (e, t) => (ge(), Re(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 1024 1024\"\n }, [\n Fe(\"path\", {\n fill: \"currentColor\",\n d: \"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z\"\n })\n ]));\n }\n}), jr = eE, tE = /* @__PURE__ */ De({\n name: \"ArrowUp\",\n __name: \"arrow-up\",\n setup(n) {\n return (e, t) => (ge(), Re(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 1024 1024\"\n }, [\n Fe(\"path\", {\n fill: \"currentColor\",\n d: \"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0\"\n })\n ]));\n }\n}), nE = tE, iE = /* @__PURE__ */ De({\n name: \"CircleCheck\",\n __name: \"circle-check\",\n setup(n) {\n return (e, t) => (ge(), Re(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 1024 1024\"\n }, [\n Fe(\"path\", {\n fill: \"currentColor\",\n d: \"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896\"\n }),\n Fe(\"path\", {\n fill: \"currentColor\",\n d: \"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z\"\n })\n ]));\n }\n}), rE = iE, sE = /* @__PURE__ */ De({\n name: \"CircleClose\",\n __name: \"circle-close\",\n setup(n) {\n return (e, t) => (ge(), Re(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 1024 1024\"\n }, [\n Fe(\"path\", {\n fill: \"currentColor\",\n d: \"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z\"\n }),\n Fe(\"path\", {\n fill: \"currentColor\",\n d: \"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896\"\n })\n ]));\n }\n}), yf = sE, oE = /* @__PURE__ */ De({\n name: \"Close\",\n __name: \"close\",\n setup(n) {\n return (e, t) => (ge(), Re(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 1024 1024\"\n }, [\n Fe(\"path\", {\n fill: \"currentColor\",\n d: \"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z\"\n })\n ]));\n }\n}), cd = oE, aE = /* @__PURE__ */ De({\n name: \"Delete\",\n __name: \"delete\",\n setup(n) {\n return (e, t) => (ge(), Re(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 1024 1024\"\n }, [\n Fe(\"path\", {\n fill: \"currentColor\",\n d: \"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32\"\n })\n ]));\n }\n}), Xc = aE, lE = /* @__PURE__ */ De({\n name: \"Hide\",\n __name: \"hide\",\n setup(n) {\n return (e, t) => (ge(), Re(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 1024 1024\"\n }, [\n Fe(\"path\", {\n fill: \"currentColor\",\n d: \"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z\"\n }),\n Fe(\"path\", {\n fill: \"currentColor\",\n d: \"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z\"\n })\n ]));\n }\n}), cE = lE, uE = /* @__PURE__ */ De({\n name: \"Loading\",\n __name: \"loading\",\n setup(n) {\n return (e, t) => (ge(), Re(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 1024 1024\"\n }, [\n Fe(\"path\", {\n fill: \"currentColor\",\n d: \"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z\"\n })\n ]));\n }\n}), P0 = uE, hE = /* @__PURE__ */ De({\n name: \"Minus\",\n __name: \"minus\",\n setup(n) {\n return (e, t) => (ge(), Re(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 1024 1024\"\n }, [\n Fe(\"path\", {\n fill: \"currentColor\",\n d: \"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64\"\n })\n ]));\n }\n}), dE = hE, fE = /* @__PURE__ */ De({\n name: \"Plus\",\n __name: \"plus\",\n setup(n) {\n return (e, t) => (ge(), Re(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 1024 1024\"\n }, [\n Fe(\"path\", {\n fill: \"currentColor\",\n d: \"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z\"\n })\n ]));\n }\n}), fu = fE, pE = /* @__PURE__ */ De({\n name: \"View\",\n __name: \"view\",\n setup(n) {\n return (e, t) => (ge(), Re(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 1024 1024\"\n }, [\n Fe(\"path\", {\n fill: \"currentColor\",\n d: \"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160\"\n })\n ]));\n }\n}), mE = pE, gE = /* @__PURE__ */ De({\n name: \"WarningFilled\",\n __name: \"warning-filled\",\n setup(n) {\n return (e, t) => (ge(), Re(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 1024 1024\"\n }, [\n Fe(\"path\", {\n fill: \"currentColor\",\n d: \"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4\"\n })\n ]));\n }\n}), I0 = gE;\nconst O0 = \"__epPropKey\", Je = (n) => n, vE = (n) => An(n) && !!n[O0], pu = (n, e) => {\n if (!An(n) || vE(n))\n return n;\n const { values: t, required: i, default: r, type: s, validator: o } = n, c = {\n type: s,\n required: !!i,\n validator: t || o ? (l) => {\n let d = !1, h = [];\n if (t && (h = Array.from(t), em(n, \"default\") && h.push(r), d || (d = h.includes(l))), o && (d || (d = o(l))), !d && h.length > 0) {\n const f = [...new Set(h)].map((g) => JSON.stringify(g)).join(\", \");\n qw(`Invalid prop: validation failed${e ? ` for prop \"${e}\"` : \"\"}. Expected one of [${f}], got value ${JSON.stringify(l)}.`);\n }\n return d;\n } : void 0,\n [O0]: !0\n };\n return em(n, \"default\") && (c.default = r), c;\n}, dt = (n) => jc(Object.entries(n).map(([e, t]) => [\n e,\n pu(t, e)\n])), $r = Je([\n String,\n Object,\n Function\n]), D0 = {\n validating: P0,\n success: rE,\n error: yf\n}, fn = (n, e) => {\n if (n.install = (t) => {\n for (const i of [n, ...Object.values(e ?? {})])\n t.component(i.name, i);\n }, e)\n for (const [t, i] of Object.entries(e))\n n[t] = i;\n return n;\n}, yE = (n, e) => (n.install = (t) => {\n t.directive(e, n);\n}, n), mr = (n) => (n.install = $a, n), Oi = {\n tab: \"Tab\",\n enter: \"Enter\",\n space: \"Space\",\n left: \"ArrowLeft\",\n up: \"ArrowUp\",\n right: \"ArrowRight\",\n down: \"ArrowDown\",\n esc: \"Escape\",\n delete: \"Delete\",\n backspace: \"Backspace\",\n numpadEnter: \"NumpadEnter\",\n pageUp: \"PageUp\",\n pageDown: \"PageDown\",\n home: \"Home\",\n end: \"End\"\n}, It = \"update:modelValue\", qr = \"change\", _s = \"input\", N0 = [\"\", \"default\", \"small\", \"large\"], Bc = (n) => {\n const e = Bn(n) ? n : [n], t = [];\n return e.forEach((i) => {\n var r;\n Bn(i) ? t.push(...Bc(i)) : ed(i) && Bn(i.children) ? t.push(...Bc(i.children)) : (t.push(i), ed(i) && ((r = i.component) != null && r.subTree) && t.push(...Bc(i.component.subTree)));\n }), t;\n}, bE = (n) => /([\\uAC00-\\uD7AF\\u3130-\\u318F])+/gi.test(n), er = (n) => n, xE = [\"class\", \"style\"], wE = /^on[A-Z]/, ME = (n = {}) => {\n const { excludeListeners: e = !1, excludeKeys: t } = n, i = ce(() => ((t == null ? void 0 : t.value) || []).concat(xE)), r = sn();\n return r ? ce(() => {\n var s;\n return jc(Object.entries((s = r.proxy) == null ? void 0 : s.$attrs).filter(([o]) => !i.value.includes(o) && !(e && wE.test(o))));\n }) : (Jt(\"use-attrs\", \"getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function\"), ce(() => ({})));\n}, _E = ({ from: n, replacement: e, scope: t, version: i, ref: r, type: s = \"API\" }, o) => {\n qe(() => G(o), (a) => {\n a && Jt(t, `[${s}] ${n} is about to be deprecated in version ${i}, please use ${e} instead.\nFor more detail, please visit: ${r}\n`);\n }, {\n immediate: !0\n });\n};\nvar SE = {\n name: \"en\",\n el: {\n breadcrumb: {\n label: \"Breadcrumb\"\n },\n colorpicker: {\n confirm: \"OK\",\n clear: \"Clear\",\n defaultLabel: \"color picker\",\n description: \"current color is {color}. press enter to select a new color.\",\n alphaLabel: \"pick alpha value\"\n },\n datepicker: {\n now: \"Now\",\n today: \"Today\",\n cancel: \"Cancel\",\n clear: \"Clear\",\n confirm: \"OK\",\n dateTablePrompt: \"Use the arrow keys and enter to select the day of the month\",\n monthTablePrompt: \"Use the arrow keys and enter to select the month\",\n yearTablePrompt: \"Use the arrow keys and enter to select the year\",\n selectedDate: \"Selected date\",\n selectDate: \"Select date\",\n selectTime: \"Select time\",\n startDate: \"Start Date\",\n startTime: \"Start Time\",\n endDate: \"End Date\",\n endTime: \"End Time\",\n prevYear: \"Previous Year\",\n nextYear: \"Next Year\",\n prevMonth: \"Previous Month\",\n nextMonth: \"Next Month\",\n year: \"\",\n month1: \"January\",\n month2: \"February\",\n month3: \"March\",\n month4: \"April\",\n month5: \"May\",\n month6: \"June\",\n month7: \"July\",\n month8: \"August\",\n month9: \"September\",\n month10: \"October\",\n month11: \"November\",\n month12: \"December\",\n week: \"week\",\n weeks: {\n sun: \"Sun\",\n mon: \"Mon\",\n tue: \"Tue\",\n wed: \"Wed\",\n thu: \"Thu\",\n fri: \"Fri\",\n sat: \"Sat\"\n },\n weeksFull: {\n sun: \"Sunday\",\n mon: \"Monday\",\n tue: \"Tuesday\",\n wed: \"Wednesday\",\n thu: \"Thursday\",\n fri: \"Friday\",\n sat: \"Saturday\"\n },\n months: {\n jan: \"Jan\",\n feb: \"Feb\",\n mar: \"Mar\",\n apr: \"Apr\",\n may: \"May\",\n jun: \"Jun\",\n jul: \"Jul\",\n aug: \"Aug\",\n sep: \"Sep\",\n oct: \"Oct\",\n nov: \"Nov\",\n dec: \"Dec\"\n }\n },\n inputNumber: {\n decrease: \"decrease number\",\n increase: \"increase number\"\n },\n select: {\n loading: \"Loading\",\n noMatch: \"No matching data\",\n noData: \"No data\",\n placeholder: \"Select\"\n },\n mention: {\n loading: \"Loading\"\n },\n dropdown: {\n toggleDropdown: \"Toggle Dropdown\"\n },\n cascader: {\n noMatch: \"No matching data\",\n loading: \"Loading\",\n placeholder: \"Select\",\n noData: \"No data\"\n },\n pagination: {\n goto: \"Go to\",\n pagesize: \"/page\",\n total: \"Total {total}\",\n pageClassifier: \"\",\n page: \"Page\",\n prev: \"Go to previous page\",\n next: \"Go to next page\",\n currentPage: \"page {pager}\",\n prevPages: \"Previous {pager} pages\",\n nextPages: \"Next {pager} pages\",\n deprecationWarning: \"Deprecated usages detected, please refer to the el-pagination documentation for more details\"\n },\n dialog: {\n close: \"Close this dialog\"\n },\n drawer: {\n close: \"Close this dialog\"\n },\n messagebox: {\n title: \"Message\",\n confirm: \"OK\",\n cancel: \"Cancel\",\n error: \"Illegal input\",\n close: \"Close this dialog\"\n },\n upload: {\n deleteTip: \"press delete to remove\",\n delete: \"Delete\",\n preview: \"Preview\",\n continue: \"Continue\"\n },\n slider: {\n defaultLabel: \"slider between {min} and {max}\",\n defaultRangeStartLabel: \"pick start value\",\n defaultRangeEndLabel: \"pick end value\"\n },\n table: {\n emptyText: \"No Data\",\n confirmFilter: \"Confirm\",\n resetFilter: \"Reset\",\n clearFilter: \"All\",\n sumText: \"Sum\"\n },\n tour: {\n next: \"Next\",\n previous: \"Previous\",\n finish: \"Finish\"\n },\n tree: {\n emptyText: \"No Data\"\n },\n transfer: {\n noMatch: \"No matching data\",\n noData: \"No data\",\n titles: [\"List 1\", \"List 2\"],\n filterPlaceholder: \"Enter keyword\",\n noCheckedFormat: \"{total} items\",\n hasCheckedFormat: \"{checked}/{total} checked\"\n },\n image: {\n error: \"FAILED\"\n },\n pageHeader: {\n title: \"Back\"\n },\n popconfirm: {\n confirmButtonText: \"Yes\",\n cancelButtonText: \"No\"\n },\n carousel: {\n leftArrow: \"Carousel arrow left\",\n rightArrow: \"Carousel arrow right\",\n indicator: \"Carousel switch to index {index}\"\n }\n }\n};\nconst TE = (n) => (e, t) => EE(e, t, G(n)), EE = (n, e, t) => Qi(t, n, n).replace(/\\{(\\w+)\\}/g, (i, r) => {\n var s;\n return `${(s = e == null ? void 0 : e[r]) != null ? s : `{${r}}`}`;\n}), AE = (n) => {\n const e = ce(() => G(n).name), t = Ls(n) ? n : Ae(n);\n return {\n lang: e,\n locale: t,\n t: TE(n)\n };\n}, B0 = Symbol(\"localeContextKey\"), mu = (n) => {\n const e = n || ht(B0, Ae());\n return AE(ce(() => e.value || SE));\n}, Fc = \"el\", CE = \"is-\", ls = (n, e, t, i, r) => {\n let s = `${n}-${e}`;\n return t && (s += `-${t}`), i && (s += `__${i}`), r && (s += `--${r}`), s;\n}, F0 = Symbol(\"namespaceContextKey\"), bf = (n) => {\n const e = n || (sn() ? ht(F0, Ae(Fc)) : Ae(Fc));\n return ce(() => G(e) || Fc);\n}, it = (n, e) => {\n const t = bf(e);\n return {\n namespace: t,\n b: (u = \"\") => ls(t.value, n, u, \"\", \"\"),\n e: (u) => u ? ls(t.value, n, \"\", u, \"\") : \"\",\n m: (u) => u ? ls(t.value, n, \"\", \"\", u) : \"\",\n be: (u, y) => u && y ? ls(t.value, n, u, y, \"\") : \"\",\n em: (u, y) => u && y ? ls(t.value, n, \"\", u, y) : \"\",\n bm: (u, y) => u && y ? ls(t.value, n, u, \"\", y) : \"\",\n bem: (u, y, v) => u && y && v ? ls(t.value, n, u, y, v) : \"\",\n is: (u, ...y) => {\n const v = y.length >= 1 ? y[0] : !0;\n return u && v ? `${CE}${u}` : \"\";\n },\n cssVar: (u) => {\n const y = {};\n for (const v in u)\n u[v] && (y[`--${t.value}-${v}`] = u[v]);\n return y;\n },\n cssVarName: (u) => `--${t.value}-${u}`,\n cssVarBlock: (u) => {\n const y = {};\n for (const v in u)\n u[v] && (y[`--${t.value}-${n}-${v}`] = u[v]);\n return y;\n },\n cssVarBlockName: (u) => `--${t.value}-${n}-${u}`\n };\n}, LE = pu({\n type: Je(Boolean),\n default: null\n}), RE = pu({\n type: Je(Function)\n}), PE = (n) => {\n const e = `update:${n}`, t = `onUpdate:${n}`, i = [e], r = {\n [n]: LE,\n [t]: RE\n };\n return {\n useModelToggle: ({\n indicator: o,\n toggleReason: a,\n shouldHideWhenRouteChanges: c,\n shouldProceed: l,\n onShow: d,\n onHide: h\n }) => {\n const f = sn(), { emit: g } = f, p = f.props, u = ce(() => Tn(p[t])), y = ce(() => p[n] === null), v = (x) => {\n o.value !== !0 && (o.value = !0, a && (a.value = x), Tn(d) && d(x));\n }, m = (x) => {\n o.value !== !1 && (o.value = !1, a && (a.value = x), Tn(h) && h(x));\n }, w = (x) => {\n if (p.disabled === !0 || Tn(l) && !l())\n return;\n const A = u.value && Qt;\n A && g(e, !0), (y.value || !A) && v(x);\n }, _ = (x) => {\n if (p.disabled === !0 || !Qt)\n return;\n const A = u.value && Qt;\n A && g(e, !1), (y.value || !A) && m(x);\n }, S = (x) => {\n gf(x) && (p.disabled && x ? u.value && g(e, !1) : o.value !== x && (x ? v() : m()));\n }, M = () => {\n o.value ? _() : w();\n };\n return qe(() => p[n], S), c && f.appContext.config.globalProperties.$route !== void 0 && qe(() => ({\n ...f.proxy.$route\n }), () => {\n c.value && o.value && _();\n }), tn(() => {\n S(p[n]);\n }), {\n hide: _,\n show: w,\n toggle: M,\n hasUpdateHandler: u\n };\n },\n useModelToggleProps: r,\n useModelToggleEmits: i\n };\n}, z0 = (n) => {\n const e = sn();\n return ce(() => {\n var t, i;\n return (i = (t = e == null ? void 0 : e.proxy) == null ? void 0 : t.$props) == null ? void 0 : i[n];\n });\n};\nvar zn = \"top\", ri = \"bottom\", si = \"right\", Un = \"left\", xf = \"auto\", pl = [zn, ri, si, Un], Lo = \"start\", Ya = \"end\", IE = \"clippingParents\", U0 = \"viewport\", ya = \"popper\", OE = \"reference\", Cm = pl.reduce(function(n, e) {\n return n.concat([e + \"-\" + Lo, e + \"-\" + Ya]);\n}, []), ia = [].concat(pl, [xf]).reduce(function(n, e) {\n return n.concat([e, e + \"-\" + Lo, e + \"-\" + Ya]);\n}, []), DE = \"beforeRead\", NE = \"read\", BE = \"afterRead\", FE = \"beforeMain\", zE = \"main\", UE = \"afterMain\", VE = \"beforeWrite\", kE = \"write\", GE = \"afterWrite\", HE = [DE, NE, BE, FE, zE, UE, VE, kE, GE];\nfunction Fi(n) {\n return n ? (n.nodeName || \"\").toLowerCase() : null;\n}\nfunction Mi(n) {\n if (n == null) return window;\n if (n.toString() !== \"[object Window]\") {\n var e = n.ownerDocument;\n return e && e.defaultView || window;\n }\n return n;\n}\nfunction Ro(n) {\n var e = Mi(n).Element;\n return n instanceof e || n instanceof Element;\n}\nfunction ii(n) {\n var e = Mi(n).HTMLElement;\n return n instanceof e || n instanceof HTMLElement;\n}\nfunction wf(n) {\n if (typeof ShadowRoot > \"u\") return !1;\n var e = Mi(n).ShadowRoot;\n return n instanceof e || n instanceof ShadowRoot;\n}\nfunction WE(n) {\n var e = n.state;\n Object.keys(e.elements).forEach(function(t) {\n var i = e.styles[t] || {}, r = e.attributes[t] || {}, s = e.elements[t];\n !ii(s) || !Fi(s) || (Object.assign(s.style, i), Object.keys(r).forEach(function(o) {\n var a = r[o];\n a === !1 ? s.removeAttribute(o) : s.setAttribute(o, a === !0 ? \"\" : a);\n }));\n });\n}\nfunction jE(n) {\n var e = n.state, t = { popper: { position: e.options.strategy, left: \"0\", top: \"0\", margin: \"0\" }, arrow: { position: \"absolute\" }, reference: {} };\n return Object.assign(e.elements.popper.style, t.popper), e.styles = t, e.elements.arrow && Object.assign(e.elements.arrow.style, t.arrow), function() {\n Object.keys(e.elements).forEach(function(i) {\n var r = e.elements[i], s = e.attributes[i] || {}, o = Object.keys(e.styles.hasOwnProperty(i) ? e.styles[i] : t[i]), a = o.reduce(function(c, l) {\n return c[l] = \"\", c;\n }, {});\n !ii(r) || !Fi(r) || (Object.assign(r.style, a), Object.keys(s).forEach(function(c) {\n r.removeAttribute(c);\n }));\n });\n };\n}\nvar V0 = { name: \"applyStyles\", enabled: !0, phase: \"write\", fn: WE, effect: jE, requires: [\"computeStyles\"] };\nfunction Di(n) {\n return n.split(\"-\")[0];\n}\nvar Ss = Math.max, Yc = Math.min, Po = Math.round;\nfunction Io(n, e) {\n e === void 0 && (e = !1);\n var t = n.getBoundingClientRect(), i = 1, r = 1;\n if (ii(n) && e) {\n var s = n.offsetHeight, o = n.offsetWidth;\n o > 0 && (i = Po(t.width) / o || 1), s > 0 && (r = Po(t.height) / s || 1);\n }\n return { width: t.width / i, height: t.height / r, top: t.top / r, right: t.right / i, bottom: t.bottom / r, left: t.left / i, x: t.left / i, y: t.top / r };\n}\nfunction Mf(n) {\n var e = Io(n), t = n.offsetWidth, i = n.offsetHeight;\n return Math.abs(e.width - t) <= 1 && (t = e.width), Math.abs(e.height - i) <= 1 && (i = e.height), { x: n.offsetLeft, y: n.offsetTop, width: t, height: i };\n}\nfunction k0(n, e) {\n var t = e.getRootNode && e.getRootNode();\n if (n.contains(e)) return !0;\n if (t && wf(t)) {\n var i = e;\n do {\n if (i && n.isSameNode(i)) return !0;\n i = i.parentNode || i.host;\n } while (i);\n }\n return !1;\n}\nfunction cr(n) {\n return Mi(n).getComputedStyle(n);\n}\nfunction $E(n) {\n return [\"table\", \"td\", \"th\"].indexOf(Fi(n)) >= 0;\n}\nfunction Qr(n) {\n return ((Ro(n) ? n.ownerDocument : n.document) || window.document).documentElement;\n}\nfunction gu(n) {\n return Fi(n) === \"html\" ? n : n.assignedSlot || n.parentNode || (wf(n) ? n.host : null) || Qr(n);\n}\nfunction Lm(n) {\n return !ii(n) || cr(n).position === \"fixed\" ? null : n.offsetParent;\n}\nfunction ZE(n) {\n var e = navigator.userAgent.toLowerCase().indexOf(\"firefox\") !== -1, t = navigator.userAgent.indexOf(\"Trident\") !== -1;\n if (t && ii(n)) {\n var i = cr(n);\n if (i.position === \"fixed\") return null;\n }\n var r = gu(n);\n for (wf(r) && (r = r.host); ii(r) && [\"html\", \"body\"].indexOf(Fi(r)) < 0; ) {\n var s = cr(r);\n if (s.transform !== \"none\" || s.perspective !== \"none\" || s.contain === \"paint\" || [\"transform\", \"perspective\"].indexOf(s.willChange) !== -1 || e && s.willChange === \"filter\" || e && s.filter && s.filter !== \"none\") return r;\n r = r.parentNode;\n }\n return null;\n}\nfunction ml(n) {\n for (var e = Mi(n), t = Lm(n); t && $E(t) && cr(t).position === \"static\"; ) t = Lm(t);\n return t && (Fi(t) === \"html\" || Fi(t) === \"body\" && cr(t).position === \"static\") ? e : t || ZE(n) || e;\n}\nfunction _f(n) {\n return [\"top\", \"bottom\"].indexOf(n) >= 0 ? \"x\" : \"y\";\n}\nfunction za(n, e, t) {\n return Ss(n, Yc(e, t));\n}\nfunction XE(n, e, t) {\n var i = za(n, e, t);\n return i > t ? t : i;\n}\nfunction G0() {\n return { top: 0, right: 0, bottom: 0, left: 0 };\n}\nfunction H0(n) {\n return Object.assign({}, G0(), n);\n}\nfunction W0(n, e) {\n return e.reduce(function(t, i) {\n return t[i] = n, t;\n }, {});\n}\nvar YE = function(n, e) {\n return n = typeof n == \"function\" ? n(Object.assign({}, e.rects, { placement: e.placement })) : n, H0(typeof n != \"number\" ? n : W0(n, pl));\n};\nfunction JE(n) {\n var e, t = n.state, i = n.name, r = n.options, s = t.elements.arrow, o = t.modifiersData.popperOffsets, a = Di(t.placement), c = _f(a), l = [Un, si].indexOf(a) >= 0, d = l ? \"height\" : \"width\";\n if (!(!s || !o)) {\n var h = YE(r.padding, t), f = Mf(s), g = c === \"y\" ? zn : Un, p = c === \"y\" ? ri : si, u = t.rects.reference[d] + t.rects.reference[c] - o[c] - t.rects.popper[d], y = o[c] - t.rects.reference[c], v = ml(s), m = v ? c === \"y\" ? v.clientHeight || 0 : v.clientWidth || 0 : 0, w = u / 2 - y / 2, _ = h[g], S = m - f[d] - h[p], M = m / 2 - f[d] / 2 + w, x = za(_, M, S), A = c;\n t.modifiersData[i] = (e = {}, e[A] = x, e.centerOffset = x - M, e);\n }\n}\nfunction KE(n) {\n var e = n.state, t = n.options, i = t.element, r = i === void 0 ? \"[data-popper-arrow]\" : i;\n r != null && (typeof r == \"string\" && (r = e.elements.popper.querySelector(r), !r) || !k0(e.elements.popper, r) || (e.elements.arrow = r));\n}\nvar qE = { name: \"arrow\", enabled: !0, phase: \"main\", fn: JE, effect: KE, requires: [\"popperOffsets\"], requiresIfExists: [\"preventOverflow\"] };\nfunction Oo(n) {\n return n.split(\"-\")[1];\n}\nvar QE = { top: \"auto\", right: \"auto\", bottom: \"auto\", left: \"auto\" };\nfunction eA(n) {\n var e = n.x, t = n.y, i = window, r = i.devicePixelRatio || 1;\n return { x: Po(e * r) / r || 0, y: Po(t * r) / r || 0 };\n}\nfunction Rm(n) {\n var e, t = n.popper, i = n.popperRect, r = n.placement, s = n.variation, o = n.offsets, a = n.position, c = n.gpuAcceleration, l = n.adaptive, d = n.roundOffsets, h = n.isFixed, f = o.x, g = f === void 0 ? 0 : f, p = o.y, u = p === void 0 ? 0 : p, y = typeof d == \"function\" ? d({ x: g, y: u }) : { x: g, y: u };\n g = y.x, u = y.y;\n var v = o.hasOwnProperty(\"x\"), m = o.hasOwnProperty(\"y\"), w = Un, _ = zn, S = window;\n if (l) {\n var M = ml(t), x = \"clientHeight\", A = \"clientWidth\";\n if (M === Mi(t) && (M = Qr(t), cr(M).position !== \"static\" && a === \"absolute\" && (x = \"scrollHeight\", A = \"scrollWidth\")), M = M, r === zn || (r === Un || r === si) && s === Ya) {\n _ = ri;\n var P = h && M === S && S.visualViewport ? S.visualViewport.height : M[x];\n u -= P - i.height, u *= c ? 1 : -1;\n }\n if (r === Un || (r === zn || r === ri) && s === Ya) {\n w = si;\n var T = h && M === S && S.visualViewport ? S.visualViewport.width : M[A];\n g -= T - i.width, g *= c ? 1 : -1;\n }\n }\n var R = Object.assign({ position: a }, l && QE), E = d === !0 ? eA({ x: g, y: u }) : { x: g, y: u };\n if (g = E.x, u = E.y, c) {\n var C;\n return Object.assign({}, R, (C = {}, C[_] = m ? \"0\" : \"\", C[w] = v ? \"0\" : \"\", C.transform = (S.devicePixelRatio || 1) <= 1 ? \"translate(\" + g + \"px, \" + u + \"px)\" : \"translate3d(\" + g + \"px, \" + u + \"px, 0)\", C));\n }\n return Object.assign({}, R, (e = {}, e[_] = m ? u + \"px\" : \"\", e[w] = v ? g + \"px\" : \"\", e.transform = \"\", e));\n}\nfunction tA(n) {\n var e = n.state, t = n.options, i = t.gpuAcceleration, r = i === void 0 ? !0 : i, s = t.adaptive, o = s === void 0 ? !0 : s, a = t.roundOffsets, c = a === void 0 ? !0 : a, l = { placement: Di(e.placement), variation: Oo(e.placement), popper: e.elements.popper, popperRect: e.rects.popper, gpuAcceleration: r, isFixed: e.options.strategy === \"fixed\" };\n e.modifiersData.popperOffsets != null && (e.styles.popper = Object.assign({}, e.styles.popper, Rm(Object.assign({}, l, { offsets: e.modifiersData.popperOffsets, position: e.options.strategy, adaptive: o, roundOffsets: c })))), e.modifiersData.arrow != null && (e.styles.arrow = Object.assign({}, e.styles.arrow, Rm(Object.assign({}, l, { offsets: e.modifiersData.arrow, position: \"absolute\", adaptive: !1, roundOffsets: c })))), e.attributes.popper = Object.assign({}, e.attributes.popper, { \"data-popper-placement\": e.placement });\n}\nvar j0 = { name: \"computeStyles\", enabled: !0, phase: \"beforeWrite\", fn: tA, data: {} }, Bl = { passive: !0 };\nfunction nA(n) {\n var e = n.state, t = n.instance, i = n.options, r = i.scroll, s = r === void 0 ? !0 : r, o = i.resize, a = o === void 0 ? !0 : o, c = Mi(e.elements.popper), l = [].concat(e.scrollParents.reference, e.scrollParents.popper);\n return s && l.forEach(function(d) {\n d.addEventListener(\"scroll\", t.update, Bl);\n }), a && c.addEventListener(\"resize\", t.update, Bl), function() {\n s && l.forEach(function(d) {\n d.removeEventListener(\"scroll\", t.update, Bl);\n }), a && c.removeEventListener(\"resize\", t.update, Bl);\n };\n}\nvar $0 = { name: \"eventListeners\", enabled: !0, phase: \"write\", fn: function() {\n}, effect: nA, data: {} }, iA = { left: \"right\", right: \"left\", bottom: \"top\", top: \"bottom\" };\nfunction zc(n) {\n return n.replace(/left|right|bottom|top/g, function(e) {\n return iA[e];\n });\n}\nvar rA = { start: \"end\", end: \"start\" };\nfunction Pm(n) {\n return n.replace(/start|end/g, function(e) {\n return rA[e];\n });\n}\nfunction Sf(n) {\n var e = Mi(n), t = e.pageXOffset, i = e.pageYOffset;\n return { scrollLeft: t, scrollTop: i };\n}\nfunction Tf(n) {\n return Io(Qr(n)).left + Sf(n).scrollLeft;\n}\nfunction sA(n) {\n var e = Mi(n), t = Qr(n), i = e.visualViewport, r = t.clientWidth, s = t.clientHeight, o = 0, a = 0;\n return i && (r = i.width, s = i.height, /^((?!chrome|android).)*safari/i.test(navigator.userAgent) || (o = i.offsetLeft, a = i.offsetTop)), { width: r, height: s, x: o + Tf(n), y: a };\n}\nfunction oA(n) {\n var e, t = Qr(n), i = Sf(n), r = (e = n.ownerDocument) == null ? void 0 : e.body, s = Ss(t.scrollWidth, t.clientWidth, r ? r.scrollWidth : 0, r ? r.clientWidth : 0), o = Ss(t.scrollHeight, t.clientHeight, r ? r.scrollHeight : 0, r ? r.clientHeight : 0), a = -i.scrollLeft + Tf(n), c = -i.scrollTop;\n return cr(r || t).direction === \"rtl\" && (a += Ss(t.clientWidth, r ? r.clientWidth : 0) - s), { width: s, height: o, x: a, y: c };\n}\nfunction Ef(n) {\n var e = cr(n), t = e.overflow, i = e.overflowX, r = e.overflowY;\n return /auto|scroll|overlay|hidden/.test(t + r + i);\n}\nfunction Z0(n) {\n return [\"html\", \"body\", \"#document\"].indexOf(Fi(n)) >= 0 ? n.ownerDocument.body : ii(n) && Ef(n) ? n : Z0(gu(n));\n}\nfunction Ua(n, e) {\n var t;\n e === void 0 && (e = []);\n var i = Z0(n), r = i === ((t = n.ownerDocument) == null ? void 0 : t.body), s = Mi(i), o = r ? [s].concat(s.visualViewport || [], Ef(i) ? i : []) : i, a = e.concat(o);\n return r ? a : a.concat(Ua(gu(o)));\n}\nfunction ud(n) {\n return Object.assign({}, n, { left: n.x, top: n.y, right: n.x + n.width, bottom: n.y + n.height });\n}\nfunction aA(n) {\n var e = Io(n);\n return e.top = e.top + n.clientTop, e.left = e.left + n.clientLeft, e.bottom = e.top + n.clientHeight, e.right = e.left + n.clientWidth, e.width = n.clientWidth, e.height = n.clientHeight, e.x = e.left, e.y = e.top, e;\n}\nfunction Im(n, e) {\n return e === U0 ? ud(sA(n)) : Ro(e) ? aA(e) : ud(oA(Qr(n)));\n}\nfunction lA(n) {\n var e = Ua(gu(n)), t = [\"absolute\", \"fixed\"].indexOf(cr(n).position) >= 0, i = t && ii(n) ? ml(n) : n;\n return Ro(i) ? e.filter(function(r) {\n return Ro(r) && k0(r, i) && Fi(r) !== \"body\";\n }) : [];\n}\nfunction cA(n, e, t) {\n var i = e === \"clippingParents\" ? lA(n) : [].concat(e), r = [].concat(i, [t]), s = r[0], o = r.reduce(function(a, c) {\n var l = Im(n, c);\n return a.top = Ss(l.top, a.top), a.right = Yc(l.right, a.right), a.bottom = Yc(l.bottom, a.bottom), a.left = Ss(l.left, a.left), a;\n }, Im(n, s));\n return o.width = o.right - o.left, o.height = o.bottom - o.top, o.x = o.left, o.y = o.top, o;\n}\nfunction X0(n) {\n var e = n.reference, t = n.element, i = n.placement, r = i ? Di(i) : null, s = i ? Oo(i) : null, o = e.x + e.width / 2 - t.width / 2, a = e.y + e.height / 2 - t.height / 2, c;\n switch (r) {\n case zn:\n c = { x: o, y: e.y - t.height };\n break;\n case ri:\n c = { x: o, y: e.y + e.height };\n break;\n case si:\n c = { x: e.x + e.width, y: a };\n break;\n case Un:\n c = { x: e.x - t.width, y: a };\n break;\n default:\n c = { x: e.x, y: e.y };\n }\n var l = r ? _f(r) : null;\n if (l != null) {\n var d = l === \"y\" ? \"height\" : \"width\";\n switch (s) {\n case Lo:\n c[l] = c[l] - (e[d] / 2 - t[d] / 2);\n break;\n case Ya:\n c[l] = c[l] + (e[d] / 2 - t[d] / 2);\n break;\n }\n }\n return c;\n}\nfunction Ja(n, e) {\n e === void 0 && (e = {});\n var t = e, i = t.placement, r = i === void 0 ? n.placement : i, s = t.boundary, o = s === void 0 ? IE : s, a = t.rootBoundary, c = a === void 0 ? U0 : a, l = t.elementContext, d = l === void 0 ? ya : l, h = t.altBoundary, f = h === void 0 ? !1 : h, g = t.padding, p = g === void 0 ? 0 : g, u = H0(typeof p != \"number\" ? p : W0(p, pl)), y = d === ya ? OE : ya, v = n.rects.popper, m = n.elements[f ? y : d], w = cA(Ro(m) ? m : m.contextElement || Qr(n.elements.popper), o, c), _ = Io(n.elements.reference), S = X0({ reference: _, element: v, strategy: \"absolute\", placement: r }), M = ud(Object.assign({}, v, S)), x = d === ya ? M : _, A = { top: w.top - x.top + u.top, bottom: x.bottom - w.bottom + u.bottom, left: w.left - x.left + u.left, right: x.right - w.right + u.right }, P = n.modifiersData.offset;\n if (d === ya && P) {\n var T = P[r];\n Object.keys(A).forEach(function(R) {\n var E = [si, ri].indexOf(R) >= 0 ? 1 : -1, C = [zn, ri].indexOf(R) >= 0 ? \"y\" : \"x\";\n A[R] += T[C] * E;\n });\n }\n return A;\n}\nfunction uA(n, e) {\n e === void 0 && (e = {});\n var t = e, i = t.placement, r = t.boundary, s = t.rootBoundary, o = t.padding, a = t.flipVariations, c = t.allowedAutoPlacements, l = c === void 0 ? ia : c, d = Oo(i), h = d ? a ? Cm : Cm.filter(function(p) {\n return Oo(p) === d;\n }) : pl, f = h.filter(function(p) {\n return l.indexOf(p) >= 0;\n });\n f.length === 0 && (f = h);\n var g = f.reduce(function(p, u) {\n return p[u] = Ja(n, { placement: u, boundary: r, rootBoundary: s, padding: o })[Di(u)], p;\n }, {});\n return Object.keys(g).sort(function(p, u) {\n return g[p] - g[u];\n });\n}\nfunction hA(n) {\n if (Di(n) === xf) return [];\n var e = zc(n);\n return [Pm(n), e, Pm(e)];\n}\nfunction dA(n) {\n var e = n.state, t = n.options, i = n.name;\n if (!e.modifiersData[i]._skip) {\n for (var r = t.mainAxis, s = r === void 0 ? !0 : r, o = t.altAxis, a = o === void 0 ? !0 : o, c = t.fallbackPlacements, l = t.padding, d = t.boundary, h = t.rootBoundary, f = t.altBoundary, g = t.flipVariations, p = g === void 0 ? !0 : g, u = t.allowedAutoPlacements, y = e.options.placement, v = Di(y), m = v === y, w = c || (m || !p ? [zc(y)] : hA(y)), _ = [y].concat(w).reduce(function(re, j) {\n return re.concat(Di(j) === xf ? uA(e, { placement: j, boundary: d, rootBoundary: h, padding: l, flipVariations: p, allowedAutoPlacements: u }) : j);\n }, []), S = e.rects.reference, M = e.rects.popper, x = /* @__PURE__ */ new Map(), A = !0, P = _[0], T = 0; T < _.length; T++) {\n var R = _[T], E = Di(R), C = Oo(R) === Lo, L = [zn, ri].indexOf(E) >= 0, O = L ? \"width\" : \"height\", b = Ja(e, { placement: R, boundary: d, rootBoundary: h, altBoundary: f, padding: l }), I = L ? C ? si : Un : C ? ri : zn;\n S[O] > M[O] && (I = zc(I));\n var N = zc(I), D = [];\n if (s && D.push(b[E] <= 0), a && D.push(b[I] <= 0, b[N] <= 0), D.every(function(re) {\n return re;\n })) {\n P = R, A = !1;\n break;\n }\n x.set(R, D);\n }\n if (A) for (var z = p ? 3 : 1, V = function(re) {\n var j = _.find(function(k) {\n var W = x.get(k);\n if (W) return W.slice(0, re).every(function(K) {\n return K;\n });\n });\n if (j) return P = j, \"break\";\n }, H = z; H > 0; H--) {\n var X = V(H);\n if (X === \"break\") break;\n }\n e.placement !== P && (e.modifiersData[i]._skip = !0, e.placement = P, e.reset = !0);\n }\n}\nvar fA = { name: \"flip\", enabled: !0, phase: \"main\", fn: dA, requiresIfExists: [\"offset\"], data: { _skip: !1 } };\nfunction Om(n, e, t) {\n return t === void 0 && (t = { x: 0, y: 0 }), { top: n.top - e.height - t.y, right: n.right - e.width + t.x, bottom: n.bottom - e.height + t.y, left: n.left - e.width - t.x };\n}\nfunction Dm(n) {\n return [zn, si, ri, Un].some(function(e) {\n return n[e] >= 0;\n });\n}\nfunction pA(n) {\n var e = n.state, t = n.name, i = e.rects.reference, r = e.rects.popper, s = e.modifiersData.preventOverflow, o = Ja(e, { elementContext: \"reference\" }), a = Ja(e, { altBoundary: !0 }), c = Om(o, i), l = Om(a, r, s), d = Dm(c), h = Dm(l);\n e.modifiersData[t] = { referenceClippingOffsets: c, popperEscapeOffsets: l, isReferenceHidden: d, hasPopperEscaped: h }, e.attributes.popper = Object.assign({}, e.attributes.popper, { \"data-popper-reference-hidden\": d, \"data-popper-escaped\": h });\n}\nvar mA = { name: \"hide\", enabled: !0, phase: \"main\", requiresIfExists: [\"preventOverflow\"], fn: pA };\nfunction gA(n, e, t) {\n var i = Di(n), r = [Un, zn].indexOf(i) >= 0 ? -1 : 1, s = typeof t == \"function\" ? t(Object.assign({}, e, { placement: n })) : t, o = s[0], a = s[1];\n return o = o || 0, a = (a || 0) * r, [Un, si].indexOf(i) >= 0 ? { x: a, y: o } : { x: o, y: a };\n}\nfunction vA(n) {\n var e = n.state, t = n.options, i = n.name, r = t.offset, s = r === void 0 ? [0, 0] : r, o = ia.reduce(function(d, h) {\n return d[h] = gA(h, e.rects, s), d;\n }, {}), a = o[e.placement], c = a.x, l = a.y;\n e.modifiersData.popperOffsets != null && (e.modifiersData.popperOffsets.x += c, e.modifiersData.popperOffsets.y += l), e.modifiersData[i] = o;\n}\nvar yA = { name: \"offset\", enabled: !0, phase: \"main\", requires: [\"popperOffsets\"], fn: vA };\nfunction bA(n) {\n var e = n.state, t = n.name;\n e.modifiersData[t] = X0({ reference: e.rects.reference, element: e.rects.popper, strategy: \"absolute\", placement: e.placement });\n}\nvar Y0 = { name: \"popperOffsets\", enabled: !0, phase: \"read\", fn: bA, data: {} };\nfunction xA(n) {\n return n === \"x\" ? \"y\" : \"x\";\n}\nfunction wA(n) {\n var e = n.state, t = n.options, i = n.name, r = t.mainAxis, s = r === void 0 ? !0 : r, o = t.altAxis, a = o === void 0 ? !1 : o, c = t.boundary, l = t.rootBoundary, d = t.altBoundary, h = t.padding, f = t.tether, g = f === void 0 ? !0 : f, p = t.tetherOffset, u = p === void 0 ? 0 : p, y = Ja(e, { boundary: c, rootBoundary: l, padding: h, altBoundary: d }), v = Di(e.placement), m = Oo(e.placement), w = !m, _ = _f(v), S = xA(_), M = e.modifiersData.popperOffsets, x = e.rects.reference, A = e.rects.popper, P = typeof u == \"function\" ? u(Object.assign({}, e.rects, { placement: e.placement })) : u, T = typeof P == \"number\" ? { mainAxis: P, altAxis: P } : Object.assign({ mainAxis: 0, altAxis: 0 }, P), R = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, E = { x: 0, y: 0 };\n if (M) {\n if (s) {\n var C, L = _ === \"y\" ? zn : Un, O = _ === \"y\" ? ri : si, b = _ === \"y\" ? \"height\" : \"width\", I = M[_], N = I + y[L], D = I - y[O], z = g ? -A[b] / 2 : 0, V = m === Lo ? x[b] : A[b], H = m === Lo ? -A[b] : -x[b], X = e.elements.arrow, re = g && X ? Mf(X) : { width: 0, height: 0 }, j = e.modifiersData[\"arrow#persistent\"] ? e.modifiersData[\"arrow#persistent\"].padding : G0(), k = j[L], W = j[O], K = za(0, x[b], re[b]), ee = w ? x[b] / 2 - z - K - k - T.mainAxis : V - K - k - T.mainAxis, q = w ? -x[b] / 2 + z + K + W + T.mainAxis : H + K + W + T.mainAxis, ie = e.elements.arrow && ml(e.elements.arrow), Y = ie ? _ === \"y\" ? ie.clientTop || 0 : ie.clientLeft || 0 : 0, te = (C = R == null ? void 0 : R[_]) != null ? C : 0, B = I + ee - te - Y, $ = I + q - te, Q = za(g ? Yc(N, B) : N, I, g ? Ss(D, $) : D);\n M[_] = Q, E[_] = Q - I;\n }\n if (a) {\n var F, U = _ === \"x\" ? zn : Un, oe = _ === \"x\" ? ri : si, le = M[S], ue = S === \"y\" ? \"height\" : \"width\", ve = le + y[U], _e = le - y[oe], we = [zn, Un].indexOf(v) !== -1, pe = (F = R == null ? void 0 : R[S]) != null ? F : 0, Me = we ? ve : le - x[ue] - A[ue] - pe + T.altAxis, se = we ? le + x[ue] + A[ue] - pe - T.altAxis : _e, Te = g && we ? XE(Me, le, se) : za(g ? Me : ve, le, g ? se : _e);\n M[S] = Te, E[S] = Te - le;\n }\n e.modifiersData[i] = E;\n }\n}\nvar MA = { name: \"preventOverflow\", enabled: !0, phase: \"main\", fn: wA, requiresIfExists: [\"offset\"] };\nfunction _A(n) {\n return { scrollLeft: n.scrollLeft, scrollTop: n.scrollTop };\n}\nfunction SA(n) {\n return n === Mi(n) || !ii(n) ? Sf(n) : _A(n);\n}\nfunction TA(n) {\n var e = n.getBoundingClientRect(), t = Po(e.width) / n.offsetWidth || 1, i = Po(e.height) / n.offsetHeight || 1;\n return t !== 1 || i !== 1;\n}\nfunction EA(n, e, t) {\n t === void 0 && (t = !1);\n var i = ii(e), r = ii(e) && TA(e), s = Qr(e), o = Io(n, r), a = { scrollLeft: 0, scrollTop: 0 }, c = { x: 0, y: 0 };\n return (i || !i && !t) && ((Fi(e) !== \"body\" || Ef(s)) && (a = SA(e)), ii(e) ? (c = Io(e, !0), c.x += e.clientLeft, c.y += e.clientTop) : s && (c.x = Tf(s))), { x: o.left + a.scrollLeft - c.x, y: o.top + a.scrollTop - c.y, width: o.width, height: o.height };\n}\nfunction AA(n) {\n var e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Set(), i = [];\n n.forEach(function(s) {\n e.set(s.name, s);\n });\n function r(s) {\n t.add(s.name);\n var o = [].concat(s.requires || [], s.requiresIfExists || []);\n o.forEach(function(a) {\n if (!t.has(a)) {\n var c = e.get(a);\n c && r(c);\n }\n }), i.push(s);\n }\n return n.forEach(function(s) {\n t.has(s.name) || r(s);\n }), i;\n}\nfunction CA(n) {\n var e = AA(n);\n return HE.reduce(function(t, i) {\n return t.concat(e.filter(function(r) {\n return r.phase === i;\n }));\n }, []);\n}\nfunction LA(n) {\n var e;\n return function() {\n return e || (e = new Promise(function(t) {\n Promise.resolve().then(function() {\n e = void 0, t(n());\n });\n })), e;\n };\n}\nfunction RA(n) {\n var e = n.reduce(function(t, i) {\n var r = t[i.name];\n return t[i.name] = r ? Object.assign({}, r, i, { options: Object.assign({}, r.options, i.options), data: Object.assign({}, r.data, i.data) }) : i, t;\n }, {});\n return Object.keys(e).map(function(t) {\n return e[t];\n });\n}\nvar Nm = { placement: \"bottom\", modifiers: [], strategy: \"absolute\" };\nfunction Bm() {\n for (var n = arguments.length, e = new Array(n), t = 0; t < n; t++) e[t] = arguments[t];\n return !e.some(function(i) {\n return !(i && typeof i.getBoundingClientRect == \"function\");\n });\n}\nfunction Af(n) {\n n === void 0 && (n = {});\n var e = n, t = e.defaultModifiers, i = t === void 0 ? [] : t, r = e.defaultOptions, s = r === void 0 ? Nm : r;\n return function(o, a, c) {\n c === void 0 && (c = s);\n var l = { placement: \"bottom\", orderedModifiers: [], options: Object.assign({}, Nm, s), modifiersData: {}, elements: { reference: o, popper: a }, attributes: {}, styles: {} }, d = [], h = !1, f = { state: l, setOptions: function(u) {\n var y = typeof u == \"function\" ? u(l.options) : u;\n p(), l.options = Object.assign({}, s, l.options, y), l.scrollParents = { reference: Ro(o) ? Ua(o) : o.contextElement ? Ua(o.contextElement) : [], popper: Ua(a) };\n var v = CA(RA([].concat(i, l.options.modifiers)));\n return l.orderedModifiers = v.filter(function(m) {\n return m.enabled;\n }), g(), f.update();\n }, forceUpdate: function() {\n if (!h) {\n var u = l.elements, y = u.reference, v = u.popper;\n if (Bm(y, v)) {\n l.rects = { reference: EA(y, ml(v), l.options.strategy === \"fixed\"), popper: Mf(v) }, l.reset = !1, l.placement = l.options.placement, l.orderedModifiers.forEach(function(A) {\n return l.modifiersData[A.name] = Object.assign({}, A.data);\n });\n for (var m = 0; m < l.orderedModifiers.length; m++) {\n if (l.reset === !0) {\n l.reset = !1, m = -1;\n continue;\n }\n var w = l.orderedModifiers[m], _ = w.fn, S = w.options, M = S === void 0 ? {} : S, x = w.name;\n typeof _ == \"function\" && (l = _({ state: l, options: M, name: x, instance: f }) || l);\n }\n }\n }\n }, update: LA(function() {\n return new Promise(function(u) {\n f.forceUpdate(), u(l);\n });\n }), destroy: function() {\n p(), h = !0;\n } };\n if (!Bm(o, a)) return f;\n f.setOptions(c).then(function(u) {\n !h && c.onFirstUpdate && c.onFirstUpdate(u);\n });\n function g() {\n l.orderedModifiers.forEach(function(u) {\n var y = u.name, v = u.options, m = v === void 0 ? {} : v, w = u.effect;\n if (typeof w == \"function\") {\n var _ = w({ state: l, name: y, instance: f, options: m }), S = function() {\n };\n d.push(_ || S);\n }\n });\n }\n function p() {\n d.forEach(function(u) {\n return u();\n }), d = [];\n }\n return f;\n };\n}\nAf();\nvar PA = [$0, Y0, j0, V0];\nAf({ defaultModifiers: PA });\nvar IA = [$0, Y0, j0, V0, yA, fA, MA, qE, mA], OA = Af({ defaultModifiers: IA });\nconst DA = (n, e, t = {}) => {\n const i = {\n name: \"updateState\",\n enabled: !0,\n phase: \"write\",\n fn: ({ state: c }) => {\n const l = NA(c);\n Object.assign(o.value, l);\n },\n requires: [\"computeStyles\"]\n }, r = ce(() => {\n const { onFirstUpdate: c, placement: l, strategy: d, modifiers: h } = G(t);\n return {\n onFirstUpdate: c,\n placement: l || \"bottom\",\n strategy: d || \"absolute\",\n modifiers: [\n ...h || [],\n i,\n { name: \"applyStyles\", enabled: !1 }\n ]\n };\n }), s = Cn(), o = Ae({\n styles: {\n popper: {\n position: G(r).strategy,\n left: \"0\",\n top: \"0\"\n },\n arrow: {\n position: \"absolute\"\n }\n },\n attributes: {}\n }), a = () => {\n s.value && (s.value.destroy(), s.value = void 0);\n };\n return qe(r, (c) => {\n const l = G(s);\n l && l.setOptions(c);\n }, {\n deep: !0\n }), qe([n, e], ([c, l]) => {\n a(), !(!c || !l) && (s.value = OA(c, l, G(r)));\n }), oi(() => {\n a();\n }), {\n state: ce(() => {\n var c;\n return { ...((c = G(s)) == null ? void 0 : c.state) || {} };\n }),\n styles: ce(() => G(o).styles),\n attributes: ce(() => G(o).attributes),\n update: () => {\n var c;\n return (c = G(s)) == null ? void 0 : c.update();\n },\n forceUpdate: () => {\n var c;\n return (c = G(s)) == null ? void 0 : c.forceUpdate();\n },\n instanceRef: ce(() => G(s))\n };\n};\nfunction NA(n) {\n const e = Object.keys(n.elements), t = jc(e.map((r) => [r, n.styles[r] || {}])), i = jc(e.map((r) => [r, n.attributes[r]]));\n return {\n styles: t,\n attributes: i\n };\n}\nfunction Fm() {\n let n;\n const e = (i, r) => {\n t(), n = window.setTimeout(i, r);\n }, t = () => window.clearTimeout(n);\n return au(() => t()), {\n registerTimeout: e,\n cancelTimeout: t\n };\n}\nconst hd = {\n prefix: Math.floor(Math.random() * 1e4),\n current: 0\n}, BA = Symbol(\"elIdInjection\"), Cf = () => sn() ? ht(BA, hd) : hd, vu = (n) => {\n const e = Cf();\n !Qt && e === hd && Jt(\"IdInjection\", `Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed\nusage: app.provide(ID_INJECTION_KEY, {\n prefix: number,\n current: number,\n})`);\n const t = bf();\n return ce(() => G(n) || `${t.value}-id-${e.prefix}-${e.current++}`);\n};\nlet xo = [];\nconst zm = (n) => {\n const e = n;\n e.key === Oi.esc && xo.forEach((t) => t(e));\n}, FA = (n) => {\n tn(() => {\n xo.length === 0 && document.addEventListener(\"keydown\", zm), Qt && xo.push(n);\n }), oi(() => {\n xo = xo.filter((e) => e !== n), xo.length === 0 && Qt && document.removeEventListener(\"keydown\", zm);\n });\n};\nlet Um;\nconst J0 = () => {\n const n = bf(), e = Cf(), t = ce(() => `${n.value}-popper-container-${e.prefix}`), i = ce(() => `#${t.value}`);\n return {\n id: t,\n selector: i\n };\n}, zA = (n) => {\n const e = document.createElement(\"div\");\n return e.id = n, document.body.appendChild(e), e;\n}, UA = () => {\n const { id: n, selector: e } = J0();\n return Qw(() => {\n Qt && (process.env.NODE_ENV === \"test\" || !Um || !document.body.querySelector(e.value)) && (Um = zA(n.value));\n }), {\n id: n,\n selector: e\n };\n}, VA = dt({\n showAfter: {\n type: Number,\n default: 0\n },\n hideAfter: {\n type: Number,\n default: 200\n },\n autoClose: {\n type: Number,\n default: 0\n }\n}), kA = ({\n showAfter: n,\n hideAfter: e,\n autoClose: t,\n open: i,\n close: r\n}) => {\n const { registerTimeout: s } = Fm(), {\n registerTimeout: o,\n cancelTimeout: a\n } = Fm();\n return {\n onOpen: (d) => {\n s(() => {\n i(d);\n const h = G(t);\n Mt(h) && h > 0 && o(() => {\n r(d);\n }, h);\n }, G(n));\n },\n onClose: (d) => {\n a(), s(() => {\n r(d);\n }, G(e));\n }\n };\n}, K0 = Symbol(\"elForwardRef\"), GA = (n) => {\n dn(K0, {\n setForwardRef: (t) => {\n n.value = t;\n }\n });\n}, HA = (n) => ({\n mounted(e) {\n n(e);\n },\n updated(e) {\n n(e);\n },\n unmounted() {\n n(null);\n }\n}), Vm = {\n current: 0\n}, km = Ae(0), q0 = 2e3, Gm = Symbol(\"elZIndexContextKey\"), Q0 = Symbol(\"zIndexContextKey\"), ey = (n) => {\n const e = sn() ? ht(Gm, Vm) : Vm, t = n || (sn() ? ht(Q0, void 0) : void 0), i = ce(() => {\n const o = G(t);\n return Mt(o) ? o : q0;\n }), r = ce(() => i.value + km.value), s = () => (e.current++, km.value = e.current, r.value);\n return !Qt && !ht(Gm) && Jt(\"ZIndexInjection\", `Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed\nusage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`), {\n initialZIndex: i,\n currentZIndex: r,\n nextZIndex: s\n };\n};\nfunction WA(n) {\n let e;\n function t() {\n if (n.value == null)\n return;\n const { selectionStart: r, selectionEnd: s, value: o } = n.value;\n if (r == null || s == null)\n return;\n const a = o.slice(0, Math.max(0, r)), c = o.slice(Math.max(0, s));\n e = {\n selectionStart: r,\n selectionEnd: s,\n value: o,\n beforeTxt: a,\n afterTxt: c\n };\n }\n function i() {\n if (n.value == null || e == null)\n return;\n const { value: r } = n.value, { beforeTxt: s, afterTxt: o, selectionStart: a } = e;\n if (s == null || o == null || a == null)\n return;\n let c = r.length;\n if (r.endsWith(o))\n c = r.length - o.length;\n else if (r.startsWith(s))\n c = s.length;\n else {\n const l = s[a - 1], d = r.indexOf(l, a - 1);\n d !== -1 && (c = d + 1);\n }\n n.value.setSelectionRange(c, c);\n }\n return [t, i];\n}\nconst jA = (n, e, t) => Bc(n.subTree).filter((s) => {\n var o;\n return ed(s) && ((o = s.type) == null ? void 0 : o.name) === e && !!s.component;\n}).map((s) => s.component.uid).map((s) => t[s]).filter((s) => !!s), $A = (n, e) => {\n const t = {}, i = Cn([]);\n return {\n children: i,\n addChild: (o) => {\n t[o.uid] = o, i.value = jA(n, e, t);\n },\n removeChild: (o) => {\n delete t[o], i.value = i.value.filter((a) => a.uid !== o);\n }\n };\n}, Do = pu({\n type: String,\n values: N0,\n required: !1\n}), ty = Symbol(\"size\"), ZA = () => {\n const n = ht(ty, {});\n return ce(() => G(n.size) || \"\");\n};\nfunction ny(n, {\n beforeFocus: e,\n afterFocus: t,\n beforeBlur: i,\n afterBlur: r\n} = {}) {\n const s = sn(), { emit: o } = s, a = Cn(), c = Ae(!1), l = (f) => {\n Tn(e) && e(f) || c.value || (c.value = !0, o(\"focus\", f), t == null || t());\n }, d = (f) => {\n var g;\n Tn(i) && i(f) || f.relatedTarget && ((g = a.value) != null && g.contains(f.relatedTarget)) || (c.value = !1, o(\"blur\", f), r == null || r());\n }, h = () => {\n var f, g;\n (f = a.value) != null && f.contains(document.activeElement) && a.value !== document.activeElement || (g = n.value) == null || g.focus();\n };\n return qe(a, (f) => {\n f && f.setAttribute(\"tabindex\", \"-1\");\n }), un(a, \"focus\", l, !0), un(a, \"blur\", d, !0), un(a, \"click\", h, !0), process.env.NODE_ENV === \"test\" && tn(() => {\n const f = Ms(n.value) ? n.value : document.querySelector(\"input,textarea\");\n f && (un(f, \"focus\", l, !0), un(f, \"blur\", d, !0));\n }), {\n isFocused: c,\n wrapperRef: a,\n handleFocus: l,\n handleBlur: d\n };\n}\nfunction iy({\n afterComposition: n,\n emit: e\n}) {\n const t = Ae(!1), i = (a) => {\n e == null || e(\"compositionstart\", a), t.value = !0;\n }, r = (a) => {\n var c;\n e == null || e(\"compositionupdate\", a);\n const l = (c = a.target) == null ? void 0 : c.value, d = l[l.length - 1] || \"\";\n t.value = !bE(d);\n }, s = (a) => {\n e == null || e(\"compositionend\", a), t.value && (t.value = !1, wt(() => n(a)));\n };\n return {\n isComposing: t,\n handleComposition: (a) => {\n a.type === \"compositionend\" ? s(a) : r(a);\n },\n handleCompositionStart: i,\n handleCompositionUpdate: r,\n handleCompositionEnd: s\n };\n}\nconst ry = Symbol(\"emptyValuesContextKey\"), XA = \"use-empty-values\", YA = [\"\", void 0, null], JA = void 0, KA = dt({\n emptyValues: Array,\n valueOnClear: {\n type: [String, Number, Boolean, Function],\n default: void 0,\n validator: (n) => Tn(n) ? !n() : !n\n }\n}), qA = (n, e) => {\n const t = sn() ? ht(ry, Ae({})) : Ae({}), i = ce(() => n.emptyValues || t.value.emptyValues || YA), r = ce(() => Tn(n.valueOnClear) ? n.valueOnClear() : n.valueOnClear !== void 0 ? n.valueOnClear : Tn(t.value.valueOnClear) ? t.value.valueOnClear() : t.value.valueOnClear !== void 0 ? t.value.valueOnClear : JA), s = (o) => i.value.includes(o);\n return i.value.includes(r.value) || Jt(XA, \"value-on-clear should be a value of empty-values\"), {\n emptyValues: i,\n valueOnClear: r,\n isEmptyValue: s\n };\n}, QA = dt({\n ariaLabel: String,\n ariaOrientation: {\n type: String,\n values: [\"horizontal\", \"vertical\", \"undefined\"]\n },\n ariaControls: String\n}), Gs = (n) => ZT(QA, n), sy = Symbol(), Jc = Ae();\nfunction Lf(n, e = void 0) {\n const t = sn() ? ht(sy, Jc) : Jc;\n return n ? ce(() => {\n var i, r;\n return (r = (i = t.value) == null ? void 0 : i[n]) != null ? r : e;\n }) : t;\n}\nfunction eC(n, e) {\n const t = Lf(), i = it(n, ce(() => {\n var a;\n return ((a = t.value) == null ? void 0 : a.namespace) || Fc;\n })), r = mu(ce(() => {\n var a;\n return (a = t.value) == null ? void 0 : a.locale;\n })), s = ey(ce(() => {\n var a;\n return ((a = t.value) == null ? void 0 : a.zIndex) || q0;\n })), o = ce(() => {\n var a;\n return G(e) || ((a = t.value) == null ? void 0 : a.size) || \"\";\n });\n return tC(ce(() => G(t) || {})), {\n ns: i,\n locale: r,\n zIndex: s,\n size: o\n };\n}\nconst tC = (n, e, t = !1) => {\n var i;\n const r = !!sn(), s = r ? Lf() : void 0, o = (i = void 0) != null ? i : r ? dn : void 0;\n if (!o) {\n Jt(\"provideGlobalConfig\", \"provideGlobalConfig() can only be used inside setup().\");\n return;\n }\n const a = ce(() => {\n const c = G(n);\n return s != null && s.value ? nC(s.value, c) : c;\n });\n return o(sy, a), o(B0, ce(() => a.value.locale)), o(F0, ce(() => a.value.namespace)), o(Q0, ce(() => a.value.zIndex)), o(ty, {\n size: ce(() => a.value.size || \"\")\n }), o(ry, ce(() => ({\n emptyValues: a.value.emptyValues,\n valueOnClear: a.value.valueOnClear\n }))), (t || !Jc.value) && (Jc.value = a.value), a;\n}, nC = (n, e) => {\n const t = [.../* @__PURE__ */ new Set([...Em(n), ...Em(e)])], i = {};\n for (const r of t)\n i[r] = e[r] !== void 0 ? e[r] : n[r];\n return i;\n};\nvar ot = (n, e) => {\n const t = n.__vccOpts || n;\n for (const [i, r] of e)\n t[i] = r;\n return t;\n};\nconst iC = dt({\n size: {\n type: Je([Number, String])\n },\n color: {\n type: String\n }\n}), rC = De({\n name: \"ElIcon\",\n inheritAttrs: !1\n}), sC = /* @__PURE__ */ De({\n ...rC,\n props: iC,\n setup(n) {\n const e = n, t = it(\"icon\"), i = ce(() => {\n const { size: r, color: s } = e;\n return !r && !s ? {} : {\n fontSize: vi(r) ? void 0 : Zc(r),\n \"--color\": s\n };\n });\n return (r, s) => (ge(), Re(\"i\", Ii({\n class: G(t).b(),\n style: G(i)\n }, r.$attrs), [\n Xe(r.$slots, \"default\")\n ], 16));\n }\n});\nvar oC = /* @__PURE__ */ ot(sC, [[\"__file\", \"icon.vue\"]]);\nconst Dt = fn(oC), Rf = Symbol(\"formContextKey\"), Kc = Symbol(\"formItemContextKey\"), ra = (n, e = {}) => {\n const t = Ae(void 0), i = e.prop ? t : z0(\"size\"), r = e.global ? t : ZA(), s = e.form ? { size: void 0 } : ht(Rf, void 0), o = e.formItem ? { size: void 0 } : ht(Kc, void 0);\n return ce(() => i.value || G(n) || (o == null ? void 0 : o.size) || (s == null ? void 0 : s.size) || r.value || \"\");\n}, yu = (n) => {\n const e = z0(\"disabled\"), t = ht(Rf, void 0);\n return ce(() => e.value || G(n) || (t == null ? void 0 : t.disabled) || !1);\n}, gl = () => {\n const n = ht(Rf, void 0), e = ht(Kc, void 0);\n return {\n form: n,\n formItem: e\n };\n}, Pf = (n, {\n formItemContext: e,\n disableIdGeneration: t,\n disableIdManagement: i\n}) => {\n t || (t = Ae(!1)), i || (i = Ae(!1));\n const r = Ae();\n let s;\n const o = ce(() => {\n var a;\n return !!(!(n.label || n.ariaLabel) && e && e.inputIds && ((a = e.inputIds) == null ? void 0 : a.length) <= 1);\n });\n return tn(() => {\n s = qe([Dn(n, \"id\"), t], ([a, c]) => {\n const l = a ?? (c ? void 0 : vu().value);\n l !== r.value && (e != null && e.removeInputId && (r.value && e.removeInputId(r.value), !(i != null && i.value) && !c && l && e.addInputId(l)), r.value = l);\n }, { immediate: !0 });\n }), c0(() => {\n s && s(), e != null && e.removeInputId && r.value && e.removeInputId(r.value);\n }), {\n isLabeledByFormItem: o,\n inputId: r\n };\n};\nlet ci;\nconst aC = `\n height:0 !important;\n visibility:hidden !important;\n ${X1() ? \"\" : \"overflow:hidden !important;\"}\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n`, lC = [\n \"letter-spacing\",\n \"line-height\",\n \"padding-top\",\n \"padding-bottom\",\n \"font-family\",\n \"font-weight\",\n \"font-size\",\n \"text-rendering\",\n \"text-transform\",\n \"width\",\n \"text-indent\",\n \"padding-left\",\n \"padding-right\",\n \"border-width\",\n \"box-sizing\"\n];\nfunction cC(n) {\n const e = window.getComputedStyle(n), t = e.getPropertyValue(\"box-sizing\"), i = Number.parseFloat(e.getPropertyValue(\"padding-bottom\")) + Number.parseFloat(e.getPropertyValue(\"padding-top\")), r = Number.parseFloat(e.getPropertyValue(\"border-bottom-width\")) + Number.parseFloat(e.getPropertyValue(\"border-top-width\"));\n return { contextStyle: lC.map((o) => `${o}:${e.getPropertyValue(o)}`).join(\";\"), paddingSize: i, borderSize: r, boxSizing: t };\n}\nfunction Hm(n, e = 1, t) {\n var i;\n ci || (ci = document.createElement(\"textarea\"), document.body.appendChild(ci));\n const { paddingSize: r, borderSize: s, boxSizing: o, contextStyle: a } = cC(n);\n ci.setAttribute(\"style\", `${a};${aC}`), ci.value = n.value || n.placeholder || \"\";\n let c = ci.scrollHeight;\n const l = {};\n o === \"border-box\" ? c = c + s : o === \"content-box\" && (c = c - r), ci.value = \"\";\n const d = ci.scrollHeight - r;\n if (Mt(e)) {\n let h = d * e;\n o === \"border-box\" && (h = h + r + s), c = Math.max(h, c), l.minHeight = `${h}px`;\n }\n if (Mt(t)) {\n let h = d * t;\n o === \"border-box\" && (h = h + r + s), c = Math.min(h, c);\n }\n return l.height = `${c}px`, (i = ci.parentNode) == null || i.removeChild(ci), ci = void 0, l;\n}\nconst uC = dt({\n id: {\n type: String,\n default: void 0\n },\n size: Do,\n disabled: Boolean,\n modelValue: {\n type: Je([\n String,\n Number,\n Object\n ]),\n default: \"\"\n },\n maxlength: {\n type: [String, Number]\n },\n minlength: {\n type: [String, Number]\n },\n type: {\n type: String,\n default: \"text\"\n },\n resize: {\n type: String,\n values: [\"none\", \"both\", \"horizontal\", \"vertical\"]\n },\n autosize: {\n type: Je([Boolean, Object]),\n default: !1\n },\n autocomplete: {\n type: String,\n default: \"off\"\n },\n formatter: {\n type: Function\n },\n parser: {\n type: Function\n },\n placeholder: {\n type: String\n },\n form: {\n type: String\n },\n readonly: Boolean,\n clearable: Boolean,\n showPassword: Boolean,\n showWordLimit: Boolean,\n suffixIcon: {\n type: $r\n },\n prefixIcon: {\n type: $r\n },\n containerRole: {\n type: String,\n default: void 0\n },\n tabindex: {\n type: [String, Number],\n default: 0\n },\n validateEvent: {\n type: Boolean,\n default: !0\n },\n inputStyle: {\n type: Je([Object, Array, String]),\n default: () => er({})\n },\n autofocus: Boolean,\n rows: {\n type: Number,\n default: 2\n },\n ...Gs([\"ariaLabel\"])\n}), hC = {\n [It]: (n) => Ln(n),\n input: (n) => Ln(n),\n change: (n) => Ln(n),\n focus: (n) => n instanceof FocusEvent,\n blur: (n) => n instanceof FocusEvent,\n clear: () => !0,\n mouseleave: (n) => n instanceof MouseEvent,\n mouseenter: (n) => n instanceof MouseEvent,\n keydown: (n) => n instanceof Event,\n compositionstart: (n) => n instanceof CompositionEvent,\n compositionupdate: (n) => n instanceof CompositionEvent,\n compositionend: (n) => n instanceof CompositionEvent\n}, dC = De({\n name: \"ElInput\",\n inheritAttrs: !1\n}), fC = /* @__PURE__ */ De({\n ...dC,\n props: uC,\n emits: hC,\n setup(n, { expose: e, emit: t }) {\n const i = n, r = e1(), s = ou(), o = ce(() => {\n const pe = {};\n return i.containerRole === \"combobox\" && (pe[\"aria-haspopup\"] = r[\"aria-haspopup\"], pe[\"aria-owns\"] = r[\"aria-owns\"], pe[\"aria-expanded\"] = r[\"aria-expanded\"]), pe;\n }), a = ce(() => [\n i.type === \"textarea\" ? y.b() : u.b(),\n u.m(g.value),\n u.is(\"disabled\", p.value),\n u.is(\"exceed\", X.value),\n {\n [u.b(\"group\")]: s.prepend || s.append,\n [u.m(\"prefix\")]: s.prefix || i.prefixIcon,\n [u.m(\"suffix\")]: s.suffix || i.suffixIcon || i.clearable || i.showPassword,\n [u.bm(\"suffix\", \"password-clear\")]: D.value && z.value,\n [u.b(\"hidden\")]: i.type === \"hidden\"\n },\n r.class\n ]), c = ce(() => [\n u.e(\"wrapper\"),\n u.is(\"focus\", P.value)\n ]), l = ME({\n excludeKeys: ce(() => Object.keys(o.value))\n }), { form: d, formItem: h } = gl(), { inputId: f } = Pf(i, {\n formItemContext: h\n }), g = ra(), p = yu(), u = it(\"input\"), y = it(\"textarea\"), v = Cn(), m = Cn(), w = Ae(!1), _ = Ae(!1), S = Ae(), M = Cn(i.inputStyle), x = ce(() => v.value || m.value), { wrapperRef: A, isFocused: P, handleFocus: T, handleBlur: R } = ny(x, {\n beforeFocus() {\n return p.value;\n },\n afterBlur() {\n var pe;\n i.validateEvent && ((pe = h == null ? void 0 : h.validate) == null || pe.call(h, \"blur\").catch((Me) => Jt(Me)));\n }\n }), E = ce(() => {\n var pe;\n return (pe = d == null ? void 0 : d.statusIcon) != null ? pe : !1;\n }), C = ce(() => (h == null ? void 0 : h.validateState) || \"\"), L = ce(() => C.value && D0[C.value]), O = ce(() => _.value ? mE : cE), b = ce(() => [\n r.style\n ]), I = ce(() => [\n i.inputStyle,\n M.value,\n { resize: i.resize }\n ]), N = ce(() => rr(i.modelValue) ? \"\" : String(i.modelValue)), D = ce(() => i.clearable && !p.value && !i.readonly && !!N.value && (P.value || w.value)), z = ce(() => i.showPassword && !p.value && !i.readonly && !!N.value && (!!N.value || P.value)), V = ce(() => i.showWordLimit && !!i.maxlength && (i.type === \"text\" || i.type === \"textarea\") && !p.value && !i.readonly && !i.showPassword), H = ce(() => N.value.length), X = ce(() => !!V.value && H.value > Number(i.maxlength)), re = ce(() => !!s.suffix || !!i.suffixIcon || D.value || i.showPassword || V.value || !!C.value && E.value), [j, k] = WA(v);\n ti(m, (pe) => {\n if (ee(), !V.value || i.resize !== \"both\")\n return;\n const Me = pe[0], { width: se } = Me.contentRect;\n S.value = {\n right: `calc(100% - ${se + 15 + 6}px)`\n };\n });\n const W = () => {\n const { type: pe, autosize: Me } = i;\n if (!(!Qt || pe !== \"textarea\" || !m.value))\n if (Me) {\n const se = An(Me) ? Me.minRows : void 0, Te = An(Me) ? Me.maxRows : void 0, ye = Hm(m.value, se, Te);\n M.value = {\n overflowY: \"hidden\",\n ...ye\n }, wt(() => {\n m.value.offsetHeight, M.value = ye;\n });\n } else\n M.value = {\n minHeight: Hm(m.value).minHeight\n };\n }, ee = ((pe) => {\n let Me = !1;\n return () => {\n var se;\n if (Me || !i.autosize)\n return;\n ((se = m.value) == null ? void 0 : se.offsetParent) === null || (pe(), Me = !0);\n };\n })(W), q = () => {\n const pe = x.value, Me = i.formatter ? i.formatter(N.value) : N.value;\n !pe || pe.value === Me || (pe.value = Me);\n }, ie = async (pe) => {\n j();\n let { value: Me } = pe.target;\n if (i.formatter && (Me = i.parser ? i.parser(Me) : Me), !te.value) {\n if (Me === N.value) {\n q();\n return;\n }\n t(It, Me), t(\"input\", Me), await wt(), q(), k();\n }\n }, Y = (pe) => {\n t(\"change\", pe.target.value);\n }, {\n isComposing: te,\n handleCompositionStart: B,\n handleCompositionUpdate: $,\n handleCompositionEnd: Q\n } = iy({ emit: t, afterComposition: ie }), F = () => {\n _.value = !_.value, U();\n }, U = async () => {\n var pe;\n await wt(), (pe = x.value) == null || pe.focus();\n }, oe = () => {\n var pe;\n return (pe = x.value) == null ? void 0 : pe.blur();\n }, le = (pe) => {\n w.value = !1, t(\"mouseleave\", pe);\n }, ue = (pe) => {\n w.value = !0, t(\"mouseenter\", pe);\n }, ve = (pe) => {\n t(\"keydown\", pe);\n }, _e = () => {\n var pe;\n (pe = x.value) == null || pe.select();\n }, we = () => {\n t(It, \"\"), t(\"change\", \"\"), t(\"clear\"), t(\"input\", \"\");\n };\n return qe(() => i.modelValue, () => {\n var pe;\n wt(() => W()), i.validateEvent && ((pe = h == null ? void 0 : h.validate) == null || pe.call(h, \"change\").catch((Me) => Jt(Me)));\n }), qe(N, () => q()), qe(() => i.type, async () => {\n await wt(), q(), W();\n }), tn(() => {\n !i.formatter && i.parser && Jt(\"ElInput\", \"If you set the parser, you also need to set the formatter.\"), q(), wt(W);\n }), e({\n input: v,\n textarea: m,\n ref: x,\n textareaStyle: I,\n autosize: Dn(i, \"autosize\"),\n isComposing: te,\n focus: U,\n blur: oe,\n select: _e,\n clear: we,\n resizeTextarea: W\n }), (pe, Me) => (ge(), Re(\"div\", Ii(G(o), {\n class: [\n G(a),\n {\n [G(u).bm(\"group\", \"append\")]: pe.$slots.append,\n [G(u).bm(\"group\", \"prepend\")]: pe.$slots.prepend\n }\n ],\n style: G(b),\n role: pe.containerRole,\n onMouseenter: ue,\n onMouseleave: le\n }), [\n Ge(\" input \"),\n pe.type !== \"textarea\" ? (ge(), Re(Vt, { key: 0 }, [\n Ge(\" prepend slot \"),\n pe.$slots.prepend ? (ge(), Re(\"div\", {\n key: 0,\n class: Le(G(u).be(\"group\", \"prepend\"))\n }, [\n Xe(pe.$slots, \"prepend\")\n ], 2)) : Ge(\"v-if\", !0),\n Fe(\"div\", {\n ref_key: \"wrapperRef\",\n ref: A,\n class: Le(G(c))\n }, [\n Ge(\" prefix slot \"),\n pe.$slots.prefix || pe.prefixIcon ? (ge(), Re(\"span\", {\n key: 0,\n class: Le(G(u).e(\"prefix\"))\n }, [\n Fe(\"span\", {\n class: Le(G(u).e(\"prefix-inner\"))\n }, [\n Xe(pe.$slots, \"prefix\"),\n pe.prefixIcon ? (ge(), He(G(Dt), {\n key: 0,\n class: Le(G(u).e(\"icon\"))\n }, {\n default: me(() => [\n (ge(), He(Nn(pe.prefixIcon)))\n ]),\n _: 1\n }, 8, [\"class\"])) : Ge(\"v-if\", !0)\n ], 2)\n ], 2)) : Ge(\"v-if\", !0),\n Fe(\"input\", Ii({\n id: G(f),\n ref_key: \"input\",\n ref: v,\n class: G(u).e(\"inner\")\n }, G(l), {\n minlength: pe.minlength,\n maxlength: pe.maxlength,\n type: pe.showPassword ? _.value ? \"text\" : \"password\" : pe.type,\n disabled: G(p),\n readonly: pe.readonly,\n autocomplete: pe.autocomplete,\n tabindex: pe.tabindex,\n \"aria-label\": pe.ariaLabel,\n placeholder: pe.placeholder,\n style: pe.inputStyle,\n form: pe.form,\n autofocus: pe.autofocus,\n onCompositionstart: G(B),\n onCompositionupdate: G($),\n onCompositionend: G(Q),\n onInput: ie,\n onChange: Y,\n onKeydown: ve\n }), null, 16, [\"id\", \"minlength\", \"maxlength\", \"type\", \"disabled\", \"readonly\", \"autocomplete\", \"tabindex\", \"aria-label\", \"placeholder\", \"form\", \"autofocus\", \"onCompositionstart\", \"onCompositionupdate\", \"onCompositionend\"]),\n Ge(\" suffix slot \"),\n G(re) ? (ge(), Re(\"span\", {\n key: 1,\n class: Le(G(u).e(\"suffix\"))\n }, [\n Fe(\"span\", {\n class: Le(G(u).e(\"suffix-inner\"))\n }, [\n !G(D) || !G(z) || !G(V) ? (ge(), Re(Vt, { key: 0 }, [\n Xe(pe.$slots, \"suffix\"),\n pe.suffixIcon ? (ge(), He(G(Dt), {\n key: 0,\n class: Le(G(u).e(\"icon\"))\n }, {\n default: me(() => [\n (ge(), He(Nn(pe.suffixIcon)))\n ]),\n _: 1\n }, 8, [\"class\"])) : Ge(\"v-if\", !0)\n ], 64)) : Ge(\"v-if\", !0),\n G(D) ? (ge(), He(G(Dt), {\n key: 1,\n class: Le([G(u).e(\"icon\"), G(u).e(\"clear\")]),\n onMousedown: cn(G($a), [\"prevent\"]),\n onClick: we\n }, {\n default: me(() => [\n ae(G(yf))\n ]),\n _: 1\n }, 8, [\"class\", \"onMousedown\"])) : Ge(\"v-if\", !0),\n G(z) ? (ge(), He(G(Dt), {\n key: 2,\n class: Le([G(u).e(\"icon\"), G(u).e(\"password\")]),\n onClick: F\n }, {\n default: me(() => [\n (ge(), He(Nn(G(O))))\n ]),\n _: 1\n }, 8, [\"class\"])) : Ge(\"v-if\", !0),\n G(V) ? (ge(), Re(\"span\", {\n key: 3,\n class: Le(G(u).e(\"count\"))\n }, [\n Fe(\"span\", {\n class: Le(G(u).e(\"count-inner\"))\n }, xt(G(H)) + \" / \" + xt(pe.maxlength), 3)\n ], 2)) : Ge(\"v-if\", !0),\n G(C) && G(L) && G(E) ? (ge(), He(G(Dt), {\n key: 4,\n class: Le([\n G(u).e(\"icon\"),\n G(u).e(\"validateIcon\"),\n G(u).is(\"loading\", G(C) === \"validating\")\n ])\n }, {\n default: me(() => [\n (ge(), He(Nn(G(L))))\n ]),\n _: 1\n }, 8, [\"class\"])) : Ge(\"v-if\", !0)\n ], 2)\n ], 2)) : Ge(\"v-if\", !0)\n ], 2),\n Ge(\" append slot \"),\n pe.$slots.append ? (ge(), Re(\"div\", {\n key: 1,\n class: Le(G(u).be(\"group\", \"append\"))\n }, [\n Xe(pe.$slots, \"append\")\n ], 2)) : Ge(\"v-if\", !0)\n ], 64)) : (ge(), Re(Vt, { key: 1 }, [\n Ge(\" textarea \"),\n Fe(\"textarea\", Ii({\n id: G(f),\n ref_key: \"textarea\",\n ref: m,\n class: [G(y).e(\"inner\"), G(u).is(\"focus\", G(P))]\n }, G(l), {\n minlength: pe.minlength,\n maxlength: pe.maxlength,\n tabindex: pe.tabindex,\n disabled: G(p),\n readonly: pe.readonly,\n autocomplete: pe.autocomplete,\n style: G(I),\n \"aria-label\": pe.ariaLabel,\n placeholder: pe.placeholder,\n form: pe.form,\n autofocus: pe.autofocus,\n rows: pe.rows,\n onCompositionstart: G(B),\n onCompositionupdate: G($),\n onCompositionend: G(Q),\n onInput: ie,\n onFocus: G(T),\n onBlur: G(R),\n onChange: Y,\n onKeydown: ve\n }), null, 16, [\"id\", \"minlength\", \"maxlength\", \"tabindex\", \"disabled\", \"readonly\", \"autocomplete\", \"aria-label\", \"placeholder\", \"form\", \"autofocus\", \"rows\", \"onCompositionstart\", \"onCompositionupdate\", \"onCompositionend\", \"onFocus\", \"onBlur\"]),\n G(V) ? (ge(), Re(\"span\", {\n key: 0,\n style: Pt(S.value),\n class: Le(G(u).e(\"count\"))\n }, xt(G(H)) + \" / \" + xt(pe.maxlength), 7)) : Ge(\"v-if\", !0)\n ], 64))\n ], 16, [\"role\"]));\n }\n});\nvar pC = /* @__PURE__ */ ot(fC, [[\"__file\", \"input.vue\"]]);\nconst mC = fn(pC), Ys = 4, gC = {\n vertical: {\n offset: \"offsetHeight\",\n scroll: \"scrollTop\",\n scrollSize: \"scrollHeight\",\n size: \"height\",\n key: \"vertical\",\n axis: \"Y\",\n client: \"clientY\",\n direction: \"top\"\n },\n horizontal: {\n offset: \"offsetWidth\",\n scroll: \"scrollLeft\",\n scrollSize: \"scrollWidth\",\n size: \"width\",\n key: \"horizontal\",\n axis: \"X\",\n client: \"clientX\",\n direction: \"left\"\n }\n}, vC = ({\n move: n,\n size: e,\n bar: t\n}) => ({\n [t.size]: e,\n transform: `translate${t.axis}(${n}%)`\n}), If = Symbol(\"scrollbarContextKey\"), yC = dt({\n vertical: Boolean,\n size: String,\n move: Number,\n ratio: {\n type: Number,\n required: !0\n },\n always: Boolean\n}), bC = \"Thumb\", xC = /* @__PURE__ */ De({\n __name: \"thumb\",\n props: yC,\n setup(n) {\n const e = n, t = ht(If), i = it(\"scrollbar\");\n t || na(bC, \"can not inject scrollbar context\");\n const r = Ae(), s = Ae(), o = Ae({}), a = Ae(!1);\n let c = !1, l = !1, d = Qt ? document.onselectstart : null;\n const h = ce(() => gC[e.vertical ? \"vertical\" : \"horizontal\"]), f = ce(() => vC({\n size: e.size,\n move: e.move,\n bar: h.value\n })), g = ce(() => r.value[h.value.offset] ** 2 / t.wrapElement[h.value.scrollSize] / e.ratio / s.value[h.value.offset]), p = (M) => {\n var x;\n if (M.stopPropagation(), M.ctrlKey || [1, 2].includes(M.button))\n return;\n (x = window.getSelection()) == null || x.removeAllRanges(), y(M);\n const A = M.currentTarget;\n A && (o.value[h.value.axis] = A[h.value.offset] - (M[h.value.client] - A.getBoundingClientRect()[h.value.direction]));\n }, u = (M) => {\n if (!s.value || !r.value || !t.wrapElement)\n return;\n const x = Math.abs(M.target.getBoundingClientRect()[h.value.direction] - M[h.value.client]), A = s.value[h.value.offset] / 2, P = (x - A) * 100 * g.value / r.value[h.value.offset];\n t.wrapElement[h.value.scroll] = P * t.wrapElement[h.value.scrollSize] / 100;\n }, y = (M) => {\n M.stopImmediatePropagation(), c = !0, document.addEventListener(\"mousemove\", v), document.addEventListener(\"mouseup\", m), d = document.onselectstart, document.onselectstart = () => !1;\n }, v = (M) => {\n if (!r.value || !s.value || c === !1)\n return;\n const x = o.value[h.value.axis];\n if (!x)\n return;\n const A = (r.value.getBoundingClientRect()[h.value.direction] - M[h.value.client]) * -1, P = s.value[h.value.offset] - x, T = (A - P) * 100 * g.value / r.value[h.value.offset];\n t.wrapElement[h.value.scroll] = T * t.wrapElement[h.value.scrollSize] / 100;\n }, m = () => {\n c = !1, o.value[h.value.axis] = 0, document.removeEventListener(\"mousemove\", v), document.removeEventListener(\"mouseup\", m), S(), l && (a.value = !1);\n }, w = () => {\n l = !1, a.value = !!e.size;\n }, _ = () => {\n l = !0, a.value = c;\n };\n oi(() => {\n S(), document.removeEventListener(\"mouseup\", m);\n });\n const S = () => {\n document.onselectstart !== d && (document.onselectstart = d);\n };\n return un(Dn(t, \"scrollbarElement\"), \"mousemove\", w), un(Dn(t, \"scrollbarElement\"), \"mouseleave\", _), (M, x) => (ge(), He(hl, {\n name: G(i).b(\"fade\"),\n persisted: \"\"\n }, {\n default: me(() => [\n Ot(Fe(\"div\", {\n ref_key: \"instance\",\n ref: r,\n class: Le([G(i).e(\"bar\"), G(i).is(G(h).key)]),\n onMousedown: u\n }, [\n Fe(\"div\", {\n ref_key: \"thumb\",\n ref: s,\n class: Le(G(i).e(\"thumb\")),\n style: Pt(G(f)),\n onMousedown: p\n }, null, 38)\n ], 34), [\n [gn, M.always || a.value]\n ])\n ]),\n _: 1\n }, 8, [\"name\"]));\n }\n});\nvar Wm = /* @__PURE__ */ ot(xC, [[\"__file\", \"thumb.vue\"]]);\nconst wC = dt({\n always: {\n type: Boolean,\n default: !0\n },\n minSize: {\n type: Number,\n required: !0\n }\n}), MC = /* @__PURE__ */ De({\n __name: \"bar\",\n props: wC,\n setup(n, { expose: e }) {\n const t = n, i = ht(If), r = Ae(0), s = Ae(0), o = Ae(\"\"), a = Ae(\"\"), c = Ae(1), l = Ae(1);\n return e({\n handleScroll: (f) => {\n if (f) {\n const g = f.offsetHeight - Ys, p = f.offsetWidth - Ys;\n s.value = f.scrollTop * 100 / g * c.value, r.value = f.scrollLeft * 100 / p * l.value;\n }\n },\n update: () => {\n const f = i == null ? void 0 : i.wrapElement;\n if (!f)\n return;\n const g = f.offsetHeight - Ys, p = f.offsetWidth - Ys, u = g ** 2 / f.scrollHeight, y = p ** 2 / f.scrollWidth, v = Math.max(u, t.minSize), m = Math.max(y, t.minSize);\n c.value = u / (g - u) / (v / (g - v)), l.value = y / (p - y) / (m / (p - m)), a.value = v + Ys < g ? `${v}px` : \"\", o.value = m + Ys < p ? `${m}px` : \"\";\n }\n }), (f, g) => (ge(), Re(Vt, null, [\n ae(Wm, {\n move: r.value,\n ratio: l.value,\n size: o.value,\n always: f.always\n }, null, 8, [\"move\", \"ratio\", \"size\", \"always\"]),\n ae(Wm, {\n move: s.value,\n ratio: c.value,\n size: a.value,\n vertical: \"\",\n always: f.always\n }, null, 8, [\"move\", \"ratio\", \"size\", \"always\"])\n ], 64));\n }\n});\nvar _C = /* @__PURE__ */ ot(MC, [[\"__file\", \"bar.vue\"]]);\nconst SC = dt({\n height: {\n type: [String, Number],\n default: \"\"\n },\n maxHeight: {\n type: [String, Number],\n default: \"\"\n },\n native: {\n type: Boolean,\n default: !1\n },\n wrapStyle: {\n type: Je([String, Object, Array]),\n default: \"\"\n },\n wrapClass: {\n type: [String, Array],\n default: \"\"\n },\n viewClass: {\n type: [String, Array],\n default: \"\"\n },\n viewStyle: {\n type: [String, Array, Object],\n default: \"\"\n },\n noresize: Boolean,\n tag: {\n type: String,\n default: \"div\"\n },\n always: Boolean,\n minSize: {\n type: Number,\n default: 20\n },\n tabindex: {\n type: [String, Number],\n default: void 0\n },\n id: String,\n role: String,\n ...Gs([\"ariaLabel\", \"ariaOrientation\"])\n}), TC = {\n scroll: ({\n scrollTop: n,\n scrollLeft: e\n }) => [n, e].every(Mt)\n}, dd = \"ElScrollbar\", EC = De({\n name: dd\n}), AC = /* @__PURE__ */ De({\n ...EC,\n props: SC,\n emits: TC,\n setup(n, { expose: e, emit: t }) {\n const i = n, r = it(\"scrollbar\");\n let s, o, a = 0, c = 0;\n const l = Ae(), d = Ae(), h = Ae(), f = Ae(), g = ce(() => {\n const S = {};\n return i.height && (S.height = Zc(i.height)), i.maxHeight && (S.maxHeight = Zc(i.maxHeight)), [i.wrapStyle, S];\n }), p = ce(() => [\n i.wrapClass,\n r.e(\"wrap\"),\n { [r.em(\"wrap\", \"hidden-default\")]: !i.native }\n ]), u = ce(() => [r.e(\"view\"), i.viewClass]), y = () => {\n var S;\n d.value && ((S = f.value) == null || S.handleScroll(d.value), a = d.value.scrollTop, c = d.value.scrollLeft, t(\"scroll\", {\n scrollTop: d.value.scrollTop,\n scrollLeft: d.value.scrollLeft\n }));\n };\n function v(S, M) {\n An(S) ? d.value.scrollTo(S) : Mt(S) && Mt(M) && d.value.scrollTo(S, M);\n }\n const m = (S) => {\n if (!Mt(S)) {\n Jt(dd, \"value must be a number\");\n return;\n }\n d.value.scrollTop = S;\n }, w = (S) => {\n if (!Mt(S)) {\n Jt(dd, \"value must be a number\");\n return;\n }\n d.value.scrollLeft = S;\n }, _ = () => {\n var S;\n (S = f.value) == null || S.update();\n };\n return qe(() => i.noresize, (S) => {\n S ? (s == null || s(), o == null || o()) : ({ stop: s } = ti(h, _), o = un(\"resize\", _));\n }, { immediate: !0 }), qe(() => [i.maxHeight, i.height], () => {\n i.native || wt(() => {\n var S;\n _(), d.value && ((S = f.value) == null || S.handleScroll(d.value));\n });\n }), dn(If, Yn({\n scrollbarElement: l,\n wrapElement: d\n })), t1(() => {\n d.value && (d.value.scrollTop = a, d.value.scrollLeft = c);\n }), tn(() => {\n i.native || wt(() => {\n _();\n });\n }), sf(() => _()), e({\n wrapRef: d,\n update: _,\n scrollTo: v,\n setScrollTop: m,\n setScrollLeft: w,\n handleScroll: y\n }), (S, M) => (ge(), Re(\"div\", {\n ref_key: \"scrollbarRef\",\n ref: l,\n class: Le(G(r).b())\n }, [\n Fe(\"div\", {\n ref_key: \"wrapRef\",\n ref: d,\n class: Le(G(p)),\n style: Pt(G(g)),\n tabindex: S.tabindex,\n onScroll: y\n }, [\n (ge(), He(Nn(S.tag), {\n id: S.id,\n ref_key: \"resizeRef\",\n ref: h,\n class: Le(G(u)),\n style: Pt(S.viewStyle),\n role: S.role,\n \"aria-label\": S.ariaLabel,\n \"aria-orientation\": S.ariaOrientation\n }, {\n default: me(() => [\n Xe(S.$slots, \"default\")\n ]),\n _: 3\n }, 8, [\"id\", \"class\", \"style\", \"role\", \"aria-label\", \"aria-orientation\"]))\n ], 46, [\"tabindex\"]),\n S.native ? Ge(\"v-if\", !0) : (ge(), He(_C, {\n key: 0,\n ref_key: \"barRef\",\n ref: f,\n always: S.always,\n \"min-size\": S.minSize\n }, null, 8, [\"always\", \"min-size\"]))\n ], 2));\n }\n});\nvar CC = /* @__PURE__ */ ot(AC, [[\"__file\", \"scrollbar.vue\"]]);\nconst LC = fn(CC), Of = Symbol(\"popper\"), oy = Symbol(\"popperContent\"), RC = [\n \"dialog\",\n \"grid\",\n \"group\",\n \"listbox\",\n \"menu\",\n \"navigation\",\n \"tooltip\",\n \"tree\"\n], ay = dt({\n role: {\n type: String,\n values: RC,\n default: \"tooltip\"\n }\n}), PC = De({\n name: \"ElPopper\",\n inheritAttrs: !1\n}), IC = /* @__PURE__ */ De({\n ...PC,\n props: ay,\n setup(n, { expose: e }) {\n const t = n, i = Ae(), r = Ae(), s = Ae(), o = Ae(), a = ce(() => t.role), c = {\n triggerRef: i,\n popperInstanceRef: r,\n contentRef: s,\n referenceRef: o,\n role: a\n };\n return e(c), dn(Of, c), (l, d) => Xe(l.$slots, \"default\");\n }\n});\nvar OC = /* @__PURE__ */ ot(IC, [[\"__file\", \"popper.vue\"]]);\nconst ly = dt({\n arrowOffset: {\n type: Number,\n default: 5\n }\n}), DC = De({\n name: \"ElPopperArrow\",\n inheritAttrs: !1\n}), NC = /* @__PURE__ */ De({\n ...DC,\n props: ly,\n setup(n, { expose: e }) {\n const t = n, i = it(\"popper\"), { arrowOffset: r, arrowRef: s, arrowStyle: o } = ht(oy, void 0);\n return qe(() => t.arrowOffset, (a) => {\n r.value = a;\n }), oi(() => {\n s.value = void 0;\n }), e({\n arrowRef: s\n }), (a, c) => (ge(), Re(\"span\", {\n ref_key: \"arrowRef\",\n ref: s,\n class: Le(G(i).e(\"arrow\")),\n style: Pt(G(o)),\n \"data-popper-arrow\": \"\"\n }, null, 6));\n }\n});\nvar BC = /* @__PURE__ */ ot(NC, [[\"__file\", \"arrow.vue\"]]);\nconst Ju = \"ElOnlyChild\", FC = De({\n name: Ju,\n setup(n, {\n slots: e,\n attrs: t\n }) {\n var i;\n const r = ht(K0), s = HA((i = r == null ? void 0 : r.setForwardRef) != null ? i : $a);\n return () => {\n var o;\n const a = (o = e.default) == null ? void 0 : o.call(e, t);\n if (!a)\n return null;\n if (a.length > 1)\n return Jt(Ju, \"requires exact only one valid child.\"), null;\n const c = cy(a);\n return c ? Ot(n1(c, t), [[s]]) : (Jt(Ju, \"no valid child node found\"), null);\n };\n }\n});\nfunction cy(n) {\n if (!n)\n return null;\n const e = n;\n for (const t of e) {\n if (An(t))\n switch (t.type) {\n case i1:\n continue;\n case u0:\n case \"svg\":\n return jm(t);\n case Vt:\n return cy(t.children);\n default:\n return t;\n }\n return jm(t);\n }\n return null;\n}\nfunction jm(n) {\n const e = it(\"only-child\");\n return ae(\"span\", {\n class: e.e(\"content\")\n }, [n]);\n}\nconst uy = dt({\n virtualRef: {\n type: Je(Object)\n },\n virtualTriggering: Boolean,\n onMouseenter: {\n type: Je(Function)\n },\n onMouseleave: {\n type: Je(Function)\n },\n onClick: {\n type: Je(Function)\n },\n onKeydown: {\n type: Je(Function)\n },\n onFocus: {\n type: Je(Function)\n },\n onBlur: {\n type: Je(Function)\n },\n onContextmenu: {\n type: Je(Function)\n },\n id: String,\n open: Boolean\n}), zC = De({\n name: \"ElPopperTrigger\",\n inheritAttrs: !1\n}), UC = /* @__PURE__ */ De({\n ...zC,\n props: uy,\n setup(n, { expose: e }) {\n const t = n, { role: i, triggerRef: r } = ht(Of, void 0);\n GA(r);\n const s = ce(() => a.value ? t.id : void 0), o = ce(() => {\n if (i && i.value === \"tooltip\")\n return t.open && t.id ? t.id : void 0;\n }), a = ce(() => {\n if (i && i.value !== \"tooltip\")\n return i.value;\n }), c = ce(() => a.value ? `${t.open}` : void 0);\n let l;\n const d = [\n \"onMouseenter\",\n \"onMouseleave\",\n \"onClick\",\n \"onKeydown\",\n \"onFocus\",\n \"onBlur\",\n \"onContextmenu\"\n ];\n return tn(() => {\n qe(() => t.virtualRef, (h) => {\n h && (r.value = nr(h));\n }, {\n immediate: !0\n }), qe(r, (h, f) => {\n l == null || l(), l = void 0, Ms(h) && (d.forEach((g) => {\n var p;\n const u = t[g];\n u && (h.addEventListener(g.slice(2).toLowerCase(), u), (p = f == null ? void 0 : f.removeEventListener) == null || p.call(f, g.slice(2).toLowerCase(), u));\n }), l = qe([s, o, a, c], (g) => {\n [\n \"aria-controls\",\n \"aria-describedby\",\n \"aria-haspopup\",\n \"aria-expanded\"\n ].forEach((p, u) => {\n rr(g[u]) ? h.removeAttribute(p) : h.setAttribute(p, g[u]);\n });\n }, { immediate: !0 })), Ms(f) && [\n \"aria-controls\",\n \"aria-describedby\",\n \"aria-haspopup\",\n \"aria-expanded\"\n ].forEach((g) => f.removeAttribute(g));\n }, {\n immediate: !0\n });\n }), oi(() => {\n if (l == null || l(), l = void 0, r.value && Ms(r.value)) {\n const h = r.value;\n d.forEach((f) => {\n const g = t[f];\n g && h.removeEventListener(f.slice(2).toLowerCase(), g);\n }), r.value = void 0;\n }\n }), e({\n triggerRef: r\n }), (h, f) => h.virtualTriggering ? Ge(\"v-if\", !0) : (ge(), He(G(FC), Ii({ key: 0 }, h.$attrs, {\n \"aria-controls\": G(s),\n \"aria-describedby\": G(o),\n \"aria-expanded\": G(c),\n \"aria-haspopup\": G(a)\n }), {\n default: me(() => [\n Xe(h.$slots, \"default\")\n ]),\n _: 3\n }, 16, [\"aria-controls\", \"aria-describedby\", \"aria-expanded\", \"aria-haspopup\"]));\n }\n});\nvar VC = /* @__PURE__ */ ot(UC, [[\"__file\", \"trigger.vue\"]]);\nconst Ku = \"focus-trap.focus-after-trapped\", qu = \"focus-trap.focus-after-released\", kC = \"focus-trap.focusout-prevented\", $m = {\n cancelable: !0,\n bubbles: !1\n}, GC = {\n cancelable: !0,\n bubbles: !1\n}, Zm = \"focusAfterTrapped\", Xm = \"focusAfterReleased\", HC = Symbol(\"elFocusTrap\"), Df = Ae(), bu = Ae(0), Nf = Ae(0);\nlet Fl = 0;\nconst hy = (n) => {\n const e = [], t = document.createTreeWalker(n, NodeFilter.SHOW_ELEMENT, {\n acceptNode: (i) => {\n const r = i.tagName === \"INPUT\" && i.type === \"hidden\";\n return i.disabled || i.hidden || r ? NodeFilter.FILTER_SKIP : i.tabIndex >= 0 || i === document.activeElement ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;\n }\n });\n for (; t.nextNode(); )\n e.push(t.currentNode);\n return e;\n}, Ym = (n, e) => {\n for (const t of n)\n if (!WC(t, e))\n return t;\n}, WC = (n, e) => {\n if (process.env.NODE_ENV === \"test\")\n return !1;\n if (getComputedStyle(n).visibility === \"hidden\")\n return !0;\n for (; n; ) {\n if (e && n === e)\n return !1;\n if (getComputedStyle(n).display === \"none\")\n return !0;\n n = n.parentElement;\n }\n return !1;\n}, jC = (n) => {\n const e = hy(n), t = Ym(e, n), i = Ym(e.reverse(), n);\n return [t, i];\n}, $C = (n) => n instanceof HTMLInputElement && \"select\" in n, Pr = (n, e) => {\n if (n && n.focus) {\n const t = document.activeElement;\n n.focus({ preventScroll: !0 }), Nf.value = window.performance.now(), n !== t && $C(n) && e && n.select();\n }\n};\nfunction Jm(n, e) {\n const t = [...n], i = n.indexOf(e);\n return i !== -1 && t.splice(i, 1), t;\n}\nconst ZC = () => {\n let n = [];\n return {\n push: (i) => {\n const r = n[0];\n r && i !== r && r.pause(), n = Jm(n, i), n.unshift(i);\n },\n remove: (i) => {\n var r, s;\n n = Jm(n, i), (s = (r = n[0]) == null ? void 0 : r.resume) == null || s.call(r);\n }\n };\n}, XC = (n, e = !1) => {\n const t = document.activeElement;\n for (const i of n)\n if (Pr(i, e), document.activeElement !== t)\n return;\n}, Km = ZC(), YC = () => bu.value > Nf.value, zl = () => {\n Df.value = \"pointer\", bu.value = window.performance.now();\n}, qm = () => {\n Df.value = \"keyboard\", bu.value = window.performance.now();\n}, JC = () => (tn(() => {\n Fl === 0 && (document.addEventListener(\"mousedown\", zl), document.addEventListener(\"touchstart\", zl), document.addEventListener(\"keydown\", qm)), Fl++;\n}), oi(() => {\n Fl--, Fl <= 0 && (document.removeEventListener(\"mousedown\", zl), document.removeEventListener(\"touchstart\", zl), document.removeEventListener(\"keydown\", qm));\n}), {\n focusReason: Df,\n lastUserFocusTimestamp: bu,\n lastAutomatedFocusTimestamp: Nf\n}), Ul = (n) => new CustomEvent(kC, {\n ...GC,\n detail: n\n}), KC = De({\n name: \"ElFocusTrap\",\n inheritAttrs: !1,\n props: {\n loop: Boolean,\n trapped: Boolean,\n focusTrapEl: Object,\n focusStartEl: {\n type: [Object, String],\n default: \"first\"\n }\n },\n emits: [\n Zm,\n Xm,\n \"focusin\",\n \"focusout\",\n \"focusout-prevented\",\n \"release-requested\"\n ],\n setup(n, { emit: e }) {\n const t = Ae();\n let i, r;\n const { focusReason: s } = JC();\n FA((p) => {\n n.trapped && !o.paused && e(\"release-requested\", p);\n });\n const o = {\n paused: !1,\n pause() {\n this.paused = !0;\n },\n resume() {\n this.paused = !1;\n }\n }, a = (p) => {\n if (!n.loop && !n.trapped || o.paused)\n return;\n const { key: u, altKey: y, ctrlKey: v, metaKey: m, currentTarget: w, shiftKey: _ } = p, { loop: S } = n, M = u === Oi.tab && !y && !v && !m, x = document.activeElement;\n if (M && x) {\n const A = w, [P, T] = jC(A);\n if (P && T) {\n if (!_ && x === T) {\n const E = Ul({\n focusReason: s.value\n });\n e(\"focusout-prevented\", E), E.defaultPrevented || (p.preventDefault(), S && Pr(P, !0));\n } else if (_ && [P, A].includes(x)) {\n const E = Ul({\n focusReason: s.value\n });\n e(\"focusout-prevented\", E), E.defaultPrevented || (p.preventDefault(), S && Pr(T, !0));\n }\n } else if (x === A) {\n const E = Ul({\n focusReason: s.value\n });\n e(\"focusout-prevented\", E), E.defaultPrevented || p.preventDefault();\n }\n }\n };\n dn(HC, {\n focusTrapRef: t,\n onKeydown: a\n }), qe(() => n.focusTrapEl, (p) => {\n p && (t.value = p);\n }, { immediate: !0 }), qe([t], ([p], [u]) => {\n p && (p.addEventListener(\"keydown\", a), p.addEventListener(\"focusin\", d), p.addEventListener(\"focusout\", h)), u && (u.removeEventListener(\"keydown\", a), u.removeEventListener(\"focusin\", d), u.removeEventListener(\"focusout\", h));\n });\n const c = (p) => {\n e(Zm, p);\n }, l = (p) => e(Xm, p), d = (p) => {\n const u = G(t);\n if (!u)\n return;\n const y = p.target, v = p.relatedTarget, m = y && u.contains(y);\n n.trapped || v && u.contains(v) || (i = v), m && e(\"focusin\", p), !o.paused && n.trapped && (m ? r = y : Pr(r, !0));\n }, h = (p) => {\n const u = G(t);\n if (!(o.paused || !u))\n if (n.trapped) {\n const y = p.relatedTarget;\n !rr(y) && !u.contains(y) && setTimeout(() => {\n if (!o.paused && n.trapped) {\n const v = Ul({\n focusReason: s.value\n });\n e(\"focusout-prevented\", v), v.defaultPrevented || Pr(r, !0);\n }\n }, 0);\n } else {\n const y = p.target;\n y && u.contains(y) || e(\"focusout\", p);\n }\n };\n async function f() {\n await wt();\n const p = G(t);\n if (p) {\n Km.push(o);\n const u = p.contains(document.activeElement) ? i : document.activeElement;\n if (i = u, !p.contains(u)) {\n const v = new Event(Ku, $m);\n p.addEventListener(Ku, c), p.dispatchEvent(v), v.defaultPrevented || wt(() => {\n let m = n.focusStartEl;\n Ln(m) || (Pr(m), document.activeElement !== m && (m = \"first\")), m === \"first\" && XC(hy(p), !0), (document.activeElement === u || m === \"container\") && Pr(p);\n });\n }\n }\n }\n function g() {\n const p = G(t);\n if (p) {\n p.removeEventListener(Ku, c);\n const u = new CustomEvent(qu, {\n ...$m,\n detail: {\n focusReason: s.value\n }\n });\n p.addEventListener(qu, l), p.dispatchEvent(u), !u.defaultPrevented && (s.value == \"keyboard\" || !YC() || p.contains(document.activeElement)) && Pr(i ?? document.body), p.removeEventListener(qu, l), Km.remove(o);\n }\n }\n return tn(() => {\n n.trapped && f(), qe(() => n.trapped, (p) => {\n p ? f() : g();\n });\n }), oi(() => {\n n.trapped && g(), t.value && (t.value.removeEventListener(\"keydown\", a), t.value.removeEventListener(\"focusin\", d), t.value.removeEventListener(\"focusout\", h), t.value = void 0);\n }), {\n onKeydown: a\n };\n }\n});\nfunction qC(n, e, t, i, r, s) {\n return Xe(n.$slots, \"default\", { handleKeydown: n.onKeydown });\n}\nvar QC = /* @__PURE__ */ ot(KC, [[\"render\", qC], [\"__file\", \"focus-trap.vue\"]]);\nconst e2 = [\"fixed\", \"absolute\"], t2 = dt({\n boundariesPadding: {\n type: Number,\n default: 0\n },\n fallbackPlacements: {\n type: Je(Array),\n default: void 0\n },\n gpuAcceleration: {\n type: Boolean,\n default: !0\n },\n offset: {\n type: Number,\n default: 12\n },\n placement: {\n type: String,\n values: ia,\n default: \"bottom\"\n },\n popperOptions: {\n type: Je(Object),\n default: () => ({})\n },\n strategy: {\n type: String,\n values: e2,\n default: \"absolute\"\n }\n}), dy = dt({\n ...t2,\n id: String,\n style: {\n type: Je([String, Array, Object])\n },\n className: {\n type: Je([String, Array, Object])\n },\n effect: {\n type: Je(String),\n default: \"dark\"\n },\n visible: Boolean,\n enterable: {\n type: Boolean,\n default: !0\n },\n pure: Boolean,\n focusOnShow: {\n type: Boolean,\n default: !1\n },\n trapping: {\n type: Boolean,\n default: !1\n },\n popperClass: {\n type: Je([String, Array, Object])\n },\n popperStyle: {\n type: Je([String, Array, Object])\n },\n referenceEl: {\n type: Je(Object)\n },\n triggerTargetEl: {\n type: Je(Object)\n },\n stopPopperMouseEvent: {\n type: Boolean,\n default: !0\n },\n virtualTriggering: Boolean,\n zIndex: Number,\n ...Gs([\"ariaLabel\"])\n}), n2 = {\n mouseenter: (n) => n instanceof MouseEvent,\n mouseleave: (n) => n instanceof MouseEvent,\n focus: () => !0,\n blur: () => !0,\n close: () => !0\n}, i2 = (n, e = []) => {\n const { placement: t, strategy: i, popperOptions: r } = n, s = {\n placement: t,\n strategy: i,\n ...r,\n modifiers: [...s2(n), ...e]\n };\n return o2(s, r == null ? void 0 : r.modifiers), s;\n}, r2 = (n) => {\n if (Qt)\n return nr(n);\n};\nfunction s2(n) {\n const { offset: e, gpuAcceleration: t, fallbackPlacements: i } = n;\n return [\n {\n name: \"offset\",\n options: {\n offset: [0, e ?? 12]\n }\n },\n {\n name: \"preventOverflow\",\n options: {\n padding: {\n top: 2,\n bottom: 2,\n left: 5,\n right: 5\n }\n }\n },\n {\n name: \"flip\",\n options: {\n padding: 5,\n fallbackPlacements: i\n }\n },\n {\n name: \"computeStyles\",\n options: {\n gpuAcceleration: t\n }\n }\n ];\n}\nfunction o2(n, e) {\n e && (n.modifiers = [...n.modifiers, ...e ?? []]);\n}\nconst a2 = 0, l2 = (n) => {\n const { popperInstanceRef: e, contentRef: t, triggerRef: i, role: r } = ht(Of, void 0), s = Ae(), o = Ae(), a = ce(() => ({\n name: \"eventListeners\",\n enabled: !!n.visible\n })), c = ce(() => {\n var v;\n const m = G(s), w = (v = G(o)) != null ? v : a2;\n return {\n name: \"arrow\",\n enabled: !HT(m),\n options: {\n element: m,\n padding: w\n }\n };\n }), l = ce(() => ({\n onFirstUpdate: () => {\n p();\n },\n ...i2(n, [\n G(c),\n G(a)\n ])\n })), d = ce(() => r2(n.referenceEl) || G(i)), { attributes: h, state: f, styles: g, update: p, forceUpdate: u, instanceRef: y } = DA(d, t, l);\n return qe(y, (v) => e.value = v), tn(() => {\n qe(() => {\n var v;\n return (v = G(d)) == null ? void 0 : v.getBoundingClientRect();\n }, () => {\n p();\n });\n }), {\n attributes: h,\n arrowRef: s,\n contentRef: t,\n instanceRef: y,\n state: f,\n styles: g,\n role: r,\n forceUpdate: u,\n update: p\n };\n}, c2 = (n, {\n attributes: e,\n styles: t,\n role: i\n}) => {\n const { nextZIndex: r } = ey(), s = it(\"popper\"), o = ce(() => G(e).popper), a = Ae(Mt(n.zIndex) ? n.zIndex : r()), c = ce(() => [\n s.b(),\n s.is(\"pure\", n.pure),\n s.is(n.effect),\n n.popperClass\n ]), l = ce(() => [\n { zIndex: G(a) },\n G(t).popper,\n n.popperStyle || {}\n ]), d = ce(() => i.value === \"dialog\" ? \"false\" : void 0), h = ce(() => G(t).arrow || {});\n return {\n ariaModal: d,\n arrowStyle: h,\n contentAttrs: o,\n contentClass: c,\n contentStyle: l,\n contentZIndex: a,\n updateZIndex: () => {\n a.value = Mt(n.zIndex) ? n.zIndex : r();\n }\n };\n}, u2 = (n, e) => {\n const t = Ae(!1), i = Ae();\n return {\n focusStartRef: i,\n trapped: t,\n onFocusAfterReleased: (l) => {\n var d;\n ((d = l.detail) == null ? void 0 : d.focusReason) !== \"pointer\" && (i.value = \"first\", e(\"blur\"));\n },\n onFocusAfterTrapped: () => {\n e(\"focus\");\n },\n onFocusInTrap: (l) => {\n n.visible && !t.value && (l.target && (i.value = l.target), t.value = !0);\n },\n onFocusoutPrevented: (l) => {\n n.trapping || (l.detail.focusReason === \"pointer\" && l.preventDefault(), t.value = !1);\n },\n onReleaseRequested: () => {\n t.value = !1, e(\"close\");\n }\n };\n}, h2 = De({\n name: \"ElPopperContent\"\n}), d2 = /* @__PURE__ */ De({\n ...h2,\n props: dy,\n emits: n2,\n setup(n, { expose: e, emit: t }) {\n const i = n, {\n focusStartRef: r,\n trapped: s,\n onFocusAfterReleased: o,\n onFocusAfterTrapped: a,\n onFocusInTrap: c,\n onFocusoutPrevented: l,\n onReleaseRequested: d\n } = u2(i, t), { attributes: h, arrowRef: f, contentRef: g, styles: p, instanceRef: u, role: y, update: v } = l2(i), {\n ariaModal: m,\n arrowStyle: w,\n contentAttrs: _,\n contentClass: S,\n contentStyle: M,\n updateZIndex: x\n } = c2(i, {\n styles: p,\n attributes: h,\n role: y\n }), A = ht(Kc, void 0), P = Ae();\n dn(oy, {\n arrowStyle: w,\n arrowRef: f,\n arrowOffset: P\n }), A && dn(Kc, {\n ...A,\n addInputId: $a,\n removeInputId: $a\n });\n let T;\n const R = (C = !0) => {\n v(), C && x();\n }, E = () => {\n R(!1), i.visible && i.focusOnShow ? s.value = !0 : i.visible === !1 && (s.value = !1);\n };\n return tn(() => {\n qe(() => i.triggerTargetEl, (C, L) => {\n T == null || T(), T = void 0;\n const O = G(C || g.value), b = G(L || g.value);\n Ms(O) && (T = qe([y, () => i.ariaLabel, m, () => i.id], (I) => {\n [\"role\", \"aria-label\", \"aria-modal\", \"id\"].forEach((N, D) => {\n rr(I[D]) ? O.removeAttribute(N) : O.setAttribute(N, I[D]);\n });\n }, { immediate: !0 })), b !== O && Ms(b) && [\"role\", \"aria-label\", \"aria-modal\", \"id\"].forEach((I) => {\n b.removeAttribute(I);\n });\n }, { immediate: !0 }), qe(() => i.visible, E, { immediate: !0 });\n }), oi(() => {\n T == null || T(), T = void 0;\n }), e({\n popperContentRef: g,\n popperInstanceRef: u,\n updatePopper: R,\n contentStyle: M\n }), (C, L) => (ge(), Re(\"div\", Ii({\n ref_key: \"contentRef\",\n ref: g\n }, G(_), {\n style: G(M),\n class: G(S),\n tabindex: \"-1\",\n onMouseenter: (O) => C.$emit(\"mouseenter\", O),\n onMouseleave: (O) => C.$emit(\"mouseleave\", O)\n }), [\n ae(G(QC), {\n trapped: G(s),\n \"trap-on-focus-in\": !0,\n \"focus-trap-el\": G(g),\n \"focus-start-el\": G(r),\n onFocusAfterTrapped: G(a),\n onFocusAfterReleased: G(o),\n onFocusin: G(c),\n onFocusoutPrevented: G(l),\n onReleaseRequested: G(d)\n }, {\n default: me(() => [\n Xe(C.$slots, \"default\")\n ]),\n _: 3\n }, 8, [\"trapped\", \"focus-trap-el\", \"focus-start-el\", \"onFocusAfterTrapped\", \"onFocusAfterReleased\", \"onFocusin\", \"onFocusoutPrevented\", \"onReleaseRequested\"])\n ], 16, [\"onMouseenter\", \"onMouseleave\"]));\n }\n});\nvar f2 = /* @__PURE__ */ ot(d2, [[\"__file\", \"content.vue\"]]);\nconst p2 = fn(OC), Bf = Symbol(\"elTooltip\"), jn = dt({\n ...VA,\n ...dy,\n appendTo: {\n type: Je([String, Object])\n },\n content: {\n type: String,\n default: \"\"\n },\n rawContent: Boolean,\n persistent: Boolean,\n visible: {\n type: Je(Boolean),\n default: null\n },\n transition: String,\n teleported: {\n type: Boolean,\n default: !0\n },\n disabled: Boolean,\n ...Gs([\"ariaLabel\"])\n}), Ka = dt({\n ...uy,\n disabled: Boolean,\n trigger: {\n type: Je([String, Array]),\n default: \"hover\"\n },\n triggerKeys: {\n type: Je(Array),\n default: () => [Oi.enter, Oi.space]\n }\n}), {\n useModelToggleProps: m2,\n useModelToggleEmits: g2,\n useModelToggle: v2\n} = PE(\"visible\"), y2 = dt({\n ...ay,\n ...m2,\n ...jn,\n ...Ka,\n ...ly,\n showArrow: {\n type: Boolean,\n default: !0\n }\n}), b2 = [\n ...g2,\n \"before-show\",\n \"before-hide\",\n \"show\",\n \"hide\",\n \"open\",\n \"close\"\n], x2 = (n, e) => Bn(n) ? n.includes(e) : n === e, Js = (n, e, t) => (i) => {\n x2(G(n), e) && t(i);\n}, w2 = De({\n name: \"ElTooltipTrigger\"\n}), M2 = /* @__PURE__ */ De({\n ...w2,\n props: Ka,\n setup(n, { expose: e }) {\n const t = n, i = it(\"tooltip\"), { controlled: r, id: s, open: o, onOpen: a, onClose: c, onToggle: l } = ht(Bf, void 0), d = Ae(null), h = () => {\n if (G(r) || t.disabled)\n return !0;\n }, f = Dn(t, \"trigger\"), g = qi(h, Js(f, \"hover\", a)), p = qi(h, Js(f, \"hover\", c)), u = qi(h, Js(f, \"click\", (_) => {\n _.button === 0 && l(_);\n })), y = qi(h, Js(f, \"focus\", a)), v = qi(h, Js(f, \"focus\", c)), m = qi(h, Js(f, \"contextmenu\", (_) => {\n _.preventDefault(), l(_);\n })), w = qi(h, (_) => {\n const { code: S } = _;\n t.triggerKeys.includes(S) && (_.preventDefault(), l(_));\n });\n return e({\n triggerRef: d\n }), (_, S) => (ge(), He(G(VC), {\n id: G(s),\n \"virtual-ref\": _.virtualRef,\n open: G(o),\n \"virtual-triggering\": _.virtualTriggering,\n class: Le(G(i).e(\"trigger\")),\n onBlur: G(v),\n onClick: G(u),\n onContextmenu: G(m),\n onFocus: G(y),\n onMouseenter: G(g),\n onMouseleave: G(p),\n onKeydown: G(w)\n }, {\n default: me(() => [\n Xe(_.$slots, \"default\")\n ]),\n _: 3\n }, 8, [\"id\", \"virtual-ref\", \"open\", \"virtual-triggering\", \"class\", \"onBlur\", \"onClick\", \"onContextmenu\", \"onFocus\", \"onMouseenter\", \"onMouseleave\", \"onKeydown\"]));\n }\n});\nvar _2 = /* @__PURE__ */ ot(M2, [[\"__file\", \"trigger.vue\"]]);\nconst S2 = dt({\n to: {\n type: Je([String, Object]),\n required: !0\n },\n disabled: Boolean\n}), T2 = /* @__PURE__ */ De({\n __name: \"teleport\",\n props: S2,\n setup(n) {\n return (e, t) => e.disabled ? Xe(e.$slots, \"default\", { key: 0 }) : (ge(), He(r1, {\n key: 1,\n to: e.to\n }, [\n Xe(e.$slots, \"default\")\n ], 8, [\"to\"]));\n }\n});\nvar E2 = /* @__PURE__ */ ot(T2, [[\"__file\", \"teleport.vue\"]]);\nconst A2 = fn(E2), C2 = De({\n name: \"ElTooltipContent\",\n inheritAttrs: !1\n}), L2 = /* @__PURE__ */ De({\n ...C2,\n props: jn,\n setup(n, { expose: e }) {\n const t = n, { selector: i } = J0(), r = it(\"tooltip\"), s = Ae(null);\n let o;\n const {\n controlled: a,\n id: c,\n open: l,\n trigger: d,\n onClose: h,\n onOpen: f,\n onShow: g,\n onHide: p,\n onBeforeShow: u,\n onBeforeHide: y\n } = ht(Bf, void 0), v = ce(() => t.transition || `${r.namespace.value}-fade-in-linear`), m = ce(() => process.env.NODE_ENV === \"test\" ? !0 : t.persistent);\n oi(() => {\n o == null || o();\n });\n const w = ce(() => G(m) ? !0 : G(l)), _ = ce(() => t.disabled ? !1 : G(l)), S = ce(() => t.appendTo || i.value), M = ce(() => {\n var b;\n return (b = t.style) != null ? b : {};\n }), x = Ae(!0), A = () => {\n p(), x.value = !0;\n }, P = () => {\n if (G(a))\n return !0;\n }, T = qi(P, () => {\n t.enterable && G(d) === \"hover\" && f();\n }), R = qi(P, () => {\n G(d) === \"hover\" && h();\n }), E = () => {\n var b, I;\n (I = (b = s.value) == null ? void 0 : b.updatePopper) == null || I.call(b), u == null || u();\n }, C = () => {\n y == null || y();\n }, L = () => {\n g(), o = O1(ce(() => {\n var b;\n return (b = s.value) == null ? void 0 : b.popperContentRef;\n }), () => {\n if (G(a))\n return;\n G(d) !== \"hover\" && h();\n });\n }, O = () => {\n t.virtualTriggering || h();\n };\n return qe(() => G(l), (b) => {\n b ? x.value = !1 : o == null || o();\n }, {\n flush: \"post\"\n }), qe(() => t.content, () => {\n var b, I;\n (I = (b = s.value) == null ? void 0 : b.updatePopper) == null || I.call(b);\n }), e({\n contentRef: s\n }), (b, I) => (ge(), He(G(A2), {\n disabled: !b.teleported,\n to: G(S)\n }, {\n default: me(() => [\n ae(hl, {\n name: G(v),\n onAfterLeave: A,\n onBeforeEnter: E,\n onAfterEnter: L,\n onBeforeLeave: C\n }, {\n default: me(() => [\n G(w) ? Ot((ge(), He(G(f2), Ii({\n key: 0,\n id: G(c),\n ref_key: \"contentRef\",\n ref: s\n }, b.$attrs, {\n \"aria-label\": b.ariaLabel,\n \"aria-hidden\": x.value,\n \"boundaries-padding\": b.boundariesPadding,\n \"fallback-placements\": b.fallbackPlacements,\n \"gpu-acceleration\": b.gpuAcceleration,\n offset: b.offset,\n placement: b.placement,\n \"popper-options\": b.popperOptions,\n strategy: b.strategy,\n effect: b.effect,\n enterable: b.enterable,\n pure: b.pure,\n \"popper-class\": b.popperClass,\n \"popper-style\": [b.popperStyle, G(M)],\n \"reference-el\": b.referenceEl,\n \"trigger-target-el\": b.triggerTargetEl,\n visible: G(_),\n \"z-index\": b.zIndex,\n onMouseenter: G(T),\n onMouseleave: G(R),\n onBlur: O,\n onClose: G(h)\n }), {\n default: me(() => [\n Xe(b.$slots, \"default\")\n ]),\n _: 3\n }, 16, [\"id\", \"aria-label\", \"aria-hidden\", \"boundaries-padding\", \"fallback-placements\", \"gpu-acceleration\", \"offset\", \"placement\", \"popper-options\", \"strategy\", \"effect\", \"enterable\", \"pure\", \"popper-class\", \"popper-style\", \"reference-el\", \"trigger-target-el\", \"visible\", \"z-index\", \"onMouseenter\", \"onMouseleave\", \"onClose\"])), [\n [gn, G(_)]\n ]) : Ge(\"v-if\", !0)\n ]),\n _: 3\n }, 8, [\"name\"])\n ]),\n _: 3\n }, 8, [\"disabled\", \"to\"]));\n }\n});\nvar R2 = /* @__PURE__ */ ot(L2, [[\"__file\", \"content.vue\"]]);\nconst P2 = De({\n name: \"ElTooltip\"\n}), I2 = /* @__PURE__ */ De({\n ...P2,\n props: y2,\n emits: b2,\n setup(n, { expose: e, emit: t }) {\n const i = n;\n UA();\n const r = vu(), s = Ae(), o = Ae(), a = () => {\n var v;\n const m = G(s);\n m && ((v = m.popperInstanceRef) == null || v.update());\n }, c = Ae(!1), l = Ae(), { show: d, hide: h, hasUpdateHandler: f } = v2({\n indicator: c,\n toggleReason: l\n }), { onOpen: g, onClose: p } = kA({\n showAfter: Dn(i, \"showAfter\"),\n hideAfter: Dn(i, \"hideAfter\"),\n autoClose: Dn(i, \"autoClose\"),\n open: d,\n close: h\n }), u = ce(() => gf(i.visible) && !f.value);\n dn(Bf, {\n controlled: u,\n id: r,\n open: o0(c),\n trigger: Dn(i, \"trigger\"),\n onOpen: (v) => {\n g(v);\n },\n onClose: (v) => {\n p(v);\n },\n onToggle: (v) => {\n G(c) ? p(v) : g(v);\n },\n onShow: () => {\n t(\"show\", l.value);\n },\n onHide: () => {\n t(\"hide\", l.value);\n },\n onBeforeShow: () => {\n t(\"before-show\", l.value);\n },\n onBeforeHide: () => {\n t(\"before-hide\", l.value);\n },\n updatePopper: a\n }), qe(() => i.disabled, (v) => {\n v && c.value && (c.value = !1);\n });\n const y = (v) => {\n var m, w;\n const _ = (w = (m = o.value) == null ? void 0 : m.contentRef) == null ? void 0 : w.popperContentRef, S = (v == null ? void 0 : v.relatedTarget) || document.activeElement;\n return _ && _.contains(S);\n };\n return s1(() => c.value && h()), e({\n popperRef: s,\n contentRef: o,\n isFocusInsideContent: y,\n updatePopper: a,\n onOpen: g,\n onClose: p,\n hide: h\n }), (v, m) => (ge(), He(G(p2), {\n ref_key: \"popperRef\",\n ref: s,\n role: v.role\n }, {\n default: me(() => [\n ae(_2, {\n disabled: v.disabled,\n trigger: v.trigger,\n \"trigger-keys\": v.triggerKeys,\n \"virtual-ref\": v.virtualRef,\n \"virtual-triggering\": v.virtualTriggering\n }, {\n default: me(() => [\n v.$slots.default ? Xe(v.$slots, \"default\", { key: 0 }) : Ge(\"v-if\", !0)\n ]),\n _: 3\n }, 8, [\"disabled\", \"trigger\", \"trigger-keys\", \"virtual-ref\", \"virtual-triggering\"]),\n ae(R2, {\n ref_key: \"contentRef\",\n ref: o,\n \"aria-label\": v.ariaLabel,\n \"boundaries-padding\": v.boundariesPadding,\n content: v.content,\n disabled: v.disabled,\n effect: v.effect,\n enterable: v.enterable,\n \"fallback-placements\": v.fallbackPlacements,\n \"hide-after\": v.hideAfter,\n \"gpu-acceleration\": v.gpuAcceleration,\n offset: v.offset,\n persistent: v.persistent,\n \"popper-class\": v.popperClass,\n \"popper-style\": v.popperStyle,\n placement: v.placement,\n \"popper-options\": v.popperOptions,\n pure: v.pure,\n \"raw-content\": v.rawContent,\n \"reference-el\": v.referenceEl,\n \"trigger-target-el\": v.triggerTargetEl,\n \"show-after\": v.showAfter,\n strategy: v.strategy,\n teleported: v.teleported,\n transition: v.transition,\n \"virtual-triggering\": v.virtualTriggering,\n \"z-index\": v.zIndex,\n \"append-to\": v.appendTo\n }, {\n default: me(() => [\n Xe(v.$slots, \"content\", {}, () => [\n v.rawContent ? (ge(), Re(\"span\", {\n key: 0,\n innerHTML: v.content\n }, null, 8, [\"innerHTML\"])) : (ge(), Re(\"span\", { key: 1 }, xt(v.content), 1))\n ]),\n v.showArrow ? (ge(), He(G(BC), {\n key: 0,\n \"arrow-offset\": v.arrowOffset\n }, null, 8, [\"arrow-offset\"])) : Ge(\"v-if\", !0)\n ]),\n _: 3\n }, 8, [\"aria-label\", \"boundaries-padding\", \"content\", \"disabled\", \"effect\", \"enterable\", \"fallback-placements\", \"hide-after\", \"gpu-acceleration\", \"offset\", \"persistent\", \"popper-class\", \"popper-style\", \"placement\", \"popper-options\", \"pure\", \"raw-content\", \"reference-el\", \"trigger-target-el\", \"show-after\", \"strategy\", \"teleported\", \"transition\", \"virtual-triggering\", \"z-index\", \"append-to\"])\n ]),\n _: 3\n }, 8, [\"role\"]));\n }\n});\nvar O2 = /* @__PURE__ */ ot(I2, [[\"__file\", \"tooltip.vue\"]]);\nconst Ff = fn(O2), fy = Symbol(\"buttonGroupContextKey\"), D2 = (n, e) => {\n _E({\n from: \"type.text\",\n replacement: \"link\",\n version: \"3.0.0\",\n scope: \"props\",\n ref: \"https://element-plus.org/en-US/component/button.html#button-attributes\"\n }, ce(() => n.type === \"text\"));\n const t = ht(fy, void 0), i = Lf(\"button\"), { form: r } = gl(), s = ra(ce(() => t == null ? void 0 : t.size)), o = yu(), a = Ae(), c = ou(), l = ce(() => n.type || (t == null ? void 0 : t.type) || \"\"), d = ce(() => {\n var p, u, y;\n return (y = (u = n.autoInsertSpace) != null ? u : (p = i.value) == null ? void 0 : p.autoInsertSpace) != null ? y : !1;\n }), h = ce(() => n.tag === \"button\" ? {\n ariaDisabled: o.value || n.loading,\n disabled: o.value || n.loading,\n autofocus: n.autofocus,\n type: n.nativeType\n } : {}), f = ce(() => {\n var p;\n const u = (p = c.default) == null ? void 0 : p.call(c);\n if (d.value && (u == null ? void 0 : u.length) === 1) {\n const y = u[0];\n if ((y == null ? void 0 : y.type) === u0) {\n const v = y.children;\n return new RegExp(\"^\\\\p{Unified_Ideograph}{2}$\", \"u\").test(v.trim());\n }\n }\n return !1;\n });\n return {\n _disabled: o,\n _size: s,\n _type: l,\n _ref: a,\n _props: h,\n shouldAddSpace: f,\n handleClick: (p) => {\n if (o.value || n.loading) {\n p.stopPropagation();\n return;\n }\n n.nativeType === \"reset\" && (r == null || r.resetFields()), e(\"click\", p);\n }\n };\n}, N2 = [\n \"default\",\n \"primary\",\n \"success\",\n \"warning\",\n \"info\",\n \"danger\",\n \"text\",\n \"\"\n], B2 = [\"button\", \"submit\", \"reset\"], fd = dt({\n size: Do,\n disabled: Boolean,\n type: {\n type: String,\n values: N2,\n default: \"\"\n },\n icon: {\n type: $r\n },\n nativeType: {\n type: String,\n values: B2,\n default: \"button\"\n },\n loading: Boolean,\n loadingIcon: {\n type: $r,\n default: () => P0\n },\n plain: Boolean,\n text: Boolean,\n link: Boolean,\n bg: Boolean,\n autofocus: Boolean,\n round: Boolean,\n circle: Boolean,\n color: String,\n dark: Boolean,\n autoInsertSpace: {\n type: Boolean,\n default: void 0\n },\n tag: {\n type: Je([String, Object]),\n default: \"button\"\n }\n}), F2 = {\n click: (n) => n instanceof MouseEvent\n};\nfunction yn(n, e) {\n z2(n) && (n = \"100%\");\n var t = U2(n);\n return n = e === 360 ? n : Math.min(e, Math.max(0, parseFloat(n))), t && (n = parseInt(String(n * e), 10) / 100), Math.abs(n - e) < 1e-6 ? 1 : (e === 360 ? n = (n < 0 ? n % e + e : n % e) / parseFloat(String(e)) : n = n % e / parseFloat(String(e)), n);\n}\nfunction Vl(n) {\n return Math.min(1, Math.max(0, n));\n}\nfunction z2(n) {\n return typeof n == \"string\" && n.indexOf(\".\") !== -1 && parseFloat(n) === 1;\n}\nfunction U2(n) {\n return typeof n == \"string\" && n.indexOf(\"%\") !== -1;\n}\nfunction py(n) {\n return n = parseFloat(n), (isNaN(n) || n < 0 || n > 1) && (n = 1), n;\n}\nfunction kl(n) {\n return n <= 1 ? \"\".concat(Number(n) * 100, \"%\") : n;\n}\nfunction bs(n) {\n return n.length === 1 ? \"0\" + n : String(n);\n}\nfunction V2(n, e, t) {\n return {\n r: yn(n, 255) * 255,\n g: yn(e, 255) * 255,\n b: yn(t, 255) * 255\n };\n}\nfunction Qm(n, e, t) {\n n = yn(n, 255), e = yn(e, 255), t = yn(t, 255);\n var i = Math.max(n, e, t), r = Math.min(n, e, t), s = 0, o = 0, a = (i + r) / 2;\n if (i === r)\n o = 0, s = 0;\n else {\n var c = i - r;\n switch (o = a > 0.5 ? c / (2 - i - r) : c / (i + r), i) {\n case n:\n s = (e - t) / c + (e < t ? 6 : 0);\n break;\n case e:\n s = (t - n) / c + 2;\n break;\n case t:\n s = (n - e) / c + 4;\n break;\n }\n s /= 6;\n }\n return { h: s, s: o, l: a };\n}\nfunction Qu(n, e, t) {\n return t < 0 && (t += 1), t > 1 && (t -= 1), t < 1 / 6 ? n + (e - n) * (6 * t) : t < 1 / 2 ? e : t < 2 / 3 ? n + (e - n) * (2 / 3 - t) * 6 : n;\n}\nfunction k2(n, e, t) {\n var i, r, s;\n if (n = yn(n, 360), e = yn(e, 100), t = yn(t, 100), e === 0)\n r = t, s = t, i = t;\n else {\n var o = t < 0.5 ? t * (1 + e) : t + e - t * e, a = 2 * t - o;\n i = Qu(a, o, n + 1 / 3), r = Qu(a, o, n), s = Qu(a, o, n - 1 / 3);\n }\n return { r: i * 255, g: r * 255, b: s * 255 };\n}\nfunction eg(n, e, t) {\n n = yn(n, 255), e = yn(e, 255), t = yn(t, 255);\n var i = Math.max(n, e, t), r = Math.min(n, e, t), s = 0, o = i, a = i - r, c = i === 0 ? 0 : a / i;\n if (i === r)\n s = 0;\n else {\n switch (i) {\n case n:\n s = (e - t) / a + (e < t ? 6 : 0);\n break;\n case e:\n s = (t - n) / a + 2;\n break;\n case t:\n s = (n - e) / a + 4;\n break;\n }\n s /= 6;\n }\n return { h: s, s: c, v: o };\n}\nfunction G2(n, e, t) {\n n = yn(n, 360) * 6, e = yn(e, 100), t = yn(t, 100);\n var i = Math.floor(n), r = n - i, s = t * (1 - e), o = t * (1 - r * e), a = t * (1 - (1 - r) * e), c = i % 6, l = [t, o, s, s, a, t][c], d = [a, t, t, o, s, s][c], h = [s, s, a, t, t, o][c];\n return { r: l * 255, g: d * 255, b: h * 255 };\n}\nfunction tg(n, e, t, i) {\n var r = [\n bs(Math.round(n).toString(16)),\n bs(Math.round(e).toString(16)),\n bs(Math.round(t).toString(16))\n ];\n return i && r[0].startsWith(r[0].charAt(1)) && r[1].startsWith(r[1].charAt(1)) && r[2].startsWith(r[2].charAt(1)) ? r[0].charAt(0) + r[1].charAt(0) + r[2].charAt(0) : r.join(\"\");\n}\nfunction H2(n, e, t, i, r) {\n var s = [\n bs(Math.round(n).toString(16)),\n bs(Math.round(e).toString(16)),\n bs(Math.round(t).toString(16)),\n bs(W2(i))\n ];\n return r && s[0].startsWith(s[0].charAt(1)) && s[1].startsWith(s[1].charAt(1)) && s[2].startsWith(s[2].charAt(1)) && s[3].startsWith(s[3].charAt(1)) ? s[0].charAt(0) + s[1].charAt(0) + s[2].charAt(0) + s[3].charAt(0) : s.join(\"\");\n}\nfunction W2(n) {\n return Math.round(parseFloat(n) * 255).toString(16);\n}\nfunction ng(n) {\n return Wn(n) / 255;\n}\nfunction Wn(n) {\n return parseInt(n, 16);\n}\nfunction j2(n) {\n return {\n r: n >> 16,\n g: (n & 65280) >> 8,\n b: n & 255\n };\n}\nvar pd = {\n aliceblue: \"#f0f8ff\",\n antiquewhite: \"#faebd7\",\n aqua: \"#00ffff\",\n aquamarine: \"#7fffd4\",\n azure: \"#f0ffff\",\n beige: \"#f5f5dc\",\n bisque: \"#ffe4c4\",\n black: \"#000000\",\n blanchedalmond: \"#ffebcd\",\n blue: \"#0000ff\",\n blueviolet: \"#8a2be2\",\n brown: \"#a52a2a\",\n burlywood: \"#deb887\",\n cadetblue: \"#5f9ea0\",\n chartreuse: \"#7fff00\",\n chocolate: \"#d2691e\",\n coral: \"#ff7f50\",\n cornflowerblue: \"#6495ed\",\n cornsilk: \"#fff8dc\",\n crimson: \"#dc143c\",\n cyan: \"#00ffff\",\n darkblue: \"#00008b\",\n darkcyan: \"#008b8b\",\n darkgoldenrod: \"#b8860b\",\n darkgray: \"#a9a9a9\",\n darkgreen: \"#006400\",\n darkgrey: \"#a9a9a9\",\n darkkhaki: \"#bdb76b\",\n darkmagenta: \"#8b008b\",\n darkolivegreen: \"#556b2f\",\n darkorange: \"#ff8c00\",\n darkorchid: \"#9932cc\",\n darkred: \"#8b0000\",\n darksalmon: \"#e9967a\",\n darkseagreen: \"#8fbc8f\",\n darkslateblue: \"#483d8b\",\n darkslategray: \"#2f4f4f\",\n darkslategrey: \"#2f4f4f\",\n darkturquoise: \"#00ced1\",\n darkviolet: \"#9400d3\",\n deeppink: \"#ff1493\",\n deepskyblue: \"#00bfff\",\n dimgray: \"#696969\",\n dimgrey: \"#696969\",\n dodgerblue: \"#1e90ff\",\n firebrick: \"#b22222\",\n floralwhite: \"#fffaf0\",\n forestgreen: \"#228b22\",\n fuchsia: \"#ff00ff\",\n gainsboro: \"#dcdcdc\",\n ghostwhite: \"#f8f8ff\",\n goldenrod: \"#daa520\",\n gold: \"#ffd700\",\n gray: \"#808080\",\n green: \"#008000\",\n greenyellow: \"#adff2f\",\n grey: \"#808080\",\n honeydew: \"#f0fff0\",\n hotpink: \"#ff69b4\",\n indianred: \"#cd5c5c\",\n indigo: \"#4b0082\",\n ivory: \"#fffff0\",\n khaki: \"#f0e68c\",\n lavenderblush: \"#fff0f5\",\n lavender: \"#e6e6fa\",\n lawngreen: \"#7cfc00\",\n lemonchiffon: \"#fffacd\",\n lightblue: \"#add8e6\",\n lightcoral: \"#f08080\",\n lightcyan: \"#e0ffff\",\n lightgoldenrodyellow: \"#fafad2\",\n lightgray: \"#d3d3d3\",\n lightgreen: \"#90ee90\",\n lightgrey: \"#d3d3d3\",\n lightpink: \"#ffb6c1\",\n lightsalmon: \"#ffa07a\",\n lightseagreen: \"#20b2aa\",\n lightskyblue: \"#87cefa\",\n lightslategray: \"#778899\",\n lightslategrey: \"#778899\",\n lightsteelblue: \"#b0c4de\",\n lightyellow: \"#ffffe0\",\n lime: \"#00ff00\",\n limegreen: \"#32cd32\",\n linen: \"#faf0e6\",\n magenta: \"#ff00ff\",\n maroon: \"#800000\",\n mediumaquamarine: \"#66cdaa\",\n mediumblue: \"#0000cd\",\n mediumorchid: \"#ba55d3\",\n mediumpurple: \"#9370db\",\n mediumseagreen: \"#3cb371\",\n mediumslateblue: \"#7b68ee\",\n mediumspringgreen: \"#00fa9a\",\n mediumturquoise: \"#48d1cc\",\n mediumvioletred: \"#c71585\",\n midnightblue: \"#191970\",\n mintcream: \"#f5fffa\",\n mistyrose: \"#ffe4e1\",\n moccasin: \"#ffe4b5\",\n navajowhite: \"#ffdead\",\n navy: \"#000080\",\n oldlace: \"#fdf5e6\",\n olive: \"#808000\",\n olivedrab: \"#6b8e23\",\n orange: \"#ffa500\",\n orangered: \"#ff4500\",\n orchid: \"#da70d6\",\n palegoldenrod: \"#eee8aa\",\n palegreen: \"#98fb98\",\n paleturquoise: \"#afeeee\",\n palevioletred: \"#db7093\",\n papayawhip: \"#ffefd5\",\n peachpuff: \"#ffdab9\",\n peru: \"#cd853f\",\n pink: \"#ffc0cb\",\n plum: \"#dda0dd\",\n powderblue: \"#b0e0e6\",\n purple: \"#800080\",\n rebeccapurple: \"#663399\",\n red: \"#ff0000\",\n rosybrown: \"#bc8f8f\",\n royalblue: \"#4169e1\",\n saddlebrown: \"#8b4513\",\n salmon: \"#fa8072\",\n sandybrown: \"#f4a460\",\n seagreen: \"#2e8b57\",\n seashell: \"#fff5ee\",\n sienna: \"#a0522d\",\n silver: \"#c0c0c0\",\n skyblue: \"#87ceeb\",\n slateblue: \"#6a5acd\",\n slategray: \"#708090\",\n slategrey: \"#708090\",\n snow: \"#fffafa\",\n springgreen: \"#00ff7f\",\n steelblue: \"#4682b4\",\n tan: \"#d2b48c\",\n teal: \"#008080\",\n thistle: \"#d8bfd8\",\n tomato: \"#ff6347\",\n turquoise: \"#40e0d0\",\n violet: \"#ee82ee\",\n wheat: \"#f5deb3\",\n white: \"#ffffff\",\n whitesmoke: \"#f5f5f5\",\n yellow: \"#ffff00\",\n yellowgreen: \"#9acd32\"\n};\nfunction $2(n) {\n var e = { r: 0, g: 0, b: 0 }, t = 1, i = null, r = null, s = null, o = !1, a = !1;\n return typeof n == \"string\" && (n = Y2(n)), typeof n == \"object\" && (Wi(n.r) && Wi(n.g) && Wi(n.b) ? (e = V2(n.r, n.g, n.b), o = !0, a = String(n.r).substr(-1) === \"%\" ? \"prgb\" : \"rgb\") : Wi(n.h) && Wi(n.s) && Wi(n.v) ? (i = kl(n.s), r = kl(n.v), e = G2(n.h, i, r), o = !0, a = \"hsv\") : Wi(n.h) && Wi(n.s) && Wi(n.l) && (i = kl(n.s), s = kl(n.l), e = k2(n.h, i, s), o = !0, a = \"hsl\"), Object.prototype.hasOwnProperty.call(n, \"a\") && (t = n.a)), t = py(t), {\n ok: o,\n format: n.format || a,\n r: Math.min(255, Math.max(e.r, 0)),\n g: Math.min(255, Math.max(e.g, 0)),\n b: Math.min(255, Math.max(e.b, 0)),\n a: t\n };\n}\nvar Z2 = \"[-\\\\+]?\\\\d+%?\", X2 = \"[-\\\\+]?\\\\d*\\\\.\\\\d+%?\", Fr = \"(?:\".concat(X2, \")|(?:\").concat(Z2, \")\"), eh = \"[\\\\s|\\\\(]+(\".concat(Fr, \")[,|\\\\s]+(\").concat(Fr, \")[,|\\\\s]+(\").concat(Fr, \")\\\\s*\\\\)?\"), th = \"[\\\\s|\\\\(]+(\".concat(Fr, \")[,|\\\\s]+(\").concat(Fr, \")[,|\\\\s]+(\").concat(Fr, \")[,|\\\\s]+(\").concat(Fr, \")\\\\s*\\\\)?\"), pi = {\n CSS_UNIT: new RegExp(Fr),\n rgb: new RegExp(\"rgb\" + eh),\n rgba: new RegExp(\"rgba\" + th),\n hsl: new RegExp(\"hsl\" + eh),\n hsla: new RegExp(\"hsla\" + th),\n hsv: new RegExp(\"hsv\" + eh),\n hsva: new RegExp(\"hsva\" + th),\n hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,\n hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,\n hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,\n hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/\n};\nfunction Y2(n) {\n if (n = n.trim().toLowerCase(), n.length === 0)\n return !1;\n var e = !1;\n if (pd[n])\n n = pd[n], e = !0;\n else if (n === \"transparent\")\n return { r: 0, g: 0, b: 0, a: 0, format: \"name\" };\n var t = pi.rgb.exec(n);\n return t ? { r: t[1], g: t[2], b: t[3] } : (t = pi.rgba.exec(n), t ? { r: t[1], g: t[2], b: t[3], a: t[4] } : (t = pi.hsl.exec(n), t ? { h: t[1], s: t[2], l: t[3] } : (t = pi.hsla.exec(n), t ? { h: t[1], s: t[2], l: t[3], a: t[4] } : (t = pi.hsv.exec(n), t ? { h: t[1], s: t[2], v: t[3] } : (t = pi.hsva.exec(n), t ? { h: t[1], s: t[2], v: t[3], a: t[4] } : (t = pi.hex8.exec(n), t ? {\n r: Wn(t[1]),\n g: Wn(t[2]),\n b: Wn(t[3]),\n a: ng(t[4]),\n format: e ? \"name\" : \"hex8\"\n } : (t = pi.hex6.exec(n), t ? {\n r: Wn(t[1]),\n g: Wn(t[2]),\n b: Wn(t[3]),\n format: e ? \"name\" : \"hex\"\n } : (t = pi.hex4.exec(n), t ? {\n r: Wn(t[1] + t[1]),\n g: Wn(t[2] + t[2]),\n b: Wn(t[3] + t[3]),\n a: ng(t[4] + t[4]),\n format: e ? \"name\" : \"hex8\"\n } : (t = pi.hex3.exec(n), t ? {\n r: Wn(t[1] + t[1]),\n g: Wn(t[2] + t[2]),\n b: Wn(t[3] + t[3]),\n format: e ? \"name\" : \"hex\"\n } : !1)))))))));\n}\nfunction Wi(n) {\n return !!pi.CSS_UNIT.exec(String(n));\n}\nvar J2 = (\n /** @class */\n function() {\n function n(e, t) {\n e === void 0 && (e = \"\"), t === void 0 && (t = {});\n var i;\n if (e instanceof n)\n return e;\n typeof e == \"number\" && (e = j2(e)), this.originalInput = e;\n var r = $2(e);\n this.originalInput = e, this.r = r.r, this.g = r.g, this.b = r.b, this.a = r.a, this.roundA = Math.round(100 * this.a) / 100, this.format = (i = t.format) !== null && i !== void 0 ? i : r.format, this.gradientType = t.gradientType, this.r < 1 && (this.r = Math.round(this.r)), this.g < 1 && (this.g = Math.round(this.g)), this.b < 1 && (this.b = Math.round(this.b)), this.isValid = r.ok;\n }\n return n.prototype.isDark = function() {\n return this.getBrightness() < 128;\n }, n.prototype.isLight = function() {\n return !this.isDark();\n }, n.prototype.getBrightness = function() {\n var e = this.toRgb();\n return (e.r * 299 + e.g * 587 + e.b * 114) / 1e3;\n }, n.prototype.getLuminance = function() {\n var e = this.toRgb(), t, i, r, s = e.r / 255, o = e.g / 255, a = e.b / 255;\n return s <= 0.03928 ? t = s / 12.92 : t = Math.pow((s + 0.055) / 1.055, 2.4), o <= 0.03928 ? i = o / 12.92 : i = Math.pow((o + 0.055) / 1.055, 2.4), a <= 0.03928 ? r = a / 12.92 : r = Math.pow((a + 0.055) / 1.055, 2.4), 0.2126 * t + 0.7152 * i + 0.0722 * r;\n }, n.prototype.getAlpha = function() {\n return this.a;\n }, n.prototype.setAlpha = function(e) {\n return this.a = py(e), this.roundA = Math.round(100 * this.a) / 100, this;\n }, n.prototype.isMonochrome = function() {\n var e = this.toHsl().s;\n return e === 0;\n }, n.prototype.toHsv = function() {\n var e = eg(this.r, this.g, this.b);\n return { h: e.h * 360, s: e.s, v: e.v, a: this.a };\n }, n.prototype.toHsvString = function() {\n var e = eg(this.r, this.g, this.b), t = Math.round(e.h * 360), i = Math.round(e.s * 100), r = Math.round(e.v * 100);\n return this.a === 1 ? \"hsv(\".concat(t, \", \").concat(i, \"%, \").concat(r, \"%)\") : \"hsva(\".concat(t, \", \").concat(i, \"%, \").concat(r, \"%, \").concat(this.roundA, \")\");\n }, n.prototype.toHsl = function() {\n var e = Qm(this.r, this.g, this.b);\n return { h: e.h * 360, s: e.s, l: e.l, a: this.a };\n }, n.prototype.toHslString = function() {\n var e = Qm(this.r, this.g, this.b), t = Math.round(e.h * 360), i = Math.round(e.s * 100), r = Math.round(e.l * 100);\n return this.a === 1 ? \"hsl(\".concat(t, \", \").concat(i, \"%, \").concat(r, \"%)\") : \"hsla(\".concat(t, \", \").concat(i, \"%, \").concat(r, \"%, \").concat(this.roundA, \")\");\n }, n.prototype.toHex = function(e) {\n return e === void 0 && (e = !1), tg(this.r, this.g, this.b, e);\n }, n.prototype.toHexString = function(e) {\n return e === void 0 && (e = !1), \"#\" + this.toHex(e);\n }, n.prototype.toHex8 = function(e) {\n return e === void 0 && (e = !1), H2(this.r, this.g, this.b, this.a, e);\n }, n.prototype.toHex8String = function(e) {\n return e === void 0 && (e = !1), \"#\" + this.toHex8(e);\n }, n.prototype.toHexShortString = function(e) {\n return e === void 0 && (e = !1), this.a === 1 ? this.toHexString(e) : this.toHex8String(e);\n }, n.prototype.toRgb = function() {\n return {\n r: Math.round(this.r),\n g: Math.round(this.g),\n b: Math.round(this.b),\n a: this.a\n };\n }, n.prototype.toRgbString = function() {\n var e = Math.round(this.r), t = Math.round(this.g), i = Math.round(this.b);\n return this.a === 1 ? \"rgb(\".concat(e, \", \").concat(t, \", \").concat(i, \")\") : \"rgba(\".concat(e, \", \").concat(t, \", \").concat(i, \", \").concat(this.roundA, \")\");\n }, n.prototype.toPercentageRgb = function() {\n var e = function(t) {\n return \"\".concat(Math.round(yn(t, 255) * 100), \"%\");\n };\n return {\n r: e(this.r),\n g: e(this.g),\n b: e(this.b),\n a: this.a\n };\n }, n.prototype.toPercentageRgbString = function() {\n var e = function(t) {\n return Math.round(yn(t, 255) * 100);\n };\n return this.a === 1 ? \"rgb(\".concat(e(this.r), \"%, \").concat(e(this.g), \"%, \").concat(e(this.b), \"%)\") : \"rgba(\".concat(e(this.r), \"%, \").concat(e(this.g), \"%, \").concat(e(this.b), \"%, \").concat(this.roundA, \")\");\n }, n.prototype.toName = function() {\n if (this.a === 0)\n return \"transparent\";\n if (this.a < 1)\n return !1;\n for (var e = \"#\" + tg(this.r, this.g, this.b, !1), t = 0, i = Object.entries(pd); t < i.length; t++) {\n var r = i[t], s = r[0], o = r[1];\n if (e === o)\n return s;\n }\n return !1;\n }, n.prototype.toString = function(e) {\n var t = !!e;\n e = e ?? this.format;\n var i = !1, r = this.a < 1 && this.a >= 0, s = !t && r && (e.startsWith(\"hex\") || e === \"name\");\n return s ? e === \"name\" && this.a === 0 ? this.toName() : this.toRgbString() : (e === \"rgb\" && (i = this.toRgbString()), e === \"prgb\" && (i = this.toPercentageRgbString()), (e === \"hex\" || e === \"hex6\") && (i = this.toHexString()), e === \"hex3\" && (i = this.toHexString(!0)), e === \"hex4\" && (i = this.toHex8String(!0)), e === \"hex8\" && (i = this.toHex8String()), e === \"name\" && (i = this.toName()), e === \"hsl\" && (i = this.toHslString()), e === \"hsv\" && (i = this.toHsvString()), i || this.toHexString());\n }, n.prototype.toNumber = function() {\n return (Math.round(this.r) << 16) + (Math.round(this.g) << 8) + Math.round(this.b);\n }, n.prototype.clone = function() {\n return new n(this.toString());\n }, n.prototype.lighten = function(e) {\n e === void 0 && (e = 10);\n var t = this.toHsl();\n return t.l += e / 100, t.l = Vl(t.l), new n(t);\n }, n.prototype.brighten = function(e) {\n e === void 0 && (e = 10);\n var t = this.toRgb();\n return t.r = Math.max(0, Math.min(255, t.r - Math.round(255 * -(e / 100)))), t.g = Math.max(0, Math.min(255, t.g - Math.round(255 * -(e / 100)))), t.b = Math.max(0, Math.min(255, t.b - Math.round(255 * -(e / 100)))), new n(t);\n }, n.prototype.darken = function(e) {\n e === void 0 && (e = 10);\n var t = this.toHsl();\n return t.l -= e / 100, t.l = Vl(t.l), new n(t);\n }, n.prototype.tint = function(e) {\n return e === void 0 && (e = 10), this.mix(\"white\", e);\n }, n.prototype.shade = function(e) {\n return e === void 0 && (e = 10), this.mix(\"black\", e);\n }, n.prototype.desaturate = function(e) {\n e === void 0 && (e = 10);\n var t = this.toHsl();\n return t.s -= e / 100, t.s = Vl(t.s), new n(t);\n }, n.prototype.saturate = function(e) {\n e === void 0 && (e = 10);\n var t = this.toHsl();\n return t.s += e / 100, t.s = Vl(t.s), new n(t);\n }, n.prototype.greyscale = function() {\n return this.desaturate(100);\n }, n.prototype.spin = function(e) {\n var t = this.toHsl(), i = (t.h + e) % 360;\n return t.h = i < 0 ? 360 + i : i, new n(t);\n }, n.prototype.mix = function(e, t) {\n t === void 0 && (t = 50);\n var i = this.toRgb(), r = new n(e).toRgb(), s = t / 100, o = {\n r: (r.r - i.r) * s + i.r,\n g: (r.g - i.g) * s + i.g,\n b: (r.b - i.b) * s + i.b,\n a: (r.a - i.a) * s + i.a\n };\n return new n(o);\n }, n.prototype.analogous = function(e, t) {\n e === void 0 && (e = 6), t === void 0 && (t = 30);\n var i = this.toHsl(), r = 360 / t, s = [this];\n for (i.h = (i.h - (r * e >> 1) + 720) % 360; --e; )\n i.h = (i.h + r) % 360, s.push(new n(i));\n return s;\n }, n.prototype.complement = function() {\n var e = this.toHsl();\n return e.h = (e.h + 180) % 360, new n(e);\n }, n.prototype.monochromatic = function(e) {\n e === void 0 && (e = 6);\n for (var t = this.toHsv(), i = t.h, r = t.s, s = t.v, o = [], a = 1 / e; e--; )\n o.push(new n({ h: i, s: r, v: s })), s = (s + a) % 1;\n return o;\n }, n.prototype.splitcomplement = function() {\n var e = this.toHsl(), t = e.h;\n return [\n this,\n new n({ h: (t + 72) % 360, s: e.s, l: e.l }),\n new n({ h: (t + 216) % 360, s: e.s, l: e.l })\n ];\n }, n.prototype.onBackground = function(e) {\n var t = this.toRgb(), i = new n(e).toRgb(), r = t.a + i.a * (1 - t.a);\n return new n({\n r: (t.r * t.a + i.r * i.a * (1 - t.a)) / r,\n g: (t.g * t.a + i.g * i.a * (1 - t.a)) / r,\n b: (t.b * t.a + i.b * i.a * (1 - t.a)) / r,\n a: r\n });\n }, n.prototype.triad = function() {\n return this.polyad(3);\n }, n.prototype.tetrad = function() {\n return this.polyad(4);\n }, n.prototype.polyad = function(e) {\n for (var t = this.toHsl(), i = t.h, r = [this], s = 360 / e, o = 1; o < e; o++)\n r.push(new n({ h: (i + o * s) % 360, s: t.s, l: t.l }));\n return r;\n }, n.prototype.equals = function(e) {\n return this.toRgbString() === new n(e).toRgbString();\n }, n;\n }()\n);\nfunction wr(n, e = 20) {\n return n.mix(\"#141414\", e).toString();\n}\nfunction K2(n) {\n const e = yu(), t = it(\"button\");\n return ce(() => {\n let i = {}, r = n.color;\n if (r) {\n const s = r.match(/var\\((.*?)\\)/);\n s && (r = window.getComputedStyle(window.document.documentElement).getPropertyValue(s[1]));\n const o = new J2(r), a = n.dark ? o.tint(20).toString() : wr(o, 20);\n if (n.plain)\n i = t.cssVarBlock({\n \"bg-color\": n.dark ? wr(o, 90) : o.tint(90).toString(),\n \"text-color\": r,\n \"border-color\": n.dark ? wr(o, 50) : o.tint(50).toString(),\n \"hover-text-color\": `var(${t.cssVarName(\"color-white\")})`,\n \"hover-bg-color\": r,\n \"hover-border-color\": r,\n \"active-bg-color\": a,\n \"active-text-color\": `var(${t.cssVarName(\"color-white\")})`,\n \"active-border-color\": a\n }), e.value && (i[t.cssVarBlockName(\"disabled-bg-color\")] = n.dark ? wr(o, 90) : o.tint(90).toString(), i[t.cssVarBlockName(\"disabled-text-color\")] = n.dark ? wr(o, 50) : o.tint(50).toString(), i[t.cssVarBlockName(\"disabled-border-color\")] = n.dark ? wr(o, 80) : o.tint(80).toString());\n else {\n const c = n.dark ? wr(o, 30) : o.tint(30).toString(), l = o.isDark() ? `var(${t.cssVarName(\"color-white\")})` : `var(${t.cssVarName(\"color-black\")})`;\n if (i = t.cssVarBlock({\n \"bg-color\": r,\n \"text-color\": l,\n \"border-color\": r,\n \"hover-bg-color\": c,\n \"hover-text-color\": l,\n \"hover-border-color\": c,\n \"active-bg-color\": a,\n \"active-border-color\": a\n }), e.value) {\n const d = n.dark ? wr(o, 50) : o.tint(50).toString();\n i[t.cssVarBlockName(\"disabled-bg-color\")] = d, i[t.cssVarBlockName(\"disabled-text-color\")] = n.dark ? \"rgba(255, 255, 255, 0.5)\" : `var(${t.cssVarName(\"color-white\")})`, i[t.cssVarBlockName(\"disabled-border-color\")] = d;\n }\n }\n }\n return i;\n });\n}\nconst q2 = De({\n name: \"ElButton\"\n}), Q2 = /* @__PURE__ */ De({\n ...q2,\n props: fd,\n emits: F2,\n setup(n, { expose: e, emit: t }) {\n const i = n, r = K2(i), s = it(\"button\"), { _ref: o, _size: a, _type: c, _disabled: l, _props: d, shouldAddSpace: h, handleClick: f } = D2(i, t), g = ce(() => [\n s.b(),\n s.m(c.value),\n s.m(a.value),\n s.is(\"disabled\", l.value),\n s.is(\"loading\", i.loading),\n s.is(\"plain\", i.plain),\n s.is(\"round\", i.round),\n s.is(\"circle\", i.circle),\n s.is(\"text\", i.text),\n s.is(\"link\", i.link),\n s.is(\"has-bg\", i.bg)\n ]);\n return e({\n ref: o,\n size: a,\n type: c,\n disabled: l,\n shouldAddSpace: h\n }), (p, u) => (ge(), He(Nn(p.tag), Ii({\n ref_key: \"_ref\",\n ref: o\n }, G(d), {\n class: G(g),\n style: G(r),\n onClick: G(f)\n }), {\n default: me(() => [\n p.loading ? (ge(), Re(Vt, { key: 0 }, [\n p.$slots.loading ? Xe(p.$slots, \"loading\", { key: 0 }) : (ge(), He(G(Dt), {\n key: 1,\n class: Le(G(s).is(\"loading\"))\n }, {\n default: me(() => [\n (ge(), He(Nn(p.loadingIcon)))\n ]),\n _: 1\n }, 8, [\"class\"]))\n ], 64)) : p.icon || p.$slots.icon ? (ge(), He(G(Dt), { key: 1 }, {\n default: me(() => [\n p.icon ? (ge(), He(Nn(p.icon), { key: 0 })) : Xe(p.$slots, \"icon\", { key: 1 })\n ]),\n _: 3\n })) : Ge(\"v-if\", !0),\n p.$slots.default ? (ge(), Re(\"span\", {\n key: 2,\n class: Le({ [G(s).em(\"text\", \"expand\")]: G(h) })\n }, [\n Xe(p.$slots, \"default\")\n ], 2)) : Ge(\"v-if\", !0)\n ]),\n _: 3\n }, 16, [\"class\", \"style\", \"onClick\"]));\n }\n});\nvar eL = /* @__PURE__ */ ot(Q2, [[\"__file\", \"button.vue\"]]);\nconst tL = {\n size: fd.size,\n type: fd.type\n}, nL = De({\n name: \"ElButtonGroup\"\n}), iL = /* @__PURE__ */ De({\n ...nL,\n props: tL,\n setup(n) {\n const e = n;\n dn(fy, Yn({\n size: Dn(e, \"size\"),\n type: Dn(e, \"type\")\n }));\n const t = it(\"button\");\n return (i, r) => (ge(), Re(\"div\", {\n class: Le(G(t).b(\"group\"))\n }, [\n Xe(i.$slots, \"default\")\n ], 2));\n }\n});\nvar my = /* @__PURE__ */ ot(iL, [[\"__file\", \"button-group.vue\"]]);\nconst sa = fn(eL, {\n ButtonGroup: my\n});\nmr(my);\nvar Nr = typeof globalThis < \"u\" ? globalThis : typeof window < \"u\" ? window : typeof global < \"u\" ? global : typeof self < \"u\" ? self : {};\nfunction rL(n) {\n return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, \"default\") ? n.default : n;\n}\nfunction xu(n) {\n if (n.__esModule) return n;\n var e = n.default;\n if (typeof e == \"function\") {\n var t = function i() {\n return this instanceof i ? Reflect.construct(e, arguments, this.constructor) : e.apply(this, arguments);\n };\n t.prototype = e.prototype;\n } else t = {};\n return Object.defineProperty(t, \"__esModule\", { value: !0 }), Object.keys(n).forEach(function(i) {\n var r = Object.getOwnPropertyDescriptor(n, i);\n Object.defineProperty(t, i, r.get ? r : {\n enumerable: !0,\n get: function() {\n return n[i];\n }\n });\n }), t;\n}\nconst Ir = /* @__PURE__ */ new Map();\nif (Qt) {\n let n;\n document.addEventListener(\"mousedown\", (e) => n = e), document.addEventListener(\"mouseup\", (e) => {\n if (n) {\n for (const t of Ir.values())\n for (const { documentHandler: i } of t)\n i(e, n);\n n = void 0;\n }\n });\n}\nfunction ig(n, e) {\n let t = [];\n return Array.isArray(e.arg) ? t = e.arg : Ms(e.arg) && t.push(e.arg), function(i, r) {\n const s = e.instance.popperRef, o = i.target, a = r == null ? void 0 : r.target, c = !e || !e.instance, l = !o || !a, d = n.contains(o) || n.contains(a), h = n === o, f = t.length && t.some((p) => p == null ? void 0 : p.contains(o)) || t.length && t.includes(a), g = s && (s.contains(o) || s.contains(a));\n c || l || d || h || f || g || e.value(i, r);\n };\n}\nconst sL = {\n beforeMount(n, e) {\n Ir.has(n) || Ir.set(n, []), Ir.get(n).push({\n documentHandler: ig(n, e),\n bindingFn: e.value\n });\n },\n updated(n, e) {\n Ir.has(n) || Ir.set(n, []);\n const t = Ir.get(n), i = t.findIndex((s) => s.bindingFn === e.oldValue), r = {\n documentHandler: ig(n, e),\n bindingFn: e.value\n };\n i >= 0 ? t.splice(i, 1, r) : t.push(r);\n },\n unmounted(n) {\n Ir.delete(n);\n }\n}, oL = 100, aL = 600, rg = {\n beforeMount(n, e) {\n const t = e.value, { interval: i = oL, delay: r = aL } = Tn(t) ? {} : t;\n let s, o;\n const a = () => Tn(t) ? t() : t.handler(), c = () => {\n o && (clearTimeout(o), o = void 0), s && (clearInterval(s), s = void 0);\n };\n n.addEventListener(\"mousedown\", (l) => {\n l.button === 0 && (c(), a(), document.addEventListener(\"mouseup\", () => c(), {\n once: !0\n }), o = setTimeout(() => {\n s = setInterval(() => {\n a();\n }, i);\n }, r));\n });\n }\n}, md = dt({\n type: {\n type: String,\n values: [\"primary\", \"success\", \"info\", \"warning\", \"danger\"],\n default: \"primary\"\n },\n closable: Boolean,\n disableTransitions: Boolean,\n hit: Boolean,\n color: String,\n size: {\n type: String,\n values: N0\n },\n effect: {\n type: String,\n values: [\"dark\", \"light\", \"plain\"],\n default: \"light\"\n },\n round: Boolean\n}), lL = {\n close: (n) => n instanceof MouseEvent,\n click: (n) => n instanceof MouseEvent\n}, cL = De({\n name: \"ElTag\"\n}), uL = /* @__PURE__ */ De({\n ...cL,\n props: md,\n emits: lL,\n setup(n, { emit: e }) {\n const t = n, i = ra(), r = it(\"tag\"), s = ce(() => {\n const { type: l, hit: d, effect: h, closable: f, round: g } = t;\n return [\n r.b(),\n r.is(\"closable\", f),\n r.m(l || \"primary\"),\n r.m(i.value),\n r.m(h),\n r.is(\"hit\", d),\n r.is(\"round\", g)\n ];\n }), o = (l) => {\n e(\"close\", l);\n }, a = (l) => {\n e(\"click\", l);\n }, c = (l) => {\n l.component.subTree.component.bum = null;\n };\n return (l, d) => l.disableTransitions ? (ge(), Re(\"span\", {\n key: 0,\n class: Le(G(s)),\n style: Pt({ backgroundColor: l.color }),\n onClick: a\n }, [\n Fe(\"span\", {\n class: Le(G(r).e(\"content\"))\n }, [\n Xe(l.$slots, \"default\")\n ], 2),\n l.closable ? (ge(), He(G(Dt), {\n key: 0,\n class: Le(G(r).e(\"close\")),\n onClick: cn(o, [\"stop\"])\n }, {\n default: me(() => [\n ae(G(cd))\n ]),\n _: 1\n }, 8, [\"class\", \"onClick\"])) : Ge(\"v-if\", !0)\n ], 6)) : (ge(), He(hl, {\n key: 1,\n name: `${G(r).namespace.value}-zoom-in-center`,\n appear: \"\",\n onVnodeMounted: c\n }, {\n default: me(() => [\n Fe(\"span\", {\n class: Le(G(s)),\n style: Pt({ backgroundColor: l.color }),\n onClick: a\n }, [\n Fe(\"span\", {\n class: Le(G(r).e(\"content\"))\n }, [\n Xe(l.$slots, \"default\")\n ], 2),\n l.closable ? (ge(), He(G(Dt), {\n key: 0,\n class: Le(G(r).e(\"close\")),\n onClick: cn(o, [\"stop\"])\n }, {\n default: me(() => [\n ae(G(cd))\n ]),\n _: 1\n }, 8, [\"class\", \"onClick\"])) : Ge(\"v-if\", !0)\n ], 6)\n ]),\n _: 3\n }, 8, [\"name\"]));\n }\n});\nvar hL = /* @__PURE__ */ ot(uL, [[\"__file\", \"tag.vue\"]]);\nconst dL = fn(hL), gy = Symbol(\"rowContextKey\"), fL = [\n \"start\",\n \"center\",\n \"end\",\n \"space-around\",\n \"space-between\",\n \"space-evenly\"\n], pL = [\"top\", \"middle\", \"bottom\"], mL = dt({\n tag: {\n type: String,\n default: \"div\"\n },\n gutter: {\n type: Number,\n default: 0\n },\n justify: {\n type: String,\n values: fL,\n default: \"start\"\n },\n align: {\n type: String,\n values: pL\n }\n}), gL = De({\n name: \"ElRow\"\n}), vL = /* @__PURE__ */ De({\n ...gL,\n props: mL,\n setup(n) {\n const e = n, t = it(\"row\"), i = ce(() => e.gutter);\n dn(gy, {\n gutter: i\n });\n const r = ce(() => {\n const o = {};\n return e.gutter && (o.marginRight = o.marginLeft = `-${e.gutter / 2}px`), o;\n }), s = ce(() => [\n t.b(),\n t.is(`justify-${e.justify}`, e.justify !== \"start\"),\n t.is(`align-${e.align}`, !!e.align)\n ]);\n return (o, a) => (ge(), He(Nn(o.tag), {\n class: Le(G(s)),\n style: Pt(G(r))\n }, {\n default: me(() => [\n Xe(o.$slots, \"default\")\n ]),\n _: 3\n }, 8, [\"class\", \"style\"]));\n }\n});\nvar yL = /* @__PURE__ */ ot(vL, [[\"__file\", \"row.vue\"]]);\nconst Gi = fn(yL), bL = dt({\n tag: {\n type: String,\n default: \"div\"\n },\n span: {\n type: Number,\n default: 24\n },\n offset: {\n type: Number,\n default: 0\n },\n pull: {\n type: Number,\n default: 0\n },\n push: {\n type: Number,\n default: 0\n },\n xs: {\n type: Je([Number, Object]),\n default: () => er({})\n },\n sm: {\n type: Je([Number, Object]),\n default: () => er({})\n },\n md: {\n type: Je([Number, Object]),\n default: () => er({})\n },\n lg: {\n type: Je([Number, Object]),\n default: () => er({})\n },\n xl: {\n type: Je([Number, Object]),\n default: () => er({})\n }\n}), xL = De({\n name: \"ElCol\"\n}), wL = /* @__PURE__ */ De({\n ...xL,\n props: bL,\n setup(n) {\n const e = n, { gutter: t } = ht(gy, { gutter: ce(() => 0) }), i = it(\"col\"), r = ce(() => {\n const o = {};\n return t.value && (o.paddingLeft = o.paddingRight = `${t.value / 2}px`), o;\n }), s = ce(() => {\n const o = [];\n return [\"span\", \"offset\", \"pull\", \"push\"].forEach((l) => {\n const d = e[l];\n Mt(d) && (l === \"span\" ? o.push(i.b(`${e[l]}`)) : d > 0 && o.push(i.b(`${l}-${e[l]}`)));\n }), [\"xs\", \"sm\", \"md\", \"lg\", \"xl\"].forEach((l) => {\n Mt(e[l]) ? o.push(i.b(`${l}-${e[l]}`)) : An(e[l]) && Object.entries(e[l]).forEach(([d, h]) => {\n o.push(d !== \"span\" ? i.b(`${l}-${d}-${h}`) : i.b(`${l}-${h}`));\n });\n }), t.value && o.push(i.is(\"guttered\")), [i.b(), o];\n });\n return (o, a) => (ge(), He(Nn(o.tag), {\n class: Le(G(s)),\n style: Pt(G(r))\n }, {\n default: me(() => [\n Xe(o.$slots, \"default\")\n ]),\n _: 3\n }, 8, [\"class\", \"style\"]));\n }\n});\nvar ML = /* @__PURE__ */ ot(wL, [[\"__file\", \"col.vue\"]]);\nconst _i = fn(ML), sg = (n) => Mt(n) || Ln(n) || Bn(n), _L = dt({\n accordion: Boolean,\n modelValue: {\n type: Je([Array, String, Number]),\n default: () => er([])\n }\n}), SL = {\n [It]: sg,\n [qr]: sg\n}, vy = Symbol(\"collapseContextKey\"), TL = (n, e) => {\n const t = Ae(Li(n.modelValue)), i = (s) => {\n t.value = s;\n const o = n.accordion ? t.value[0] : t.value;\n e(It, o), e(qr, o);\n }, r = (s) => {\n if (n.accordion)\n i([t.value[0] === s ? \"\" : s]);\n else {\n const o = [...t.value], a = o.indexOf(s);\n a > -1 ? o.splice(a, 1) : o.push(s), i(o);\n }\n };\n return qe(() => n.modelValue, () => t.value = Li(n.modelValue), { deep: !0 }), dn(vy, {\n activeNames: t,\n handleItemClick: r\n }), {\n activeNames: t,\n setActiveNames: i\n };\n}, EL = () => {\n const n = it(\"collapse\");\n return {\n rootKls: ce(() => n.b())\n };\n}, AL = De({\n name: \"ElCollapse\"\n}), CL = /* @__PURE__ */ De({\n ...AL,\n props: _L,\n emits: SL,\n setup(n, { expose: e, emit: t }) {\n const i = n, { activeNames: r, setActiveNames: s } = TL(i, t), { rootKls: o } = EL();\n return e({\n activeNames: r,\n setActiveNames: s\n }), (a, c) => (ge(), Re(\"div\", {\n class: Le(G(o))\n }, [\n Xe(a.$slots, \"default\")\n ], 2));\n }\n});\nvar LL = /* @__PURE__ */ ot(CL, [[\"__file\", \"collapse.vue\"]]);\nconst RL = De({\n name: \"ElCollapseTransition\"\n}), PL = /* @__PURE__ */ De({\n ...RL,\n setup(n) {\n const e = it(\"collapse-transition\"), t = (r) => {\n r.style.maxHeight = \"\", r.style.overflow = r.dataset.oldOverflow, r.style.paddingTop = r.dataset.oldPaddingTop, r.style.paddingBottom = r.dataset.oldPaddingBottom;\n }, i = {\n beforeEnter(r) {\n r.dataset || (r.dataset = {}), r.dataset.oldPaddingTop = r.style.paddingTop, r.dataset.oldPaddingBottom = r.style.paddingBottom, r.style.height && (r.dataset.elExistsHeight = r.style.height), r.style.maxHeight = 0, r.style.paddingTop = 0, r.style.paddingBottom = 0;\n },\n enter(r) {\n requestAnimationFrame(() => {\n r.dataset.oldOverflow = r.style.overflow, r.dataset.elExistsHeight ? r.style.maxHeight = r.dataset.elExistsHeight : r.scrollHeight !== 0 ? r.style.maxHeight = `${r.scrollHeight}px` : r.style.maxHeight = 0, r.style.paddingTop = r.dataset.oldPaddingTop, r.style.paddingBottom = r.dataset.oldPaddingBottom, r.style.overflow = \"hidden\";\n });\n },\n afterEnter(r) {\n r.style.maxHeight = \"\", r.style.overflow = r.dataset.oldOverflow;\n },\n enterCancelled(r) {\n t(r);\n },\n beforeLeave(r) {\n r.dataset || (r.dataset = {}), r.dataset.oldPaddingTop = r.style.paddingTop, r.dataset.oldPaddingBottom = r.style.paddingBottom, r.dataset.oldOverflow = r.style.overflow, r.style.maxHeight = `${r.scrollHeight}px`, r.style.overflow = \"hidden\";\n },\n leave(r) {\n r.scrollHeight !== 0 && (r.style.maxHeight = 0, r.style.paddingTop = 0, r.style.paddingBottom = 0);\n },\n afterLeave(r) {\n t(r);\n },\n leaveCancelled(r) {\n t(r);\n }\n };\n return (r, s) => (ge(), He(hl, Ii({\n name: G(e).b()\n }, o1(i)), {\n default: me(() => [\n Xe(r.$slots, \"default\")\n ]),\n _: 3\n }, 16, [\"name\"]));\n }\n});\nvar IL = /* @__PURE__ */ ot(PL, [[\"__file\", \"collapse-transition.vue\"]]);\nconst OL = fn(IL), DL = dt({\n title: {\n type: String,\n default: \"\"\n },\n name: {\n type: Je([String, Number]),\n default: void 0\n },\n icon: {\n type: $r,\n default: jr\n },\n disabled: Boolean\n}), NL = (n) => {\n const e = ht(vy), { namespace: t } = it(\"collapse\"), i = Ae(!1), r = Ae(!1), s = Cf(), o = ce(() => s.current++), a = ce(() => {\n var f;\n return (f = n.name) != null ? f : `${t.value}-id-${s.prefix}-${G(o)}`;\n }), c = ce(() => e == null ? void 0 : e.activeNames.value.includes(G(a)));\n return {\n focusing: i,\n id: o,\n isActive: c,\n handleFocus: () => {\n setTimeout(() => {\n r.value ? r.value = !1 : i.value = !0;\n }, 50);\n },\n handleHeaderClick: () => {\n n.disabled || (e == null || e.handleItemClick(G(a)), i.value = !1, r.value = !0);\n },\n handleEnterClick: () => {\n e == null || e.handleItemClick(G(a));\n }\n };\n}, BL = (n, { focusing: e, isActive: t, id: i }) => {\n const r = it(\"collapse\"), s = ce(() => [\n r.b(\"item\"),\n r.is(\"active\", G(t)),\n r.is(\"disabled\", n.disabled)\n ]), o = ce(() => [\n r.be(\"item\", \"header\"),\n r.is(\"active\", G(t)),\n { focusing: G(e) && !n.disabled }\n ]), a = ce(() => [\n r.be(\"item\", \"arrow\"),\n r.is(\"active\", G(t))\n ]), c = ce(() => r.be(\"item\", \"wrap\")), l = ce(() => r.be(\"item\", \"content\")), d = ce(() => r.b(`content-${G(i)}`)), h = ce(() => r.b(`head-${G(i)}`));\n return {\n arrowKls: a,\n headKls: o,\n rootKls: s,\n itemWrapperKls: c,\n itemContentKls: l,\n scopedContentId: d,\n scopedHeadId: h\n };\n}, FL = De({\n name: \"ElCollapseItem\"\n}), zL = /* @__PURE__ */ De({\n ...FL,\n props: DL,\n setup(n, { expose: e }) {\n const t = n, {\n focusing: i,\n id: r,\n isActive: s,\n handleFocus: o,\n handleHeaderClick: a,\n handleEnterClick: c\n } = NL(t), {\n arrowKls: l,\n headKls: d,\n rootKls: h,\n itemWrapperKls: f,\n itemContentKls: g,\n scopedContentId: p,\n scopedHeadId: u\n } = BL(t, { focusing: i, isActive: s, id: r });\n return e({\n isActive: s\n }), (y, v) => (ge(), Re(\"div\", {\n class: Le(G(h))\n }, [\n Fe(\"button\", {\n id: G(u),\n class: Le(G(d)),\n \"aria-expanded\": G(s),\n \"aria-controls\": G(p),\n \"aria-describedby\": G(p),\n tabindex: y.disabled ? -1 : 0,\n type: \"button\",\n onClick: G(a),\n onKeydown: gi(cn(G(c), [\"stop\", \"prevent\"]), [\"space\", \"enter\"]),\n onFocus: G(o),\n onBlur: (m) => i.value = !1\n }, [\n Xe(y.$slots, \"title\", {}, () => [\n vt(xt(y.title), 1)\n ]),\n Xe(y.$slots, \"icon\", { isActive: G(s) }, () => [\n ae(G(Dt), {\n class: Le(G(l))\n }, {\n default: me(() => [\n (ge(), He(Nn(y.icon)))\n ]),\n _: 1\n }, 8, [\"class\"])\n ])\n ], 42, [\"id\", \"aria-expanded\", \"aria-controls\", \"aria-describedby\", \"tabindex\", \"onClick\", \"onKeydown\", \"onFocus\", \"onBlur\"]),\n ae(G(OL), null, {\n default: me(() => [\n Ot(Fe(\"div\", {\n id: G(p),\n role: \"region\",\n class: Le(G(f)),\n \"aria-hidden\": !G(s),\n \"aria-labelledby\": G(u)\n }, [\n Fe(\"div\", {\n class: Le(G(g))\n }, [\n Xe(y.$slots, \"default\")\n ], 2)\n ], 10, [\"id\", \"aria-hidden\", \"aria-labelledby\"]), [\n [gn, G(s)]\n ])\n ]),\n _: 3\n })\n ], 2));\n }\n});\nvar yy = /* @__PURE__ */ ot(zL, [[\"__file\", \"collapse-item.vue\"]]);\nconst by = fn(LL, {\n CollapseItem: yy\n}), xy = mr(yy), UL = De({\n name: \"ElContainer\"\n}), VL = /* @__PURE__ */ De({\n ...UL,\n props: {\n direction: {\n type: String\n }\n },\n setup(n) {\n const e = n, t = ou(), i = it(\"container\"), r = ce(() => e.direction === \"vertical\" ? !0 : e.direction === \"horizontal\" ? !1 : t && t.default ? t.default().some((o) => {\n const a = o.type.name;\n return a === \"ElHeader\" || a === \"ElFooter\";\n }) : !1);\n return (s, o) => (ge(), Re(\"section\", {\n class: Le([G(i).b(), G(i).is(\"vertical\", G(r))])\n }, [\n Xe(s.$slots, \"default\")\n ], 2));\n }\n});\nvar kL = /* @__PURE__ */ ot(VL, [[\"__file\", \"container.vue\"]]);\nconst GL = De({\n name: \"ElAside\"\n}), HL = /* @__PURE__ */ De({\n ...GL,\n props: {\n width: {\n type: String,\n default: null\n }\n },\n setup(n) {\n const e = n, t = it(\"aside\"), i = ce(() => e.width ? t.cssVarBlock({ width: e.width }) : {});\n return (r, s) => (ge(), Re(\"aside\", {\n class: Le(G(t).b()),\n style: Pt(G(i))\n }, [\n Xe(r.$slots, \"default\")\n ], 6));\n }\n});\nvar wy = /* @__PURE__ */ ot(HL, [[\"__file\", \"aside.vue\"]]);\nconst WL = De({\n name: \"ElFooter\"\n}), jL = /* @__PURE__ */ De({\n ...WL,\n props: {\n height: {\n type: String,\n default: null\n }\n },\n setup(n) {\n const e = n, t = it(\"footer\"), i = ce(() => e.height ? t.cssVarBlock({ height: e.height }) : {});\n return (r, s) => (ge(), Re(\"footer\", {\n class: Le(G(t).b()),\n style: Pt(G(i))\n }, [\n Xe(r.$slots, \"default\")\n ], 6));\n }\n});\nvar My = /* @__PURE__ */ ot(jL, [[\"__file\", \"footer.vue\"]]);\nconst $L = De({\n name: \"ElHeader\"\n}), ZL = /* @__PURE__ */ De({\n ...$L,\n props: {\n height: {\n type: String,\n default: null\n }\n },\n setup(n) {\n const e = n, t = it(\"header\"), i = ce(() => e.height ? t.cssVarBlock({\n height: e.height\n }) : {});\n return (r, s) => (ge(), Re(\"header\", {\n class: Le(G(t).b()),\n style: Pt(G(i))\n }, [\n Xe(r.$slots, \"default\")\n ], 6));\n }\n});\nvar _y = /* @__PURE__ */ ot(ZL, [[\"__file\", \"header.vue\"]]);\nconst XL = De({\n name: \"ElMain\"\n}), YL = /* @__PURE__ */ De({\n ...XL,\n setup(n) {\n const e = it(\"main\");\n return (t, i) => (ge(), Re(\"main\", {\n class: Le(G(e).b())\n }, [\n Xe(t.$slots, \"default\")\n ], 2));\n }\n});\nvar Sy = /* @__PURE__ */ ot(YL, [[\"__file\", \"main.vue\"]]);\nconst Hi = fn(kL, {\n Aside: wy,\n Footer: My,\n Header: _y,\n Main: Sy\n});\nmr(wy);\nconst Ty = mr(My), JL = mr(_y), gr = mr(Sy), KL = /* @__PURE__ */ De({\n inheritAttrs: !1\n});\nfunction qL(n, e, t, i, r, s) {\n return Xe(n.$slots, \"default\");\n}\nvar QL = /* @__PURE__ */ ot(KL, [[\"render\", qL], [\"__file\", \"collection.vue\"]]);\nconst eR = /* @__PURE__ */ De({\n name: \"ElCollectionItem\",\n inheritAttrs: !1\n});\nfunction tR(n, e, t, i, r, s) {\n return Xe(n.$slots, \"default\");\n}\nvar nR = /* @__PURE__ */ ot(eR, [[\"render\", tR], [\"__file\", \"collection-item.vue\"]]);\nconst iR = \"data-el-collection-item\", rR = (n) => {\n const e = `El${n}Collection`, t = `${e}Item`, i = Symbol(e), r = Symbol(t), s = {\n ...QL,\n name: e,\n setup() {\n const a = Ae(null), c = /* @__PURE__ */ new Map();\n dn(i, {\n itemMap: c,\n getItems: () => {\n const d = G(a);\n if (!d)\n return [];\n const h = Array.from(d.querySelectorAll(`[${iR}]`));\n return [...c.values()].sort((g, p) => h.indexOf(g.ref) - h.indexOf(p.ref));\n },\n collectionRef: a\n });\n }\n }, o = {\n ...nR,\n name: t,\n setup(a, { attrs: c }) {\n const l = Ae(null), d = ht(i, void 0);\n dn(r, {\n collectionItemRef: l\n }), tn(() => {\n const h = G(l);\n h && d.itemMap.set(h, {\n ref: h,\n ...c\n });\n }), oi(() => {\n const h = G(l);\n d.itemMap.delete(h);\n });\n }\n };\n return {\n COLLECTION_INJECTION_KEY: i,\n COLLECTION_ITEM_INJECTION_KEY: r,\n ElCollection: s,\n ElCollectionItem: o\n };\n}, nh = dt({\n trigger: Ka.trigger,\n effect: {\n ...jn.effect,\n default: \"light\"\n },\n type: {\n type: Je(String)\n },\n placement: {\n type: Je(String),\n default: \"bottom\"\n },\n popperOptions: {\n type: Je(Object),\n default: () => ({})\n },\n id: String,\n size: {\n type: String,\n default: \"\"\n },\n splitButton: Boolean,\n hideOnClick: {\n type: Boolean,\n default: !0\n },\n loop: {\n type: Boolean,\n default: !0\n },\n showTimeout: {\n type: Number,\n default: 150\n },\n hideTimeout: {\n type: Number,\n default: 150\n },\n tabindex: {\n type: Je([Number, String]),\n default: 0\n },\n maxHeight: {\n type: Je([Number, String]),\n default: \"\"\n },\n popperClass: {\n type: String,\n default: \"\"\n },\n disabled: Boolean,\n role: {\n type: String,\n default: \"menu\"\n },\n buttonProps: {\n type: Je(Object)\n },\n teleported: jn.teleported\n});\ndt({\n command: {\n type: [Object, String, Number],\n default: () => ({})\n },\n disabled: Boolean,\n divided: Boolean,\n textValue: String,\n icon: {\n type: $r\n }\n});\ndt({\n onKeydown: { type: Je(Function) }\n});\nrR(\"Dropdown\");\nconst sR = dt({\n id: {\n type: String,\n default: void 0\n },\n step: {\n type: Number,\n default: 1\n },\n stepStrictly: Boolean,\n max: {\n type: Number,\n default: Number.POSITIVE_INFINITY\n },\n min: {\n type: Number,\n default: Number.NEGATIVE_INFINITY\n },\n modelValue: Number,\n readonly: Boolean,\n disabled: Boolean,\n size: Do,\n controls: {\n type: Boolean,\n default: !0\n },\n controlsPosition: {\n type: String,\n default: \"\",\n values: [\"\", \"right\"]\n },\n valueOnClear: {\n type: [String, Number, null],\n validator: (n) => n === null || Mt(n) || [\"min\", \"max\"].includes(n),\n default: null\n },\n name: String,\n placeholder: String,\n precision: {\n type: Number,\n validator: (n) => n >= 0 && n === Number.parseInt(`${n}`, 10)\n },\n validateEvent: {\n type: Boolean,\n default: !0\n },\n ...Gs([\"ariaLabel\"])\n}), oR = {\n [qr]: (n, e) => e !== n,\n blur: (n) => n instanceof FocusEvent,\n focus: (n) => n instanceof FocusEvent,\n [_s]: (n) => Mt(n) || rr(n),\n [It]: (n) => Mt(n) || rr(n)\n}, aR = De({\n name: \"ElInputNumber\"\n}), lR = /* @__PURE__ */ De({\n ...aR,\n props: sR,\n emits: oR,\n setup(n, { expose: e, emit: t }) {\n const i = n, { t: r } = mu(), s = it(\"input-number\"), o = Ae(), a = Yn({\n currentValue: i.modelValue,\n userInput: null\n }), { formItem: c } = gl(), l = ce(() => Mt(i.modelValue) && i.modelValue <= i.min), d = ce(() => Mt(i.modelValue) && i.modelValue >= i.max), h = ce(() => {\n const O = v(i.step);\n return vi(i.precision) ? Math.max(v(i.modelValue), O) : (O > i.precision && Jt(\"InputNumber\", \"precision should not be less than the decimal places of step\"), i.precision);\n }), f = ce(() => i.controls && i.controlsPosition === \"right\"), g = ra(), p = yu(), u = ce(() => {\n if (a.userInput !== null)\n return a.userInput;\n let O = a.currentValue;\n if (rr(O))\n return \"\";\n if (Mt(O)) {\n if (Number.isNaN(O))\n return \"\";\n vi(i.precision) || (O = O.toFixed(i.precision));\n }\n return O;\n }), y = (O, b) => {\n if (vi(b) && (b = h.value), b === 0)\n return Math.round(O);\n let I = String(O);\n const N = I.indexOf(\".\");\n if (N === -1 || !I.replace(\".\", \"\").split(\"\")[N + b])\n return O;\n const V = I.length;\n return I.charAt(V - 1) === \"5\" && (I = `${I.slice(0, Math.max(0, V - 1))}6`), Number.parseFloat(Number(I).toFixed(b));\n }, v = (O) => {\n if (rr(O))\n return 0;\n const b = O.toString(), I = b.indexOf(\".\");\n let N = 0;\n return I !== -1 && (N = b.length - I - 1), N;\n }, m = (O, b = 1) => Mt(O) ? y(O + i.step * b) : a.currentValue, w = () => {\n if (i.readonly || p.value || d.value)\n return;\n const O = Number(u.value) || 0, b = m(O);\n M(b), t(_s, a.currentValue), C();\n }, _ = () => {\n if (i.readonly || p.value || l.value)\n return;\n const O = Number(u.value) || 0, b = m(O, -1);\n M(b), t(_s, a.currentValue), C();\n }, S = (O, b) => {\n const { max: I, min: N, step: D, precision: z, stepStrictly: V, valueOnClear: H } = i;\n I < N && na(\"InputNumber\", \"min should not be greater than max.\");\n let X = Number(O);\n if (rr(O) || Number.isNaN(X))\n return null;\n if (O === \"\") {\n if (H === null)\n return null;\n X = Ln(H) ? { min: N, max: I }[H] : H;\n }\n return V && (X = y(Math.round(X / D) * D, z), X !== O && b && t(It, X)), vi(z) || (X = y(X, z)), (X > I || X < N) && (X = X > I ? I : N, b && t(It, X)), X;\n }, M = (O, b = !0) => {\n var I;\n const N = a.currentValue, D = S(O);\n if (!b) {\n t(It, D);\n return;\n }\n N === D && O || (a.userInput = null, t(It, D), N !== D && t(qr, D, N), i.validateEvent && ((I = c == null ? void 0 : c.validate) == null || I.call(c, \"change\").catch((z) => Jt(z))), a.currentValue = D);\n }, x = (O) => {\n a.userInput = O;\n const b = O === \"\" ? null : Number(O);\n t(_s, b), M(b, !1);\n }, A = (O) => {\n const b = O !== \"\" ? Number(O) : \"\";\n (Mt(b) && !Number.isNaN(b) || O === \"\") && M(b), C(), a.userInput = null;\n }, P = () => {\n var O, b;\n (b = (O = o.value) == null ? void 0 : O.focus) == null || b.call(O);\n }, T = () => {\n var O, b;\n (b = (O = o.value) == null ? void 0 : O.blur) == null || b.call(O);\n }, R = (O) => {\n t(\"focus\", O);\n }, E = (O) => {\n var b;\n a.userInput = null, t(\"blur\", O), i.validateEvent && ((b = c == null ? void 0 : c.validate) == null || b.call(c, \"blur\").catch((I) => Jt(I)));\n }, C = () => {\n a.currentValue !== i.modelValue && (a.currentValue = i.modelValue);\n }, L = (O) => {\n document.activeElement === O.target && O.preventDefault();\n };\n return qe(() => i.modelValue, (O, b) => {\n const I = S(O, !0);\n a.userInput === null && I !== b && (a.currentValue = I);\n }, { immediate: !0 }), tn(() => {\n var O;\n const { min: b, max: I, modelValue: N } = i, D = (O = o.value) == null ? void 0 : O.input;\n if (D.setAttribute(\"role\", \"spinbutton\"), Number.isFinite(I) ? D.setAttribute(\"aria-valuemax\", String(I)) : D.removeAttribute(\"aria-valuemax\"), Number.isFinite(b) ? D.setAttribute(\"aria-valuemin\", String(b)) : D.removeAttribute(\"aria-valuemin\"), D.setAttribute(\"aria-valuenow\", a.currentValue || a.currentValue === 0 ? String(a.currentValue) : \"\"), D.setAttribute(\"aria-disabled\", String(p.value)), !Mt(N) && N != null) {\n let z = Number(N);\n Number.isNaN(z) && (z = null), t(It, z);\n }\n D.addEventListener(\"wheel\", L, { passive: !1 });\n }), sf(() => {\n var O, b;\n const I = (O = o.value) == null ? void 0 : O.input;\n I == null || I.setAttribute(\"aria-valuenow\", `${(b = a.currentValue) != null ? b : \"\"}`);\n }), e({\n focus: P,\n blur: T\n }), (O, b) => (ge(), Re(\"div\", {\n class: Le([\n G(s).b(),\n G(s).m(G(g)),\n G(s).is(\"disabled\", G(p)),\n G(s).is(\"without-controls\", !O.controls),\n G(s).is(\"controls-right\", G(f))\n ]),\n onDragstart: cn(() => {\n }, [\"prevent\"])\n }, [\n O.controls ? Ot((ge(), Re(\"span\", {\n key: 0,\n role: \"button\",\n \"aria-label\": G(r)(\"el.inputNumber.decrease\"),\n class: Le([G(s).e(\"decrease\"), G(s).is(\"disabled\", G(l))]),\n onKeydown: gi(_, [\"enter\"])\n }, [\n Xe(O.$slots, \"decrease-icon\", {}, () => [\n ae(G(Dt), null, {\n default: me(() => [\n G(f) ? (ge(), He(G(vf), { key: 0 })) : (ge(), He(G(dE), { key: 1 }))\n ]),\n _: 1\n })\n ])\n ], 42, [\"aria-label\", \"onKeydown\"])), [\n [G(rg), _]\n ]) : Ge(\"v-if\", !0),\n O.controls ? Ot((ge(), Re(\"span\", {\n key: 1,\n role: \"button\",\n \"aria-label\": G(r)(\"el.inputNumber.increase\"),\n class: Le([G(s).e(\"increase\"), G(s).is(\"disabled\", G(d))]),\n onKeydown: gi(w, [\"enter\"])\n }, [\n Xe(O.$slots, \"increase-icon\", {}, () => [\n ae(G(Dt), null, {\n default: me(() => [\n G(f) ? (ge(), He(G(nE), { key: 0 })) : (ge(), He(G(fu), { key: 1 }))\n ]),\n _: 1\n })\n ])\n ], 42, [\"aria-label\", \"onKeydown\"])), [\n [G(rg), w]\n ]) : Ge(\"v-if\", !0),\n ae(G(mC), {\n id: O.id,\n ref_key: \"input\",\n ref: o,\n type: \"number\",\n step: O.step,\n \"model-value\": G(u),\n placeholder: O.placeholder,\n readonly: O.readonly,\n disabled: G(p),\n size: G(g),\n max: O.max,\n min: O.min,\n name: O.name,\n \"aria-label\": O.ariaLabel,\n \"validate-event\": !1,\n onKeydown: [\n gi(cn(w, [\"prevent\"]), [\"up\"]),\n gi(cn(_, [\"prevent\"]), [\"down\"])\n ],\n onBlur: E,\n onFocus: R,\n onInput: x,\n onChange: A\n }, a1({ _: 2 }, [\n O.$slots.prefix ? {\n name: \"prefix\",\n fn: me(() => [\n Xe(O.$slots, \"prefix\")\n ])\n } : void 0,\n O.$slots.suffix ? {\n name: \"suffix\",\n fn: me(() => [\n Xe(O.$slots, \"suffix\")\n ])\n } : void 0\n ]), 1032, [\"id\", \"step\", \"model-value\", \"placeholder\", \"readonly\", \"disabled\", \"size\", \"max\", \"min\", \"name\", \"aria-label\", \"onKeydown\"])\n ], 42, [\"onDragstart\"]));\n }\n});\nvar cR = /* @__PURE__ */ ot(lR, [[\"__file\", \"input-number.vue\"]]);\nconst vr = fn(cR), Ey = Symbol(\"ElSelectGroup\"), wu = Symbol(\"ElSelect\");\nfunction uR(n, e) {\n const t = ht(wu), i = ht(Ey, { disabled: !1 }), r = ce(() => d(Li(t.props.modelValue), n.value)), s = ce(() => {\n var g;\n if (t.props.multiple) {\n const p = Li((g = t.props.modelValue) != null ? g : []);\n return !r.value && p.length >= t.props.multipleLimit && t.props.multipleLimit > 0;\n } else\n return !1;\n }), o = ce(() => n.label || (An(n.value) ? \"\" : n.value)), a = ce(() => n.value || n.label || \"\"), c = ce(() => n.disabled || e.groupDisabled || s.value), l = sn(), d = (g = [], p) => {\n if (An(n.value)) {\n const u = t.props.valueKey;\n return g && g.some((y) => of(Qi(y, u)) === Qi(p, u));\n } else\n return g && g.includes(p);\n }, h = () => {\n !n.disabled && !i.disabled && (t.states.hoveringIndex = t.optionsArray.indexOf(l.proxy));\n }, f = (g) => {\n const p = new RegExp(YT(g), \"i\");\n e.visible = p.test(o.value) || n.created;\n };\n return qe(() => o.value, () => {\n !n.created && !t.props.remote && t.setSelected();\n }), qe(() => n.value, (g, p) => {\n const { remote: u, valueKey: y } = t.props;\n if (g !== p && (t.onOptionDestroy(p, l.proxy), t.onOptionCreate(l.proxy)), !n.created && !u) {\n if (y && An(g) && An(p) && g[y] === p[y])\n return;\n t.setSelected();\n }\n }), qe(() => i.disabled, () => {\n e.groupDisabled = i.disabled;\n }, { immediate: !0 }), {\n select: t,\n currentLabel: o,\n currentValue: a,\n itemSelected: r,\n isDisabled: c,\n hoverItem: h,\n updateOption: f\n };\n}\nconst hR = De({\n name: \"ElOption\",\n componentName: \"ElOption\",\n props: {\n value: {\n required: !0,\n type: [String, Number, Boolean, Object]\n },\n label: [String, Number],\n created: Boolean,\n disabled: Boolean\n },\n setup(n) {\n const e = it(\"select\"), t = vu(), i = ce(() => [\n e.be(\"dropdown\", \"item\"),\n e.is(\"disabled\", G(a)),\n e.is(\"selected\", G(o)),\n e.is(\"hovering\", G(f))\n ]), r = Yn({\n index: -1,\n groupDisabled: !1,\n visible: !0,\n hover: !1\n }), {\n currentLabel: s,\n itemSelected: o,\n isDisabled: a,\n select: c,\n hoverItem: l,\n updateOption: d\n } = uR(n, r), { visible: h, hover: f } = lr(r), g = sn().proxy;\n c.onOptionCreate(g), oi(() => {\n const u = g.value, { selected: y } = c.states, m = (c.props.multiple ? y : [y]).some((w) => w.value === g.value);\n wt(() => {\n c.states.cachedOptions.get(u) === g && !m && c.states.cachedOptions.delete(u);\n }), c.onOptionDestroy(u, g);\n });\n function p() {\n a.value || c.handleOptionSelect(g);\n }\n return {\n ns: e,\n id: t,\n containerKls: i,\n currentLabel: s,\n itemSelected: o,\n isDisabled: a,\n select: c,\n hoverItem: l,\n updateOption: d,\n visible: h,\n hover: f,\n selectOptionClick: p,\n states: r\n };\n }\n});\nfunction dR(n, e, t, i, r, s) {\n return Ot((ge(), Re(\"li\", {\n id: n.id,\n class: Le(n.containerKls),\n role: \"option\",\n \"aria-disabled\": n.isDisabled || void 0,\n \"aria-selected\": n.itemSelected,\n onMouseenter: n.hoverItem,\n onClick: cn(n.selectOptionClick, [\"stop\"])\n }, [\n Xe(n.$slots, \"default\", {}, () => [\n Fe(\"span\", null, xt(n.currentLabel), 1)\n ])\n ], 42, [\"id\", \"aria-disabled\", \"aria-selected\", \"onMouseenter\", \"onClick\"])), [\n [gn, n.visible]\n ]);\n}\nvar zf = /* @__PURE__ */ ot(hR, [[\"render\", dR], [\"__file\", \"option.vue\"]]);\nconst fR = De({\n name: \"ElSelectDropdown\",\n componentName: \"ElSelectDropdown\",\n setup() {\n const n = ht(wu), e = it(\"select\"), t = ce(() => n.props.popperClass), i = ce(() => n.props.multiple), r = ce(() => n.props.fitInputWidth), s = Ae(\"\");\n function o() {\n var a;\n s.value = `${(a = n.selectRef) == null ? void 0 : a.offsetWidth}px`;\n }\n return tn(() => {\n o(), ti(n.selectRef, o);\n }), {\n ns: e,\n minWidth: s,\n popperClass: t,\n isMultiple: i,\n isFitInputWidth: r\n };\n }\n});\nfunction pR(n, e, t, i, r, s) {\n return ge(), Re(\"div\", {\n class: Le([n.ns.b(\"dropdown\"), n.ns.is(\"multiple\", n.isMultiple), n.popperClass]),\n style: Pt({ [n.isFitInputWidth ? \"width\" : \"minWidth\"]: n.minWidth })\n }, [\n n.$slots.header ? (ge(), Re(\"div\", {\n key: 0,\n class: Le(n.ns.be(\"dropdown\", \"header\"))\n }, [\n Xe(n.$slots, \"header\")\n ], 2)) : Ge(\"v-if\", !0),\n Xe(n.$slots, \"default\"),\n n.$slots.footer ? (ge(), Re(\"div\", {\n key: 1,\n class: Le(n.ns.be(\"dropdown\", \"footer\"))\n }, [\n Xe(n.$slots, \"footer\")\n ], 2)) : Ge(\"v-if\", !0)\n ], 6);\n}\nvar mR = /* @__PURE__ */ ot(fR, [[\"render\", pR], [\"__file\", \"select-dropdown.vue\"]]);\nconst gR = 11, vR = (n, e) => {\n const { t } = mu(), i = vu(), r = it(\"select\"), s = it(\"input\"), o = Yn({\n inputValue: \"\",\n options: /* @__PURE__ */ new Map(),\n cachedOptions: /* @__PURE__ */ new Map(),\n disabledOptions: /* @__PURE__ */ new Map(),\n optionValues: [],\n selected: [],\n selectionWidth: 0,\n calculatorWidth: 0,\n collapseItemWidth: 0,\n selectedLabel: \"\",\n hoveringIndex: -1,\n previousQuery: null,\n inputHovering: !1,\n menuVisibleOnFocus: !1,\n isBeforeHide: !1\n }), a = Ae(null), c = Ae(null), l = Ae(null), d = Ae(null), h = Ae(null), f = Ae(null), g = Ae(null), p = Ae(null), u = Ae(null), y = Ae(null), v = Ae(null), m = Ae(null), {\n isComposing: w,\n handleCompositionStart: _,\n handleCompositionUpdate: S,\n handleCompositionEnd: M\n } = iy({\n afterComposition: (de) => se(de)\n }), { wrapperRef: x, isFocused: A } = ny(h, {\n beforeFocus() {\n return b.value;\n },\n afterFocus() {\n n.automaticDropdown && !P.value && (P.value = !0, o.menuVisibleOnFocus = !0);\n },\n beforeBlur(de) {\n var Se, Oe;\n return ((Se = l.value) == null ? void 0 : Se.isFocusInsideContent(de)) || ((Oe = d.value) == null ? void 0 : Oe.isFocusInsideContent(de));\n },\n afterBlur() {\n P.value = !1, o.menuVisibleOnFocus = !1;\n }\n }), P = Ae(!1), T = Ae(), { form: R, formItem: E } = gl(), { inputId: C } = Pf(n, {\n formItemContext: E\n }), { valueOnClear: L, isEmptyValue: O } = qA(n), b = ce(() => n.disabled || (R == null ? void 0 : R.disabled)), I = ce(() => Bn(n.modelValue) ? n.modelValue.length > 0 : !O(n.modelValue)), N = ce(() => n.clearable && !b.value && o.inputHovering && I.value), D = ce(() => n.remote && n.filterable && !n.remoteShowSuffix ? \"\" : n.suffixIcon), z = ce(() => r.is(\"reverse\", D.value && P.value)), V = ce(() => (E == null ? void 0 : E.validateState) || \"\"), H = ce(() => D0[V.value]), X = ce(() => n.remote ? 300 : 0), re = ce(() => n.loading ? n.loadingText || t(\"el.select.loading\") : n.remote && !o.inputValue && o.options.size === 0 ? !1 : n.filterable && o.inputValue && o.options.size > 0 && j.value === 0 ? n.noMatchText || t(\"el.select.noMatch\") : o.options.size === 0 ? n.noDataText || t(\"el.select.noData\") : null), j = ce(() => k.value.filter((de) => de.visible).length), k = ce(() => {\n const de = Array.from(o.options.values()), Se = [];\n return o.optionValues.forEach((Oe) => {\n const Ve = de.findIndex((je) => je.value === Oe);\n Ve > -1 && Se.push(de[Ve]);\n }), Se.length >= de.length ? Se : de;\n }), W = ce(() => Array.from(o.cachedOptions.values())), K = ce(() => {\n const de = k.value.filter((Se) => !Se.created).some((Se) => Se.currentLabel === o.inputValue);\n return n.filterable && n.allowCreate && o.inputValue !== \"\" && !de;\n }), ee = () => {\n n.filterable && Tn(n.filterMethod) || n.filterable && n.remote && Tn(n.remoteMethod) || k.value.forEach((de) => {\n var Se;\n (Se = de.updateOption) == null || Se.call(de, o.inputValue);\n });\n }, q = ra(), ie = ce(() => [\"small\"].includes(q.value) ? \"small\" : \"default\"), Y = ce({\n get() {\n return P.value && re.value !== !1;\n },\n set(de) {\n P.value = de;\n }\n }), te = ce(() => {\n if (n.multiple && !vi(n.modelValue))\n return Li(n.modelValue).length === 0 && !o.inputValue;\n const de = Bn(n.modelValue) ? n.modelValue[0] : n.modelValue;\n return n.filterable || vi(de) ? !o.inputValue : !0;\n }), B = ce(() => {\n var de;\n const Se = (de = n.placeholder) != null ? de : t(\"el.select.placeholder\");\n return n.multiple || !I.value ? Se : o.selectedLabel;\n }), $ = ce(() => td ? null : \"mouseenter\");\n qe(() => n.modelValue, (de, Se) => {\n n.multiple && n.filterable && !n.reserveKeyword && (o.inputValue = \"\", Q(\"\")), U(), !ld(de, Se) && n.validateEvent && (E == null || E.validate(\"change\").catch((Oe) => Jt(Oe)));\n }, {\n flush: \"post\",\n deep: !0\n }), qe(() => P.value, (de) => {\n de ? Q(o.inputValue) : (o.inputValue = \"\", o.previousQuery = null, o.isBeforeHide = !0), e(\"visible-change\", de);\n }), qe(() => o.options.entries(), () => {\n var de;\n if (!Qt)\n return;\n const Se = ((de = a.value) == null ? void 0 : de.querySelectorAll(\"input\")) || [];\n (!n.filterable && !n.defaultFirstOption && !vi(n.modelValue) || !Array.from(Se).includes(document.activeElement)) && U(), n.defaultFirstOption && (n.filterable || n.remote) && j.value && F();\n }, {\n flush: \"post\"\n }), qe(() => o.hoveringIndex, (de) => {\n Mt(de) && de > -1 ? T.value = k.value[de] || {} : T.value = {}, k.value.forEach((Se) => {\n Se.hover = T.value === Se;\n });\n }), s0(() => {\n o.isBeforeHide || ee();\n });\n const Q = (de) => {\n o.previousQuery === de || w.value || (o.previousQuery = de, n.filterable && Tn(n.filterMethod) ? n.filterMethod(de) : n.filterable && n.remote && Tn(n.remoteMethod) && n.remoteMethod(de), n.defaultFirstOption && (n.filterable || n.remote) && j.value ? wt(F) : wt(le));\n }, F = () => {\n const de = k.value.filter((Ve) => Ve.visible && !Ve.disabled && !Ve.states.groupDisabled), Se = de.find((Ve) => Ve.created), Oe = de[0];\n o.hoveringIndex = bt(k.value, Se || Oe);\n }, U = () => {\n if (n.multiple)\n o.selectedLabel = \"\";\n else {\n const Se = Bn(n.modelValue) ? n.modelValue[0] : n.modelValue, Oe = oe(Se);\n o.selectedLabel = Oe.currentLabel, o.selected = [Oe];\n return;\n }\n const de = [];\n vi(n.modelValue) || Li(n.modelValue).forEach((Se) => {\n de.push(oe(Se));\n }), o.selected = de;\n }, oe = (de) => {\n let Se;\n const Oe = ju(de).toLowerCase() === \"object\", Ve = ju(de).toLowerCase() === \"null\", je = ju(de).toLowerCase() === \"undefined\";\n for (let ut = o.cachedOptions.size - 1; ut >= 0; ut--) {\n const Ht = W.value[ut];\n if (Oe ? Qi(Ht.value, n.valueKey) === Qi(de, n.valueKey) : Ht.value === de) {\n Se = {\n value: de,\n currentLabel: Ht.currentLabel,\n get isDisabled() {\n return Ht.isDisabled;\n }\n };\n break;\n }\n }\n if (Se)\n return Se;\n const Qe = Oe ? de.label : !Ve && !je ? de : \"\";\n return {\n value: de,\n currentLabel: Qe\n };\n }, le = () => {\n o.hoveringIndex = k.value.findIndex((de) => o.selected.some((Se) => Ee(Se) === Ee(de)));\n }, ue = () => {\n o.selectionWidth = c.value.getBoundingClientRect().width;\n }, ve = () => {\n o.calculatorWidth = f.value.getBoundingClientRect().width;\n }, _e = () => {\n o.collapseItemWidth = v.value.getBoundingClientRect().width;\n }, we = () => {\n var de, Se;\n (Se = (de = l.value) == null ? void 0 : de.updatePopper) == null || Se.call(de);\n }, pe = () => {\n var de, Se;\n (Se = (de = d.value) == null ? void 0 : de.updatePopper) == null || Se.call(de);\n }, Me = () => {\n o.inputValue.length > 0 && !P.value && (P.value = !0), Q(o.inputValue);\n }, se = (de) => {\n if (o.inputValue = de.target.value, n.remote)\n Te();\n else\n return Me();\n }, Te = ad(() => {\n Me();\n }, X.value), ye = (de) => {\n ld(n.modelValue, de) || e(qr, de);\n }, xe = (de) => GT(de, (Se) => !o.disabledOptions.has(Se)), Ie = (de) => {\n if (n.multiple && de.code !== Oi.delete && de.target.value.length <= 0) {\n const Se = Li(n.modelValue).slice(), Oe = xe(Se);\n if (Oe < 0)\n return;\n const Ve = Se[Oe];\n Se.splice(Oe, 1), e(It, Se), ye(Se), e(\"remove-tag\", Ve);\n }\n }, et = (de, Se) => {\n const Oe = o.selected.indexOf(Se);\n if (Oe > -1 && !b.value) {\n const Ve = Li(n.modelValue).slice();\n Ve.splice(Oe, 1), e(It, Ve), ye(Ve), e(\"remove-tag\", Se.value);\n }\n de.stopPropagation(), Ft();\n }, mt = (de) => {\n de.stopPropagation();\n const Se = n.multiple ? [] : L.value;\n if (n.multiple)\n for (const Oe of o.selected)\n Oe.isDisabled && Se.push(Oe.value);\n e(It, Se), ye(Se), o.hoveringIndex = -1, P.value = !1, e(\"clear\"), Ft();\n }, ke = (de) => {\n var Se;\n if (n.multiple) {\n const Oe = Li((Se = n.modelValue) != null ? Se : []).slice(), Ve = bt(Oe, de.value);\n Ve > -1 ? Oe.splice(Ve, 1) : (n.multipleLimit <= 0 || Oe.length < n.multipleLimit) && Oe.push(de.value), e(It, Oe), ye(Oe), de.created && Q(\"\"), n.filterable && !n.reserveKeyword && (o.inputValue = \"\");\n } else\n e(It, de.value), ye(de.value), P.value = !1;\n Ft(), !P.value && wt(() => {\n ze(de);\n });\n }, bt = (de = [], Se) => {\n if (!An(Se))\n return de.indexOf(Se);\n const Oe = n.valueKey;\n let Ve = -1;\n return de.some((je, Qe) => of(Qi(je, Oe)) === Qi(Se, Oe) ? (Ve = Qe, !0) : !1), Ve;\n }, ze = (de) => {\n var Se, Oe, Ve, je, Qe;\n const Ye = Bn(de) ? de[0] : de;\n let ut = null;\n if (Ye != null && Ye.value) {\n const Ht = k.value.filter((an) => an.value === Ye.value);\n Ht.length > 0 && (ut = Ht[0].$el);\n }\n if (l.value && ut) {\n const Ht = (je = (Ve = (Oe = (Se = l.value) == null ? void 0 : Se.popperRef) == null ? void 0 : Oe.contentRef) == null ? void 0 : Ve.querySelector) == null ? void 0 : je.call(Ve, `.${r.be(\"dropdown\", \"wrap\")}`);\n Ht && KT(Ht, ut);\n }\n (Qe = m.value) == null || Qe.handleScroll();\n }, at = (de) => {\n o.options.set(de.value, de), o.cachedOptions.set(de.value, de), de.disabled && o.disabledOptions.set(de.value, de);\n }, tt = (de, Se) => {\n o.options.get(de) === Se && o.options.delete(de);\n }, yt = ce(() => {\n var de, Se;\n return (Se = (de = l.value) == null ? void 0 : de.popperRef) == null ? void 0 : Se.contentRef;\n }), ft = () => {\n o.isBeforeHide = !1, wt(() => ze(o.selected));\n }, Ft = () => {\n var de;\n (de = h.value) == null || de.focus();\n }, Rt = () => {\n var de;\n (de = h.value) == null || de.blur();\n }, On = (de) => {\n mt(de);\n }, kn = () => {\n P.value = !1, A.value && Rt();\n }, li = () => {\n o.inputValue.length > 0 ? o.inputValue = \"\" : P.value = !1;\n }, ss = () => {\n b.value || (td && (o.inputHovering = !0), o.menuVisibleOnFocus ? o.menuVisibleOnFocus = !1 : P.value = !P.value);\n }, ne = () => {\n P.value ? k.value[o.hoveringIndex] && ke(k.value[o.hoveringIndex]) : ss();\n }, Ee = (de) => An(de.value) ? Qi(de.value, n.valueKey) : de.value, Ne = ce(() => k.value.filter((de) => de.visible).every((de) => de.disabled)), $e = ce(() => n.multiple ? n.collapseTags ? o.selected.slice(0, n.maxCollapseTags) : o.selected : []), lt = ce(() => n.multiple ? n.collapseTags ? o.selected.slice(n.maxCollapseTags) : [] : []), Z = (de) => {\n if (!P.value) {\n P.value = !0;\n return;\n }\n if (!(o.options.size === 0 || o.filteredOptionsCount === 0 || w.value) && !Ne.value) {\n de === \"next\" ? (o.hoveringIndex++, o.hoveringIndex === o.options.size && (o.hoveringIndex = 0)) : de === \"prev\" && (o.hoveringIndex--, o.hoveringIndex < 0 && (o.hoveringIndex = o.options.size - 1));\n const Se = k.value[o.hoveringIndex];\n (Se.disabled === !0 || Se.states.groupDisabled === !0 || !Se.visible) && Z(de), wt(() => ze(T.value));\n }\n }, fe = () => {\n if (!c.value)\n return 0;\n const de = window.getComputedStyle(c.value);\n return Number.parseFloat(de.gap || \"6px\");\n }, he = ce(() => {\n const de = fe();\n return { maxWidth: `${v.value && n.maxCollapseTags === 1 ? o.selectionWidth - o.collapseItemWidth - de : o.selectionWidth}px` };\n }), be = ce(() => ({ maxWidth: `${o.selectionWidth}px` })), Ce = ce(() => ({\n width: `${Math.max(o.calculatorWidth, gR)}px`\n }));\n return ti(c, ue), ti(f, ve), ti(u, we), ti(x, we), ti(y, pe), ti(v, _e), tn(() => {\n U();\n }), {\n inputId: C,\n contentId: i,\n nsSelect: r,\n nsInput: s,\n states: o,\n isFocused: A,\n expanded: P,\n optionsArray: k,\n hoverOption: T,\n selectSize: q,\n filteredOptionsCount: j,\n resetCalculatorWidth: ve,\n updateTooltip: we,\n updateTagTooltip: pe,\n debouncedOnInputChange: Te,\n onInput: se,\n deletePrevTag: Ie,\n deleteTag: et,\n deleteSelected: mt,\n handleOptionSelect: ke,\n scrollToOption: ze,\n hasModelValue: I,\n shouldShowPlaceholder: te,\n currentPlaceholder: B,\n mouseEnterEventName: $,\n showClose: N,\n iconComponent: D,\n iconReverse: z,\n validateState: V,\n validateIcon: H,\n showNewOption: K,\n updateOptions: ee,\n collapseTagSize: ie,\n setSelected: U,\n selectDisabled: b,\n emptyText: re,\n handleCompositionStart: _,\n handleCompositionUpdate: S,\n handleCompositionEnd: M,\n onOptionCreate: at,\n onOptionDestroy: tt,\n handleMenuEnter: ft,\n focus: Ft,\n blur: Rt,\n handleClearClick: On,\n handleClickOutside: kn,\n handleEsc: li,\n toggleMenu: ss,\n selectOption: ne,\n getValueKey: Ee,\n navigateOptions: Z,\n dropdownMenuVisible: Y,\n showTagList: $e,\n collapseTagList: lt,\n tagStyle: he,\n collapseTagStyle: be,\n inputStyle: Ce,\n popperRef: yt,\n inputRef: h,\n tooltipRef: l,\n tagTooltipRef: d,\n calculatorRef: f,\n prefixRef: g,\n suffixRef: p,\n selectRef: a,\n wrapperRef: x,\n selectionRef: c,\n scrollbarRef: m,\n menuRef: u,\n tagMenuRef: y,\n collapseItemRef: v\n };\n};\nvar yR = De({\n name: \"ElOptions\",\n setup(n, { slots: e }) {\n const t = ht(wu);\n let i = [];\n return () => {\n var r, s;\n const o = (r = e.default) == null ? void 0 : r.call(e), a = [];\n function c(l) {\n Bn(l) && l.forEach((d) => {\n var h, f, g, p;\n const u = (h = (d == null ? void 0 : d.type) || {}) == null ? void 0 : h.name;\n u === \"ElOptionGroup\" ? c(!Ln(d.children) && !Bn(d.children) && Tn((f = d.children) == null ? void 0 : f.default) ? (g = d.children) == null ? void 0 : g.default() : d.children) : u === \"ElOption\" ? a.push((p = d.props) == null ? void 0 : p.value) : Bn(d.children) && c(d.children);\n });\n }\n return o.length && c((s = o[0]) == null ? void 0 : s.children), ld(a, i) || (i = a, t && (t.states.optionValues = a)), o;\n };\n }\n});\nconst bR = dt({\n name: String,\n id: String,\n modelValue: {\n type: [Array, String, Number, Boolean, Object],\n default: void 0\n },\n autocomplete: {\n type: String,\n default: \"off\"\n },\n automaticDropdown: Boolean,\n size: Do,\n effect: {\n type: Je(String),\n default: \"light\"\n },\n disabled: Boolean,\n clearable: Boolean,\n filterable: Boolean,\n allowCreate: Boolean,\n loading: Boolean,\n popperClass: {\n type: String,\n default: \"\"\n },\n popperOptions: {\n type: Je(Object),\n default: () => ({})\n },\n remote: Boolean,\n loadingText: String,\n noMatchText: String,\n noDataText: String,\n remoteMethod: Function,\n filterMethod: Function,\n multiple: Boolean,\n multipleLimit: {\n type: Number,\n default: 0\n },\n placeholder: {\n type: String\n },\n defaultFirstOption: Boolean,\n reserveKeyword: {\n type: Boolean,\n default: !0\n },\n valueKey: {\n type: String,\n default: \"value\"\n },\n collapseTags: Boolean,\n collapseTagsTooltip: Boolean,\n maxCollapseTags: {\n type: Number,\n default: 1\n },\n teleported: jn.teleported,\n persistent: {\n type: Boolean,\n default: !0\n },\n clearIcon: {\n type: $r,\n default: yf\n },\n fitInputWidth: Boolean,\n suffixIcon: {\n type: $r,\n default: vf\n },\n tagType: { ...md.type, default: \"info\" },\n tagEffect: { ...md.effect, default: \"light\" },\n validateEvent: {\n type: Boolean,\n default: !0\n },\n remoteShowSuffix: Boolean,\n placement: {\n type: Je(String),\n values: ia,\n default: \"bottom-start\"\n },\n fallbackPlacements: {\n type: Je(Array),\n default: [\"bottom-start\", \"top-start\", \"right\", \"left\"]\n },\n appendTo: String,\n ...KA,\n ...Gs([\"ariaLabel\"])\n}), og = \"ElSelect\", xR = De({\n name: og,\n componentName: og,\n components: {\n ElSelectMenu: mR,\n ElOption: zf,\n ElOptions: yR,\n ElTag: dL,\n ElScrollbar: LC,\n ElTooltip: Ff,\n ElIcon: Dt\n },\n directives: { ClickOutside: sL },\n props: bR,\n emits: [\n It,\n qr,\n \"remove-tag\",\n \"clear\",\n \"visible-change\",\n \"focus\",\n \"blur\"\n ],\n setup(n, { emit: e }) {\n const t = ce(() => {\n const { modelValue: s, multiple: o } = n, a = o ? [] : void 0;\n return Bn(s) ? o ? s : a : o ? a : s;\n }), i = Yn({\n ...lr(n),\n modelValue: t\n }), r = vR(i, e);\n return dn(wu, Yn({\n props: i,\n states: r.states,\n optionsArray: r.optionsArray,\n handleOptionSelect: r.handleOptionSelect,\n onOptionCreate: r.onOptionCreate,\n onOptionDestroy: r.onOptionDestroy,\n selectRef: r.selectRef,\n setSelected: r.setSelected\n })), {\n ...r,\n modelValue: t\n };\n }\n});\nfunction wR(n, e, t, i, r, s) {\n const o = $n(\"el-tag\"), a = $n(\"el-tooltip\"), c = $n(\"el-icon\"), l = $n(\"el-option\"), d = $n(\"el-options\"), h = $n(\"el-scrollbar\"), f = $n(\"el-select-menu\"), g = l1(\"click-outside\");\n return Ot((ge(), Re(\"div\", {\n ref: \"selectRef\",\n class: Le([n.nsSelect.b(), n.nsSelect.m(n.selectSize)]),\n [c1(n.mouseEnterEventName)]: (p) => n.states.inputHovering = !0,\n onMouseleave: (p) => n.states.inputHovering = !1\n }, [\n ae(a, {\n ref: \"tooltipRef\",\n visible: n.dropdownMenuVisible,\n placement: n.placement,\n teleported: n.teleported,\n \"popper-class\": [n.nsSelect.e(\"popper\"), n.popperClass],\n \"popper-options\": n.popperOptions,\n \"fallback-placements\": n.fallbackPlacements,\n effect: n.effect,\n pure: \"\",\n trigger: \"click\",\n transition: `${n.nsSelect.namespace.value}-zoom-in-top`,\n \"stop-popper-mouse-event\": !1,\n \"gpu-acceleration\": !1,\n persistent: n.persistent,\n \"append-to\": n.appendTo,\n onBeforeShow: n.handleMenuEnter,\n onHide: (p) => n.states.isBeforeHide = !1\n }, {\n default: me(() => {\n var p;\n return [\n Fe(\"div\", {\n ref: \"wrapperRef\",\n class: Le([\n n.nsSelect.e(\"wrapper\"),\n n.nsSelect.is(\"focused\", n.isFocused),\n n.nsSelect.is(\"hovering\", n.states.inputHovering),\n n.nsSelect.is(\"filterable\", n.filterable),\n n.nsSelect.is(\"disabled\", n.selectDisabled)\n ]),\n onClick: cn(n.toggleMenu, [\"prevent\"])\n }, [\n n.$slots.prefix ? (ge(), Re(\"div\", {\n key: 0,\n ref: \"prefixRef\",\n class: Le(n.nsSelect.e(\"prefix\"))\n }, [\n Xe(n.$slots, \"prefix\")\n ], 2)) : Ge(\"v-if\", !0),\n Fe(\"div\", {\n ref: \"selectionRef\",\n class: Le([\n n.nsSelect.e(\"selection\"),\n n.nsSelect.is(\"near\", n.multiple && !n.$slots.prefix && !!n.states.selected.length)\n ])\n }, [\n n.multiple ? Xe(n.$slots, \"tag\", { key: 0 }, () => [\n (ge(!0), Re(Vt, null, ni(n.showTagList, (u) => (ge(), Re(\"div\", {\n key: n.getValueKey(u),\n class: Le(n.nsSelect.e(\"selected-item\"))\n }, [\n ae(o, {\n closable: !n.selectDisabled && !u.isDisabled,\n size: n.collapseTagSize,\n type: n.tagType,\n effect: n.tagEffect,\n \"disable-transitions\": \"\",\n style: Pt(n.tagStyle),\n onClose: (y) => n.deleteTag(y, u)\n }, {\n default: me(() => [\n Fe(\"span\", {\n class: Le(n.nsSelect.e(\"tags-text\"))\n }, [\n Xe(n.$slots, \"label\", {\n label: u.currentLabel,\n value: u.value\n }, () => [\n vt(xt(u.currentLabel), 1)\n ])\n ], 2)\n ]),\n _: 2\n }, 1032, [\"closable\", \"size\", \"type\", \"effect\", \"style\", \"onClose\"])\n ], 2))), 128)),\n n.collapseTags && n.states.selected.length > n.maxCollapseTags ? (ge(), He(a, {\n key: 0,\n ref: \"tagTooltipRef\",\n disabled: n.dropdownMenuVisible || !n.collapseTagsTooltip,\n \"fallback-placements\": [\"bottom\", \"top\", \"right\", \"left\"],\n effect: n.effect,\n placement: \"bottom\",\n teleported: n.teleported\n }, {\n default: me(() => [\n Fe(\"div\", {\n ref: \"collapseItemRef\",\n class: Le(n.nsSelect.e(\"selected-item\"))\n }, [\n ae(o, {\n closable: !1,\n size: n.collapseTagSize,\n type: n.tagType,\n effect: n.tagEffect,\n \"disable-transitions\": \"\",\n style: Pt(n.collapseTagStyle)\n }, {\n default: me(() => [\n Fe(\"span\", {\n class: Le(n.nsSelect.e(\"tags-text\"))\n }, \" + \" + xt(n.states.selected.length - n.maxCollapseTags), 3)\n ]),\n _: 1\n }, 8, [\"size\", \"type\", \"effect\", \"style\"])\n ], 2)\n ]),\n content: me(() => [\n Fe(\"div\", {\n ref: \"tagMenuRef\",\n class: Le(n.nsSelect.e(\"selection\"))\n }, [\n (ge(!0), Re(Vt, null, ni(n.collapseTagList, (u) => (ge(), Re(\"div\", {\n key: n.getValueKey(u),\n class: Le(n.nsSelect.e(\"selected-item\"))\n }, [\n ae(o, {\n class: \"in-tooltip\",\n closable: !n.selectDisabled && !u.isDisabled,\n size: n.collapseTagSize,\n type: n.tagType,\n effect: n.tagEffect,\n \"disable-transitions\": \"\",\n onClose: (y) => n.deleteTag(y, u)\n }, {\n default: me(() => [\n Fe(\"span\", {\n class: Le(n.nsSelect.e(\"tags-text\"))\n }, [\n Xe(n.$slots, \"label\", {\n label: u.currentLabel,\n value: u.value\n }, () => [\n vt(xt(u.currentLabel), 1)\n ])\n ], 2)\n ]),\n _: 2\n }, 1032, [\"closable\", \"size\", \"type\", \"effect\", \"onClose\"])\n ], 2))), 128))\n ], 2)\n ]),\n _: 3\n }, 8, [\"disabled\", \"effect\", \"teleported\"])) : Ge(\"v-if\", !0)\n ]) : Ge(\"v-if\", !0),\n n.selectDisabled ? Ge(\"v-if\", !0) : (ge(), Re(\"div\", {\n key: 1,\n class: Le([\n n.nsSelect.e(\"selected-item\"),\n n.nsSelect.e(\"input-wrapper\"),\n n.nsSelect.is(\"hidden\", !n.filterable)\n ])\n }, [\n Ot(Fe(\"input\", {\n id: n.inputId,\n ref: \"inputRef\",\n \"onUpdate:modelValue\": (u) => n.states.inputValue = u,\n type: \"text\",\n name: n.name,\n class: Le([n.nsSelect.e(\"input\"), n.nsSelect.is(n.selectSize)]),\n disabled: n.selectDisabled,\n autocomplete: n.autocomplete,\n style: Pt(n.inputStyle),\n role: \"combobox\",\n readonly: !n.filterable,\n spellcheck: \"false\",\n \"aria-activedescendant\": ((p = n.hoverOption) == null ? void 0 : p.id) || \"\",\n \"aria-controls\": n.contentId,\n \"aria-expanded\": n.dropdownMenuVisible,\n \"aria-label\": n.ariaLabel,\n \"aria-autocomplete\": \"none\",\n \"aria-haspopup\": \"listbox\",\n onKeydown: [\n gi(cn((u) => n.navigateOptions(\"next\"), [\"stop\", \"prevent\"]), [\"down\"]),\n gi(cn((u) => n.navigateOptions(\"prev\"), [\"stop\", \"prevent\"]), [\"up\"]),\n gi(cn(n.handleEsc, [\"stop\", \"prevent\"]), [\"esc\"]),\n gi(cn(n.selectOption, [\"stop\", \"prevent\"]), [\"enter\"]),\n gi(cn(n.deletePrevTag, [\"stop\"]), [\"delete\"])\n ],\n onCompositionstart: n.handleCompositionStart,\n onCompositionupdate: n.handleCompositionUpdate,\n onCompositionend: n.handleCompositionEnd,\n onInput: n.onInput,\n onClick: cn(n.toggleMenu, [\"stop\"])\n }, null, 46, [\"id\", \"onUpdate:modelValue\", \"name\", \"disabled\", \"autocomplete\", \"readonly\", \"aria-activedescendant\", \"aria-controls\", \"aria-expanded\", \"aria-label\", \"onKeydown\", \"onCompositionstart\", \"onCompositionupdate\", \"onCompositionend\", \"onInput\", \"onClick\"]), [\n [u1, n.states.inputValue]\n ]),\n n.filterable ? (ge(), Re(\"span\", {\n key: 0,\n ref: \"calculatorRef\",\n \"aria-hidden\": \"true\",\n class: Le(n.nsSelect.e(\"input-calculator\")),\n textContent: xt(n.states.inputValue)\n }, null, 10, [\"textContent\"])) : Ge(\"v-if\", !0)\n ], 2)),\n n.shouldShowPlaceholder ? (ge(), Re(\"div\", {\n key: 2,\n class: Le([\n n.nsSelect.e(\"selected-item\"),\n n.nsSelect.e(\"placeholder\"),\n n.nsSelect.is(\"transparent\", !n.hasModelValue || n.expanded && !n.states.inputValue)\n ])\n }, [\n n.hasModelValue ? Xe(n.$slots, \"label\", {\n key: 0,\n label: n.currentPlaceholder,\n value: n.modelValue\n }, () => [\n Fe(\"span\", null, xt(n.currentPlaceholder), 1)\n ]) : (ge(), Re(\"span\", { key: 1 }, xt(n.currentPlaceholder), 1))\n ], 2)) : Ge(\"v-if\", !0)\n ], 2),\n Fe(\"div\", {\n ref: \"suffixRef\",\n class: Le(n.nsSelect.e(\"suffix\"))\n }, [\n n.iconComponent && !n.showClose ? (ge(), He(c, {\n key: 0,\n class: Le([n.nsSelect.e(\"caret\"), n.nsSelect.e(\"icon\"), n.iconReverse])\n }, {\n default: me(() => [\n (ge(), He(Nn(n.iconComponent)))\n ]),\n _: 1\n }, 8, [\"class\"])) : Ge(\"v-if\", !0),\n n.showClose && n.clearIcon ? (ge(), He(c, {\n key: 1,\n class: Le([\n n.nsSelect.e(\"caret\"),\n n.nsSelect.e(\"icon\"),\n n.nsSelect.e(\"clear\")\n ]),\n onClick: n.handleClearClick\n }, {\n default: me(() => [\n (ge(), He(Nn(n.clearIcon)))\n ]),\n _: 1\n }, 8, [\"class\", \"onClick\"])) : Ge(\"v-if\", !0),\n n.validateState && n.validateIcon ? (ge(), He(c, {\n key: 2,\n class: Le([n.nsInput.e(\"icon\"), n.nsInput.e(\"validateIcon\")])\n }, {\n default: me(() => [\n (ge(), He(Nn(n.validateIcon)))\n ]),\n _: 1\n }, 8, [\"class\"])) : Ge(\"v-if\", !0)\n ], 2)\n ], 10, [\"onClick\"])\n ];\n }),\n content: me(() => [\n ae(f, { ref: \"menuRef\" }, {\n default: me(() => [\n n.$slots.header ? (ge(), Re(\"div\", {\n key: 0,\n class: Le(n.nsSelect.be(\"dropdown\", \"header\")),\n onClick: cn(() => {\n }, [\"stop\"])\n }, [\n Xe(n.$slots, \"header\")\n ], 10, [\"onClick\"])) : Ge(\"v-if\", !0),\n Ot(ae(h, {\n id: n.contentId,\n ref: \"scrollbarRef\",\n tag: \"ul\",\n \"wrap-class\": n.nsSelect.be(\"dropdown\", \"wrap\"),\n \"view-class\": n.nsSelect.be(\"dropdown\", \"list\"),\n class: Le([n.nsSelect.is(\"empty\", n.filteredOptionsCount === 0)]),\n role: \"listbox\",\n \"aria-label\": n.ariaLabel,\n \"aria-orientation\": \"vertical\"\n }, {\n default: me(() => [\n n.showNewOption ? (ge(), He(l, {\n key: 0,\n value: n.states.inputValue,\n created: !0\n }, null, 8, [\"value\"])) : Ge(\"v-if\", !0),\n ae(d, null, {\n default: me(() => [\n Xe(n.$slots, \"default\")\n ]),\n _: 3\n })\n ]),\n _: 3\n }, 8, [\"id\", \"wrap-class\", \"view-class\", \"class\", \"aria-label\"]), [\n [gn, n.states.options.size > 0 && !n.loading]\n ]),\n n.$slots.loading && n.loading ? (ge(), Re(\"div\", {\n key: 1,\n class: Le(n.nsSelect.be(\"dropdown\", \"loading\"))\n }, [\n Xe(n.$slots, \"loading\")\n ], 2)) : n.loading || n.filteredOptionsCount === 0 ? (ge(), Re(\"div\", {\n key: 2,\n class: Le(n.nsSelect.be(\"dropdown\", \"empty\"))\n }, [\n Xe(n.$slots, \"empty\", {}, () => [\n Fe(\"span\", null, xt(n.emptyText), 1)\n ])\n ], 2)) : Ge(\"v-if\", !0),\n n.$slots.footer ? (ge(), Re(\"div\", {\n key: 3,\n class: Le(n.nsSelect.be(\"dropdown\", \"footer\")),\n onClick: cn(() => {\n }, [\"stop\"])\n }, [\n Xe(n.$slots, \"footer\")\n ], 10, [\"onClick\"])) : Ge(\"v-if\", !0)\n ]),\n _: 3\n }, 512)\n ]),\n _: 3\n }, 8, [\"visible\", \"placement\", \"teleported\", \"popper-class\", \"popper-options\", \"fallback-placements\", \"effect\", \"transition\", \"persistent\", \"append-to\", \"onBeforeShow\", \"onHide\"])\n ], 16, [\"onMouseleave\"])), [\n [g, n.handleClickOutside, n.popperRef]\n ]);\n}\nvar MR = /* @__PURE__ */ ot(xR, [[\"render\", wR], [\"__file\", \"select.vue\"]]);\nconst _R = De({\n name: \"ElOptionGroup\",\n componentName: \"ElOptionGroup\",\n props: {\n label: String,\n disabled: Boolean\n },\n setup(n) {\n const e = it(\"select\"), t = Ae(null), i = sn(), r = Ae([]);\n dn(Ey, Yn({\n ...lr(n)\n }));\n const s = ce(() => r.value.some((l) => l.visible === !0)), o = (l) => {\n var d, h;\n return ((d = l.type) == null ? void 0 : d.name) === \"ElOption\" && !!((h = l.component) != null && h.proxy);\n }, a = (l) => {\n const d = Li(l), h = [];\n return d.forEach((f) => {\n var g, p;\n o(f) ? h.push(f.component.proxy) : (g = f.children) != null && g.length ? h.push(...a(f.children)) : (p = f.component) != null && p.subTree && h.push(...a(f.component.subTree));\n }), h;\n }, c = () => {\n r.value = a(i.subTree);\n };\n return tn(() => {\n c();\n }), k1(t, c, {\n attributes: !0,\n subtree: !0,\n childList: !0\n }), {\n groupRef: t,\n visible: s,\n ns: e\n };\n }\n});\nfunction SR(n, e, t, i, r, s) {\n return Ot((ge(), Re(\"ul\", {\n ref: \"groupRef\",\n class: Le(n.ns.be(\"group\", \"wrap\"))\n }, [\n Fe(\"li\", {\n class: Le(n.ns.be(\"group\", \"title\"))\n }, xt(n.label), 3),\n Fe(\"li\", null, [\n Fe(\"ul\", {\n class: Le(n.ns.b(\"group\"))\n }, [\n Xe(n.$slots, \"default\")\n ], 2)\n ])\n ], 2)), [\n [gn, n.visible]\n ]);\n}\nvar Ay = /* @__PURE__ */ ot(_R, [[\"render\", SR], [\"__file\", \"option-group.vue\"]]);\nconst oa = fn(MR, {\n Option: zf,\n OptionGroup: Ay\n}), aa = mr(zf);\nmr(Ay);\nconst TR = dt({\n trigger: Ka.trigger,\n placement: nh.placement,\n disabled: Ka.disabled,\n visible: jn.visible,\n transition: jn.transition,\n popperOptions: nh.popperOptions,\n tabindex: nh.tabindex,\n content: jn.content,\n popperStyle: jn.popperStyle,\n popperClass: jn.popperClass,\n enterable: {\n ...jn.enterable,\n default: !0\n },\n effect: {\n ...jn.effect,\n default: \"light\"\n },\n teleported: jn.teleported,\n title: String,\n width: {\n type: [String, Number],\n default: 150\n },\n offset: {\n type: Number,\n default: void 0\n },\n showAfter: {\n type: Number,\n default: 0\n },\n hideAfter: {\n type: Number,\n default: 200\n },\n autoClose: {\n type: Number,\n default: 0\n },\n showArrow: {\n type: Boolean,\n default: !0\n },\n persistent: {\n type: Boolean,\n default: !0\n },\n \"onUpdate:visible\": {\n type: Function\n }\n}), ER = {\n \"update:visible\": (n) => gf(n),\n \"before-enter\": () => !0,\n \"before-leave\": () => !0,\n \"after-enter\": () => !0,\n \"after-leave\": () => !0\n}, AR = \"onUpdate:visible\", CR = De({\n name: \"ElPopover\"\n}), LR = /* @__PURE__ */ De({\n ...CR,\n props: TR,\n emits: ER,\n setup(n, { expose: e, emit: t }) {\n const i = n, r = ce(() => i[AR]), s = it(\"popover\"), o = Ae(), a = ce(() => {\n var y;\n return (y = G(o)) == null ? void 0 : y.popperRef;\n }), c = ce(() => [\n {\n width: Zc(i.width)\n },\n i.popperStyle\n ]), l = ce(() => [s.b(), i.popperClass, { [s.m(\"plain\")]: !!i.content }]), d = ce(() => i.transition === `${s.namespace.value}-fade-in-linear`), h = () => {\n var y;\n (y = o.value) == null || y.hide();\n }, f = () => {\n t(\"before-enter\");\n }, g = () => {\n t(\"before-leave\");\n }, p = () => {\n t(\"after-enter\");\n }, u = () => {\n t(\"update:visible\", !1), t(\"after-leave\");\n };\n return e({\n popperRef: a,\n hide: h\n }), (y, v) => (ge(), He(G(Ff), Ii({\n ref_key: \"tooltipRef\",\n ref: o\n }, y.$attrs, {\n trigger: y.trigger,\n placement: y.placement,\n disabled: y.disabled,\n visible: y.visible,\n transition: y.transition,\n \"popper-options\": y.popperOptions,\n tabindex: y.tabindex,\n content: y.content,\n offset: y.offset,\n \"show-after\": y.showAfter,\n \"hide-after\": y.hideAfter,\n \"auto-close\": y.autoClose,\n \"show-arrow\": y.showArrow,\n \"aria-label\": y.title,\n effect: y.effect,\n enterable: y.enterable,\n \"popper-class\": G(l),\n \"popper-style\": G(c),\n teleported: y.teleported,\n persistent: y.persistent,\n \"gpu-acceleration\": G(d),\n \"onUpdate:visible\": G(r),\n onBeforeShow: f,\n onBeforeHide: g,\n onShow: p,\n onHide: u\n }), {\n content: me(() => [\n y.title ? (ge(), Re(\"div\", {\n key: 0,\n class: Le(G(s).e(\"title\")),\n role: \"title\"\n }, xt(y.title), 3)) : Ge(\"v-if\", !0),\n Xe(y.$slots, \"default\", {}, () => [\n vt(xt(y.content), 1)\n ])\n ]),\n default: me(() => [\n y.$slots.reference ? Xe(y.$slots, \"reference\", { key: 0 }) : Ge(\"v-if\", !0)\n ]),\n _: 3\n }, 16, [\"trigger\", \"placement\", \"disabled\", \"visible\", \"transition\", \"popper-options\", \"tabindex\", \"content\", \"offset\", \"show-after\", \"hide-after\", \"auto-close\", \"show-arrow\", \"aria-label\", \"effect\", \"enterable\", \"popper-class\", \"popper-style\", \"teleported\", \"persistent\", \"gpu-acceleration\", \"onUpdate:visible\"]));\n }\n});\nvar RR = /* @__PURE__ */ ot(LR, [[\"__file\", \"popover.vue\"]]);\nconst ag = (n, e) => {\n const t = e.arg || e.value, i = t == null ? void 0 : t.popperRef;\n i && (i.triggerRef = n);\n};\nvar PR = {\n mounted(n, e) {\n ag(n, e);\n },\n updated(n, e) {\n ag(n, e);\n }\n};\nconst IR = \"popover\", OR = yE(PR, IR), Mu = fn(RR, {\n directive: OR\n}), Cy = Symbol(\"sliderContextKey\"), DR = dt({\n modelValue: {\n type: Je([Number, Array]),\n default: 0\n },\n id: {\n type: String,\n default: void 0\n },\n min: {\n type: Number,\n default: 0\n },\n max: {\n type: Number,\n default: 100\n },\n step: {\n type: Number,\n default: 1\n },\n showInput: Boolean,\n showInputControls: {\n type: Boolean,\n default: !0\n },\n size: Do,\n inputSize: Do,\n showStops: Boolean,\n showTooltip: {\n type: Boolean,\n default: !0\n },\n formatTooltip: {\n type: Je(Function),\n default: void 0\n },\n disabled: Boolean,\n range: Boolean,\n vertical: Boolean,\n height: String,\n debounce: {\n type: Number,\n default: 300\n },\n rangeStartLabel: {\n type: String,\n default: void 0\n },\n rangeEndLabel: {\n type: String,\n default: void 0\n },\n formatValueText: {\n type: Je(Function),\n default: void 0\n },\n tooltipClass: {\n type: String,\n default: void 0\n },\n placement: {\n type: String,\n values: ia,\n default: \"top\"\n },\n marks: {\n type: Je(Object)\n },\n validateEvent: {\n type: Boolean,\n default: !0\n },\n ...Gs([\"ariaLabel\"])\n}), ih = (n) => Mt(n) || Bn(n) && n.every(Mt), NR = {\n [It]: ih,\n [_s]: ih,\n [qr]: ih\n}, BR = (n, e, t) => {\n const i = Ae();\n return tn(async () => {\n n.range ? (Array.isArray(n.modelValue) ? (e.firstValue = Math.max(n.min, n.modelValue[0]), e.secondValue = Math.min(n.max, n.modelValue[1])) : (e.firstValue = n.min, e.secondValue = n.max), e.oldValue = [e.firstValue, e.secondValue]) : (typeof n.modelValue != \"number\" || Number.isNaN(n.modelValue) ? e.firstValue = n.min : e.firstValue = Math.min(n.max, Math.max(n.min, n.modelValue)), e.oldValue = e.firstValue), un(window, \"resize\", t), await wt(), t();\n }), {\n sliderWrapper: i\n };\n}, FR = (n) => ce(() => n.marks ? Object.keys(n.marks).map(Number.parseFloat).sort((t, i) => t - i).filter((t) => t <= n.max && t >= n.min).map((t) => ({\n point: t,\n position: (t - n.min) * 100 / (n.max - n.min),\n mark: n.marks[t]\n})) : []), zR = (n, e, t) => {\n const { form: i, formItem: r } = gl(), s = Cn(), o = Ae(), a = Ae(), c = {\n firstButton: o,\n secondButton: a\n }, l = ce(() => n.disabled || (i == null ? void 0 : i.disabled) || !1), d = ce(() => Math.min(e.firstValue, e.secondValue)), h = ce(() => Math.max(e.firstValue, e.secondValue)), f = ce(() => n.range ? `${100 * (h.value - d.value) / (n.max - n.min)}%` : `${100 * (e.firstValue - n.min) / (n.max - n.min)}%`), g = ce(() => n.range ? `${100 * (d.value - n.min) / (n.max - n.min)}%` : \"0%\"), p = ce(() => n.vertical ? { height: n.height } : {}), u = ce(() => n.vertical ? {\n height: f.value,\n bottom: g.value\n } : {\n width: f.value,\n left: g.value\n }), y = () => {\n s.value && (e.sliderSize = s.value[`client${n.vertical ? \"Height\" : \"Width\"}`]);\n }, v = (E) => {\n const C = n.min + E * (n.max - n.min) / 100;\n if (!n.range)\n return o;\n let L;\n return Math.abs(d.value - C) < Math.abs(h.value - C) ? L = e.firstValue < e.secondValue ? \"firstButton\" : \"secondButton\" : L = e.firstValue > e.secondValue ? \"firstButton\" : \"secondButton\", c[L];\n }, m = (E) => {\n const C = v(E);\n return C.value.setPosition(E), C;\n }, w = (E) => {\n e.firstValue = E ?? n.min, S(n.range ? [d.value, h.value] : E ?? n.min);\n }, _ = (E) => {\n e.secondValue = E, n.range && S([d.value, h.value]);\n }, S = (E) => {\n t(It, E), t(_s, E);\n }, M = async () => {\n await wt(), t(qr, n.range ? [d.value, h.value] : n.modelValue);\n }, x = (E) => {\n var C, L, O, b, I, N;\n if (l.value || e.dragging)\n return;\n y();\n let D = 0;\n if (n.vertical) {\n const z = (O = (L = (C = E.touches) == null ? void 0 : C.item(0)) == null ? void 0 : L.clientY) != null ? O : E.clientY;\n D = (s.value.getBoundingClientRect().bottom - z) / e.sliderSize * 100;\n } else {\n const z = (N = (I = (b = E.touches) == null ? void 0 : b.item(0)) == null ? void 0 : I.clientX) != null ? N : E.clientX, V = s.value.getBoundingClientRect().left;\n D = (z - V) / e.sliderSize * 100;\n }\n if (!(D < 0 || D > 100))\n return m(D);\n };\n return {\n elFormItem: r,\n slider: s,\n firstButton: o,\n secondButton: a,\n sliderDisabled: l,\n minValue: d,\n maxValue: h,\n runwayStyle: p,\n barStyle: u,\n resetSize: y,\n setPosition: m,\n emitChange: M,\n onSliderWrapperPrevent: (E) => {\n var C, L;\n ((C = c.firstButton.value) != null && C.dragging || (L = c.secondButton.value) != null && L.dragging) && E.preventDefault();\n },\n onSliderClick: (E) => {\n x(E) && M();\n },\n onSliderDown: async (E) => {\n const C = x(E);\n C && (await wt(), C.value.onButtonDown(E));\n },\n onSliderMarkerDown: (E) => {\n l.value || e.dragging || m(E);\n },\n setFirstValue: w,\n setSecondValue: _\n };\n}, { left: UR, down: VR, right: kR, up: GR, home: HR, end: WR, pageUp: jR, pageDown: $R } = Oi, ZR = (n, e, t) => {\n const i = Ae(), r = Ae(!1), s = ce(() => e.value instanceof Function), o = ce(() => s.value && e.value(n.modelValue) || n.modelValue), a = ad(() => {\n t.value && (r.value = !0);\n }, 50), c = ad(() => {\n t.value && (r.value = !1);\n }, 50);\n return {\n tooltip: i,\n tooltipVisible: r,\n formatValue: o,\n displayTooltip: a,\n hideTooltip: c\n };\n}, XR = (n, e, t) => {\n const {\n disabled: i,\n min: r,\n max: s,\n step: o,\n showTooltip: a,\n precision: c,\n sliderSize: l,\n formatTooltip: d,\n emitChange: h,\n resetSize: f,\n updateDragging: g\n } = ht(Cy), { tooltip: p, tooltipVisible: u, formatValue: y, displayTooltip: v, hideTooltip: m } = ZR(n, d, a), w = Ae(), _ = ce(() => `${(n.modelValue - r.value) / (s.value - r.value) * 100}%`), S = ce(() => n.vertical ? { bottom: _.value } : { left: _.value }), M = () => {\n e.hovering = !0, v();\n }, x = () => {\n e.hovering = !1, e.dragging || m();\n }, A = (H) => {\n i.value || (H.preventDefault(), N(H), window.addEventListener(\"mousemove\", D), window.addEventListener(\"touchmove\", D), window.addEventListener(\"mouseup\", z), window.addEventListener(\"touchend\", z), window.addEventListener(\"contextmenu\", z), w.value.focus());\n }, P = (H) => {\n i.value || (e.newPosition = Number.parseFloat(_.value) + H / (s.value - r.value) * 100, V(e.newPosition), h());\n }, T = () => {\n P(-o.value);\n }, R = () => {\n P(o.value);\n }, E = () => {\n P(-o.value * 4);\n }, C = () => {\n P(o.value * 4);\n }, L = () => {\n i.value || (V(0), h());\n }, O = () => {\n i.value || (V(100), h());\n }, b = (H) => {\n let X = !0;\n [UR, VR].includes(H.key) ? T() : [kR, GR].includes(H.key) ? R() : H.key === HR ? L() : H.key === WR ? O() : H.key === $R ? E() : H.key === jR ? C() : X = !1, X && H.preventDefault();\n }, I = (H) => {\n let X, re;\n return H.type.startsWith(\"touch\") ? (re = H.touches[0].clientY, X = H.touches[0].clientX) : (re = H.clientY, X = H.clientX), {\n clientX: X,\n clientY: re\n };\n }, N = (H) => {\n e.dragging = !0, e.isClick = !0;\n const { clientX: X, clientY: re } = I(H);\n n.vertical ? e.startY = re : e.startX = X, e.startPosition = Number.parseFloat(_.value), e.newPosition = e.startPosition;\n }, D = (H) => {\n if (e.dragging) {\n e.isClick = !1, v(), f();\n let X;\n const { clientX: re, clientY: j } = I(H);\n n.vertical ? (e.currentY = j, X = (e.startY - e.currentY) / l.value * 100) : (e.currentX = re, X = (e.currentX - e.startX) / l.value * 100), e.newPosition = e.startPosition + X, V(e.newPosition);\n }\n }, z = () => {\n e.dragging && (setTimeout(() => {\n e.dragging = !1, e.hovering || m(), e.isClick || V(e.newPosition), h();\n }, 0), window.removeEventListener(\"mousemove\", D), window.removeEventListener(\"touchmove\", D), window.removeEventListener(\"mouseup\", z), window.removeEventListener(\"touchend\", z), window.removeEventListener(\"contextmenu\", z));\n }, V = async (H) => {\n if (H === null || Number.isNaN(+H))\n return;\n H < 0 ? H = 0 : H > 100 && (H = 100);\n const X = 100 / ((s.value - r.value) / o.value);\n let j = Math.round(H / X) * X * (s.value - r.value) * 0.01 + r.value;\n j = Number.parseFloat(j.toFixed(c.value)), j !== n.modelValue && t(It, j), !e.dragging && n.modelValue !== e.oldValue && (e.oldValue = n.modelValue), await wt(), e.dragging && v(), p.value.updatePopper();\n };\n return qe(() => e.dragging, (H) => {\n g(H);\n }), un(w, \"touchstart\", A, { passive: !1 }), {\n disabled: i,\n button: w,\n tooltip: p,\n tooltipVisible: u,\n showTooltip: a,\n wrapperStyle: S,\n formatValue: y,\n handleMouseEnter: M,\n handleMouseLeave: x,\n onButtonDown: A,\n onKeyDown: b,\n setPosition: V\n };\n}, YR = (n, e, t, i) => ({\n stops: ce(() => {\n if (!n.showStops || n.min > n.max)\n return [];\n if (n.step === 0)\n return Jt(\"ElSlider\", \"step should not be 0.\"), [];\n const o = (n.max - n.min) / n.step, a = 100 * n.step / (n.max - n.min), c = Array.from({ length: o - 1 }).map((l, d) => (d + 1) * a);\n return n.range ? c.filter((l) => l < 100 * (t.value - n.min) / (n.max - n.min) || l > 100 * (i.value - n.min) / (n.max - n.min)) : c.filter((l) => l > 100 * (e.firstValue - n.min) / (n.max - n.min));\n }),\n getStopStyle: (o) => n.vertical ? { bottom: `${o}%` } : { left: `${o}%` }\n}), JR = (n, e, t, i, r, s) => {\n const o = (l) => {\n r(It, l), r(_s, l);\n }, a = () => n.range ? ![t.value, i.value].every((l, d) => l === e.oldValue[d]) : n.modelValue !== e.oldValue, c = () => {\n var l, d;\n n.min > n.max && na(\"Slider\", \"min should not be greater than max.\");\n const h = n.modelValue;\n n.range && Array.isArray(h) ? h[1] < n.min ? o([n.min, n.min]) : h[0] > n.max ? o([n.max, n.max]) : h[0] < n.min ? o([n.min, h[1]]) : h[1] > n.max ? o([h[0], n.max]) : (e.firstValue = h[0], e.secondValue = h[1], a() && (n.validateEvent && ((l = s == null ? void 0 : s.validate) == null || l.call(s, \"change\").catch((f) => Jt(f))), e.oldValue = h.slice())) : !n.range && typeof h == \"number\" && !Number.isNaN(h) && (h < n.min ? o(n.min) : h > n.max ? o(n.max) : (e.firstValue = h, a() && (n.validateEvent && ((d = s == null ? void 0 : s.validate) == null || d.call(s, \"change\").catch((f) => Jt(f))), e.oldValue = h)));\n };\n c(), qe(() => e.dragging, (l) => {\n l || c();\n }), qe(() => n.modelValue, (l, d) => {\n e.dragging || Array.isArray(l) && Array.isArray(d) && l.every((h, f) => h === d[f]) && e.firstValue === l[0] && e.secondValue === l[1] || c();\n }, {\n deep: !0\n }), qe(() => [n.min, n.max], () => {\n c();\n });\n}, KR = dt({\n modelValue: {\n type: Number,\n default: 0\n },\n vertical: Boolean,\n tooltipClass: String,\n placement: {\n type: String,\n values: ia,\n default: \"top\"\n }\n}), qR = {\n [It]: (n) => Mt(n)\n}, QR = De({\n name: \"ElSliderButton\"\n}), eP = /* @__PURE__ */ De({\n ...QR,\n props: KR,\n emits: qR,\n setup(n, { expose: e, emit: t }) {\n const i = n, r = it(\"slider\"), s = Yn({\n hovering: !1,\n dragging: !1,\n isClick: !1,\n startX: 0,\n currentX: 0,\n startY: 0,\n currentY: 0,\n startPosition: 0,\n newPosition: 0,\n oldValue: i.modelValue\n }), {\n disabled: o,\n button: a,\n tooltip: c,\n showTooltip: l,\n tooltipVisible: d,\n wrapperStyle: h,\n formatValue: f,\n handleMouseEnter: g,\n handleMouseLeave: p,\n onButtonDown: u,\n onKeyDown: y,\n setPosition: v\n } = XR(i, s, t), { hovering: m, dragging: w } = lr(s);\n return e({\n onButtonDown: u,\n onKeyDown: y,\n setPosition: v,\n hovering: m,\n dragging: w\n }), (_, S) => (ge(), Re(\"div\", {\n ref_key: \"button\",\n ref: a,\n class: Le([G(r).e(\"button-wrapper\"), { hover: G(m), dragging: G(w) }]),\n style: Pt(G(h)),\n tabindex: G(o) ? -1 : 0,\n onMouseenter: G(g),\n onMouseleave: G(p),\n onMousedown: G(u),\n onFocus: G(g),\n onBlur: G(p),\n onKeydown: G(y)\n }, [\n ae(G(Ff), {\n ref_key: \"tooltip\",\n ref: c,\n visible: G(d),\n placement: _.placement,\n \"fallback-placements\": [\"top\", \"bottom\", \"right\", \"left\"],\n \"stop-popper-mouse-event\": !1,\n \"popper-class\": _.tooltipClass,\n disabled: !G(l),\n persistent: \"\"\n }, {\n content: me(() => [\n Fe(\"span\", null, xt(G(f)), 1)\n ]),\n default: me(() => [\n Fe(\"div\", {\n class: Le([G(r).e(\"button\"), { hover: G(m), dragging: G(w) }])\n }, null, 2)\n ]),\n _: 1\n }, 8, [\"visible\", \"placement\", \"popper-class\", \"disabled\"])\n ], 46, [\"tabindex\", \"onMouseenter\", \"onMouseleave\", \"onMousedown\", \"onFocus\", \"onBlur\", \"onKeydown\"]));\n }\n});\nvar lg = /* @__PURE__ */ ot(eP, [[\"__file\", \"button.vue\"]]);\nconst tP = dt({\n mark: {\n type: Je([String, Object]),\n default: void 0\n }\n});\nvar nP = De({\n name: \"ElSliderMarker\",\n props: tP,\n setup(n) {\n const e = it(\"slider\"), t = ce(() => Ln(n.mark) ? n.mark : n.mark.label), i = ce(() => Ln(n.mark) ? void 0 : n.mark.style);\n return () => bo(\"div\", {\n class: e.e(\"marks-text\"),\n style: i.value\n }, t.value);\n }\n});\nconst iP = De({\n name: \"ElSlider\"\n}), rP = /* @__PURE__ */ De({\n ...iP,\n props: DR,\n emits: NR,\n setup(n, { expose: e, emit: t }) {\n const i = n, r = it(\"slider\"), { t: s } = mu(), o = Yn({\n firstValue: 0,\n secondValue: 0,\n oldValue: 0,\n dragging: !1,\n sliderSize: 1\n }), {\n elFormItem: a,\n slider: c,\n firstButton: l,\n secondButton: d,\n sliderDisabled: h,\n minValue: f,\n maxValue: g,\n runwayStyle: p,\n barStyle: u,\n resetSize: y,\n emitChange: v,\n onSliderWrapperPrevent: m,\n onSliderClick: w,\n onSliderDown: _,\n onSliderMarkerDown: S,\n setFirstValue: M,\n setSecondValue: x\n } = zR(i, o, t), { stops: A, getStopStyle: P } = YR(i, o, f, g), { inputId: T, isLabeledByFormItem: R } = Pf(i, {\n formItemContext: a\n }), E = ra(), C = ce(() => i.inputSize || E.value), L = ce(() => i.ariaLabel || s(\"el.slider.defaultLabel\", {\n min: i.min,\n max: i.max\n })), O = ce(() => i.range ? i.rangeStartLabel || s(\"el.slider.defaultRangeStartLabel\") : L.value), b = ce(() => i.formatValueText ? i.formatValueText(X.value) : `${X.value}`), I = ce(() => i.rangeEndLabel || s(\"el.slider.defaultRangeEndLabel\")), N = ce(() => i.formatValueText ? i.formatValueText(re.value) : `${re.value}`), D = ce(() => [\n r.b(),\n r.m(E.value),\n r.is(\"vertical\", i.vertical),\n { [r.m(\"with-input\")]: i.showInput }\n ]), z = FR(i);\n JR(i, o, f, g, t, a);\n const V = ce(() => {\n const W = [i.min, i.max, i.step].map((K) => {\n const ee = `${K}`.split(\".\")[1];\n return ee ? ee.length : 0;\n });\n return Math.max.apply(null, W);\n }), { sliderWrapper: H } = BR(i, o, y), { firstValue: X, secondValue: re, sliderSize: j } = lr(o), k = (W) => {\n o.dragging = W;\n };\n return un(H, \"touchstart\", m, {\n passive: !1\n }), un(H, \"touchmove\", m, {\n passive: !1\n }), dn(Cy, {\n ...lr(i),\n sliderSize: j,\n disabled: h,\n precision: V,\n emitChange: v,\n resetSize: y,\n updateDragging: k\n }), e({\n onSliderClick: w\n }), (W, K) => {\n var ee, q;\n return ge(), Re(\"div\", {\n id: W.range ? G(T) : void 0,\n ref_key: \"sliderWrapper\",\n ref: H,\n class: Le(G(D)),\n role: W.range ? \"group\" : void 0,\n \"aria-label\": W.range && !G(R) ? G(L) : void 0,\n \"aria-labelledby\": W.range && G(R) ? (ee = G(a)) == null ? void 0 : ee.labelId : void 0\n }, [\n Fe(\"div\", {\n ref_key: \"slider\",\n ref: c,\n class: Le([\n G(r).e(\"runway\"),\n { \"show-input\": W.showInput && !W.range },\n G(r).is(\"disabled\", G(h))\n ]),\n style: Pt(G(p)),\n onMousedown: G(_),\n onTouchstartPassive: G(_)\n }, [\n Fe(\"div\", {\n class: Le(G(r).e(\"bar\")),\n style: Pt(G(u))\n }, null, 6),\n ae(lg, {\n id: W.range ? void 0 : G(T),\n ref_key: \"firstButton\",\n ref: l,\n \"model-value\": G(X),\n vertical: W.vertical,\n \"tooltip-class\": W.tooltipClass,\n placement: W.placement,\n role: \"slider\",\n \"aria-label\": W.range || !G(R) ? G(O) : void 0,\n \"aria-labelledby\": !W.range && G(R) ? (q = G(a)) == null ? void 0 : q.labelId : void 0,\n \"aria-valuemin\": W.min,\n \"aria-valuemax\": W.range ? G(re) : W.max,\n \"aria-valuenow\": G(X),\n \"aria-valuetext\": G(b),\n \"aria-orientation\": W.vertical ? \"vertical\" : \"horizontal\",\n \"aria-disabled\": G(h),\n \"onUpdate:modelValue\": G(M)\n }, null, 8, [\"id\", \"model-value\", \"vertical\", \"tooltip-class\", \"placement\", \"aria-label\", \"aria-labelledby\", \"aria-valuemin\", \"aria-valuemax\", \"aria-valuenow\", \"aria-valuetext\", \"aria-orientation\", \"aria-disabled\", \"onUpdate:modelValue\"]),\n W.range ? (ge(), He(lg, {\n key: 0,\n ref_key: \"secondButton\",\n ref: d,\n \"model-value\": G(re),\n vertical: W.vertical,\n \"tooltip-class\": W.tooltipClass,\n placement: W.placement,\n role: \"slider\",\n \"aria-label\": G(I),\n \"aria-valuemin\": G(X),\n \"aria-valuemax\": W.max,\n \"aria-valuenow\": G(re),\n \"aria-valuetext\": G(N),\n \"aria-orientation\": W.vertical ? \"vertical\" : \"horizontal\",\n \"aria-disabled\": G(h),\n \"onUpdate:modelValue\": G(x)\n }, null, 8, [\"model-value\", \"vertical\", \"tooltip-class\", \"placement\", \"aria-label\", \"aria-valuemin\", \"aria-valuemax\", \"aria-valuenow\", \"aria-valuetext\", \"aria-orientation\", \"aria-disabled\", \"onUpdate:modelValue\"])) : Ge(\"v-if\", !0),\n W.showStops ? (ge(), Re(\"div\", { key: 1 }, [\n (ge(!0), Re(Vt, null, ni(G(A), (ie, Y) => (ge(), Re(\"div\", {\n key: Y,\n class: Le(G(r).e(\"stop\")),\n style: Pt(G(P)(ie))\n }, null, 6))), 128))\n ])) : Ge(\"v-if\", !0),\n G(z).length > 0 ? (ge(), Re(Vt, { key: 2 }, [\n Fe(\"div\", null, [\n (ge(!0), Re(Vt, null, ni(G(z), (ie, Y) => (ge(), Re(\"div\", {\n key: Y,\n style: Pt(G(P)(ie.position)),\n class: Le([G(r).e(\"stop\"), G(r).e(\"marks-stop\")])\n }, null, 6))), 128))\n ]),\n Fe(\"div\", {\n class: Le(G(r).e(\"marks\"))\n }, [\n (ge(!0), Re(Vt, null, ni(G(z), (ie, Y) => (ge(), He(G(nP), {\n key: Y,\n mark: ie.mark,\n style: Pt(G(P)(ie.position)),\n onMousedown: cn((te) => G(S)(ie.position), [\"stop\"])\n }, null, 8, [\"mark\", \"style\", \"onMousedown\"]))), 128))\n ], 2)\n ], 64)) : Ge(\"v-if\", !0)\n ], 46, [\"onMousedown\", \"onTouchstartPassive\"]),\n W.showInput && !W.range ? (ge(), He(G(vr), {\n key: 0,\n ref: \"input\",\n \"model-value\": G(X),\n class: Le(G(r).e(\"input\")),\n step: W.step,\n disabled: G(h),\n controls: W.showInputControls,\n min: W.min,\n max: W.max,\n precision: G(V),\n debounce: W.debounce,\n size: G(C),\n \"onUpdate:modelValue\": G(M),\n onChange: G(v)\n }, null, 8, [\"model-value\", \"class\", \"step\", \"disabled\", \"controls\", \"min\", \"max\", \"precision\", \"debounce\", \"size\", \"onUpdate:modelValue\", \"onChange\"])) : Ge(\"v-if\", !0)\n ], 10, [\"id\", \"role\", \"aria-label\", \"aria-labelledby\"]);\n };\n }\n});\nvar sP = /* @__PURE__ */ ot(rP, [[\"__file\", \"slider.vue\"]]);\nconst ai = fn(sP), _u = Symbol(\"tabsRootContextKey\"), oP = dt({\n tabs: {\n type: Je(Array),\n default: () => er([])\n }\n}), Ly = \"ElTabBar\", aP = De({\n name: Ly\n}), lP = /* @__PURE__ */ De({\n ...aP,\n props: oP,\n setup(n, { expose: e }) {\n const t = n, i = sn(), r = ht(_u);\n r || na(Ly, \"\");\n const s = it(\"tabs\"), o = Ae(), a = Ae(), c = () => {\n let g = 0, p = 0;\n const u = [\"top\", \"bottom\"].includes(r.props.tabPosition) ? \"width\" : \"height\", y = u === \"width\" ? \"x\" : \"y\", v = y === \"x\" ? \"left\" : \"top\";\n return t.tabs.every((m) => {\n var w, _;\n const S = (_ = (w = i.parent) == null ? void 0 : w.refs) == null ? void 0 : _[`tab-${m.uid}`];\n if (!S)\n return !1;\n if (!m.active)\n return !0;\n g = S[`offset${Br(v)}`], p = S[`client${Br(u)}`];\n const M = window.getComputedStyle(S);\n return u === \"width\" && (p -= Number.parseFloat(M.paddingLeft) + Number.parseFloat(M.paddingRight), g += Number.parseFloat(M.paddingLeft)), !1;\n }), {\n [u]: `${p}px`,\n transform: `translate${Br(y)}(${g}px)`\n };\n }, l = () => a.value = c(), d = [], h = () => {\n var g;\n d.forEach((u) => u.stop()), d.length = 0;\n const p = (g = i.parent) == null ? void 0 : g.refs;\n if (p) {\n for (const u in p)\n if (u.startsWith(\"tab-\")) {\n const y = p[u];\n y && d.push(ti(y, l));\n }\n }\n };\n qe(() => t.tabs, async () => {\n await wt(), l(), h();\n }, { immediate: !0 });\n const f = ti(o, () => l());\n return oi(() => {\n d.forEach((g) => g.stop()), d.length = 0, f.stop();\n }), e({\n ref: o,\n update: l\n }), (g, p) => (ge(), Re(\"div\", {\n ref_key: \"barRef\",\n ref: o,\n class: Le([G(s).e(\"active-bar\"), G(s).is(G(r).props.tabPosition)]),\n style: Pt(a.value)\n }, null, 6));\n }\n});\nvar cP = /* @__PURE__ */ ot(lP, [[\"__file\", \"tab-bar.vue\"]]);\nconst uP = dt({\n panes: {\n type: Je(Array),\n default: () => er([])\n },\n currentName: {\n type: [String, Number],\n default: \"\"\n },\n editable: Boolean,\n type: {\n type: String,\n values: [\"card\", \"border-card\", \"\"],\n default: \"\"\n },\n stretch: Boolean\n}), hP = {\n tabClick: (n, e, t) => t instanceof Event,\n tabRemove: (n, e) => e instanceof Event\n}, cg = \"ElTabNav\", dP = De({\n name: cg,\n props: uP,\n emits: hP,\n setup(n, {\n expose: e,\n emit: t\n }) {\n const i = ht(_u);\n i || na(cg, \"\");\n const r = it(\"tabs\"), s = D1(), o = Z1(), a = Ae(), c = Ae(), l = Ae(), d = Ae(), h = Ae(!1), f = Ae(0), g = Ae(!1), p = Ae(!0), u = ce(() => [\"top\", \"bottom\"].includes(i.props.tabPosition) ? \"width\" : \"height\"), y = ce(() => ({\n transform: `translate${u.value === \"width\" ? \"X\" : \"Y\"}(-${f.value}px)`\n })), v = () => {\n if (!a.value)\n return;\n const A = a.value[`offset${Br(u.value)}`], P = f.value;\n if (!P)\n return;\n const T = P > A ? P - A : 0;\n f.value = T;\n }, m = () => {\n if (!a.value || !c.value)\n return;\n const A = c.value[`offset${Br(u.value)}`], P = a.value[`offset${Br(u.value)}`], T = f.value;\n if (A - T <= P)\n return;\n const R = A - T > P * 2 ? T + P : A - P;\n f.value = R;\n }, w = async () => {\n const A = c.value;\n if (!h.value || !l.value || !a.value || !A)\n return;\n await wt();\n const P = l.value.querySelector(\".is-active\");\n if (!P)\n return;\n const T = a.value, R = [\"top\", \"bottom\"].includes(i.props.tabPosition), E = P.getBoundingClientRect(), C = T.getBoundingClientRect(), L = R ? A.offsetWidth - C.width : A.offsetHeight - C.height, O = f.value;\n let b = O;\n R ? (E.left < C.left && (b = O - (C.left - E.left)), E.right > C.right && (b = O + E.right - C.right)) : (E.top < C.top && (b = O - (C.top - E.top)), E.bottom > C.bottom && (b = O + (E.bottom - C.bottom))), b = Math.max(b, 0), f.value = Math.min(b, L);\n }, _ = () => {\n var A;\n if (!c.value || !a.value)\n return;\n n.stretch && ((A = d.value) == null || A.update());\n const P = c.value[`offset${Br(u.value)}`], T = a.value[`offset${Br(u.value)}`], R = f.value;\n T < P ? (h.value = h.value || {}, h.value.prev = R, h.value.next = R + T < P, P - R < T && (f.value = P - T)) : (h.value = !1, R > 0 && (f.value = 0));\n }, S = (A) => {\n const P = A.code, {\n up: T,\n down: R,\n left: E,\n right: C\n } = Oi;\n if (![T, R, E, C].includes(P))\n return;\n const L = Array.from(A.currentTarget.querySelectorAll(\"[role=tab]:not(.is-disabled)\")), O = L.indexOf(A.target);\n let b;\n P === E || P === T ? O === 0 ? b = L.length - 1 : b = O - 1 : O < L.length - 1 ? b = O + 1 : b = 0, L[b].focus({\n preventScroll: !0\n }), L[b].click(), M();\n }, M = () => {\n p.value && (g.value = !0);\n }, x = () => g.value = !1;\n return qe(s, (A) => {\n A === \"hidden\" ? p.value = !1 : A === \"visible\" && setTimeout(() => p.value = !0, 50);\n }), qe(o, (A) => {\n A ? setTimeout(() => p.value = !0, 50) : p.value = !1;\n }), ti(l, _), tn(() => setTimeout(() => w(), 0)), sf(() => _()), e({\n scrollToActiveTab: w,\n removeFocus: x\n }), () => {\n const A = h.value ? [ae(\"span\", {\n class: [r.e(\"nav-prev\"), r.is(\"disabled\", !h.value.prev)],\n onClick: v\n }, [ae(Dt, null, {\n default: () => [ae(Wr, null, null)]\n })]), ae(\"span\", {\n class: [r.e(\"nav-next\"), r.is(\"disabled\", !h.value.next)],\n onClick: m\n }, [ae(Dt, null, {\n default: () => [ae(jr, null, null)]\n })])] : null, P = n.panes.map((T, R) => {\n var E, C, L, O;\n const b = T.uid, I = T.props.disabled, N = (C = (E = T.props.name) != null ? E : T.index) != null ? C : `${R}`, D = !I && (T.isClosable || n.editable);\n T.index = `${R}`;\n const z = D ? ae(Dt, {\n class: \"is-icon-close\",\n onClick: (X) => t(\"tabRemove\", T, X)\n }, {\n default: () => [ae(cd, null, null)]\n }) : null, V = ((O = (L = T.slots).label) == null ? void 0 : O.call(L)) || T.props.label, H = !I && T.active ? 0 : -1;\n return ae(\"div\", {\n ref: `tab-${b}`,\n class: [r.e(\"item\"), r.is(i.props.tabPosition), r.is(\"active\", T.active), r.is(\"disabled\", I), r.is(\"closable\", D), r.is(\"focus\", g.value)],\n id: `tab-${N}`,\n key: `tab-${b}`,\n \"aria-controls\": `pane-${N}`,\n role: \"tab\",\n \"aria-selected\": T.active,\n tabindex: H,\n onFocus: () => M(),\n onBlur: () => x(),\n onClick: (X) => {\n x(), t(\"tabClick\", T, N, X);\n },\n onKeydown: (X) => {\n D && (X.code === Oi.delete || X.code === Oi.backspace) && t(\"tabRemove\", T, X);\n }\n }, [V, z]);\n });\n return ae(\"div\", {\n ref: l,\n class: [r.e(\"nav-wrap\"), r.is(\"scrollable\", !!h.value), r.is(i.props.tabPosition)]\n }, [A, ae(\"div\", {\n class: r.e(\"nav-scroll\"),\n ref: a\n }, [ae(\"div\", {\n class: [r.e(\"nav\"), r.is(i.props.tabPosition), r.is(\"stretch\", n.stretch && [\"top\", \"bottom\"].includes(i.props.tabPosition))],\n ref: c,\n style: y.value,\n role: \"tablist\",\n onKeydown: S\n }, [n.type ? null : ae(cP, {\n ref: d,\n tabs: [...n.panes]\n }, null), P])])]);\n };\n }\n}), fP = dt({\n type: {\n type: String,\n values: [\"card\", \"border-card\", \"\"],\n default: \"\"\n },\n closable: Boolean,\n addable: Boolean,\n modelValue: {\n type: [String, Number]\n },\n editable: Boolean,\n tabPosition: {\n type: String,\n values: [\"top\", \"right\", \"bottom\", \"left\"],\n default: \"top\"\n },\n beforeLeave: {\n type: Je(Function),\n default: () => !0\n },\n stretch: Boolean\n}), rh = (n) => Ln(n) || Mt(n), pP = {\n [It]: (n) => rh(n),\n tabClick: (n, e) => e instanceof Event,\n tabChange: (n) => rh(n),\n edit: (n, e) => [\"remove\", \"add\"].includes(e),\n tabRemove: (n) => rh(n),\n tabAdd: () => !0\n}, mP = De({\n name: \"ElTabs\",\n props: fP,\n emits: pP,\n setup(n, {\n emit: e,\n slots: t,\n expose: i\n }) {\n var r;\n const s = it(\"tabs\"), o = ce(() => [\"left\", \"right\"].includes(n.tabPosition)), {\n children: a,\n addChild: c,\n removeChild: l\n } = $A(sn(), \"ElTabPane\"), d = Ae(), h = Ae((r = n.modelValue) != null ? r : \"0\"), f = async (v, m = !1) => {\n var w, _, S;\n if (!(h.value === v || vi(v)))\n try {\n await ((w = n.beforeLeave) == null ? void 0 : w.call(n, v, h.value)) !== !1 && (h.value = v, m && (e(It, v), e(\"tabChange\", v)), (S = (_ = d.value) == null ? void 0 : _.removeFocus) == null || S.call(_));\n } catch {\n }\n }, g = (v, m, w) => {\n v.props.disabled || (f(m, !0), e(\"tabClick\", v, w));\n }, p = (v, m) => {\n v.props.disabled || vi(v.props.name) || (m.stopPropagation(), e(\"edit\", v.props.name, \"remove\"), e(\"tabRemove\", v.props.name));\n }, u = () => {\n e(\"edit\", void 0, \"add\"), e(\"tabAdd\");\n };\n qe(() => n.modelValue, (v) => f(v)), qe(h, async () => {\n var v;\n await wt(), (v = d.value) == null || v.scrollToActiveTab();\n }), dn(_u, {\n props: n,\n currentName: h,\n registerPane: (v) => {\n a.value.push(v);\n },\n sortPane: c,\n unregisterPane: l\n }), i({\n currentName: h\n });\n const y = ({\n render: v\n }) => v();\n return () => {\n const v = t[\"add-icon\"], m = n.editable || n.addable ? ae(\"div\", {\n class: [s.e(\"new-tab\"), o.value && s.e(\"new-tab-vertical\")],\n tabindex: \"0\",\n onClick: u,\n onKeydown: (S) => {\n S.code === Oi.enter && u();\n }\n }, [v ? Xe(t, \"add-icon\") : ae(Dt, {\n class: s.is(\"icon-plus\")\n }, {\n default: () => [ae(fu, null, null)]\n })]) : null, w = ae(\"div\", {\n class: [s.e(\"header\"), o.value && s.e(\"header-vertical\"), s.is(n.tabPosition)]\n }, [ae(y, {\n render: () => {\n const S = a.value.some((M) => M.slots.label);\n return ae(dP, {\n ref: d,\n currentName: h.value,\n editable: n.editable,\n type: n.type,\n panes: a.value,\n stretch: n.stretch,\n onTabClick: g,\n onTabRemove: p\n }, {\n $stable: !S\n });\n }\n }, null), m]), _ = ae(\"div\", {\n class: s.e(\"content\")\n }, [Xe(t, \"default\")]);\n return ae(\"div\", {\n class: [s.b(), s.m(n.tabPosition), {\n [s.m(\"card\")]: n.type === \"card\",\n [s.m(\"border-card\")]: n.type === \"border-card\"\n }]\n }, [_, w]);\n };\n }\n}), gP = dt({\n label: {\n type: String,\n default: \"\"\n },\n name: {\n type: [String, Number]\n },\n closable: Boolean,\n disabled: Boolean,\n lazy: Boolean\n}), Ry = \"ElTabPane\", vP = De({\n name: Ry\n}), yP = /* @__PURE__ */ De({\n ...vP,\n props: gP,\n setup(n) {\n const e = n, t = sn(), i = ou(), r = ht(_u);\n r || na(Ry, \"usage: \");\n const s = it(\"tab-pane\"), o = Ae(), a = ce(() => e.closable || r.props.closable), c = Wp(() => {\n var g;\n return r.currentName.value === ((g = e.name) != null ? g : o.value);\n }), l = Ae(c.value), d = ce(() => {\n var g;\n return (g = e.name) != null ? g : o.value;\n }), h = Wp(() => !e.lazy || l.value || c.value);\n qe(c, (g) => {\n g && (l.value = !0);\n });\n const f = Yn({\n uid: t.uid,\n slots: i,\n props: e,\n paneName: d,\n active: c,\n index: o,\n isClosable: a\n });\n return r.registerPane(f), tn(() => {\n r.sortPane(f);\n }), c0(() => {\n r.unregisterPane(f.uid);\n }), (g, p) => G(h) ? Ot((ge(), Re(\"div\", {\n key: 0,\n id: `pane-${G(d)}`,\n class: Le(G(s).b()),\n role: \"tabpanel\",\n \"aria-hidden\": !G(c),\n \"aria-labelledby\": `tab-${G(d)}`\n }, [\n Xe(g.$slots, \"default\")\n ], 10, [\"id\", \"aria-hidden\", \"aria-labelledby\"])), [\n [gn, G(c)]\n ]) : Ge(\"v-if\", !0);\n }\n});\nvar Py = /* @__PURE__ */ ot(yP, [[\"__file\", \"tab-pane.vue\"]]);\nconst Iy = fn(mP, {\n TabPane: Py\n}), Oy = mr(Py);\nfunction bP(n) {\n let e;\n const t = Ae(!1), i = Yn({\n ...n,\n originalPosition: \"\",\n originalOverflow: \"\",\n visible: !1\n });\n function r(f) {\n i.text = f;\n }\n function s() {\n const f = i.parent, g = h.ns;\n if (!f.vLoadingAddClassList) {\n let p = f.getAttribute(\"loading-number\");\n p = Number.parseInt(p) - 1, p ? f.setAttribute(\"loading-number\", p.toString()) : ($c(f, g.bm(\"parent\", \"relative\")), f.removeAttribute(\"loading-number\")), $c(f, g.bm(\"parent\", \"hidden\"));\n }\n o(), d.unmount();\n }\n function o() {\n var f, g;\n (g = (f = h.$el) == null ? void 0 : f.parentNode) == null || g.removeChild(h.$el);\n }\n function a() {\n var f;\n n.beforeClose && !n.beforeClose() || (t.value = !0, clearTimeout(e), e = setTimeout(c, 400), i.visible = !1, (f = n.closed) == null || f.call(n));\n }\n function c() {\n if (!t.value)\n return;\n const f = i.parent;\n t.value = !1, f.vLoadingAddClassList = void 0, s();\n }\n const l = De({\n name: \"ElLoading\",\n setup(f, { expose: g }) {\n const { ns: p, zIndex: u } = eC(\"loading\");\n return g({\n ns: p,\n zIndex: u\n }), () => {\n const y = i.spinner || i.svg, v = bo(\"svg\", {\n class: \"circular\",\n viewBox: i.svgViewBox ? i.svgViewBox : \"0 0 50 50\",\n ...y ? { innerHTML: y } : {}\n }, [\n bo(\"circle\", {\n class: \"path\",\n cx: \"25\",\n cy: \"25\",\n r: \"20\",\n fill: \"none\"\n })\n ]), m = i.text ? bo(\"p\", { class: p.b(\"text\") }, [i.text]) : void 0;\n return bo(hl, {\n name: p.b(\"fade\"),\n onAfterLeave: c\n }, {\n default: me(() => [\n Ot(ae(\"div\", {\n style: {\n backgroundColor: i.background || \"\"\n },\n class: [\n p.b(\"mask\"),\n i.customClass,\n i.fullscreen ? \"is-fullscreen\" : \"\"\n ]\n }, [\n bo(\"div\", {\n class: p.b(\"spinner\")\n }, [v, m])\n ]), [[gn, i.visible]])\n ])\n });\n };\n }\n }), d = h1(l), h = d.mount(document.createElement(\"div\"));\n return {\n ...lr(i),\n setText: r,\n removeElLoadingChild: o,\n close: a,\n handleAfterLeave: c,\n vm: h,\n get $el() {\n return h.$el;\n }\n };\n}\nlet Gl;\nconst gd = function(n = {}) {\n if (!Qt)\n return;\n const e = xP(n);\n if (e.fullscreen && Gl)\n return Gl;\n const t = bP({\n ...e,\n closed: () => {\n var r;\n (r = e.closed) == null || r.call(e), e.fullscreen && (Gl = void 0);\n }\n });\n wP(e, e.parent, t), ug(e, e.parent, t), e.parent.vLoadingAddClassList = () => ug(e, e.parent, t);\n let i = e.parent.getAttribute(\"loading-number\");\n return i ? i = `${Number.parseInt(i) + 1}` : i = \"1\", e.parent.setAttribute(\"loading-number\", i), e.parent.appendChild(t.$el), wt(() => t.visible.value = e.visible), e.fullscreen && (Gl = t), t;\n}, xP = (n) => {\n var e, t, i, r;\n let s;\n return Ln(n.target) ? s = (e = document.querySelector(n.target)) != null ? e : document.body : s = n.target || document.body, {\n parent: s === document.body || n.body ? document.body : s,\n background: n.background || \"\",\n svg: n.svg || \"\",\n svgViewBox: n.svgViewBox || \"\",\n spinner: n.spinner || !1,\n text: n.text || \"\",\n fullscreen: s === document.body && ((t = n.fullscreen) != null ? t : !0),\n lock: (i = n.lock) != null ? i : !1,\n customClass: n.customClass || \"\",\n visible: (r = n.visible) != null ? r : !0,\n beforeClose: n.beforeClose,\n closed: n.closed,\n target: s\n };\n}, wP = async (n, e, t) => {\n const { nextZIndex: i } = t.vm.zIndex || t.vm._.exposed.zIndex, r = {};\n if (n.fullscreen)\n t.originalPosition.value = va(document.body, \"position\"), t.originalOverflow.value = va(document.body, \"overflow\"), r.zIndex = i();\n else if (n.parent === document.body) {\n t.originalPosition.value = va(document.body, \"position\"), await wt();\n for (const s of [\"top\", \"left\"]) {\n const o = s === \"top\" ? \"scrollTop\" : \"scrollLeft\";\n r[s] = `${n.target.getBoundingClientRect()[s] + document.body[o] + document.documentElement[o] - Number.parseInt(va(document.body, `margin-${s}`), 10)}px`;\n }\n for (const s of [\"height\", \"width\"])\n r[s] = `${n.target.getBoundingClientRect()[s]}px`;\n } else\n t.originalPosition.value = va(e, \"position\");\n for (const [s, o] of Object.entries(r))\n t.$el.style[s] = o;\n}, ug = (n, e, t) => {\n const i = t.vm.ns || t.vm._.exposed.ns;\n [\"absolute\", \"fixed\", \"sticky\"].includes(t.originalPosition.value) ? $c(e, i.bm(\"parent\", \"relative\")) : Am(e, i.bm(\"parent\", \"relative\")), n.fullscreen && n.lock ? Am(e, i.bm(\"parent\", \"hidden\")) : $c(e, i.bm(\"parent\", \"hidden\"));\n}, Uc = Symbol(\"ElLoading\"), hg = (n, e) => {\n var t, i, r, s;\n const o = e.instance, a = (f) => An(e.value) ? e.value[f] : void 0, c = (f) => {\n const g = Ln(f) && (o == null ? void 0 : o[f]) || f;\n return g && Ae(g);\n }, l = (f) => c(a(f) || n.getAttribute(`element-loading-${tM(f)}`)), d = (t = a(\"fullscreen\")) != null ? t : e.modifiers.fullscreen, h = {\n text: l(\"text\"),\n svg: l(\"svg\"),\n svgViewBox: l(\"svgViewBox\"),\n spinner: l(\"spinner\"),\n background: l(\"background\"),\n customClass: l(\"customClass\"),\n fullscreen: d,\n target: (i = a(\"target\")) != null ? i : d ? void 0 : n,\n body: (r = a(\"body\")) != null ? r : e.modifiers.body,\n lock: (s = a(\"lock\")) != null ? s : e.modifiers.lock\n };\n n[Uc] = {\n options: h,\n instance: gd(h)\n };\n}, MP = (n, e) => {\n for (const t of Object.keys(e))\n Ls(e[t]) && (e[t].value = n[t]);\n}, vd = {\n mounted(n, e) {\n e.value && hg(n, e);\n },\n updated(n, e) {\n const t = n[Uc];\n e.oldValue !== e.value && (e.value && !e.oldValue ? hg(n, e) : e.value && e.oldValue ? An(e.value) && MP(e.value, t.options) : t == null || t.instance.close());\n },\n unmounted(n) {\n var e;\n (e = n[Uc]) == null || e.instance.close(), n[Uc] = null;\n }\n}, _P = {\n install(n) {\n n.directive(\"loading\", vd), n.config.globalProperties.$loading = gd;\n },\n directive: vd,\n service: gd\n};\nvar Dy = { exports: {} }, dg = {}, fg;\nfunction SP() {\n return fg || (fg = 1, function(n) {\n var e = function() {\n try {\n return !!Symbol.iterator;\n } catch {\n return !1;\n }\n }, t = e(), i = function(l) {\n var d = {\n next: function() {\n var h = l.shift();\n return { done: h === void 0, value: h };\n }\n };\n return t && (d[Symbol.iterator] = function() {\n return d;\n }), d;\n }, r = function(l) {\n return encodeURIComponent(l).replace(/%20/g, \"+\");\n }, s = function(l) {\n return decodeURIComponent(String(l).replace(/\\+/g, \" \"));\n }, o = function() {\n var l = function(h) {\n Object.defineProperty(this, \"_entries\", { writable: !0, value: {} });\n var f = typeof h;\n if (f !== \"undefined\") if (f === \"string\")\n h !== \"\" && this._fromString(h);\n else if (h instanceof l) {\n var g = this;\n h.forEach(function(v, m) {\n g.append(m, v);\n });\n } else if (h !== null && f === \"object\")\n if (Object.prototype.toString.call(h) === \"[object Array]\")\n for (var p = 0; p < h.length; p++) {\n var u = h[p];\n if (Object.prototype.toString.call(u) === \"[object Array]\" || u.length !== 2)\n this.append(u[0], u[1]);\n else\n throw new TypeError(\"Expected [string, any] as entry at index \" + p + \" of URLSearchParams's input\");\n }\n else\n for (var y in h)\n h.hasOwnProperty(y) && this.append(y, h[y]);\n else\n throw new TypeError(\"Unsupported input's type for URLSearchParams\");\n }, d = l.prototype;\n d.append = function(h, f) {\n h in this._entries ? this._entries[h].push(String(f)) : this._entries[h] = [String(f)];\n }, d.delete = function(h) {\n delete this._entries[h];\n }, d.get = function(h) {\n return h in this._entries ? this._entries[h][0] : null;\n }, d.getAll = function(h) {\n return h in this._entries ? this._entries[h].slice(0) : [];\n }, d.has = function(h) {\n return h in this._entries;\n }, d.set = function(h, f) {\n this._entries[h] = [String(f)];\n }, d.forEach = function(h, f) {\n var g;\n for (var p in this._entries)\n if (this._entries.hasOwnProperty(p)) {\n g = this._entries[p];\n for (var u = 0; u < g.length; u++)\n h.call(f, g[u], p, this);\n }\n }, d.keys = function() {\n var h = [];\n return this.forEach(function(f, g) {\n h.push(g);\n }), i(h);\n }, d.values = function() {\n var h = [];\n return this.forEach(function(f) {\n h.push(f);\n }), i(h);\n }, d.entries = function() {\n var h = [];\n return this.forEach(function(f, g) {\n h.push([g, f]);\n }), i(h);\n }, t && (d[Symbol.iterator] = d.entries), d.toString = function() {\n var h = [];\n return this.forEach(function(f, g) {\n h.push(r(g) + \"=\" + r(f));\n }), h.join(\"&\");\n }, n.URLSearchParams = l;\n }, a = function() {\n try {\n var l = n.URLSearchParams;\n return new l(\"?a=1\").toString() === \"a=1\" && typeof l.prototype.set == \"function\" && typeof l.prototype.entries == \"function\";\n } catch {\n return !1;\n }\n };\n a() || o();\n var c = n.URLSearchParams.prototype;\n typeof c.sort != \"function\" && (c.sort = function() {\n var l = this, d = [];\n this.forEach(function(f, g) {\n d.push([g, f]), l._entries || l.delete(g);\n }), d.sort(function(f, g) {\n return f[0] < g[0] ? -1 : f[0] > g[0] ? 1 : 0;\n }), l._entries && (l._entries = {});\n for (var h = 0; h < d.length; h++)\n this.append(d[h][0], d[h][1]);\n }), typeof c._fromString != \"function\" && Object.defineProperty(c, \"_fromString\", {\n enumerable: !1,\n configurable: !1,\n writable: !1,\n value: function(l) {\n if (this._entries)\n this._entries = {};\n else {\n var d = [];\n this.forEach(function(p, u) {\n d.push(u);\n });\n for (var h = 0; h < d.length; h++)\n this.delete(d[h]);\n }\n l = l.replace(/^\\?/, \"\");\n for (var f = l.split(\"&\"), g, h = 0; h < f.length; h++)\n g = f[h].split(\"=\"), this.append(\n s(g[0]),\n g.length > 1 ? s(g[1]) : \"\"\n );\n }\n });\n }(\n typeof Nr < \"u\" ? Nr : typeof window < \"u\" ? window : typeof self < \"u\" ? self : Nr\n ), function(n) {\n var e = function() {\n try {\n var r = new n.URL(\"b\", \"http://a\");\n return r.pathname = \"c d\", r.href === \"http://a/c%20d\" && r.searchParams;\n } catch {\n return !1;\n }\n }, t = function() {\n var r = n.URL, s = function(c, l) {\n typeof c != \"string\" && (c = String(c)), l && typeof l != \"string\" && (l = String(l));\n var d = document, h;\n if (l && (n.location === void 0 || l !== n.location.href)) {\n l = l.toLowerCase(), d = document.implementation.createHTMLDocument(\"\"), h = d.createElement(\"base\"), h.href = l, d.head.appendChild(h);\n try {\n if (h.href.indexOf(l) !== 0) throw new Error(h.href);\n } catch (w) {\n throw new Error(\"URL unable to set base \" + l + \" due to \" + w);\n }\n }\n var f = d.createElement(\"a\");\n f.href = c, h && (d.body.appendChild(f), f.href = f.href);\n var g = d.createElement(\"input\");\n if (g.type = \"url\", g.value = c, f.protocol === \":\" || !/:/.test(f.href) || !g.checkValidity() && !l)\n throw new TypeError(\"Invalid URL\");\n Object.defineProperty(this, \"_anchorElement\", {\n value: f\n });\n var p = new n.URLSearchParams(this.search), u = !0, y = !0, v = this;\n [\"append\", \"delete\", \"set\"].forEach(function(w) {\n var _ = p[w];\n p[w] = function() {\n _.apply(p, arguments), u && (y = !1, v.search = p.toString(), y = !0);\n };\n }), Object.defineProperty(this, \"searchParams\", {\n value: p,\n enumerable: !0\n });\n var m = void 0;\n Object.defineProperty(this, \"_updateSearchParams\", {\n enumerable: !1,\n configurable: !1,\n writable: !1,\n value: function() {\n this.search !== m && (m = this.search, y && (u = !1, this.searchParams._fromString(this.search), u = !0));\n }\n });\n }, o = s.prototype, a = function(c) {\n Object.defineProperty(o, c, {\n get: function() {\n return this._anchorElement[c];\n },\n set: function(l) {\n this._anchorElement[c] = l;\n },\n enumerable: !0\n });\n };\n [\"hash\", \"host\", \"hostname\", \"port\", \"protocol\"].forEach(function(c) {\n a(c);\n }), Object.defineProperty(o, \"search\", {\n get: function() {\n return this._anchorElement.search;\n },\n set: function(c) {\n this._anchorElement.search = c, this._updateSearchParams();\n },\n enumerable: !0\n }), Object.defineProperties(o, {\n toString: {\n get: function() {\n var c = this;\n return function() {\n return c.href;\n };\n }\n },\n href: {\n get: function() {\n return this._anchorElement.href.replace(/\\?$/, \"\");\n },\n set: function(c) {\n this._anchorElement.href = c, this._updateSearchParams();\n },\n enumerable: !0\n },\n pathname: {\n get: function() {\n return this._anchorElement.pathname.replace(/(^\\/?)/, \"/\");\n },\n set: function(c) {\n this._anchorElement.pathname = c;\n },\n enumerable: !0\n },\n origin: {\n get: function() {\n var c = { \"http:\": 80, \"https:\": 443, \"ftp:\": 21 }[this._anchorElement.protocol], l = this._anchorElement.port != c && this._anchorElement.port !== \"\";\n return this._anchorElement.protocol + \"//\" + this._anchorElement.hostname + (l ? \":\" + this._anchorElement.port : \"\");\n },\n enumerable: !0\n },\n password: {\n // TODO\n get: function() {\n return \"\";\n },\n set: function(c) {\n },\n enumerable: !0\n },\n username: {\n // TODO\n get: function() {\n return \"\";\n },\n set: function(c) {\n },\n enumerable: !0\n }\n }), s.createObjectURL = function(c) {\n return r.createObjectURL.apply(r, arguments);\n }, s.revokeObjectURL = function(c) {\n return r.revokeObjectURL.apply(r, arguments);\n }, n.URL = s;\n };\n if (e() || t(), n.location !== void 0 && !(\"origin\" in n.location)) {\n var i = function() {\n return n.location.protocol + \"//\" + n.location.hostname + (n.location.port ? \":\" + n.location.port : \"\");\n };\n try {\n Object.defineProperty(n.location, \"origin\", {\n get: i,\n enumerable: !0\n });\n } catch {\n setInterval(function() {\n n.location.origin = i();\n }, 100);\n }\n }\n }(\n typeof Nr < \"u\" ? Nr : typeof window < \"u\" ? window : typeof self < \"u\" ? self : Nr\n )), dg;\n}\n/**\n * @license\n * Copyright 2010-2021 Three.js Authors\n * SPDX-License-Identifier: MIT\n */\nconst Uf = \"130\", TP = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, EP = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, Ny = 0, yd = 1, By = 2, AP = 3, CP = 0, Vf = 1, Fy = 2, wo = 3, Zr = 0, Zt = 1, Xr = 2, kf = 1, LP = 2, sr = 0, So = 1, bd = 2, xd = 3, wd = 4, zy = 5, ys = 100, Uy = 101, Vy = 102, Md = 103, _d = 104, ky = 200, Gy = 201, Hy = 202, Wy = 203, Gf = 204, Hf = 205, jy = 206, $y = 207, Zy = 208, Xy = 209, Yy = 210, Jy = 0, Ky = 1, qy = 2, qc = 3, Qy = 4, eb = 5, tb = 6, nb = 7, vl = 0, ib = 1, rb = 2, Ur = 0, sb = 1, ob = 2, ab = 3, lb = 4, cb = 5, Su = 300, yl = 301, bl = 302, Qc = 303, eu = 304, la = 306, xl = 307, Yr = 1e3, hn = 1001, No = 1002, Xt = 1003, qa = 1004, RP = 1004, Qa = 1005, PP = 1005, kt = 1006, Tu = 1007, IP = 1007, yr = 1008, OP = 1008, Ps = 1009, ub = 1010, hb = 1011, el = 1012, db = 1013, Va = 1014, tr = 1015, Ts = 1016, fb = 1017, pb = 1018, mb = 1019, To = 1020, gb = 1021, or = 1022, Zn = 1023, vb = 1024, yb = 1025, bb = Zn, Es = 1026, Bo = 1027, xb = 1028, wb = 1029, Mb = 1030, _b = 1031, Sb = 1032, Tb = 1033, Sd = 33776, Td = 33777, Ed = 33778, Ad = 33779, Cd = 35840, Ld = 35841, Rd = 35842, Pd = 35843, Eb = 36196, Id = 37492, Od = 37496, Ab = 37808, Cb = 37809, Lb = 37810, Rb = 37811, Pb = 37812, Ib = 37813, Ob = 37814, Db = 37815, Nb = 37816, Bb = 37817, Fb = 37818, zb = 37819, Ub = 37820, Vb = 37821, kb = 36492, Gb = 37840, Hb = 37841, Wb = 37842, jb = 37843, $b = 37844, Zb = 37845, Xb = 37846, Yb = 37847, Jb = 37848, Kb = 37849, qb = 37850, Qb = 37851, ex = 37852, tx = 37853, nx = 2200, ix = 2201, rx = 2202, Fo = 2300, Is = 2301, Vc = 2302, xs = 2400, ws = 2401, tl = 2402, Eu = 2500, Wf = 2501, sx = 0, ox = 1, jf = 2, Rn = 3e3, Os = 3001, Au = 3007, Cu = 3002, ax = 3003, $f = 3004, Zf = 3005, Xf = 3006, lx = 3200, cx = 3201, es = 0, ux = 1, DP = 0, kc = 7680, NP = 7681, BP = 7682, FP = 7683, zP = 34055, UP = 34056, VP = 5386, kP = 512, GP = 513, HP = 514, WP = 515, jP = 516, $P = 517, ZP = 518, hx = 519, zo = 35044, Uo = 35048, XP = 35040, YP = 35045, JP = 35049, KP = 35041, qP = 35046, QP = 35050, eI = 35042, tI = \"100\", Dd = \"300 es\";\nclass ts {\n addEventListener(e, t) {\n this._listeners === void 0 && (this._listeners = {});\n const i = this._listeners;\n i[e] === void 0 && (i[e] = []), i[e].indexOf(t) === -1 && i[e].push(t);\n }\n hasEventListener(e, t) {\n if (this._listeners === void 0) return !1;\n const i = this._listeners;\n return i[e] !== void 0 && i[e].indexOf(t) !== -1;\n }\n removeEventListener(e, t) {\n if (this._listeners === void 0) return;\n const r = this._listeners[e];\n if (r !== void 0) {\n const s = r.indexOf(t);\n s !== -1 && r.splice(s, 1);\n }\n }\n dispatchEvent(e) {\n if (this._listeners === void 0) return;\n const i = this._listeners[e.type];\n if (i !== void 0) {\n e.target = this;\n const r = i.slice(0);\n for (let s = 0, o = r.length; s < o; s++)\n r[s].call(this, e);\n e.target = null;\n }\n }\n}\nconst pn = [];\nfor (let n = 0; n < 256; n++)\n pn[n] = (n < 16 ? \"0\" : \"\") + n.toString(16);\nlet Hl = 1234567;\nconst As = Math.PI / 180, nl = 180 / Math.PI;\nfunction Xn() {\n const n = Math.random() * 4294967295 | 0, e = Math.random() * 4294967295 | 0, t = Math.random() * 4294967295 | 0, i = Math.random() * 4294967295 | 0;\n return (pn[n & 255] + pn[n >> 8 & 255] + pn[n >> 16 & 255] + pn[n >> 24 & 255] + \"-\" + pn[e & 255] + pn[e >> 8 & 255] + \"-\" + pn[e >> 16 & 15 | 64] + pn[e >> 24 & 255] + \"-\" + pn[t & 63 | 128] + pn[t >> 8 & 255] + \"-\" + pn[t >> 16 & 255] + pn[t >> 24 & 255] + pn[i & 255] + pn[i >> 8 & 255] + pn[i >> 16 & 255] + pn[i >> 24 & 255]).toUpperCase();\n}\nfunction vn(n, e, t) {\n return Math.max(e, Math.min(t, n));\n}\nfunction Yf(n, e) {\n return (n % e + e) % e;\n}\nfunction nI(n, e, t, i, r) {\n return i + (n - e) * (r - i) / (t - e);\n}\nfunction iI(n, e, t) {\n return n !== e ? (t - n) / (e - n) : 0;\n}\nfunction ka(n, e, t) {\n return (1 - t) * n + t * e;\n}\nfunction rI(n, e, t, i) {\n return ka(n, e, 1 - Math.exp(-t * i));\n}\nfunction sI(n, e = 1) {\n return e - Math.abs(Yf(n, e * 2) - e);\n}\nfunction oI(n, e, t) {\n return n <= e ? 0 : n >= t ? 1 : (n = (n - e) / (t - e), n * n * (3 - 2 * n));\n}\nfunction aI(n, e, t) {\n return n <= e ? 0 : n >= t ? 1 : (n = (n - e) / (t - e), n * n * n * (n * (n * 6 - 15) + 10));\n}\nfunction lI(n, e) {\n return n + Math.floor(Math.random() * (e - n + 1));\n}\nfunction cI(n, e) {\n return n + Math.random() * (e - n);\n}\nfunction uI(n) {\n return n * (0.5 - Math.random());\n}\nfunction hI(n) {\n return n !== void 0 && (Hl = n % 2147483647), Hl = Hl * 16807 % 2147483647, (Hl - 1) / 2147483646;\n}\nfunction dI(n) {\n return n * As;\n}\nfunction fI(n) {\n return n * nl;\n}\nfunction Nd(n) {\n return (n & n - 1) === 0 && n !== 0;\n}\nfunction dx(n) {\n return Math.pow(2, Math.ceil(Math.log(n) / Math.LN2));\n}\nfunction fx(n) {\n return Math.pow(2, Math.floor(Math.log(n) / Math.LN2));\n}\nfunction pI(n, e, t, i, r) {\n const s = Math.cos, o = Math.sin, a = s(t / 2), c = o(t / 2), l = s((e + i) / 2), d = o((e + i) / 2), h = s((e - i) / 2), f = o((e - i) / 2), g = s((i - e) / 2), p = o((i - e) / 2);\n switch (r) {\n case \"XYX\":\n n.set(a * d, c * h, c * f, a * l);\n break;\n case \"YZY\":\n n.set(c * f, a * d, c * h, a * l);\n break;\n case \"ZXZ\":\n n.set(c * h, c * f, a * d, a * l);\n break;\n case \"XZX\":\n n.set(a * d, c * p, c * g, a * l);\n break;\n case \"YXY\":\n n.set(c * g, a * d, c * p, a * l);\n break;\n case \"ZYZ\":\n n.set(c * p, c * g, a * d, a * l);\n break;\n default:\n console.warn(\"THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: \" + r);\n }\n}\nvar Bd = /* @__PURE__ */ Object.freeze({\n __proto__: null,\n DEG2RAD: As,\n RAD2DEG: nl,\n generateUUID: Xn,\n clamp: vn,\n euclideanModulo: Yf,\n mapLinear: nI,\n inverseLerp: iI,\n lerp: ka,\n damp: rI,\n pingpong: sI,\n smoothstep: oI,\n smootherstep: aI,\n randInt: lI,\n randFloat: cI,\n randFloatSpread: uI,\n seededRandom: hI,\n degToRad: dI,\n radToDeg: fI,\n isPowerOfTwo: Nd,\n ceilPowerOfTwo: dx,\n floorPowerOfTwo: fx,\n setQuaternionFromProperEuler: pI\n});\nclass Pe {\n constructor(e = 0, t = 0) {\n this.x = e, this.y = t;\n }\n get width() {\n return this.x;\n }\n set width(e) {\n this.x = e;\n }\n get height() {\n return this.y;\n }\n set height(e) {\n this.y = e;\n }\n set(e, t) {\n return this.x = e, this.y = t, this;\n }\n setScalar(e) {\n return this.x = e, this.y = e, this;\n }\n setX(e) {\n return this.x = e, this;\n }\n setY(e) {\n return this.y = e, this;\n }\n setComponent(e, t) {\n switch (e) {\n case 0:\n this.x = t;\n break;\n case 1:\n this.y = t;\n break;\n default:\n throw new Error(\"index is out of range: \" + e);\n }\n return this;\n }\n getComponent(e) {\n switch (e) {\n case 0:\n return this.x;\n case 1:\n return this.y;\n default:\n throw new Error(\"index is out of range: \" + e);\n }\n }\n clone() {\n return new this.constructor(this.x, this.y);\n }\n copy(e) {\n return this.x = e.x, this.y = e.y, this;\n }\n add(e, t) {\n return t !== void 0 ? (console.warn(\"THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead.\"), this.addVectors(e, t)) : (this.x += e.x, this.y += e.y, this);\n }\n addScalar(e) {\n return this.x += e, this.y += e, this;\n }\n addVectors(e, t) {\n return this.x = e.x + t.x, this.y = e.y + t.y, this;\n }\n addScaledVector(e, t) {\n return this.x += e.x * t, this.y += e.y * t, this;\n }\n sub(e, t) {\n return t !== void 0 ? (console.warn(\"THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead.\"), this.subVectors(e, t)) : (this.x -= e.x, this.y -= e.y, this);\n }\n subScalar(e) {\n return this.x -= e, this.y -= e, this;\n }\n subVectors(e, t) {\n return this.x = e.x - t.x, this.y = e.y - t.y, this;\n }\n multiply(e) {\n return this.x *= e.x, this.y *= e.y, this;\n }\n multiplyScalar(e) {\n return this.x *= e, this.y *= e, this;\n }\n divide(e) {\n return this.x /= e.x, this.y /= e.y, this;\n }\n divideScalar(e) {\n return this.multiplyScalar(1 / e);\n }\n applyMatrix3(e) {\n const t = this.x, i = this.y, r = e.elements;\n return this.x = r[0] * t + r[3] * i + r[6], this.y = r[1] * t + r[4] * i + r[7], this;\n }\n min(e) {\n return this.x = Math.min(this.x, e.x), this.y = Math.min(this.y, e.y), this;\n }\n max(e) {\n return this.x = Math.max(this.x, e.x), this.y = Math.max(this.y, e.y), this;\n }\n clamp(e, t) {\n return this.x = Math.max(e.x, Math.min(t.x, this.x)), this.y = Math.max(e.y, Math.min(t.y, this.y)), this;\n }\n clampScalar(e, t) {\n return this.x = Math.max(e, Math.min(t, this.x)), this.y = Math.max(e, Math.min(t, this.y)), this;\n }\n clampLength(e, t) {\n const i = this.length();\n return this.divideScalar(i || 1).multiplyScalar(Math.max(e, Math.min(t, i)));\n }\n floor() {\n return this.x = Math.floor(this.x), this.y = Math.floor(this.y), this;\n }\n ceil() {\n return this.x = Math.ceil(this.x), this.y = Math.ceil(this.y), this;\n }\n round() {\n return this.x = Math.round(this.x), this.y = Math.round(this.y), this;\n }\n roundToZero() {\n return this.x = this.x < 0 ? Math.ceil(this.x) : Math.floor(this.x), this.y = this.y < 0 ? Math.ceil(this.y) : Math.floor(this.y), this;\n }\n negate() {\n return this.x = -this.x, this.y = -this.y, this;\n }\n dot(e) {\n return this.x * e.x + this.y * e.y;\n }\n cross(e) {\n return this.x * e.y - this.y * e.x;\n }\n lengthSq() {\n return this.x * this.x + this.y * this.y;\n }\n length() {\n return Math.sqrt(this.x * this.x + this.y * this.y);\n }\n manhattanLength() {\n return Math.abs(this.x) + Math.abs(this.y);\n }\n normalize() {\n return this.divideScalar(this.length() || 1);\n }\n angle() {\n return Math.atan2(-this.y, -this.x) + Math.PI;\n }\n distanceTo(e) {\n return Math.sqrt(this.distanceToSquared(e));\n }\n distanceToSquared(e) {\n const t = this.x - e.x, i = this.y - e.y;\n return t * t + i * i;\n }\n manhattanDistanceTo(e) {\n return Math.abs(this.x - e.x) + Math.abs(this.y - e.y);\n }\n setLength(e) {\n return this.normalize().multiplyScalar(e);\n }\n lerp(e, t) {\n return this.x += (e.x - this.x) * t, this.y += (e.y - this.y) * t, this;\n }\n lerpVectors(e, t, i) {\n return this.x = e.x + (t.x - e.x) * i, this.y = e.y + (t.y - e.y) * i, this;\n }\n equals(e) {\n return e.x === this.x && e.y === this.y;\n }\n fromArray(e, t = 0) {\n return this.x = e[t], this.y = e[t + 1], this;\n }\n toArray(e = [], t = 0) {\n return e[t] = this.x, e[t + 1] = this.y, e;\n }\n fromBufferAttribute(e, t, i) {\n return i !== void 0 && console.warn(\"THREE.Vector2: offset has been removed from .fromBufferAttribute().\"), this.x = e.getX(t), this.y = e.getY(t), this;\n }\n rotateAround(e, t) {\n const i = Math.cos(t), r = Math.sin(t), s = this.x - e.x, o = this.y - e.y;\n return this.x = s * i - o * r + e.x, this.y = s * r + o * i + e.y, this;\n }\n random() {\n return this.x = Math.random(), this.y = Math.random(), this;\n }\n}\nPe.prototype.isVector2 = !0;\nclass rn {\n constructor() {\n this.elements = [\n 1,\n 0,\n 0,\n 0,\n 1,\n 0,\n 0,\n 0,\n 1\n ], arguments.length > 0 && console.error(\"THREE.Matrix3: the constructor no longer reads arguments. use .set() instead.\");\n }\n set(e, t, i, r, s, o, a, c, l) {\n const d = this.elements;\n return d[0] = e, d[1] = r, d[2] = a, d[3] = t, d[4] = s, d[5] = c, d[6] = i, d[7] = o, d[8] = l, this;\n }\n identity() {\n return this.set(\n 1,\n 0,\n 0,\n 0,\n 1,\n 0,\n 0,\n 0,\n 1\n ), this;\n }\n copy(e) {\n const t = this.elements, i = e.elements;\n return t[0] = i[0], t[1] = i[1], t[2] = i[2], t[3] = i[3], t[4] = i[4], t[5] = i[5], t[6] = i[6], t[7] = i[7], t[8] = i[8], this;\n }\n extractBasis(e, t, i) {\n return e.setFromMatrix3Column(this, 0), t.setFromMatrix3Column(this, 1), i.setFromMatrix3Column(this, 2), this;\n }\n setFromMatrix4(e) {\n const t = e.elements;\n return this.set(\n t[0],\n t[4],\n t[8],\n t[1],\n t[5],\n t[9],\n t[2],\n t[6],\n t[10]\n ), this;\n }\n multiply(e) {\n return this.multiplyMatrices(this, e);\n }\n premultiply(e) {\n return this.multiplyMatrices(e, this);\n }\n multiplyMatrices(e, t) {\n const i = e.elements, r = t.elements, s = this.elements, o = i[0], a = i[3], c = i[6], l = i[1], d = i[4], h = i[7], f = i[2], g = i[5], p = i[8], u = r[0], y = r[3], v = r[6], m = r[1], w = r[4], _ = r[7], S = r[2], M = r[5], x = r[8];\n return s[0] = o * u + a * m + c * S, s[3] = o * y + a * w + c * M, s[6] = o * v + a * _ + c * x, s[1] = l * u + d * m + h * S, s[4] = l * y + d * w + h * M, s[7] = l * v + d * _ + h * x, s[2] = f * u + g * m + p * S, s[5] = f * y + g * w + p * M, s[8] = f * v + g * _ + p * x, this;\n }\n multiplyScalar(e) {\n const t = this.elements;\n return t[0] *= e, t[3] *= e, t[6] *= e, t[1] *= e, t[4] *= e, t[7] *= e, t[2] *= e, t[5] *= e, t[8] *= e, this;\n }\n determinant() {\n const e = this.elements, t = e[0], i = e[1], r = e[2], s = e[3], o = e[4], a = e[5], c = e[6], l = e[7], d = e[8];\n return t * o * d - t * a * l - i * s * d + i * a * c + r * s * l - r * o * c;\n }\n invert() {\n const e = this.elements, t = e[0], i = e[1], r = e[2], s = e[3], o = e[4], a = e[5], c = e[6], l = e[7], d = e[8], h = d * o - a * l, f = a * c - d * s, g = l * s - o * c, p = t * h + i * f + r * g;\n if (p === 0) return this.set(0, 0, 0, 0, 0, 0, 0, 0, 0);\n const u = 1 / p;\n return e[0] = h * u, e[1] = (r * l - d * i) * u, e[2] = (a * i - r * o) * u, e[3] = f * u, e[4] = (d * t - r * c) * u, e[5] = (r * s - a * t) * u, e[6] = g * u, e[7] = (i * c - l * t) * u, e[8] = (o * t - i * s) * u, this;\n }\n transpose() {\n let e;\n const t = this.elements;\n return e = t[1], t[1] = t[3], t[3] = e, e = t[2], t[2] = t[6], t[6] = e, e = t[5], t[5] = t[7], t[7] = e, this;\n }\n getNormalMatrix(e) {\n return this.setFromMatrix4(e).invert().transpose();\n }\n transposeIntoArray(e) {\n const t = this.elements;\n return e[0] = t[0], e[1] = t[3], e[2] = t[6], e[3] = t[1], e[4] = t[4], e[5] = t[7], e[6] = t[2], e[7] = t[5], e[8] = t[8], this;\n }\n setUvTransform(e, t, i, r, s, o, a) {\n const c = Math.cos(s), l = Math.sin(s);\n return this.set(\n i * c,\n i * l,\n -i * (c * o + l * a) + o + e,\n -r * l,\n r * c,\n -r * (-l * o + c * a) + a + t,\n 0,\n 0,\n 1\n ), this;\n }\n scale(e, t) {\n const i = this.elements;\n return i[0] *= e, i[3] *= e, i[6] *= e, i[1] *= t, i[4] *= t, i[7] *= t, this;\n }\n rotate(e) {\n const t = Math.cos(e), i = Math.sin(e), r = this.elements, s = r[0], o = r[3], a = r[6], c = r[1], l = r[4], d = r[7];\n return r[0] = t * s + i * c, r[3] = t * o + i * l, r[6] = t * a + i * d, r[1] = -i * s + t * c, r[4] = -i * o + t * l, r[7] = -i * a + t * d, this;\n }\n translate(e, t) {\n const i = this.elements;\n return i[0] += e * i[2], i[3] += e * i[5], i[6] += e * i[8], i[1] += t * i[2], i[4] += t * i[5], i[7] += t * i[8], this;\n }\n equals(e) {\n const t = this.elements, i = e.elements;\n for (let r = 0; r < 9; r++)\n if (t[r] !== i[r]) return !1;\n return !0;\n }\n fromArray(e, t = 0) {\n for (let i = 0; i < 9; i++)\n this.elements[i] = e[i + t];\n return this;\n }\n toArray(e = [], t = 0) {\n const i = this.elements;\n return e[t] = i[0], e[t + 1] = i[1], e[t + 2] = i[2], e[t + 3] = i[3], e[t + 4] = i[4], e[t + 5] = i[5], e[t + 6] = i[6], e[t + 7] = i[7], e[t + 8] = i[8], e;\n }\n clone() {\n return new this.constructor().fromArray(this.elements);\n }\n}\nrn.prototype.isMatrix3 = !0;\nlet Ks;\nclass Hs {\n static getDataURL(e) {\n if (/^data:/i.test(e.src) || typeof HTMLCanvasElement > \"u\")\n return e.src;\n let t;\n if (e instanceof HTMLCanvasElement)\n t = e;\n else {\n Ks === void 0 && (Ks = document.createElementNS(\"http://www.w3.org/1999/xhtml\", \"canvas\")), Ks.width = e.width, Ks.height = e.height;\n const i = Ks.getContext(\"2d\");\n e instanceof ImageData ? i.putImageData(e, 0, 0) : i.drawImage(e, 0, 0, e.width, e.height), t = Ks;\n }\n return t.width > 2048 || t.height > 2048 ? (console.warn(\"THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons\", e), t.toDataURL(\"image/jpeg\", 0.6)) : t.toDataURL(\"image/png\");\n }\n}\nlet mI = 0;\nclass qt extends ts {\n constructor(e = qt.DEFAULT_IMAGE, t = qt.DEFAULT_MAPPING, i = hn, r = hn, s = kt, o = yr, a = Zn, c = Ps, l = 1, d = Rn) {\n super(), Object.defineProperty(this, \"id\", { value: mI++ }), this.uuid = Xn(), this.name = \"\", this.image = e, this.mipmaps = [], this.mapping = t, this.wrapS = i, this.wrapT = r, this.magFilter = s, this.minFilter = o, this.anisotropy = l, this.format = a, this.internalFormat = null, this.type = c, this.offset = new Pe(0, 0), this.repeat = new Pe(1, 1), this.center = new Pe(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new rn(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, this.encoding = d, this.version = 0, this.onUpdate = null;\n }\n updateMatrix() {\n this.matrix.setUvTransform(this.offset.x, this.offset.y, this.repeat.x, this.repeat.y, this.rotation, this.center.x, this.center.y);\n }\n clone() {\n return new this.constructor().copy(this);\n }\n copy(e) {\n return this.name = e.name, this.image = e.image, this.mipmaps = e.mipmaps.slice(0), this.mapping = e.mapping, this.wrapS = e.wrapS, this.wrapT = e.wrapT, this.magFilter = e.magFilter, this.minFilter = e.minFilter, this.anisotropy = e.anisotropy, this.format = e.format, this.internalFormat = e.internalFormat, this.type = e.type, this.offset.copy(e.offset), this.repeat.copy(e.repeat), this.center.copy(e.center), this.rotation = e.rotation, this.matrixAutoUpdate = e.matrixAutoUpdate, this.matrix.copy(e.matrix), this.generateMipmaps = e.generateMipmaps, this.premultiplyAlpha = e.premultiplyAlpha, this.flipY = e.flipY, this.unpackAlignment = e.unpackAlignment, this.encoding = e.encoding, this;\n }\n toJSON(e) {\n const t = e === void 0 || typeof e == \"string\";\n if (!t && e.textures[this.uuid] !== void 0)\n return e.textures[this.uuid];\n const i = {\n metadata: {\n version: 4.5,\n type: \"Texture\",\n generator: \"Texture.toJSON\"\n },\n uuid: this.uuid,\n name: this.name,\n mapping: this.mapping,\n repeat: [this.repeat.x, this.repeat.y],\n offset: [this.offset.x, this.offset.y],\n center: [this.center.x, this.center.y],\n rotation: this.rotation,\n wrap: [this.wrapS, this.wrapT],\n format: this.format,\n type: this.type,\n encoding: this.encoding,\n minFilter: this.minFilter,\n magFilter: this.magFilter,\n anisotropy: this.anisotropy,\n flipY: this.flipY,\n premultiplyAlpha: this.premultiplyAlpha,\n unpackAlignment: this.unpackAlignment\n };\n if (this.image !== void 0) {\n const r = this.image;\n if (r.uuid === void 0 && (r.uuid = Xn()), !t && e.images[r.uuid] === void 0) {\n let s;\n if (Array.isArray(r)) {\n s = [];\n for (let o = 0, a = r.length; o < a; o++)\n r[o].isDataTexture ? s.push(sh(r[o].image)) : s.push(sh(r[o]));\n } else\n s = sh(r);\n e.images[r.uuid] = {\n uuid: r.uuid,\n url: s\n };\n }\n i.image = r.uuid;\n }\n return t || (e.textures[this.uuid] = i), i;\n }\n dispose() {\n this.dispatchEvent({ type: \"dispose\" });\n }\n transformUv(e) {\n if (this.mapping !== Su) return e;\n if (e.applyMatrix3(this.matrix), e.x < 0 || e.x > 1)\n switch (this.wrapS) {\n case Yr:\n e.x = e.x - Math.floor(e.x);\n break;\n case hn:\n e.x = e.x < 0 ? 0 : 1;\n break;\n case No:\n Math.abs(Math.floor(e.x) % 2) === 1 ? e.x = Math.ceil(e.x) - e.x : e.x = e.x - Math.floor(e.x);\n break;\n }\n if (e.y < 0 || e.y > 1)\n switch (this.wrapT) {\n case Yr:\n e.y = e.y - Math.floor(e.y);\n break;\n case hn:\n e.y = e.y < 0 ? 0 : 1;\n break;\n case No:\n Math.abs(Math.floor(e.y) % 2) === 1 ? e.y = Math.ceil(e.y) - e.y : e.y = e.y - Math.floor(e.y);\n break;\n }\n return this.flipY && (e.y = 1 - e.y), e;\n }\n set needsUpdate(e) {\n e === !0 && this.version++;\n }\n}\nqt.DEFAULT_IMAGE = void 0;\nqt.DEFAULT_MAPPING = Su;\nqt.prototype.isTexture = !0;\nfunction sh(n) {\n return typeof HTMLImageElement < \"u\" && n instanceof HTMLImageElement || typeof HTMLCanvasElement < \"u\" && n instanceof HTMLCanvasElement || typeof ImageBitmap < \"u\" && n instanceof ImageBitmap ? Hs.getDataURL(n) : n.data ? {\n data: Array.prototype.slice.call(n.data),\n width: n.width,\n height: n.height,\n type: n.data.constructor.name\n } : (console.warn(\"THREE.Texture: Unable to serialize Texture.\"), {});\n}\nclass _t {\n constructor(e = 0, t = 0, i = 0, r = 1) {\n this.x = e, this.y = t, this.z = i, this.w = r;\n }\n get width() {\n return this.z;\n }\n set width(e) {\n this.z = e;\n }\n get height() {\n return this.w;\n }\n set height(e) {\n this.w = e;\n }\n set(e, t, i, r) {\n return this.x = e, this.y = t, this.z = i, this.w = r, this;\n }\n setScalar(e) {\n return this.x = e, this.y = e, this.z = e, this.w = e, this;\n }\n setX(e) {\n return this.x = e, this;\n }\n setY(e) {\n return this.y = e, this;\n }\n setZ(e) {\n return this.z = e, this;\n }\n setW(e) {\n return this.w = e, this;\n }\n setComponent(e, t) {\n switch (e) {\n case 0:\n this.x = t;\n break;\n case 1:\n this.y = t;\n break;\n case 2:\n this.z = t;\n break;\n case 3:\n this.w = t;\n break;\n default:\n throw new Error(\"index is out of range: \" + e);\n }\n return this;\n }\n getComponent(e) {\n switch (e) {\n case 0:\n return this.x;\n case 1:\n return this.y;\n case 2:\n return this.z;\n case 3:\n return this.w;\n default:\n throw new Error(\"index is out of range: \" + e);\n }\n }\n clone() {\n return new this.constructor(this.x, this.y, this.z, this.w);\n }\n copy(e) {\n return this.x = e.x, this.y = e.y, this.z = e.z, this.w = e.w !== void 0 ? e.w : 1, this;\n }\n add(e, t) {\n return t !== void 0 ? (console.warn(\"THREE.Vector4: .add() now only accepts one argument. Use .addVectors( a, b ) instead.\"), this.addVectors(e, t)) : (this.x += e.x, this.y += e.y, this.z += e.z, this.w += e.w, this);\n }\n addScalar(e) {\n return this.x += e, this.y += e, this.z += e, this.w += e, this;\n }\n addVectors(e, t) {\n return this.x = e.x + t.x, this.y = e.y + t.y, this.z = e.z + t.z, this.w = e.w + t.w, this;\n }\n addScaledVector(e, t) {\n return this.x += e.x * t, this.y += e.y * t, this.z += e.z * t, this.w += e.w * t, this;\n }\n sub(e, t) {\n return t !== void 0 ? (console.warn(\"THREE.Vector4: .sub() now only accepts one argument. Use .subVectors( a, b ) instead.\"), this.subVectors(e, t)) : (this.x -= e.x, this.y -= e.y, this.z -= e.z, this.w -= e.w, this);\n }\n subScalar(e) {\n return this.x -= e, this.y -= e, this.z -= e, this.w -= e, this;\n }\n subVectors(e, t) {\n return this.x = e.x - t.x, this.y = e.y - t.y, this.z = e.z - t.z, this.w = e.w - t.w, this;\n }\n multiply(e) {\n return this.x *= e.x, this.y *= e.y, this.z *= e.z, this.w *= e.w, this;\n }\n multiplyScalar(e) {\n return this.x *= e, this.y *= e, this.z *= e, this.w *= e, this;\n }\n applyMatrix4(e) {\n const t = this.x, i = this.y, r = this.z, s = this.w, o = e.elements;\n return this.x = o[0] * t + o[4] * i + o[8] * r + o[12] * s, this.y = o[1] * t + o[5] * i + o[9] * r + o[13] * s, this.z = o[2] * t + o[6] * i + o[10] * r + o[14] * s, this.w = o[3] * t + o[7] * i + o[11] * r + o[15] * s, this;\n }\n divideScalar(e) {\n return this.multiplyScalar(1 / e);\n }\n setAxisAngleFromQuaternion(e) {\n this.w = 2 * Math.acos(e.w);\n const t = Math.sqrt(1 - e.w * e.w);\n return t < 1e-4 ? (this.x = 1, this.y = 0, this.z = 0) : (this.x = e.x / t, this.y = e.y / t, this.z = e.z / t), this;\n }\n setAxisAngleFromRotationMatrix(e) {\n let t, i, r, s;\n const c = e.elements, l = c[0], d = c[4], h = c[8], f = c[1], g = c[5], p = c[9], u = c[2], y = c[6], v = c[10];\n if (Math.abs(d - f) < 0.01 && Math.abs(h - u) < 0.01 && Math.abs(p - y) < 0.01) {\n if (Math.abs(d + f) < 0.1 && Math.abs(h + u) < 0.1 && Math.abs(p + y) < 0.1 && Math.abs(l + g + v - 3) < 0.1)\n return this.set(1, 0, 0, 0), this;\n t = Math.PI;\n const w = (l + 1) / 2, _ = (g + 1) / 2, S = (v + 1) / 2, M = (d + f) / 4, x = (h + u) / 4, A = (p + y) / 4;\n return w > _ && w > S ? w < 0.01 ? (i = 0, r = 0.707106781, s = 0.707106781) : (i = Math.sqrt(w), r = M / i, s = x / i) : _ > S ? _ < 0.01 ? (i = 0.707106781, r = 0, s = 0.707106781) : (r = Math.sqrt(_), i = M / r, s = A / r) : S < 0.01 ? (i = 0.707106781, r = 0.707106781, s = 0) : (s = Math.sqrt(S), i = x / s, r = A / s), this.set(i, r, s, t), this;\n }\n let m = Math.sqrt((y - p) * (y - p) + (h - u) * (h - u) + (f - d) * (f - d));\n return Math.abs(m) < 1e-3 && (m = 1), this.x = (y - p) / m, this.y = (h - u) / m, this.z = (f - d) / m, this.w = Math.acos((l + g + v - 1) / 2), this;\n }\n min(e) {\n return this.x = Math.min(this.x, e.x), this.y = Math.min(this.y, e.y), this.z = Math.min(this.z, e.z), this.w = Math.min(this.w, e.w), this;\n }\n max(e) {\n return this.x = Math.max(this.x, e.x), this.y = Math.max(this.y, e.y), this.z = Math.max(this.z, e.z), this.w = Math.max(this.w, e.w), this;\n }\n clamp(e, t) {\n return this.x = Math.max(e.x, Math.min(t.x, this.x)), this.y = Math.max(e.y, Math.min(t.y, this.y)), this.z = Math.max(e.z, Math.min(t.z, this.z)), this.w = Math.max(e.w, Math.min(t.w, this.w)), this;\n }\n clampScalar(e, t) {\n return this.x = Math.max(e, Math.min(t, this.x)), this.y = Math.max(e, Math.min(t, this.y)), this.z = Math.max(e, Math.min(t, this.z)), this.w = Math.max(e, Math.min(t, this.w)), this;\n }\n clampLength(e, t) {\n const i = this.length();\n return this.divideScalar(i || 1).multiplyScalar(Math.max(e, Math.min(t, i)));\n }\n floor() {\n return this.x = Math.floor(this.x), this.y = Math.floor(this.y), this.z = Math.floor(this.z), this.w = Math.floor(this.w), this;\n }\n ceil() {\n return this.x = Math.ceil(this.x), this.y = Math.ceil(this.y), this.z = Math.ceil(this.z), this.w = Math.ceil(this.w), this;\n }\n round() {\n return this.x = Math.round(this.x), this.y = Math.round(this.y), this.z = Math.round(this.z), this.w = Math.round(this.w), this;\n }\n roundToZero() {\n return this.x = this.x < 0 ? Math.ceil(this.x) : Math.floor(this.x), this.y = this.y < 0 ? Math.ceil(this.y) : Math.floor(this.y), this.z = this.z < 0 ? Math.ceil(this.z) : Math.floor(this.z), this.w = this.w < 0 ? Math.ceil(this.w) : Math.floor(this.w), this;\n }\n negate() {\n return this.x = -this.x, this.y = -this.y, this.z = -this.z, this.w = -this.w, this;\n }\n dot(e) {\n return this.x * e.x + this.y * e.y + this.z * e.z + this.w * e.w;\n }\n lengthSq() {\n return this.x * this.x + this.y * this.y + this.z * this.z + this.w * this.w;\n }\n length() {\n return Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.z + this.w * this.w);\n }\n manhattanLength() {\n return Math.abs(this.x) + Math.abs(this.y) + Math.abs(this.z) + Math.abs(this.w);\n }\n normalize() {\n return this.divideScalar(this.length() || 1);\n }\n setLength(e) {\n return this.normalize().multiplyScalar(e);\n }\n lerp(e, t) {\n return this.x += (e.x - this.x) * t, this.y += (e.y - this.y) * t, this.z += (e.z - this.z) * t, this.w += (e.w - this.w) * t, this;\n }\n lerpVectors(e, t, i) {\n return this.x = e.x + (t.x - e.x) * i, this.y = e.y + (t.y - e.y) * i, this.z = e.z + (t.z - e.z) * i, this.w = e.w + (t.w - e.w) * i, this;\n }\n equals(e) {\n return e.x === this.x && e.y === this.y && e.z === this.z && e.w === this.w;\n }\n fromArray(e, t = 0) {\n return this.x = e[t], this.y = e[t + 1], this.z = e[t + 2], this.w = e[t + 3], this;\n }\n toArray(e = [], t = 0) {\n return e[t] = this.x, e[t + 1] = this.y, e[t + 2] = this.z, e[t + 3] = this.w, e;\n }\n fromBufferAttribute(e, t, i) {\n return i !== void 0 && console.warn(\"THREE.Vector4: offset has been removed from .fromBufferAttribute().\"), this.x = e.getX(t), this.y = e.getY(t), this.z = e.getZ(t), this.w = e.getW(t), this;\n }\n random() {\n return this.x = Math.random(), this.y = Math.random(), this.z = Math.random(), this.w = Math.random(), this;\n }\n}\n_t.prototype.isVector4 = !0;\nclass yi extends ts {\n constructor(e, t, i = {}) {\n super(), this.width = e, this.height = t, this.depth = 1, this.scissor = new _t(0, 0, e, t), this.scissorTest = !1, this.viewport = new _t(0, 0, e, t), this.texture = new qt(void 0, i.mapping, i.wrapS, i.wrapT, i.magFilter, i.minFilter, i.format, i.type, i.anisotropy, i.encoding), this.texture.image = { width: e, height: t, depth: 1 }, this.texture.generateMipmaps = i.generateMipmaps !== void 0 ? i.generateMipmaps : !1, this.texture.minFilter = i.minFilter !== void 0 ? i.minFilter : kt, this.depthBuffer = i.depthBuffer !== void 0 ? i.depthBuffer : !0, this.stencilBuffer = i.stencilBuffer !== void 0 ? i.stencilBuffer : !1, this.depthTexture = i.depthTexture !== void 0 ? i.depthTexture : null;\n }\n setTexture(e) {\n e.image = {\n width: this.width,\n height: this.height,\n depth: this.depth\n }, this.texture = e;\n }\n setSize(e, t, i = 1) {\n (this.width !== e || this.height !== t || this.depth !== i) && (this.width = e, this.height = t, this.depth = i, this.texture.image.width = e, this.texture.image.height = t, this.texture.image.depth = i, this.dispose()), this.viewport.set(0, 0, e, t), this.scissor.set(0, 0, e, t);\n }\n clone() {\n return new this.constructor().copy(this);\n }\n copy(e) {\n return this.width = e.width, this.height = e.height, this.depth = e.depth, this.viewport.copy(e.viewport), this.texture = e.texture.clone(), this.texture.image = { ...this.texture.image }, this.depthBuffer = e.depthBuffer, this.stencilBuffer = e.stencilBuffer, this.depthTexture = e.depthTexture, this;\n }\n dispose() {\n this.dispatchEvent({ type: \"dispose\" });\n }\n}\nyi.prototype.isWebGLRenderTarget = !0;\nclass px extends yi {\n constructor(e, t, i) {\n super(e, t);\n const r = this.texture;\n this.texture = [];\n for (let s = 0; s < i; s++)\n this.texture[s] = r.clone();\n }\n setSize(e, t, i = 1) {\n if (this.width !== e || this.height !== t || this.depth !== i) {\n this.width = e, this.height = t, this.depth = i;\n for (let r = 0, s = this.texture.length; r < s; r++)\n this.texture[r].image.width = e, this.texture[r].image.height = t, this.texture[r].image.depth = i;\n this.dispose();\n }\n return this.viewport.set(0, 0, e, t), this.scissor.set(0, 0, e, t), this;\n }\n copy(e) {\n this.dispose(), this.width = e.width, this.height = e.height, this.depth = e.depth, this.viewport.set(0, 0, this.width, this.height), this.scissor.set(0, 0, this.width, this.height), this.depthBuffer = e.depthBuffer, this.stencilBuffer = e.stencilBuffer, this.depthTexture = e.depthTexture, this.texture.length = 0;\n for (let t = 0, i = e.texture.length; t < i; t++)\n this.texture[t] = e.texture[t].clone();\n return this;\n }\n}\npx.prototype.isWebGLMultipleRenderTargets = !0;\nclass Jf extends yi {\n constructor(e, t, i) {\n super(e, t, i), this.samples = 4;\n }\n copy(e) {\n return super.copy.call(this, e), this.samples = e.samples, this;\n }\n}\nJf.prototype.isWebGLMultisampleRenderTarget = !0;\nclass bn {\n constructor(e = 0, t = 0, i = 0, r = 1) {\n this._x = e, this._y = t, this._z = i, this._w = r;\n }\n static slerp(e, t, i, r) {\n return console.warn(\"THREE.Quaternion: Static .slerp() has been deprecated. Use qm.slerpQuaternions( qa, qb, t ) instead.\"), i.slerpQuaternions(e, t, r);\n }\n static slerpFlat(e, t, i, r, s, o, a) {\n let c = i[r + 0], l = i[r + 1], d = i[r + 2], h = i[r + 3];\n const f = s[o + 0], g = s[o + 1], p = s[o + 2], u = s[o + 3];\n if (a === 0) {\n e[t + 0] = c, e[t + 1] = l, e[t + 2] = d, e[t + 3] = h;\n return;\n }\n if (a === 1) {\n e[t + 0] = f, e[t + 1] = g, e[t + 2] = p, e[t + 3] = u;\n return;\n }\n if (h !== u || c !== f || l !== g || d !== p) {\n let y = 1 - a;\n const v = c * f + l * g + d * p + h * u, m = v >= 0 ? 1 : -1, w = 1 - v * v;\n if (w > Number.EPSILON) {\n const S = Math.sqrt(w), M = Math.atan2(S, v * m);\n y = Math.sin(y * M) / S, a = Math.sin(a * M) / S;\n }\n const _ = a * m;\n if (c = c * y + f * _, l = l * y + g * _, d = d * y + p * _, h = h * y + u * _, y === 1 - a) {\n const S = 1 / Math.sqrt(c * c + l * l + d * d + h * h);\n c *= S, l *= S, d *= S, h *= S;\n }\n }\n e[t] = c, e[t + 1] = l, e[t + 2] = d, e[t + 3] = h;\n }\n static multiplyQuaternionsFlat(e, t, i, r, s, o) {\n const a = i[r], c = i[r + 1], l = i[r + 2], d = i[r + 3], h = s[o], f = s[o + 1], g = s[o + 2], p = s[o + 3];\n return e[t] = a * p + d * h + c * g - l * f, e[t + 1] = c * p + d * f + l * h - a * g, e[t + 2] = l * p + d * g + a * f - c * h, e[t + 3] = d * p - a * h - c * f - l * g, e;\n }\n get x() {\n return this._x;\n }\n set x(e) {\n this._x = e, this._onChangeCallback();\n }\n get y() {\n return this._y;\n }\n set y(e) {\n this._y = e, this._onChangeCallback();\n }\n get z() {\n return this._z;\n }\n set z(e) {\n this._z = e, this._onChangeCallback();\n }\n get w() {\n return this._w;\n }\n set w(e) {\n this._w = e, this._onChangeCallback();\n }\n set(e, t, i, r) {\n return this._x = e, this._y = t, this._z = i, this._w = r, this._onChangeCallback(), this;\n }\n clone() {\n return new this.constructor(this._x, this._y, this._z, this._w);\n }\n copy(e) {\n return this._x = e.x, this._y = e.y, this._z = e.z, this._w = e.w, this._onChangeCallback(), this;\n }\n setFromEuler(e, t) {\n if (!(e && e.isEuler))\n throw new Error(\"THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.\");\n const i = e._x, r = e._y, s = e._z, o = e._order, a = Math.cos, c = Math.sin, l = a(i / 2), d = a(r / 2), h = a(s / 2), f = c(i / 2), g = c(r / 2), p = c(s / 2);\n switch (o) {\n case \"XYZ\":\n this._x = f * d * h + l * g * p, this._y = l * g * h - f * d * p, this._z = l * d * p + f * g * h, this._w = l * d * h - f * g * p;\n break;\n case \"YXZ\":\n this._x = f * d * h + l * g * p, this._y = l * g * h - f * d * p, this._z = l * d * p - f * g * h, this._w = l * d * h + f * g * p;\n break;\n case \"ZXY\":\n this._x = f * d * h - l * g * p, this._y = l * g * h + f * d * p, this._z = l * d * p + f * g * h, this._w = l * d * h - f * g * p;\n break;\n case \"ZYX\":\n this._x = f * d * h - l * g * p, this._y = l * g * h + f * d * p, this._z = l * d * p - f * g * h, this._w = l * d * h + f * g * p;\n break;\n case \"YZX\":\n this._x = f * d * h + l * g * p, this._y = l * g * h + f * d * p, this._z = l * d * p - f * g * h, this._w = l * d * h - f * g * p;\n break;\n case \"XZY\":\n this._x = f * d * h - l * g * p, this._y = l * g * h - f * d * p, this._z = l * d * p + f * g * h, this._w = l * d * h + f * g * p;\n break;\n default:\n console.warn(\"THREE.Quaternion: .setFromEuler() encountered an unknown order: \" + o);\n }\n return t !== !1 && this._onChangeCallback(), this;\n }\n setFromAxisAngle(e, t) {\n const i = t / 2, r = Math.sin(i);\n return this._x = e.x * r, this._y = e.y * r, this._z = e.z * r, this._w = Math.cos(i), this._onChangeCallback(), this;\n }\n setFromRotationMatrix(e) {\n const t = e.elements, i = t[0], r = t[4], s = t[8], o = t[1], a = t[5], c = t[9], l = t[2], d = t[6], h = t[10], f = i + a + h;\n if (f > 0) {\n const g = 0.5 / Math.sqrt(f + 1);\n this._w = 0.25 / g, this._x = (d - c) * g, this._y = (s - l) * g, this._z = (o - r) * g;\n } else if (i > a && i > h) {\n const g = 2 * Math.sqrt(1 + i - a - h);\n this._w = (d - c) / g, this._x = 0.25 * g, this._y = (r + o) / g, this._z = (s + l) / g;\n } else if (a > h) {\n const g = 2 * Math.sqrt(1 + a - i - h);\n this._w = (s - l) / g, this._x = (r + o) / g, this._y = 0.25 * g, this._z = (c + d) / g;\n } else {\n const g = 2 * Math.sqrt(1 + h - i - a);\n this._w = (o - r) / g, this._x = (s + l) / g, this._y = (c + d) / g, this._z = 0.25 * g;\n }\n return this._onChangeCallback(), this;\n }\n setFromUnitVectors(e, t) {\n let i = e.dot(t) + 1;\n return i < Number.EPSILON ? (i = 0, Math.abs(e.x) > Math.abs(e.z) ? (this._x = -e.y, this._y = e.x, this._z = 0, this._w = i) : (this._x = 0, this._y = -e.z, this._z = e.y, this._w = i)) : (this._x = e.y * t.z - e.z * t.y, this._y = e.z * t.x - e.x * t.z, this._z = e.x * t.y - e.y * t.x, this._w = i), this.normalize();\n }\n angleTo(e) {\n return 2 * Math.acos(Math.abs(vn(this.dot(e), -1, 1)));\n }\n rotateTowards(e, t) {\n const i = this.angleTo(e);\n if (i === 0) return this;\n const r = Math.min(1, t / i);\n return this.slerp(e, r), this;\n }\n identity() {\n return this.set(0, 0, 0, 1);\n }\n invert() {\n return this.conjugate();\n }\n conjugate() {\n return this._x *= -1, this._y *= -1, this._z *= -1, this._onChangeCallback(), this;\n }\n dot(e) {\n return this._x * e._x + this._y * e._y + this._z * e._z + this._w * e._w;\n }\n lengthSq() {\n return this._x * this._x + this._y * this._y + this._z * this._z + this._w * this._w;\n }\n length() {\n return Math.sqrt(this._x * this._x + this._y * this._y + this._z * this._z + this._w * this._w);\n }\n normalize() {\n let e = this.length();\n return e === 0 ? (this._x = 0, this._y = 0, this._z = 0, this._w = 1) : (e = 1 / e, this._x = this._x * e, this._y = this._y * e, this._z = this._z * e, this._w = this._w * e), this._onChangeCallback(), this;\n }\n multiply(e, t) {\n return t !== void 0 ? (console.warn(\"THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead.\"), this.multiplyQuaternions(e, t)) : this.multiplyQuaternions(this, e);\n }\n premultiply(e) {\n return this.multiplyQuaternions(e, this);\n }\n multiplyQuaternions(e, t) {\n const i = e._x, r = e._y, s = e._z, o = e._w, a = t._x, c = t._y, l = t._z, d = t._w;\n return this._x = i * d + o * a + r * l - s * c, this._y = r * d + o * c + s * a - i * l, this._z = s * d + o * l + i * c - r * a, this._w = o * d - i * a - r * c - s * l, this._onChangeCallback(), this;\n }\n slerp(e, t) {\n if (t === 0) return this;\n if (t === 1) return this.copy(e);\n const i = this._x, r = this._y, s = this._z, o = this._w;\n let a = o * e._w + i * e._x + r * e._y + s * e._z;\n if (a < 0 ? (this._w = -e._w, this._x = -e._x, this._y = -e._y, this._z = -e._z, a = -a) : this.copy(e), a >= 1)\n return this._w = o, this._x = i, this._y = r, this._z = s, this;\n const c = 1 - a * a;\n if (c <= Number.EPSILON) {\n const g = 1 - t;\n return this._w = g * o + t * this._w, this._x = g * i + t * this._x, this._y = g * r + t * this._y, this._z = g * s + t * this._z, this.normalize(), this._onChangeCallback(), this;\n }\n const l = Math.sqrt(c), d = Math.atan2(l, a), h = Math.sin((1 - t) * d) / l, f = Math.sin(t * d) / l;\n return this._w = o * h + this._w * f, this._x = i * h + this._x * f, this._y = r * h + this._y * f, this._z = s * h + this._z * f, this._onChangeCallback(), this;\n }\n slerpQuaternions(e, t, i) {\n this.copy(e).slerp(t, i);\n }\n equals(e) {\n return e._x === this._x && e._y === this._y && e._z === this._z && e._w === this._w;\n }\n fromArray(e, t = 0) {\n return this._x = e[t], this._y = e[t + 1], this._z = e[t + 2], this._w = e[t + 3], this._onChangeCallback(), this;\n }\n toArray(e = [], t = 0) {\n return e[t] = this._x, e[t + 1] = this._y, e[t + 2] = this._z, e[t + 3] = this._w, e;\n }\n fromBufferAttribute(e, t) {\n return this._x = e.getX(t), this._y = e.getY(t), this._z = e.getZ(t), this._w = e.getW(t), this;\n }\n _onChange(e) {\n return this._onChangeCallback = e, this;\n }\n _onChangeCallback() {\n }\n}\nbn.prototype.isQuaternion = !0;\nclass J {\n constructor(e = 0, t = 0, i = 0) {\n this.x = e, this.y = t, this.z = i;\n }\n set(e, t, i) {\n return i === void 0 && (i = this.z), this.x = e, this.y = t, this.z = i, this;\n }\n setScalar(e) {\n return this.x = e, this.y = e, this.z = e, this;\n }\n setX(e) {\n return this.x = e, this;\n }\n setY(e) {\n return this.y = e, this;\n }\n setZ(e) {\n return this.z = e, this;\n }\n setComponent(e, t) {\n switch (e) {\n case 0:\n this.x = t;\n break;\n case 1:\n this.y = t;\n break;\n case 2:\n this.z = t;\n break;\n default:\n throw new Error(\"index is out of range: \" + e);\n }\n return this;\n }\n getComponent(e) {\n switch (e) {\n case 0:\n return this.x;\n case 1:\n return this.y;\n case 2:\n return this.z;\n default:\n throw new Error(\"index is out of range: \" + e);\n }\n }\n clone() {\n return new this.constructor(this.x, this.y, this.z);\n }\n copy(e) {\n return this.x = e.x, this.y = e.y, this.z = e.z, this;\n }\n add(e, t) {\n return t !== void 0 ? (console.warn(\"THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead.\"), this.addVectors(e, t)) : (this.x += e.x, this.y += e.y, this.z += e.z, this);\n }\n addScalar(e) {\n return this.x += e, this.y += e, this.z += e, this;\n }\n addVectors(e, t) {\n return this.x = e.x + t.x, this.y = e.y + t.y, this.z = e.z + t.z, this;\n }\n addScaledVector(e, t) {\n return this.x += e.x * t, this.y += e.y * t, this.z += e.z * t, this;\n }\n sub(e, t) {\n return t !== void 0 ? (console.warn(\"THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead.\"), this.subVectors(e, t)) : (this.x -= e.x, this.y -= e.y, this.z -= e.z, this);\n }\n subScalar(e) {\n return this.x -= e, this.y -= e, this.z -= e, this;\n }\n subVectors(e, t) {\n return this.x = e.x - t.x, this.y = e.y - t.y, this.z = e.z - t.z, this;\n }\n multiply(e, t) {\n return t !== void 0 ? (console.warn(\"THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead.\"), this.multiplyVectors(e, t)) : (this.x *= e.x, this.y *= e.y, this.z *= e.z, this);\n }\n multiplyScalar(e) {\n return this.x *= e, this.y *= e, this.z *= e, this;\n }\n multiplyVectors(e, t) {\n return this.x = e.x * t.x, this.y = e.y * t.y, this.z = e.z * t.z, this;\n }\n applyEuler(e) {\n return e && e.isEuler || console.error(\"THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order.\"), this.applyQuaternion(pg.setFromEuler(e));\n }\n applyAxisAngle(e, t) {\n return this.applyQuaternion(pg.setFromAxisAngle(e, t));\n }\n applyMatrix3(e) {\n const t = this.x, i = this.y, r = this.z, s = e.elements;\n return this.x = s[0] * t + s[3] * i + s[6] * r, this.y = s[1] * t + s[4] * i + s[7] * r, this.z = s[2] * t + s[5] * i + s[8] * r, this;\n }\n applyNormalMatrix(e) {\n return this.applyMatrix3(e).normalize();\n }\n applyMatrix4(e) {\n const t = this.x, i = this.y, r = this.z, s = e.elements, o = 1 / (s[3] * t + s[7] * i + s[11] * r + s[15]);\n return this.x = (s[0] * t + s[4] * i + s[8] * r + s[12]) * o, this.y = (s[1] * t + s[5] * i + s[9] * r + s[13]) * o, this.z = (s[2] * t + s[6] * i + s[10] * r + s[14]) * o, this;\n }\n applyQuaternion(e) {\n const t = this.x, i = this.y, r = this.z, s = e.x, o = e.y, a = e.z, c = e.w, l = c * t + o * r - a * i, d = c * i + a * t - s * r, h = c * r + s * i - o * t, f = -s * t - o * i - a * r;\n return this.x = l * c + f * -s + d * -a - h * -o, this.y = d * c + f * -o + h * -s - l * -a, this.z = h * c + f * -a + l * -o - d * -s, this;\n }\n project(e) {\n return this.applyMatrix4(e.matrixWorldInverse).applyMatrix4(e.projectionMatrix);\n }\n unproject(e) {\n return this.applyMatrix4(e.projectionMatrixInverse).applyMatrix4(e.matrixWorld);\n }\n transformDirection(e) {\n const t = this.x, i = this.y, r = this.z, s = e.elements;\n return this.x = s[0] * t + s[4] * i + s[8] * r, this.y = s[1] * t + s[5] * i + s[9] * r, this.z = s[2] * t + s[6] * i + s[10] * r, this.normalize();\n }\n divide(e) {\n return this.x /= e.x, this.y /= e.y, this.z /= e.z, this;\n }\n divideScalar(e) {\n return this.multiplyScalar(1 / e);\n }\n min(e) {\n return this.x = Math.min(this.x, e.x), this.y = Math.min(this.y, e.y), this.z = Math.min(this.z, e.z), this;\n }\n max(e) {\n return this.x = Math.max(this.x, e.x), this.y = Math.max(this.y, e.y), this.z = Math.max(this.z, e.z), this;\n }\n clamp(e, t) {\n return this.x = Math.max(e.x, Math.min(t.x, this.x)), this.y = Math.max(e.y, Math.min(t.y, this.y)), this.z = Math.max(e.z, Math.min(t.z, this.z)), this;\n }\n clampScalar(e, t) {\n return this.x = Math.max(e, Math.min(t, this.x)), this.y = Math.max(e, Math.min(t, this.y)), this.z = Math.max(e, Math.min(t, this.z)), this;\n }\n clampLength(e, t) {\n const i = this.length();\n return this.divideScalar(i || 1).multiplyScalar(Math.max(e, Math.min(t, i)));\n }\n floor() {\n return this.x = Math.floor(this.x), this.y = Math.floor(this.y), this.z = Math.floor(this.z), this;\n }\n ceil() {\n return this.x = Math.ceil(this.x), this.y = Math.ceil(this.y), this.z = Math.ceil(this.z), this;\n }\n round() {\n return this.x = Math.round(this.x), this.y = Math.round(this.y), this.z = Math.round(this.z), this;\n }\n roundToZero() {\n return this.x = this.x < 0 ? Math.ceil(this.x) : Math.floor(this.x), this.y = this.y < 0 ? Math.ceil(this.y) : Math.floor(this.y), this.z = this.z < 0 ? Math.ceil(this.z) : Math.floor(this.z), this;\n }\n negate() {\n return this.x = -this.x, this.y = -this.y, this.z = -this.z, this;\n }\n dot(e) {\n return this.x * e.x + this.y * e.y + this.z * e.z;\n }\n // TODO lengthSquared?\n lengthSq() {\n return this.x * this.x + this.y * this.y + this.z * this.z;\n }\n length() {\n return Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.z);\n }\n manhattanLength() {\n return Math.abs(this.x) + Math.abs(this.y) + Math.abs(this.z);\n }\n normalize() {\n return this.divideScalar(this.length() || 1);\n }\n setLength(e) {\n return this.normalize().multiplyScalar(e);\n }\n lerp(e, t) {\n return this.x += (e.x - this.x) * t, this.y += (e.y - this.y) * t, this.z += (e.z - this.z) * t, this;\n }\n lerpVectors(e, t, i) {\n return this.x = e.x + (t.x - e.x) * i, this.y = e.y + (t.y - e.y) * i, this.z = e.z + (t.z - e.z) * i, this;\n }\n cross(e, t) {\n return t !== void 0 ? (console.warn(\"THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead.\"), this.crossVectors(e, t)) : this.crossVectors(this, e);\n }\n crossVectors(e, t) {\n const i = e.x, r = e.y, s = e.z, o = t.x, a = t.y, c = t.z;\n return this.x = r * c - s * a, this.y = s * o - i * c, this.z = i * a - r * o, this;\n }\n projectOnVector(e) {\n const t = e.lengthSq();\n if (t === 0) return this.set(0, 0, 0);\n const i = e.dot(this) / t;\n return this.copy(e).multiplyScalar(i);\n }\n projectOnPlane(e) {\n return oh.copy(this).projectOnVector(e), this.sub(oh);\n }\n reflect(e) {\n return this.sub(oh.copy(e).multiplyScalar(2 * this.dot(e)));\n }\n angleTo(e) {\n const t = Math.sqrt(this.lengthSq() * e.lengthSq());\n if (t === 0) return Math.PI / 2;\n const i = this.dot(e) / t;\n return Math.acos(vn(i, -1, 1));\n }\n distanceTo(e) {\n return Math.sqrt(this.distanceToSquared(e));\n }\n distanceToSquared(e) {\n const t = this.x - e.x, i = this.y - e.y, r = this.z - e.z;\n return t * t + i * i + r * r;\n }\n manhattanDistanceTo(e) {\n return Math.abs(this.x - e.x) + Math.abs(this.y - e.y) + Math.abs(this.z - e.z);\n }\n setFromSpherical(e) {\n return this.setFromSphericalCoords(e.radius, e.phi, e.theta);\n }\n setFromSphericalCoords(e, t, i) {\n const r = Math.sin(t) * e;\n return this.x = r * Math.sin(i), this.y = Math.cos(t) * e, this.z = r * Math.cos(i), this;\n }\n setFromCylindrical(e) {\n return this.setFromCylindricalCoords(e.radius, e.theta, e.y);\n }\n setFromCylindricalCoords(e, t, i) {\n return this.x = e * Math.sin(t), this.y = i, this.z = e * Math.cos(t), this;\n }\n setFromMatrixPosition(e) {\n const t = e.elements;\n return this.x = t[12], this.y = t[13], this.z = t[14], this;\n }\n setFromMatrixScale(e) {\n const t = this.setFromMatrixColumn(e, 0).length(), i = this.setFromMatrixColumn(e, 1).length(), r = this.setFromMatrixColumn(e, 2).length();\n return this.x = t, this.y = i, this.z = r, this;\n }\n setFromMatrixColumn(e, t) {\n return this.fromArray(e.elements, t * 4);\n }\n setFromMatrix3Column(e, t) {\n return this.fromArray(e.elements, t * 3);\n }\n equals(e) {\n return e.x === this.x && e.y === this.y && e.z === this.z;\n }\n fromArray(e, t = 0) {\n return this.x = e[t], this.y = e[t + 1], this.z = e[t + 2], this;\n }\n toArray(e = [], t = 0) {\n return e[t] = this.x, e[t + 1] = this.y, e[t + 2] = this.z, e;\n }\n fromBufferAttribute(e, t, i) {\n return i !== void 0 && console.warn(\"THREE.Vector3: offset has been removed from .fromBufferAttribute().\"), this.x = e.getX(t), this.y = e.getY(t), this.z = e.getZ(t), this;\n }\n random() {\n return this.x = Math.random(), this.y = Math.random(), this.z = Math.random(), this;\n }\n}\nJ.prototype.isVector3 = !0;\nconst oh = /* @__PURE__ */ new J(), pg = /* @__PURE__ */ new bn();\nclass Vn {\n constructor(e = new J(1 / 0, 1 / 0, 1 / 0), t = new J(-1 / 0, -1 / 0, -1 / 0)) {\n this.min = e, this.max = t;\n }\n set(e, t) {\n return this.min.copy(e), this.max.copy(t), this;\n }\n setFromArray(e) {\n let t = 1 / 0, i = 1 / 0, r = 1 / 0, s = -1 / 0, o = -1 / 0, a = -1 / 0;\n for (let c = 0, l = e.length; c < l; c += 3) {\n const d = e[c], h = e[c + 1], f = e[c + 2];\n d < t && (t = d), h < i && (i = h), f < r && (r = f), d > s && (s = d), h > o && (o = h), f > a && (a = f);\n }\n return this.min.set(t, i, r), this.max.set(s, o, a), this;\n }\n setFromBufferAttribute(e) {\n let t = 1 / 0, i = 1 / 0, r = 1 / 0, s = -1 / 0, o = -1 / 0, a = -1 / 0;\n for (let c = 0, l = e.count; c < l; c++) {\n const d = e.getX(c), h = e.getY(c), f = e.getZ(c);\n d < t && (t = d), h < i && (i = h), f < r && (r = f), d > s && (s = d), h > o && (o = h), f > a && (a = f);\n }\n return this.min.set(t, i, r), this.max.set(s, o, a), this;\n }\n setFromPoints(e) {\n this.makeEmpty();\n for (let t = 0, i = e.length; t < i; t++)\n this.expandByPoint(e[t]);\n return this;\n }\n setFromCenterAndSize(e, t) {\n const i = ba.copy(t).multiplyScalar(0.5);\n return this.min.copy(e).sub(i), this.max.copy(e).add(i), this;\n }\n setFromObject(e) {\n return this.makeEmpty(), this.expandByObject(e);\n }\n clone() {\n return new this.constructor().copy(this);\n }\n copy(e) {\n return this.min.copy(e.min), this.max.copy(e.max), this;\n }\n makeEmpty() {\n return this.min.x = this.min.y = this.min.z = 1 / 0, this.max.x = this.max.y = this.max.z = -1 / 0, this;\n }\n isEmpty() {\n return this.max.x < this.min.x || this.max.y < this.min.y || this.max.z < this.min.z;\n }\n getCenter(e) {\n return this.isEmpty() ? e.set(0, 0, 0) : e.addVectors(this.min, this.max).multiplyScalar(0.5);\n }\n getSize(e) {\n return this.isEmpty() ? e.set(0, 0, 0) : e.subVectors(this.max, this.min);\n }\n expandByPoint(e) {\n return this.min.min(e), this.max.max(e), this;\n }\n expandByVector(e) {\n return this.min.sub(e), this.max.add(e), this;\n }\n expandByScalar(e) {\n return this.min.addScalar(-e), this.max.addScalar(e), this;\n }\n expandByObject(e) {\n e.updateWorldMatrix(!1, !1);\n const t = e.geometry;\n t !== void 0 && (t.boundingBox === null && t.computeBoundingBox(), ah.copy(t.boundingBox), ah.applyMatrix4(e.matrixWorld), this.union(ah));\n const i = e.children;\n for (let r = 0, s = i.length; r < s; r++)\n this.expandByObject(i[r]);\n return this;\n }\n containsPoint(e) {\n return !(e.x < this.min.x || e.x > this.max.x || e.y < this.min.y || e.y > this.max.y || e.z < this.min.z || e.z > this.max.z);\n }\n containsBox(e) {\n return this.min.x <= e.min.x && e.max.x <= this.max.x && this.min.y <= e.min.y && e.max.y <= this.max.y && this.min.z <= e.min.z && e.max.z <= this.max.z;\n }\n getParameter(e, t) {\n return t.set(\n (e.x - this.min.x) / (this.max.x - this.min.x),\n (e.y - this.min.y) / (this.max.y - this.min.y),\n (e.z - this.min.z) / (this.max.z - this.min.z)\n );\n }\n intersectsBox(e) {\n return !(e.max.x < this.min.x || e.min.x > this.max.x || e.max.y < this.min.y || e.min.y > this.max.y || e.max.z < this.min.z || e.min.z > this.max.z);\n }\n intersectsSphere(e) {\n return this.clampPoint(e.center, ba), ba.distanceToSquared(e.center) <= e.radius * e.radius;\n }\n intersectsPlane(e) {\n let t, i;\n return e.normal.x > 0 ? (t = e.normal.x * this.min.x, i = e.normal.x * this.max.x) : (t = e.normal.x * this.max.x, i = e.normal.x * this.min.x), e.normal.y > 0 ? (t += e.normal.y * this.min.y, i += e.normal.y * this.max.y) : (t += e.normal.y * this.max.y, i += e.normal.y * this.min.y), e.normal.z > 0 ? (t += e.normal.z * this.min.z, i += e.normal.z * this.max.z) : (t += e.normal.z * this.max.z, i += e.normal.z * this.min.z), t <= -e.constant && i >= -e.constant;\n }\n intersectsTriangle(e) {\n if (this.isEmpty())\n return !1;\n this.getCenter(xa), Wl.subVectors(this.max, xa), qs.subVectors(e.a, xa), Qs.subVectors(e.b, xa), eo.subVectors(e.c, xa), Mr.subVectors(Qs, qs), _r.subVectors(eo, Qs), cs.subVectors(qs, eo);\n let t = [\n 0,\n -Mr.z,\n Mr.y,\n 0,\n -_r.z,\n _r.y,\n 0,\n -cs.z,\n cs.y,\n Mr.z,\n 0,\n -Mr.x,\n _r.z,\n 0,\n -_r.x,\n cs.z,\n 0,\n -cs.x,\n -Mr.y,\n Mr.x,\n 0,\n -_r.y,\n _r.x,\n 0,\n -cs.y,\n cs.x,\n 0\n ];\n return !lh(t, qs, Qs, eo, Wl) || (t = [1, 0, 0, 0, 1, 0, 0, 0, 1], !lh(t, qs, Qs, eo, Wl)) ? !1 : (jl.crossVectors(Mr, _r), t = [jl.x, jl.y, jl.z], lh(t, qs, Qs, eo, Wl));\n }\n clampPoint(e, t) {\n return t.copy(e).clamp(this.min, this.max);\n }\n distanceToPoint(e) {\n return ba.copy(e).clamp(this.min, this.max).sub(e).length();\n }\n getBoundingSphere(e) {\n return this.getCenter(e.center), e.radius = this.getSize(ba).length() * 0.5, e;\n }\n intersect(e) {\n return this.min.max(e.min), this.max.min(e.max), this.isEmpty() && this.makeEmpty(), this;\n }\n union(e) {\n return this.min.min(e.min), this.max.max(e.max), this;\n }\n applyMatrix4(e) {\n return this.isEmpty() ? this : (ji[0].set(this.min.x, this.min.y, this.min.z).applyMatrix4(e), ji[1].set(this.min.x, this.min.y, this.max.z).applyMatrix4(e), ji[2].set(this.min.x, this.max.y, this.min.z).applyMatrix4(e), ji[3].set(this.min.x, this.max.y, this.max.z).applyMatrix4(e), ji[4].set(this.max.x, this.min.y, this.min.z).applyMatrix4(e), ji[5].set(this.max.x, this.min.y, this.max.z).applyMatrix4(e), ji[6].set(this.max.x, this.max.y, this.min.z).applyMatrix4(e), ji[7].set(this.max.x, this.max.y, this.max.z).applyMatrix4(e), this.setFromPoints(ji), this);\n }\n translate(e) {\n return this.min.add(e), this.max.add(e), this;\n }\n equals(e) {\n return e.min.equals(this.min) && e.max.equals(this.max);\n }\n}\nVn.prototype.isBox3 = !0;\nconst ji = [\n /* @__PURE__ */ new J(),\n /* @__PURE__ */ new J(),\n /* @__PURE__ */ new J(),\n /* @__PURE__ */ new J(),\n /* @__PURE__ */ new J(),\n /* @__PURE__ */ new J(),\n /* @__PURE__ */ new J(),\n /* @__PURE__ */ new J()\n], ba = /* @__PURE__ */ new J(), ah = /* @__PURE__ */ new Vn(), qs = /* @__PURE__ */ new J(), Qs = /* @__PURE__ */ new J(), eo = /* @__PURE__ */ new J(), Mr = /* @__PURE__ */ new J(), _r = /* @__PURE__ */ new J(), cs = /* @__PURE__ */ new J(), xa = /* @__PURE__ */ new J(), Wl = /* @__PURE__ */ new J(), jl = /* @__PURE__ */ new J(), us = /* @__PURE__ */ new J();\nfunction lh(n, e, t, i, r) {\n for (let s = 0, o = n.length - 3; s <= o; s += 3) {\n us.fromArray(n, s);\n const a = r.x * Math.abs(us.x) + r.y * Math.abs(us.y) + r.z * Math.abs(us.z), c = e.dot(us), l = t.dot(us), d = i.dot(us);\n if (Math.max(-Math.max(c, l, d), Math.min(c, l, d)) > a)\n return !1;\n }\n return !0;\n}\nconst gI = /* @__PURE__ */ new Vn(), mg = /* @__PURE__ */ new J(), ch = /* @__PURE__ */ new J(), uh = /* @__PURE__ */ new J();\nclass br {\n constructor(e = new J(), t = -1) {\n this.center = e, this.radius = t;\n }\n set(e, t) {\n return this.center.copy(e), this.radius = t, this;\n }\n setFromPoints(e, t) {\n const i = this.center;\n t !== void 0 ? i.copy(t) : gI.setFromPoints(e).getCenter(i);\n let r = 0;\n for (let s = 0, o = e.length; s < o; s++)\n r = Math.max(r, i.distanceToSquared(e[s]));\n return this.radius = Math.sqrt(r), this;\n }\n copy(e) {\n return this.center.copy(e.center), this.radius = e.radius, this;\n }\n isEmpty() {\n return this.radius < 0;\n }\n makeEmpty() {\n return this.center.set(0, 0, 0), this.radius = -1, this;\n }\n containsPoint(e) {\n return e.distanceToSquared(this.center) <= this.radius * this.radius;\n }\n distanceToPoint(e) {\n return e.distanceTo(this.center) - this.radius;\n }\n intersectsSphere(e) {\n const t = this.radius + e.radius;\n return e.center.distanceToSquared(this.center) <= t * t;\n }\n intersectsBox(e) {\n return e.intersectsSphere(this);\n }\n intersectsPlane(e) {\n return Math.abs(e.distanceToPoint(this.center)) <= this.radius;\n }\n clampPoint(e, t) {\n const i = this.center.distanceToSquared(e);\n return t.copy(e), i > this.radius * this.radius && (t.sub(this.center).normalize(), t.multiplyScalar(this.radius).add(this.center)), t;\n }\n getBoundingBox(e) {\n return this.isEmpty() ? (e.makeEmpty(), e) : (e.set(this.center, this.center), e.expandByScalar(this.radius), e);\n }\n applyMatrix4(e) {\n return this.center.applyMatrix4(e), this.radius = this.radius * e.getMaxScaleOnAxis(), this;\n }\n translate(e) {\n return this.center.add(e), this;\n }\n expandByPoint(e) {\n uh.subVectors(e, this.center);\n const t = uh.lengthSq();\n if (t > this.radius * this.radius) {\n const i = Math.sqrt(t), r = (i - this.radius) * 0.5;\n this.center.add(uh.multiplyScalar(r / i)), this.radius += r;\n }\n return this;\n }\n union(e) {\n return ch.subVectors(e.center, this.center).normalize().multiplyScalar(e.radius), this.expandByPoint(mg.copy(e.center).add(ch)), this.expandByPoint(mg.copy(e.center).sub(ch)), this;\n }\n equals(e) {\n return e.center.equals(this.center) && e.radius === this.radius;\n }\n clone() {\n return new this.constructor().copy(this);\n }\n}\nconst $i = /* @__PURE__ */ new J(), hh = /* @__PURE__ */ new J(), $l = /* @__PURE__ */ new J(), Sr = /* @__PURE__ */ new J(), dh = /* @__PURE__ */ new J(), Zl = /* @__PURE__ */ new J(), fh = /* @__PURE__ */ new J();\nclass ns {\n constructor(e = new J(), t = new J(0, 0, -1)) {\n this.origin = e, this.direction = t;\n }\n set(e, t) {\n return this.origin.copy(e), this.direction.copy(t), this;\n }\n copy(e) {\n return this.origin.copy(e.origin), this.direction.copy(e.direction), this;\n }\n at(e, t) {\n return t.copy(this.direction).multiplyScalar(e).add(this.origin);\n }\n lookAt(e) {\n return this.direction.copy(e).sub(this.origin).normalize(), this;\n }\n recast(e) {\n return this.origin.copy(this.at(e, $i)), this;\n }\n closestPointToPoint(e, t) {\n t.subVectors(e, this.origin);\n const i = t.dot(this.direction);\n return i < 0 ? t.copy(this.origin) : t.copy(this.direction).multiplyScalar(i).add(this.origin);\n }\n distanceToPoint(e) {\n return Math.sqrt(this.distanceSqToPoint(e));\n }\n distanceSqToPoint(e) {\n const t = $i.subVectors(e, this.origin).dot(this.direction);\n return t < 0 ? this.origin.distanceToSquared(e) : ($i.copy(this.direction).multiplyScalar(t).add(this.origin), $i.distanceToSquared(e));\n }\n distanceSqToSegment(e, t, i, r) {\n hh.copy(e).add(t).multiplyScalar(0.5), $l.copy(t).sub(e).normalize(), Sr.copy(this.origin).sub(hh);\n const s = e.distanceTo(t) * 0.5, o = -this.direction.dot($l), a = Sr.dot(this.direction), c = -Sr.dot($l), l = Sr.lengthSq(), d = Math.abs(1 - o * o);\n let h, f, g, p;\n if (d > 0)\n if (h = o * c - a, f = o * a - c, p = s * d, h >= 0)\n if (f >= -p)\n if (f <= p) {\n const u = 1 / d;\n h *= u, f *= u, g = h * (h + o * f + 2 * a) + f * (o * h + f + 2 * c) + l;\n } else\n f = s, h = Math.max(0, -(o * f + a)), g = -h * h + f * (f + 2 * c) + l;\n else\n f = -s, h = Math.max(0, -(o * f + a)), g = -h * h + f * (f + 2 * c) + l;\n else\n f <= -p ? (h = Math.max(0, -(-o * s + a)), f = h > 0 ? -s : Math.min(Math.max(-s, -c), s), g = -h * h + f * (f + 2 * c) + l) : f <= p ? (h = 0, f = Math.min(Math.max(-s, -c), s), g = f * (f + 2 * c) + l) : (h = Math.max(0, -(o * s + a)), f = h > 0 ? s : Math.min(Math.max(-s, -c), s), g = -h * h + f * (f + 2 * c) + l);\n else\n f = o > 0 ? -s : s, h = Math.max(0, -(o * f + a)), g = -h * h + f * (f + 2 * c) + l;\n return i && i.copy(this.direction).multiplyScalar(h).add(this.origin), r && r.copy($l).multiplyScalar(f).add(hh), g;\n }\n intersectSphere(e, t) {\n $i.subVectors(e.center, this.origin);\n const i = $i.dot(this.direction), r = $i.dot($i) - i * i, s = e.radius * e.radius;\n if (r > s) return null;\n const o = Math.sqrt(s - r), a = i - o, c = i + o;\n return a < 0 && c < 0 ? null : a < 0 ? this.at(c, t) : this.at(a, t);\n }\n intersectsSphere(e) {\n return this.distanceSqToPoint(e.center) <= e.radius * e.radius;\n }\n distanceToPlane(e) {\n const t = e.normal.dot(this.direction);\n if (t === 0)\n return e.distanceToPoint(this.origin) === 0 ? 0 : null;\n const i = -(this.origin.dot(e.normal) + e.constant) / t;\n return i >= 0 ? i : null;\n }\n intersectPlane(e, t) {\n const i = this.distanceToPlane(e);\n return i === null ? null : this.at(i, t);\n }\n intersectsPlane(e) {\n const t = e.distanceToPoint(this.origin);\n return t === 0 || e.normal.dot(this.direction) * t < 0;\n }\n intersectBox(e, t) {\n let i, r, s, o, a, c;\n const l = 1 / this.direction.x, d = 1 / this.direction.y, h = 1 / this.direction.z, f = this.origin;\n return l >= 0 ? (i = (e.min.x - f.x) * l, r = (e.max.x - f.x) * l) : (i = (e.max.x - f.x) * l, r = (e.min.x - f.x) * l), d >= 0 ? (s = (e.min.y - f.y) * d, o = (e.max.y - f.y) * d) : (s = (e.max.y - f.y) * d, o = (e.min.y - f.y) * d), i > o || s > r || ((s > i || i !== i) && (i = s), (o < r || r !== r) && (r = o), h >= 0 ? (a = (e.min.z - f.z) * h, c = (e.max.z - f.z) * h) : (a = (e.max.z - f.z) * h, c = (e.min.z - f.z) * h), i > c || a > r) || ((a > i || i !== i) && (i = a), (c < r || r !== r) && (r = c), r < 0) ? null : this.at(i >= 0 ? i : r, t);\n }\n intersectsBox(e) {\n return this.intersectBox(e, $i) !== null;\n }\n intersectTriangle(e, t, i, r, s) {\n dh.subVectors(t, e), Zl.subVectors(i, e), fh.crossVectors(dh, Zl);\n let o = this.direction.dot(fh), a;\n if (o > 0) {\n if (r) return null;\n a = 1;\n } else if (o < 0)\n a = -1, o = -o;\n else\n return null;\n Sr.subVectors(this.origin, e);\n const c = a * this.direction.dot(Zl.crossVectors(Sr, Zl));\n if (c < 0)\n return null;\n const l = a * this.direction.dot(dh.cross(Sr));\n if (l < 0 || c + l > o)\n return null;\n const d = -a * Sr.dot(fh);\n return d < 0 ? null : this.at(d / o, s);\n }\n applyMatrix4(e) {\n return this.origin.applyMatrix4(e), this.direction.transformDirection(e), this;\n }\n equals(e) {\n return e.origin.equals(this.origin) && e.direction.equals(this.direction);\n }\n clone() {\n return new this.constructor().copy(this);\n }\n}\nclass Ze {\n constructor() {\n this.elements = [\n 1,\n 0,\n 0,\n 0,\n 0,\n 1,\n 0,\n 0,\n 0,\n 0,\n 1,\n 0,\n 0,\n 0,\n 0,\n 1\n ], arguments.length > 0 && console.error(\"THREE.Matrix4: the constructor no longer reads arguments. use .set() instead.\");\n }\n set(e, t, i, r, s, o, a, c, l, d, h, f, g, p, u, y) {\n const v = this.elements;\n return v[0] = e, v[4] = t, v[8] = i, v[12] = r, v[1] = s, v[5] = o, v[9] = a, v[13] = c, v[2] = l, v[6] = d, v[10] = h, v[14] = f, v[3] = g, v[7] = p, v[11] = u, v[15] = y, this;\n }\n identity() {\n return this.set(\n 1,\n 0,\n 0,\n 0,\n 0,\n 1,\n 0,\n 0,\n 0,\n 0,\n 1,\n 0,\n 0,\n 0,\n 0,\n 1\n ), this;\n }\n clone() {\n return new Ze().fromArray(this.elements);\n }\n copy(e) {\n const t = this.elements, i = e.elements;\n return t[0] = i[0], t[1] = i[1], t[2] = i[2], t[3] = i[3], t[4] = i[4], t[5] = i[5], t[6] = i[6], t[7] = i[7], t[8] = i[8], t[9] = i[9], t[10] = i[10], t[11] = i[11], t[12] = i[12], t[13] = i[13], t[14] = i[14], t[15] = i[15], this;\n }\n copyPosition(e) {\n const t = this.elements, i = e.elements;\n return t[12] = i[12], t[13] = i[13], t[14] = i[14], this;\n }\n setFromMatrix3(e) {\n const t = e.elements;\n return this.set(\n t[0],\n t[3],\n t[6],\n 0,\n t[1],\n t[4],\n t[7],\n 0,\n t[2],\n t[5],\n t[8],\n 0,\n 0,\n 0,\n 0,\n 1\n ), this;\n }\n extractBasis(e, t, i) {\n return e.setFromMatrixColumn(this, 0), t.setFromMatrixColumn(this, 1), i.setFromMatrixColumn(this, 2), this;\n }\n makeBasis(e, t, i) {\n return this.set(\n e.x,\n t.x,\n i.x,\n 0,\n e.y,\n t.y,\n i.y,\n 0,\n e.z,\n t.z,\n i.z,\n 0,\n 0,\n 0,\n 0,\n 1\n ), this;\n }\n extractRotation(e) {\n const t = this.elements, i = e.elements, r = 1 / to.setFromMatrixColumn(e, 0).length(), s = 1 / to.setFromMatrixColumn(e, 1).length(), o = 1 / to.setFromMatrixColumn(e, 2).length();\n return t[0] = i[0] * r, t[1] = i[1] * r, t[2] = i[2] * r, t[3] = 0, t[4] = i[4] * s, t[5] = i[5] * s, t[6] = i[6] * s, t[7] = 0, t[8] = i[8] * o, t[9] = i[9] * o, t[10] = i[10] * o, t[11] = 0, t[12] = 0, t[13] = 0, t[14] = 0, t[15] = 1, this;\n }\n makeRotationFromEuler(e) {\n e && e.isEuler || console.error(\"THREE.Matrix4: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.\");\n const t = this.elements, i = e.x, r = e.y, s = e.z, o = Math.cos(i), a = Math.sin(i), c = Math.cos(r), l = Math.sin(r), d = Math.cos(s), h = Math.sin(s);\n if (e.order === \"XYZ\") {\n const f = o * d, g = o * h, p = a * d, u = a * h;\n t[0] = c * d, t[4] = -c * h, t[8] = l, t[1] = g + p * l, t[5] = f - u * l, t[9] = -a * c, t[2] = u - f * l, t[6] = p + g * l, t[10] = o * c;\n } else if (e.order === \"YXZ\") {\n const f = c * d, g = c * h, p = l * d, u = l * h;\n t[0] = f + u * a, t[4] = p * a - g, t[8] = o * l, t[1] = o * h, t[5] = o * d, t[9] = -a, t[2] = g * a - p, t[6] = u + f * a, t[10] = o * c;\n } else if (e.order === \"ZXY\") {\n const f = c * d, g = c * h, p = l * d, u = l * h;\n t[0] = f - u * a, t[4] = -o * h, t[8] = p + g * a, t[1] = g + p * a, t[5] = o * d, t[9] = u - f * a, t[2] = -o * l, t[6] = a, t[10] = o * c;\n } else if (e.order === \"ZYX\") {\n const f = o * d, g = o * h, p = a * d, u = a * h;\n t[0] = c * d, t[4] = p * l - g, t[8] = f * l + u, t[1] = c * h, t[5] = u * l + f, t[9] = g * l - p, t[2] = -l, t[6] = a * c, t[10] = o * c;\n } else if (e.order === \"YZX\") {\n const f = o * c, g = o * l, p = a * c, u = a * l;\n t[0] = c * d, t[4] = u - f * h, t[8] = p * h + g, t[1] = h, t[5] = o * d, t[9] = -a * d, t[2] = -l * d, t[6] = g * h + p, t[10] = f - u * h;\n } else if (e.order === \"XZY\") {\n const f = o * c, g = o * l, p = a * c, u = a * l;\n t[0] = c * d, t[4] = -h, t[8] = l * d, t[1] = f * h + u, t[5] = o * d, t[9] = g * h - p, t[2] = p * h - g, t[6] = a * d, t[10] = u * h + f;\n }\n return t[3] = 0, t[7] = 0, t[11] = 0, t[12] = 0, t[13] = 0, t[14] = 0, t[15] = 1, this;\n }\n makeRotationFromQuaternion(e) {\n return this.compose(vI, e, yI);\n }\n lookAt(e, t, i) {\n const r = this.elements;\n return Gn.subVectors(e, t), Gn.lengthSq() === 0 && (Gn.z = 1), Gn.normalize(), Tr.crossVectors(i, Gn), Tr.lengthSq() === 0 && (Math.abs(i.z) === 1 ? Gn.x += 1e-4 : Gn.z += 1e-4, Gn.normalize(), Tr.crossVectors(i, Gn)), Tr.normalize(), Xl.crossVectors(Gn, Tr), r[0] = Tr.x, r[4] = Xl.x, r[8] = Gn.x, r[1] = Tr.y, r[5] = Xl.y, r[9] = Gn.y, r[2] = Tr.z, r[6] = Xl.z, r[10] = Gn.z, this;\n }\n multiply(e, t) {\n return t !== void 0 ? (console.warn(\"THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead.\"), this.multiplyMatrices(e, t)) : this.multiplyMatrices(this, e);\n }\n premultiply(e) {\n return this.multiplyMatrices(e, this);\n }\n multiplyMatrices(e, t) {\n const i = e.elements, r = t.elements, s = this.elements, o = i[0], a = i[4], c = i[8], l = i[12], d = i[1], h = i[5], f = i[9], g = i[13], p = i[2], u = i[6], y = i[10], v = i[14], m = i[3], w = i[7], _ = i[11], S = i[15], M = r[0], x = r[4], A = r[8], P = r[12], T = r[1], R = r[5], E = r[9], C = r[13], L = r[2], O = r[6], b = r[10], I = r[14], N = r[3], D = r[7], z = r[11], V = r[15];\n return s[0] = o * M + a * T + c * L + l * N, s[4] = o * x + a * R + c * O + l * D, s[8] = o * A + a * E + c * b + l * z, s[12] = o * P + a * C + c * I + l * V, s[1] = d * M + h * T + f * L + g * N, s[5] = d * x + h * R + f * O + g * D, s[9] = d * A + h * E + f * b + g * z, s[13] = d * P + h * C + f * I + g * V, s[2] = p * M + u * T + y * L + v * N, s[6] = p * x + u * R + y * O + v * D, s[10] = p * A + u * E + y * b + v * z, s[14] = p * P + u * C + y * I + v * V, s[3] = m * M + w * T + _ * L + S * N, s[7] = m * x + w * R + _ * O + S * D, s[11] = m * A + w * E + _ * b + S * z, s[15] = m * P + w * C + _ * I + S * V, this;\n }\n multiplyScalar(e) {\n const t = this.elements;\n return t[0] *= e, t[4] *= e, t[8] *= e, t[12] *= e, t[1] *= e, t[5] *= e, t[9] *= e, t[13] *= e, t[2] *= e, t[6] *= e, t[10] *= e, t[14] *= e, t[3] *= e, t[7] *= e, t[11] *= e, t[15] *= e, this;\n }\n determinant() {\n const e = this.elements, t = e[0], i = e[4], r = e[8], s = e[12], o = e[1], a = e[5], c = e[9], l = e[13], d = e[2], h = e[6], f = e[10], g = e[14], p = e[3], u = e[7], y = e[11], v = e[15];\n return p * (+s * c * h - r * l * h - s * a * f + i * l * f + r * a * g - i * c * g) + u * (+t * c * g - t * l * f + s * o * f - r * o * g + r * l * d - s * c * d) + y * (+t * l * h - t * a * g - s * o * h + i * o * g + s * a * d - i * l * d) + v * (-r * a * d - t * c * h + t * a * f + r * o * h - i * o * f + i * c * d);\n }\n transpose() {\n const e = this.elements;\n let t;\n return t = e[1], e[1] = e[4], e[4] = t, t = e[2], e[2] = e[8], e[8] = t, t = e[6], e[6] = e[9], e[9] = t, t = e[3], e[3] = e[12], e[12] = t, t = e[7], e[7] = e[13], e[13] = t, t = e[11], e[11] = e[14], e[14] = t, this;\n }\n setPosition(e, t, i) {\n const r = this.elements;\n return e.isVector3 ? (r[12] = e.x, r[13] = e.y, r[14] = e.z) : (r[12] = e, r[13] = t, r[14] = i), this;\n }\n invert() {\n const e = this.elements, t = e[0], i = e[1], r = e[2], s = e[3], o = e[4], a = e[5], c = e[6], l = e[7], d = e[8], h = e[9], f = e[10], g = e[11], p = e[12], u = e[13], y = e[14], v = e[15], m = h * y * l - u * f * l + u * c * g - a * y * g - h * c * v + a * f * v, w = p * f * l - d * y * l - p * c * g + o * y * g + d * c * v - o * f * v, _ = d * u * l - p * h * l + p * a * g - o * u * g - d * a * v + o * h * v, S = p * h * c - d * u * c - p * a * f + o * u * f + d * a * y - o * h * y, M = t * m + i * w + r * _ + s * S;\n if (M === 0) return this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);\n const x = 1 / M;\n return e[0] = m * x, e[1] = (u * f * s - h * y * s - u * r * g + i * y * g + h * r * v - i * f * v) * x, e[2] = (a * y * s - u * c * s + u * r * l - i * y * l - a * r * v + i * c * v) * x, e[3] = (h * c * s - a * f * s - h * r * l + i * f * l + a * r * g - i * c * g) * x, e[4] = w * x, e[5] = (d * y * s - p * f * s + p * r * g - t * y * g - d * r * v + t * f * v) * x, e[6] = (p * c * s - o * y * s - p * r * l + t * y * l + o * r * v - t * c * v) * x, e[7] = (o * f * s - d * c * s + d * r * l - t * f * l - o * r * g + t * c * g) * x, e[8] = _ * x, e[9] = (p * h * s - d * u * s - p * i * g + t * u * g + d * i * v - t * h * v) * x, e[10] = (o * u * s - p * a * s + p * i * l - t * u * l - o * i * v + t * a * v) * x, e[11] = (d * a * s - o * h * s - d * i * l + t * h * l + o * i * g - t * a * g) * x, e[12] = S * x, e[13] = (d * u * r - p * h * r + p * i * f - t * u * f - d * i * y + t * h * y) * x, e[14] = (p * a * r - o * u * r - p * i * c + t * u * c + o * i * y - t * a * y) * x, e[15] = (o * h * r - d * a * r + d * i * c - t * h * c - o * i * f + t * a * f) * x, this;\n }\n scale(e) {\n const t = this.elements, i = e.x, r = e.y, s = e.z;\n return t[0] *= i, t[4] *= r, t[8] *= s, t[1] *= i, t[5] *= r, t[9] *= s, t[2] *= i, t[6] *= r, t[10] *= s, t[3] *= i, t[7] *= r, t[11] *= s, this;\n }\n getMaxScaleOnAxis() {\n const e = this.elements, t = e[0] * e[0] + e[1] * e[1] + e[2] * e[2], i = e[4] * e[4] + e[5] * e[5] + e[6] * e[6], r = e[8] * e[8] + e[9] * e[9] + e[10] * e[10];\n return Math.sqrt(Math.max(t, i, r));\n }\n makeTranslation(e, t, i) {\n return this.set(\n 1,\n 0,\n 0,\n e,\n 0,\n 1,\n 0,\n t,\n 0,\n 0,\n 1,\n i,\n 0,\n 0,\n 0,\n 1\n ), this;\n }\n makeRotationX(e) {\n const t = Math.cos(e), i = Math.sin(e);\n return this.set(\n 1,\n 0,\n 0,\n 0,\n 0,\n t,\n -i,\n 0,\n 0,\n i,\n t,\n 0,\n 0,\n 0,\n 0,\n 1\n ), this;\n }\n makeRotationY(e) {\n const t = Math.cos(e), i = Math.sin(e);\n return this.set(\n t,\n 0,\n i,\n 0,\n 0,\n 1,\n 0,\n 0,\n -i,\n 0,\n t,\n 0,\n 0,\n 0,\n 0,\n 1\n ), this;\n }\n makeRotationZ(e) {\n const t = Math.cos(e), i = Math.sin(e);\n return this.set(\n t,\n -i,\n 0,\n 0,\n i,\n t,\n 0,\n 0,\n 0,\n 0,\n 1,\n 0,\n 0,\n 0,\n 0,\n 1\n ), this;\n }\n makeRotationAxis(e, t) {\n const i = Math.cos(t), r = Math.sin(t), s = 1 - i, o = e.x, a = e.y, c = e.z, l = s * o, d = s * a;\n return this.set(\n l * o + i,\n l * a - r * c,\n l * c + r * a,\n 0,\n l * a + r * c,\n d * a + i,\n d * c - r * o,\n 0,\n l * c - r * a,\n d * c + r * o,\n s * c * c + i,\n 0,\n 0,\n 0,\n 0,\n 1\n ), this;\n }\n makeScale(e, t, i) {\n return this.set(\n e,\n 0,\n 0,\n 0,\n 0,\n t,\n 0,\n 0,\n 0,\n 0,\n i,\n 0,\n 0,\n 0,\n 0,\n 1\n ), this;\n }\n makeShear(e, t, i, r, s, o) {\n return this.set(\n 1,\n i,\n s,\n 0,\n e,\n 1,\n o,\n 0,\n t,\n r,\n 1,\n 0,\n 0,\n 0,\n 0,\n 1\n ), this;\n }\n compose(e, t, i) {\n const r = this.elements, s = t._x, o = t._y, a = t._z, c = t._w, l = s + s, d = o + o, h = a + a, f = s * l, g = s * d, p = s * h, u = o * d, y = o * h, v = a * h, m = c * l, w = c * d, _ = c * h, S = i.x, M = i.y, x = i.z;\n return r[0] = (1 - (u + v)) * S, r[1] = (g + _) * S, r[2] = (p - w) * S, r[3] = 0, r[4] = (g - _) * M, r[5] = (1 - (f + v)) * M, r[6] = (y + m) * M, r[7] = 0, r[8] = (p + w) * x, r[9] = (y - m) * x, r[10] = (1 - (f + u)) * x, r[11] = 0, r[12] = e.x, r[13] = e.y, r[14] = e.z, r[15] = 1, this;\n }\n decompose(e, t, i) {\n const r = this.elements;\n let s = to.set(r[0], r[1], r[2]).length();\n const o = to.set(r[4], r[5], r[6]).length(), a = to.set(r[8], r[9], r[10]).length();\n this.determinant() < 0 && (s = -s), e.x = r[12], e.y = r[13], e.z = r[14], ui.copy(this);\n const l = 1 / s, d = 1 / o, h = 1 / a;\n return ui.elements[0] *= l, ui.elements[1] *= l, ui.elements[2] *= l, ui.elements[4] *= d, ui.elements[5] *= d, ui.elements[6] *= d, ui.elements[8] *= h, ui.elements[9] *= h, ui.elements[10] *= h, t.setFromRotationMatrix(ui), i.x = s, i.y = o, i.z = a, this;\n }\n makePerspective(e, t, i, r, s, o) {\n o === void 0 && console.warn(\"THREE.Matrix4: .makePerspective() has been redefined and has a new signature. Please check the docs.\");\n const a = this.elements, c = 2 * s / (t - e), l = 2 * s / (i - r), d = (t + e) / (t - e), h = (i + r) / (i - r), f = -(o + s) / (o - s), g = -2 * o * s / (o - s);\n return a[0] = c, a[4] = 0, a[8] = d, a[12] = 0, a[1] = 0, a[5] = l, a[9] = h, a[13] = 0, a[2] = 0, a[6] = 0, a[10] = f, a[14] = g, a[3] = 0, a[7] = 0, a[11] = -1, a[15] = 0, this;\n }\n makeOrthographic(e, t, i, r, s, o) {\n const a = this.elements, c = 1 / (t - e), l = 1 / (i - r), d = 1 / (o - s), h = (t + e) * c, f = (i + r) * l, g = (o + s) * d;\n return a[0] = 2 * c, a[4] = 0, a[8] = 0, a[12] = -h, a[1] = 0, a[5] = 2 * l, a[9] = 0, a[13] = -f, a[2] = 0, a[6] = 0, a[10] = -2 * d, a[14] = -g, a[3] = 0, a[7] = 0, a[11] = 0, a[15] = 1, this;\n }\n equals(e) {\n const t = this.elements, i = e.elements;\n for (let r = 0; r < 16; r++)\n if (t[r] !== i[r]) return !1;\n return !0;\n }\n fromArray(e, t = 0) {\n for (let i = 0; i < 16; i++)\n this.elements[i] = e[i + t];\n return this;\n }\n toArray(e = [], t = 0) {\n const i = this.elements;\n return e[t] = i[0], e[t + 1] = i[1], e[t + 2] = i[2], e[t + 3] = i[3], e[t + 4] = i[4], e[t + 5] = i[5], e[t + 6] = i[6], e[t + 7] = i[7], e[t + 8] = i[8], e[t + 9] = i[9], e[t + 10] = i[10], e[t + 11] = i[11], e[t + 12] = i[12], e[t + 13] = i[13], e[t + 14] = i[14], e[t + 15] = i[15], e;\n }\n}\nZe.prototype.isMatrix4 = !0;\nconst to = /* @__PURE__ */ new J(), ui = /* @__PURE__ */ new Ze(), vI = /* @__PURE__ */ new J(0, 0, 0), yI = /* @__PURE__ */ new J(1, 1, 1), Tr = /* @__PURE__ */ new J(), Xl = /* @__PURE__ */ new J(), Gn = /* @__PURE__ */ new J(), gg = /* @__PURE__ */ new Ze(), vg = /* @__PURE__ */ new bn();\nclass Ws {\n constructor(e = 0, t = 0, i = 0, r = Ws.DefaultOrder) {\n this._x = e, this._y = t, this._z = i, this._order = r;\n }\n get x() {\n return this._x;\n }\n set x(e) {\n this._x = e, this._onChangeCallback();\n }\n get y() {\n return this._y;\n }\n set y(e) {\n this._y = e, this._onChangeCallback();\n }\n get z() {\n return this._z;\n }\n set z(e) {\n this._z = e, this._onChangeCallback();\n }\n get order() {\n return this._order;\n }\n set order(e) {\n this._order = e, this._onChangeCallback();\n }\n set(e, t, i, r = this._order) {\n return this._x = e, this._y = t, this._z = i, this._order = r, this._onChangeCallback(), this;\n }\n clone() {\n return new this.constructor(this._x, this._y, this._z, this._order);\n }\n copy(e) {\n return this._x = e._x, this._y = e._y, this._z = e._z, this._order = e._order, this._onChangeCallback(), this;\n }\n setFromRotationMatrix(e, t = this._order, i = !0) {\n const r = e.elements, s = r[0], o = r[4], a = r[8], c = r[1], l = r[5], d = r[9], h = r[2], f = r[6], g = r[10];\n switch (t) {\n case \"XYZ\":\n this._y = Math.asin(vn(a, -1, 1)), Math.abs(a) < 0.9999999 ? (this._x = Math.atan2(-d, g), this._z = Math.atan2(-o, s)) : (this._x = Math.atan2(f, l), this._z = 0);\n break;\n case \"YXZ\":\n this._x = Math.asin(-vn(d, -1, 1)), Math.abs(d) < 0.9999999 ? (this._y = Math.atan2(a, g), this._z = Math.atan2(c, l)) : (this._y = Math.atan2(-h, s), this._z = 0);\n break;\n case \"ZXY\":\n this._x = Math.asin(vn(f, -1, 1)), Math.abs(f) < 0.9999999 ? (this._y = Math.atan2(-h, g), this._z = Math.atan2(-o, l)) : (this._y = 0, this._z = Math.atan2(c, s));\n break;\n case \"ZYX\":\n this._y = Math.asin(-vn(h, -1, 1)), Math.abs(h) < 0.9999999 ? (this._x = Math.atan2(f, g), this._z = Math.atan2(c, s)) : (this._x = 0, this._z = Math.atan2(-o, l));\n break;\n case \"YZX\":\n this._z = Math.asin(vn(c, -1, 1)), Math.abs(c) < 0.9999999 ? (this._x = Math.atan2(-d, l), this._y = Math.atan2(-h, s)) : (this._x = 0, this._y = Math.atan2(a, g));\n break;\n case \"XZY\":\n this._z = Math.asin(-vn(o, -1, 1)), Math.abs(o) < 0.9999999 ? (this._x = Math.atan2(f, l), this._y = Math.atan2(a, s)) : (this._x = Math.atan2(-d, g), this._y = 0);\n break;\n default:\n console.warn(\"THREE.Euler: .setFromRotationMatrix() encountered an unknown order: \" + t);\n }\n return this._order = t, i === !0 && this._onChangeCallback(), this;\n }\n setFromQuaternion(e, t, i) {\n return gg.makeRotationFromQuaternion(e), this.setFromRotationMatrix(gg, t, i);\n }\n setFromVector3(e, t = this._order) {\n return this.set(e.x, e.y, e.z, t);\n }\n reorder(e) {\n return vg.setFromEuler(this), this.setFromQuaternion(vg, e);\n }\n equals(e) {\n return e._x === this._x && e._y === this._y && e._z === this._z && e._order === this._order;\n }\n fromArray(e) {\n return this._x = e[0], this._y = e[1], this._z = e[2], e[3] !== void 0 && (this._order = e[3]), this._onChangeCallback(), this;\n }\n toArray(e = [], t = 0) {\n return e[t] = this._x, e[t + 1] = this._y, e[t + 2] = this._z, e[t + 3] = this._order, e;\n }\n toVector3(e) {\n return e ? e.set(this._x, this._y, this._z) : new J(this._x, this._y, this._z);\n }\n _onChange(e) {\n return this._onChangeCallback = e, this;\n }\n _onChangeCallback() {\n }\n}\nWs.prototype.isEuler = !0;\nWs.DefaultOrder = \"XYZ\";\nWs.RotationOrders = [\"XYZ\", \"YZX\", \"ZXY\", \"XZY\", \"YXZ\", \"ZYX\"];\nclass Kf {\n constructor() {\n this.mask = 1;\n }\n set(e) {\n this.mask = 1 << e | 0;\n }\n enable(e) {\n this.mask |= 1 << e | 0;\n }\n enableAll() {\n this.mask = -1;\n }\n toggle(e) {\n this.mask ^= 1 << e | 0;\n }\n disable(e) {\n this.mask &= ~(1 << e | 0);\n }\n disableAll() {\n this.mask = 0;\n }\n test(e) {\n return (this.mask & e.mask) !== 0;\n }\n}\nlet bI = 0;\nconst yg = /* @__PURE__ */ new J(), no = /* @__PURE__ */ new bn(), Zi = /* @__PURE__ */ new Ze(), Yl = /* @__PURE__ */ new J(), wa = /* @__PURE__ */ new J(), xI = /* @__PURE__ */ new J(), wI = /* @__PURE__ */ new bn(), bg = /* @__PURE__ */ new J(1, 0, 0), xg = /* @__PURE__ */ new J(0, 1, 0), wg = /* @__PURE__ */ new J(0, 0, 1), MI = { type: \"added\" }, Mg = { type: \"removed\" };\nclass st extends ts {\n constructor() {\n super(), Object.defineProperty(this, \"id\", { value: bI++ }), this.uuid = Xn(), this.name = \"\", this.type = \"Object3D\", this.parent = null, this.children = [], this.up = st.DefaultUp.clone();\n const e = new J(), t = new Ws(), i = new bn(), r = new J(1, 1, 1);\n function s() {\n i.setFromEuler(t, !1);\n }\n function o() {\n t.setFromQuaternion(i, void 0, !1);\n }\n t._onChange(s), i._onChange(o), Object.defineProperties(this, {\n position: {\n configurable: !0,\n enumerable: !0,\n value: e\n },\n rotation: {\n configurable: !0,\n enumerable: !0,\n value: t\n },\n quaternion: {\n configurable: !0,\n enumerable: !0,\n value: i\n },\n scale: {\n configurable: !0,\n enumerable: !0,\n value: r\n },\n modelViewMatrix: {\n value: new Ze()\n },\n normalMatrix: {\n value: new rn()\n }\n }), this.matrix = new Ze(), this.matrixWorld = new Ze(), this.matrixAutoUpdate = st.DefaultMatrixAutoUpdate, this.matrixWorldNeedsUpdate = !1, this.layers = new Kf(), this.visible = !0, this.castShadow = !1, this.receiveShadow = !1, this.frustumCulled = !0, this.renderOrder = 0, this.animations = [], this.userData = {};\n }\n onBeforeRender() {\n }\n onAfterRender() {\n }\n applyMatrix4(e) {\n this.matrixAutoUpdate && this.updateMatrix(), this.matrix.premultiply(e), this.matrix.decompose(this.position, this.quaternion, this.scale);\n }\n applyQuaternion(e) {\n return this.quaternion.premultiply(e), this;\n }\n setRotationFromAxisAngle(e, t) {\n this.quaternion.setFromAxisAngle(e, t);\n }\n setRotationFromEuler(e) {\n this.quaternion.setFromEuler(e, !0);\n }\n setRotationFromMatrix(e) {\n this.quaternion.setFromRotationMatrix(e);\n }\n setRotationFromQuaternion(e) {\n this.quaternion.copy(e);\n }\n rotateOnAxis(e, t) {\n return no.setFromAxisAngle(e, t), this.quaternion.multiply(no), this;\n }\n rotateOnWorldAxis(e, t) {\n return no.setFromAxisAngle(e, t), this.quaternion.premultiply(no), this;\n }\n rotateX(e) {\n return this.rotateOnAxis(bg, e);\n }\n rotateY(e) {\n return this.rotateOnAxis(xg, e);\n }\n rotateZ(e) {\n return this.rotateOnAxis(wg, e);\n }\n translateOnAxis(e, t) {\n return yg.copy(e).applyQuaternion(this.quaternion), this.position.add(yg.multiplyScalar(t)), this;\n }\n translateX(e) {\n return this.translateOnAxis(bg, e);\n }\n translateY(e) {\n return this.translateOnAxis(xg, e);\n }\n translateZ(e) {\n return this.translateOnAxis(wg, e);\n }\n localToWorld(e) {\n return e.applyMatrix4(this.matrixWorld);\n }\n worldToLocal(e) {\n return e.applyMatrix4(Zi.copy(this.matrixWorld).invert());\n }\n lookAt(e, t, i) {\n e.isVector3 ? Yl.copy(e) : Yl.set(e, t, i);\n const r = this.parent;\n this.updateWorldMatrix(!0, !1), wa.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? Zi.lookAt(wa, Yl, this.up) : Zi.lookAt(Yl, wa, this.up), this.quaternion.setFromRotationMatrix(Zi), r && (Zi.extractRotation(r.matrixWorld), no.setFromRotationMatrix(Zi), this.quaternion.premultiply(no.invert()));\n }\n add(e) {\n if (arguments.length > 1) {\n for (let t = 0; t < arguments.length; t++)\n this.add(arguments[t]);\n return this;\n }\n return e === this ? (console.error(\"THREE.Object3D.add: object can't be added as a child of itself.\", e), this) : (e && e.isObject3D ? (e.parent !== null && e.parent.remove(e), e.parent = this, this.children.push(e), e.dispatchEvent(MI)) : console.error(\"THREE.Object3D.add: object not an instance of THREE.Object3D.\", e), this);\n }\n remove(e) {\n if (arguments.length > 1) {\n for (let i = 0; i < arguments.length; i++)\n this.remove(arguments[i]);\n return this;\n }\n const t = this.children.indexOf(e);\n return t !== -1 && (e.parent = null, this.children.splice(t, 1), e.dispatchEvent(Mg)), this;\n }\n removeFromParent() {\n const e = this.parent;\n return e !== null && e.remove(this), this;\n }\n clear() {\n for (let e = 0; e < this.children.length; e++) {\n const t = this.children[e];\n t.parent = null, t.dispatchEvent(Mg);\n }\n return this.children.length = 0, this;\n }\n attach(e) {\n return this.updateWorldMatrix(!0, !1), Zi.copy(this.matrixWorld).invert(), e.parent !== null && (e.parent.updateWorldMatrix(!0, !1), Zi.multiply(e.parent.matrixWorld)), e.applyMatrix4(Zi), this.add(e), e.updateWorldMatrix(!1, !0), this;\n }\n getObjectById(e) {\n return this.getObjectByProperty(\"id\", e);\n }\n getObjectByName(e) {\n return this.getObjectByProperty(\"name\", e);\n }\n getObjectByProperty(e, t) {\n if (this[e] === t) return this;\n for (let i = 0, r = this.children.length; i < r; i++) {\n const o = this.children[i].getObjectByProperty(e, t);\n if (o !== void 0)\n return o;\n }\n }\n getWorldPosition(e) {\n return this.updateWorldMatrix(!0, !1), e.setFromMatrixPosition(this.matrixWorld);\n }\n getWorldQuaternion(e) {\n return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(wa, e, xI), e;\n }\n getWorldScale(e) {\n return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(wa, wI, e), e;\n }\n getWorldDirection(e) {\n this.updateWorldMatrix(!0, !1);\n const t = this.matrixWorld.elements;\n return e.set(t[8], t[9], t[10]).normalize();\n }\n raycast() {\n }\n traverse(e) {\n e(this);\n const t = this.children;\n for (let i = 0, r = t.length; i < r; i++)\n t[i].traverse(e);\n }\n traverseVisible(e) {\n if (this.visible === !1) return;\n e(this);\n const t = this.children;\n for (let i = 0, r = t.length; i < r; i++)\n t[i].traverseVisible(e);\n }\n traverseAncestors(e) {\n const t = this.parent;\n t !== null && (e(t), t.traverseAncestors(e));\n }\n updateMatrix() {\n this.matrix.compose(this.position, this.quaternion, this.scale), this.matrixWorldNeedsUpdate = !0;\n }\n updateMatrixWorld(e) {\n this.matrixAutoUpdate && this.updateMatrix(), (this.matrixWorldNeedsUpdate || e) && (this.parent === null ? this.matrixWorld.copy(this.matrix) : this.matrixWorld.multiplyMatrices(this.parent.matrixWorld, this.matrix), this.matrixWorldNeedsUpdate = !1, e = !0);\n const t = this.children;\n for (let i = 0, r = t.length; i < r; i++)\n t[i].updateMatrixWorld(e);\n }\n updateWorldMatrix(e, t) {\n const i = this.parent;\n if (e === !0 && i !== null && i.updateWorldMatrix(!0, !1), this.matrixAutoUpdate && this.updateMatrix(), this.parent === null ? this.matrixWorld.copy(this.matrix) : this.matrixWorld.multiplyMatrices(this.parent.matrixWorld, this.matrix), t === !0) {\n const r = this.children;\n for (let s = 0, o = r.length; s < o; s++)\n r[s].updateWorldMatrix(!1, !0);\n }\n }\n toJSON(e) {\n const t = e === void 0 || typeof e == \"string\", i = {};\n t && (e = {\n geometries: {},\n materials: {},\n textures: {},\n images: {},\n shapes: {},\n skeletons: {},\n animations: {}\n }, i.metadata = {\n version: 4.5,\n type: \"Object\",\n generator: \"Object3D.toJSON\"\n });\n const r = {};\n r.uuid = this.uuid, r.type = this.type, this.name !== \"\" && (r.name = this.name), this.castShadow === !0 && (r.castShadow = !0), this.receiveShadow === !0 && (r.receiveShadow = !0), this.visible === !1 && (r.visible = !1), this.frustumCulled === !1 && (r.frustumCulled = !1), this.renderOrder !== 0 && (r.renderOrder = this.renderOrder), JSON.stringify(this.userData) !== \"{}\" && (r.userData = this.userData), r.layers = this.layers.mask, r.matrix = this.matrix.toArray(), this.matrixAutoUpdate === !1 && (r.matrixAutoUpdate = !1), this.isInstancedMesh && (r.type = \"InstancedMesh\", r.count = this.count, r.instanceMatrix = this.instanceMatrix.toJSON(), this.instanceColor !== null && (r.instanceColor = this.instanceColor.toJSON()));\n function s(a, c) {\n return a[c.uuid] === void 0 && (a[c.uuid] = c.toJSON(e)), c.uuid;\n }\n if (this.isScene)\n this.background && (this.background.isColor ? r.background = this.background.toJSON() : this.background.isTexture && (r.background = this.background.toJSON(e).uuid)), this.environment && this.environment.isTexture && (r.environment = this.environment.toJSON(e).uuid);\n else if (this.isMesh || this.isLine || this.isPoints) {\n r.geometry = s(e.geometries, this.geometry);\n const a = this.geometry.parameters;\n if (a !== void 0 && a.shapes !== void 0) {\n const c = a.shapes;\n if (Array.isArray(c))\n for (let l = 0, d = c.length; l < d; l++) {\n const h = c[l];\n s(e.shapes, h);\n }\n else\n s(e.shapes, c);\n }\n }\n if (this.isSkinnedMesh && (r.bindMode = this.bindMode, r.bindMatrix = this.bindMatrix.toArray(), this.skeleton !== void 0 && (s(e.skeletons, this.skeleton), r.skeleton = this.skeleton.uuid)), this.material !== void 0)\n if (Array.isArray(this.material)) {\n const a = [];\n for (let c = 0, l = this.material.length; c < l; c++)\n a.push(s(e.materials, this.material[c]));\n r.material = a;\n } else\n r.material = s(e.materials, this.material);\n if (this.children.length > 0) {\n r.children = [];\n for (let a = 0; a < this.children.length; a++)\n r.children.push(this.children[a].toJSON(e).object);\n }\n if (this.animations.length > 0) {\n r.animations = [];\n for (let a = 0; a < this.animations.length; a++) {\n const c = this.animations[a];\n r.animations.push(s(e.animations, c));\n }\n }\n if (t) {\n const a = o(e.geometries), c = o(e.materials), l = o(e.textures), d = o(e.images), h = o(e.shapes), f = o(e.skeletons), g = o(e.animations);\n a.length > 0 && (i.geometries = a), c.length > 0 && (i.materials = c), l.length > 0 && (i.textures = l), d.length > 0 && (i.images = d), h.length > 0 && (i.shapes = h), f.length > 0 && (i.skeletons = f), g.length > 0 && (i.animations = g);\n }\n return i.object = r, i;\n function o(a) {\n const c = [];\n for (const l in a) {\n const d = a[l];\n delete d.metadata, c.push(d);\n }\n return c;\n }\n }\n clone(e) {\n return new this.constructor().copy(this, e);\n }\n copy(e, t = !0) {\n if (this.name = e.name, this.up.copy(e.up), this.position.copy(e.position), this.rotation.order = e.rotation.order, this.quaternion.copy(e.quaternion), this.scale.copy(e.scale), this.matrix.copy(e.matrix), this.matrixWorld.copy(e.matrixWorld), this.matrixAutoUpdate = e.matrixAutoUpdate, this.matrixWorldNeedsUpdate = e.matrixWorldNeedsUpdate, this.layers.mask = e.layers.mask, this.visible = e.visible, this.castShadow = e.castShadow, this.receiveShadow = e.receiveShadow, this.frustumCulled = e.frustumCulled, this.renderOrder = e.renderOrder, this.userData = JSON.parse(JSON.stringify(e.userData)), t === !0)\n for (let i = 0; i < e.children.length; i++) {\n const r = e.children[i];\n this.add(r.clone());\n }\n return this;\n }\n}\nst.DefaultUp = new J(0, 1, 0);\nst.DefaultMatrixAutoUpdate = !0;\nst.prototype.isObject3D = !0;\nconst hi = /* @__PURE__ */ new J(), Xi = /* @__PURE__ */ new J(), ph = /* @__PURE__ */ new J(), Yi = /* @__PURE__ */ new J(), io = /* @__PURE__ */ new J(), ro = /* @__PURE__ */ new J(), _g = /* @__PURE__ */ new J(), mh = /* @__PURE__ */ new J(), gh = /* @__PURE__ */ new J(), vh = /* @__PURE__ */ new J();\nclass Yt {\n constructor(e = new J(), t = new J(), i = new J()) {\n this.a = e, this.b = t, this.c = i;\n }\n static getNormal(e, t, i, r) {\n r.subVectors(i, t), hi.subVectors(e, t), r.cross(hi);\n const s = r.lengthSq();\n return s > 0 ? r.multiplyScalar(1 / Math.sqrt(s)) : r.set(0, 0, 0);\n }\n // static/instance method to calculate barycentric coordinates\n // based on: http://www.blackpawn.com/texts/pointinpoly/default.html\n static getBarycoord(e, t, i, r, s) {\n hi.subVectors(r, t), Xi.subVectors(i, t), ph.subVectors(e, t);\n const o = hi.dot(hi), a = hi.dot(Xi), c = hi.dot(ph), l = Xi.dot(Xi), d = Xi.dot(ph), h = o * l - a * a;\n if (h === 0)\n return s.set(-2, -1, -1);\n const f = 1 / h, g = (l * c - a * d) * f, p = (o * d - a * c) * f;\n return s.set(1 - g - p, p, g);\n }\n static containsPoint(e, t, i, r) {\n return this.getBarycoord(e, t, i, r, Yi), Yi.x >= 0 && Yi.y >= 0 && Yi.x + Yi.y <= 1;\n }\n static getUV(e, t, i, r, s, o, a, c) {\n return this.getBarycoord(e, t, i, r, Yi), c.set(0, 0), c.addScaledVector(s, Yi.x), c.addScaledVector(o, Yi.y), c.addScaledVector(a, Yi.z), c;\n }\n static isFrontFacing(e, t, i, r) {\n return hi.subVectors(i, t), Xi.subVectors(e, t), hi.cross(Xi).dot(r) < 0;\n }\n set(e, t, i) {\n return this.a.copy(e), this.b.copy(t), this.c.copy(i), this;\n }\n setFromPointsAndIndices(e, t, i, r) {\n return this.a.copy(e[t]), this.b.copy(e[i]), this.c.copy(e[r]), this;\n }\n clone() {\n return new this.constructor().copy(this);\n }\n copy(e) {\n return this.a.copy(e.a), this.b.copy(e.b), this.c.copy(e.c), this;\n }\n getArea() {\n return hi.subVectors(this.c, this.b), Xi.subVectors(this.a, this.b), hi.cross(Xi).length() * 0.5;\n }\n getMidpoint(e) {\n return e.addVectors(this.a, this.b).add(this.c).multiplyScalar(1 / 3);\n }\n getNormal(e) {\n return Yt.getNormal(this.a, this.b, this.c, e);\n }\n getPlane(e) {\n return e.setFromCoplanarPoints(this.a, this.b, this.c);\n }\n getBarycoord(e, t) {\n return Yt.getBarycoord(e, this.a, this.b, this.c, t);\n }\n getUV(e, t, i, r, s) {\n return Yt.getUV(e, this.a, this.b, this.c, t, i, r, s);\n }\n containsPoint(e) {\n return Yt.containsPoint(e, this.a, this.b, this.c);\n }\n isFrontFacing(e) {\n return Yt.isFrontFacing(this.a, this.b, this.c, e);\n }\n intersectsBox(e) {\n return e.intersectsTriangle(this);\n }\n closestPointToPoint(e, t) {\n const i = this.a, r = this.b, s = this.c;\n let o, a;\n io.subVectors(r, i), ro.subVectors(s, i), mh.subVectors(e, i);\n const c = io.dot(mh), l = ro.dot(mh);\n if (c <= 0 && l <= 0)\n return t.copy(i);\n gh.subVectors(e, r);\n const d = io.dot(gh), h = ro.dot(gh);\n if (d >= 0 && h <= d)\n return t.copy(r);\n const f = c * h - d * l;\n if (f <= 0 && c >= 0 && d <= 0)\n return o = c / (c - d), t.copy(i).addScaledVector(io, o);\n vh.subVectors(e, s);\n const g = io.dot(vh), p = ro.dot(vh);\n if (p >= 0 && g <= p)\n return t.copy(s);\n const u = g * l - c * p;\n if (u <= 0 && l >= 0 && p <= 0)\n return a = l / (l - p), t.copy(i).addScaledVector(ro, a);\n const y = d * p - g * h;\n if (y <= 0 && h - d >= 0 && g - p >= 0)\n return _g.subVectors(s, r), a = (h - d) / (h - d + (g - p)), t.copy(r).addScaledVector(_g, a);\n const v = 1 / (y + u + f);\n return o = u * v, a = f * v, t.copy(i).addScaledVector(io, o).addScaledVector(ro, a);\n }\n equals(e) {\n return e.a.equals(this.a) && e.b.equals(this.b) && e.c.equals(this.c);\n }\n}\nlet _I = 0;\nclass en extends ts {\n constructor() {\n super(), Object.defineProperty(this, \"id\", { value: _I++ }), this.uuid = Xn(), this.name = \"\", this.type = \"Material\", this.fog = !0, this.blending = So, this.side = Zr, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.blendSrc = Gf, this.blendDst = Hf, this.blendEquation = ys, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.depthFunc = qc, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = hx, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = kc, this.stencilZFail = kc, this.stencilZPass = kc, this.stencilWrite = !1, this.clippingPlanes = null, this.clipIntersection = !1, this.clipShadows = !1, this.shadowSide = null, this.colorWrite = !0, this.precision = null, this.polygonOffset = !1, this.polygonOffsetFactor = 0, this.polygonOffsetUnits = 0, this.dithering = !1, this.alphaTest = 0, this.alphaToCoverage = !1, this.premultipliedAlpha = !1, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0;\n }\n onBuild() {\n }\n onBeforeCompile() {\n }\n customProgramCacheKey() {\n return this.onBeforeCompile.toString();\n }\n setValues(e) {\n if (e !== void 0)\n for (const t in e) {\n const i = e[t];\n if (i === void 0) {\n console.warn(\"THREE.Material: '\" + t + \"' parameter is undefined.\");\n continue;\n }\n if (t === \"shading\") {\n console.warn(\"THREE.\" + this.type + \": .shading has been removed. Use the boolean .flatShading instead.\"), this.flatShading = i === kf;\n continue;\n }\n const r = this[t];\n if (r === void 0) {\n console.warn(\"THREE.\" + this.type + \": '\" + t + \"' is not a property of this material.\");\n continue;\n }\n r && r.isColor ? r.set(i) : r && r.isVector3 && i && i.isVector3 ? r.copy(i) : this[t] = i;\n }\n }\n toJSON(e) {\n const t = e === void 0 || typeof e == \"string\";\n t && (e = {\n textures: {},\n images: {}\n });\n const i = {\n metadata: {\n version: 4.5,\n type: \"Material\",\n generator: \"Material.toJSON\"\n }\n };\n i.uuid = this.uuid, i.type = this.type, this.name !== \"\" && (i.name = this.name), this.color && this.color.isColor && (i.color = this.color.getHex()), this.roughness !== void 0 && (i.roughness = this.roughness), this.metalness !== void 0 && (i.metalness = this.metalness), this.sheen && this.sheen.isColor && (i.sheen = this.sheen.getHex()), this.emissive && this.emissive.isColor && (i.emissive = this.emissive.getHex()), this.emissiveIntensity && this.emissiveIntensity !== 1 && (i.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (i.specular = this.specular.getHex()), this.shininess !== void 0 && (i.shininess = this.shininess), this.clearcoat !== void 0 && (i.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (i.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (i.clearcoatMap = this.clearcoatMap.toJSON(e).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (i.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(e).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (i.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(e).uuid, i.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.map && this.map.isTexture && (i.map = this.map.toJSON(e).uuid), this.matcap && this.matcap.isTexture && (i.matcap = this.matcap.toJSON(e).uuid), this.alphaMap && this.alphaMap.isTexture && (i.alphaMap = this.alphaMap.toJSON(e).uuid), this.lightMap && this.lightMap.isTexture && (i.lightMap = this.lightMap.toJSON(e).uuid, i.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (i.aoMap = this.aoMap.toJSON(e).uuid, i.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (i.bumpMap = this.bumpMap.toJSON(e).uuid, i.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (i.normalMap = this.normalMap.toJSON(e).uuid, i.normalMapType = this.normalMapType, i.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (i.displacementMap = this.displacementMap.toJSON(e).uuid, i.displacementScale = this.displacementScale, i.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (i.roughnessMap = this.roughnessMap.toJSON(e).uuid), this.metalnessMap && this.metalnessMap.isTexture && (i.metalnessMap = this.metalnessMap.toJSON(e).uuid), this.emissiveMap && this.emissiveMap.isTexture && (i.emissiveMap = this.emissiveMap.toJSON(e).uuid), this.specularMap && this.specularMap.isTexture && (i.specularMap = this.specularMap.toJSON(e).uuid), this.envMap && this.envMap.isTexture && (i.envMap = this.envMap.toJSON(e).uuid, this.combine !== void 0 && (i.combine = this.combine)), this.envMapIntensity !== void 0 && (i.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (i.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (i.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (i.gradientMap = this.gradientMap.toJSON(e).uuid), this.transmission !== void 0 && (i.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (i.transmissionMap = this.transmissionMap.toJSON(e).uuid), this.thickness !== void 0 && (i.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (i.thicknessMap = this.thicknessMap.toJSON(e).uuid), this.attenuationDistance !== void 0 && (i.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (i.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (i.size = this.size), this.shadowSide !== null && (i.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (i.sizeAttenuation = this.sizeAttenuation), this.blending !== So && (i.blending = this.blending), this.side !== Zr && (i.side = this.side), this.vertexColors && (i.vertexColors = !0), this.opacity < 1 && (i.opacity = this.opacity), this.transparent === !0 && (i.transparent = this.transparent), i.depthFunc = this.depthFunc, i.depthTest = this.depthTest, i.depthWrite = this.depthWrite, i.colorWrite = this.colorWrite, i.stencilWrite = this.stencilWrite, i.stencilWriteMask = this.stencilWriteMask, i.stencilFunc = this.stencilFunc, i.stencilRef = this.stencilRef, i.stencilFuncMask = this.stencilFuncMask, i.stencilFail = this.stencilFail, i.stencilZFail = this.stencilZFail, i.stencilZPass = this.stencilZPass, this.rotation && this.rotation !== 0 && (i.rotation = this.rotation), this.polygonOffset === !0 && (i.polygonOffset = !0), this.polygonOffsetFactor !== 0 && (i.polygonOffsetFactor = this.polygonOffsetFactor), this.polygonOffsetUnits !== 0 && (i.polygonOffsetUnits = this.polygonOffsetUnits), this.linewidth && this.linewidth !== 1 && (i.linewidth = this.linewidth), this.dashSize !== void 0 && (i.dashSize = this.dashSize), this.gapSize !== void 0 && (i.gapSize = this.gapSize), this.scale !== void 0 && (i.scale = this.scale), this.dithering === !0 && (i.dithering = !0), this.alphaTest > 0 && (i.alphaTest = this.alphaTest), this.alphaToCoverage === !0 && (i.alphaToCoverage = this.alphaToCoverage), this.premultipliedAlpha === !0 && (i.premultipliedAlpha = this.premultipliedAlpha), this.wireframe === !0 && (i.wireframe = this.wireframe), this.wireframeLinewidth > 1 && (i.wireframeLinewidth = this.wireframeLinewidth), this.wireframeLinecap !== \"round\" && (i.wireframeLinecap = this.wireframeLinecap), this.wireframeLinejoin !== \"round\" && (i.wireframeLinejoin = this.wireframeLinejoin), this.morphTargets === !0 && (i.morphTargets = !0), this.morphNormals === !0 && (i.morphNormals = !0), this.flatShading === !0 && (i.flatShading = this.flatShading), this.visible === !1 && (i.visible = !1), this.toneMapped === !1 && (i.toneMapped = !1), JSON.stringify(this.userData) !== \"{}\" && (i.userData = this.userData);\n function r(s) {\n const o = [];\n for (const a in s) {\n const c = s[a];\n delete c.metadata, o.push(c);\n }\n return o;\n }\n if (t) {\n const s = r(e.textures), o = r(e.images);\n s.length > 0 && (i.textures = s), o.length > 0 && (i.images = o);\n }\n return i;\n }\n clone() {\n return new this.constructor().copy(this);\n }\n copy(e) {\n this.name = e.name, this.fog = e.fog, this.blending = e.blending, this.side = e.side, this.vertexColors = e.vertexColors, this.opacity = e.opacity, this.transparent = e.transparent, this.blendSrc = e.blendSrc, this.blendDst = e.blendDst, this.blendEquation = e.blendEquation, this.blendSrcAlpha = e.blendSrcAlpha, this.blendDstAlpha = e.blendDstAlpha, this.blendEquationAlpha = e.blendEquationAlpha, this.depthFunc = e.depthFunc, this.depthTest = e.depthTest, this.depthWrite = e.depthWrite, this.stencilWriteMask = e.stencilWriteMask, this.stencilFunc = e.stencilFunc, this.stencilRef = e.stencilRef, this.stencilFuncMask = e.stencilFuncMask, this.stencilFail = e.stencilFail, this.stencilZFail = e.stencilZFail, this.stencilZPass = e.stencilZPass, this.stencilWrite = e.stencilWrite;\n const t = e.clippingPlanes;\n let i = null;\n if (t !== null) {\n const r = t.length;\n i = new Array(r);\n for (let s = 0; s !== r; ++s)\n i[s] = t[s].clone();\n }\n return this.clippingPlanes = i, this.clipIntersection = e.clipIntersection, this.clipShadows = e.clipShadows, this.shadowSide = e.shadowSide, this.colorWrite = e.colorWrite, this.precision = e.precision, this.polygonOffset = e.polygonOffset, this.polygonOffsetFactor = e.polygonOffsetFactor, this.polygonOffsetUnits = e.polygonOffsetUnits, this.dithering = e.dithering, this.alphaTest = e.alphaTest, this.alphaToCoverage = e.alphaToCoverage, this.premultipliedAlpha = e.premultipliedAlpha, this.visible = e.visible, this.toneMapped = e.toneMapped, this.userData = JSON.parse(JSON.stringify(e.userData)), this;\n }\n dispose() {\n this.dispatchEvent({ type: \"dispose\" });\n }\n set needsUpdate(e) {\n e === !0 && this.version++;\n }\n}\nen.prototype.isMaterial = !0;\nconst mx = {\n aliceblue: 15792383,\n antiquewhite: 16444375,\n aqua: 65535,\n aquamarine: 8388564,\n azure: 15794175,\n beige: 16119260,\n bisque: 16770244,\n black: 0,\n blanchedalmond: 16772045,\n blue: 255,\n blueviolet: 9055202,\n brown: 10824234,\n burlywood: 14596231,\n cadetblue: 6266528,\n chartreuse: 8388352,\n chocolate: 13789470,\n coral: 16744272,\n cornflowerblue: 6591981,\n cornsilk: 16775388,\n crimson: 14423100,\n cyan: 65535,\n darkblue: 139,\n darkcyan: 35723,\n darkgoldenrod: 12092939,\n darkgray: 11119017,\n darkgreen: 25600,\n darkgrey: 11119017,\n darkkhaki: 12433259,\n darkmagenta: 9109643,\n darkolivegreen: 5597999,\n darkorange: 16747520,\n darkorchid: 10040012,\n darkred: 9109504,\n darksalmon: 15308410,\n darkseagreen: 9419919,\n darkslateblue: 4734347,\n darkslategray: 3100495,\n darkslategrey: 3100495,\n darkturquoise: 52945,\n darkviolet: 9699539,\n deeppink: 16716947,\n deepskyblue: 49151,\n dimgray: 6908265,\n dimgrey: 6908265,\n dodgerblue: 2003199,\n firebrick: 11674146,\n floralwhite: 16775920,\n forestgreen: 2263842,\n fuchsia: 16711935,\n gainsboro: 14474460,\n ghostwhite: 16316671,\n gold: 16766720,\n goldenrod: 14329120,\n gray: 8421504,\n green: 32768,\n greenyellow: 11403055,\n grey: 8421504,\n honeydew: 15794160,\n hotpink: 16738740,\n indianred: 13458524,\n indigo: 4915330,\n ivory: 16777200,\n khaki: 15787660,\n lavender: 15132410,\n lavenderblush: 16773365,\n lawngreen: 8190976,\n lemonchiffon: 16775885,\n lightblue: 11393254,\n lightcoral: 15761536,\n lightcyan: 14745599,\n lightgoldenrodyellow: 16448210,\n lightgray: 13882323,\n lightgreen: 9498256,\n lightgrey: 13882323,\n lightpink: 16758465,\n lightsalmon: 16752762,\n lightseagreen: 2142890,\n lightskyblue: 8900346,\n lightslategray: 7833753,\n lightslategrey: 7833753,\n lightsteelblue: 11584734,\n lightyellow: 16777184,\n lime: 65280,\n limegreen: 3329330,\n linen: 16445670,\n magenta: 16711935,\n maroon: 8388608,\n mediumaquamarine: 6737322,\n mediumblue: 205,\n mediumorchid: 12211667,\n mediumpurple: 9662683,\n mediumseagreen: 3978097,\n mediumslateblue: 8087790,\n mediumspringgreen: 64154,\n mediumturquoise: 4772300,\n mediumvioletred: 13047173,\n midnightblue: 1644912,\n mintcream: 16121850,\n mistyrose: 16770273,\n moccasin: 16770229,\n navajowhite: 16768685,\n navy: 128,\n oldlace: 16643558,\n olive: 8421376,\n olivedrab: 7048739,\n orange: 16753920,\n orangered: 16729344,\n orchid: 14315734,\n palegoldenrod: 15657130,\n palegreen: 10025880,\n paleturquoise: 11529966,\n palevioletred: 14381203,\n papayawhip: 16773077,\n peachpuff: 16767673,\n peru: 13468991,\n pink: 16761035,\n plum: 14524637,\n powderblue: 11591910,\n purple: 8388736,\n rebeccapurple: 6697881,\n red: 16711680,\n rosybrown: 12357519,\n royalblue: 4286945,\n saddlebrown: 9127187,\n salmon: 16416882,\n sandybrown: 16032864,\n seagreen: 3050327,\n seashell: 16774638,\n sienna: 10506797,\n silver: 12632256,\n skyblue: 8900331,\n slateblue: 6970061,\n slategray: 7372944,\n slategrey: 7372944,\n snow: 16775930,\n springgreen: 65407,\n steelblue: 4620980,\n tan: 13808780,\n teal: 32896,\n thistle: 14204888,\n tomato: 16737095,\n turquoise: 4251856,\n violet: 15631086,\n wheat: 16113331,\n white: 16777215,\n whitesmoke: 16119285,\n yellow: 16776960,\n yellowgreen: 10145074\n}, di = { h: 0, s: 0, l: 0 }, Jl = { h: 0, s: 0, l: 0 };\nfunction yh(n, e, t) {\n return t < 0 && (t += 1), t > 1 && (t -= 1), t < 1 / 6 ? n + (e - n) * 6 * t : t < 1 / 2 ? e : t < 2 / 3 ? n + (e - n) * 6 * (2 / 3 - t) : n;\n}\nfunction bh(n) {\n return n < 0.04045 ? n * 0.0773993808 : Math.pow(n * 0.9478672986 + 0.0521327014, 2.4);\n}\nfunction xh(n) {\n return n < 31308e-7 ? n * 12.92 : 1.055 * Math.pow(n, 0.41666) - 0.055;\n}\nclass Be {\n constructor(e, t, i) {\n return t === void 0 && i === void 0 ? this.set(e) : this.setRGB(e, t, i);\n }\n set(e) {\n return e && e.isColor ? this.copy(e) : typeof e == \"number\" ? this.setHex(e) : typeof e == \"string\" && this.setStyle(e), this;\n }\n setScalar(e) {\n return this.r = e, this.g = e, this.b = e, this;\n }\n setHex(e) {\n return e = Math.floor(e), this.r = (e >> 16 & 255) / 255, this.g = (e >> 8 & 255) / 255, this.b = (e & 255) / 255, this;\n }\n setRGB(e, t, i) {\n return this.r = e, this.g = t, this.b = i, this;\n }\n setHSL(e, t, i) {\n if (e = Yf(e, 1), t = vn(t, 0, 1), i = vn(i, 0, 1), t === 0)\n this.r = this.g = this.b = i;\n else {\n const r = i <= 0.5 ? i * (1 + t) : i + t - i * t, s = 2 * i - r;\n this.r = yh(s, r, e + 1 / 3), this.g = yh(s, r, e), this.b = yh(s, r, e - 1 / 3);\n }\n return this;\n }\n setStyle(e) {\n function t(r) {\n r !== void 0 && parseFloat(r) < 1 && console.warn(\"THREE.Color: Alpha component of \" + e + \" will be ignored.\");\n }\n let i;\n if (i = /^((?:rgb|hsl)a?)\\(([^\\)]*)\\)/.exec(e)) {\n let r;\n const s = i[1], o = i[2];\n switch (s) {\n case \"rgb\":\n case \"rgba\":\n if (r = /^\\s*(\\d+)\\s*,\\s*(\\d+)\\s*,\\s*(\\d+)\\s*(?:,\\s*(\\d*\\.?\\d+)\\s*)?$/.exec(o))\n return this.r = Math.min(255, parseInt(r[1], 10)) / 255, this.g = Math.min(255, parseInt(r[2], 10)) / 255, this.b = Math.min(255, parseInt(r[3], 10)) / 255, t(r[4]), this;\n if (r = /^\\s*(\\d+)\\%\\s*,\\s*(\\d+)\\%\\s*,\\s*(\\d+)\\%\\s*(?:,\\s*(\\d*\\.?\\d+)\\s*)?$/.exec(o))\n return this.r = Math.min(100, parseInt(r[1], 10)) / 100, this.g = Math.min(100, parseInt(r[2], 10)) / 100, this.b = Math.min(100, parseInt(r[3], 10)) / 100, t(r[4]), this;\n break;\n case \"hsl\":\n case \"hsla\":\n if (r = /^\\s*(\\d*\\.?\\d+)\\s*,\\s*(\\d+)\\%\\s*,\\s*(\\d+)\\%\\s*(?:,\\s*(\\d*\\.?\\d+)\\s*)?$/.exec(o)) {\n const a = parseFloat(r[1]) / 360, c = parseInt(r[2], 10) / 100, l = parseInt(r[3], 10) / 100;\n return t(r[4]), this.setHSL(a, c, l);\n }\n break;\n }\n } else if (i = /^\\#([A-Fa-f\\d]+)$/.exec(e)) {\n const r = i[1], s = r.length;\n if (s === 3)\n return this.r = parseInt(r.charAt(0) + r.charAt(0), 16) / 255, this.g = parseInt(r.charAt(1) + r.charAt(1), 16) / 255, this.b = parseInt(r.charAt(2) + r.charAt(2), 16) / 255, this;\n if (s === 6)\n return this.r = parseInt(r.charAt(0) + r.charAt(1), 16) / 255, this.g = parseInt(r.charAt(2) + r.charAt(3), 16) / 255, this.b = parseInt(r.charAt(4) + r.charAt(5), 16) / 255, this;\n }\n return e && e.length > 0 ? this.setColorName(e) : this;\n }\n setColorName(e) {\n const t = mx[e.toLowerCase()];\n return t !== void 0 ? this.setHex(t) : console.warn(\"THREE.Color: Unknown color \" + e), this;\n }\n clone() {\n return new this.constructor(this.r, this.g, this.b);\n }\n copy(e) {\n return this.r = e.r, this.g = e.g, this.b = e.b, this;\n }\n copyGammaToLinear(e, t = 2) {\n return this.r = Math.pow(e.r, t), this.g = Math.pow(e.g, t), this.b = Math.pow(e.b, t), this;\n }\n copyLinearToGamma(e, t = 2) {\n const i = t > 0 ? 1 / t : 1;\n return this.r = Math.pow(e.r, i), this.g = Math.pow(e.g, i), this.b = Math.pow(e.b, i), this;\n }\n convertGammaToLinear(e) {\n return this.copyGammaToLinear(this, e), this;\n }\n convertLinearToGamma(e) {\n return this.copyLinearToGamma(this, e), this;\n }\n copySRGBToLinear(e) {\n return this.r = bh(e.r), this.g = bh(e.g), this.b = bh(e.b), this;\n }\n copyLinearToSRGB(e) {\n return this.r = xh(e.r), this.g = xh(e.g), this.b = xh(e.b), this;\n }\n convertSRGBToLinear() {\n return this.copySRGBToLinear(this), this;\n }\n convertLinearToSRGB() {\n return this.copyLinearToSRGB(this), this;\n }\n getHex() {\n return this.r * 255 << 16 ^ this.g * 255 << 8 ^ this.b * 255 << 0;\n }\n getHexString() {\n return (\"000000\" + this.getHex().toString(16)).slice(-6);\n }\n getHSL(e) {\n const t = this.r, i = this.g, r = this.b, s = Math.max(t, i, r), o = Math.min(t, i, r);\n let a, c;\n const l = (o + s) / 2;\n if (o === s)\n a = 0, c = 0;\n else {\n const d = s - o;\n switch (c = l <= 0.5 ? d / (s + o) : d / (2 - s - o), s) {\n case t:\n a = (i - r) / d + (i < r ? 6 : 0);\n break;\n case i:\n a = (r - t) / d + 2;\n break;\n case r:\n a = (t - i) / d + 4;\n break;\n }\n a /= 6;\n }\n return e.h = a, e.s = c, e.l = l, e;\n }\n getStyle() {\n return \"rgb(\" + (this.r * 255 | 0) + \",\" + (this.g * 255 | 0) + \",\" + (this.b * 255 | 0) + \")\";\n }\n offsetHSL(e, t, i) {\n return this.getHSL(di), di.h += e, di.s += t, di.l += i, this.setHSL(di.h, di.s, di.l), this;\n }\n add(e) {\n return this.r += e.r, this.g += e.g, this.b += e.b, this;\n }\n addColors(e, t) {\n return this.r = e.r + t.r, this.g = e.g + t.g, this.b = e.b + t.b, this;\n }\n addScalar(e) {\n return this.r += e, this.g += e, this.b += e, this;\n }\n sub(e) {\n return this.r = Math.max(0, this.r - e.r), this.g = Math.max(0, this.g - e.g), this.b = Math.max(0, this.b - e.b), this;\n }\n multiply(e) {\n return this.r *= e.r, this.g *= e.g, this.b *= e.b, this;\n }\n multiplyScalar(e) {\n return this.r *= e, this.g *= e, this.b *= e, this;\n }\n lerp(e, t) {\n return this.r += (e.r - this.r) * t, this.g += (e.g - this.g) * t, this.b += (e.b - this.b) * t, this;\n }\n lerpColors(e, t, i) {\n return this.r = e.r + (t.r - e.r) * i, this.g = e.g + (t.g - e.g) * i, this.b = e.b + (t.b - e.b) * i, this;\n }\n lerpHSL(e, t) {\n this.getHSL(di), e.getHSL(Jl);\n const i = ka(di.h, Jl.h, t), r = ka(di.s, Jl.s, t), s = ka(di.l, Jl.l, t);\n return this.setHSL(i, r, s), this;\n }\n equals(e) {\n return e.r === this.r && e.g === this.g && e.b === this.b;\n }\n fromArray(e, t = 0) {\n return this.r = e[t], this.g = e[t + 1], this.b = e[t + 2], this;\n }\n toArray(e = [], t = 0) {\n return e[t] = this.r, e[t + 1] = this.g, e[t + 2] = this.b, e;\n }\n fromBufferAttribute(e, t) {\n return this.r = e.getX(t), this.g = e.getY(t), this.b = e.getZ(t), e.normalized === !0 && (this.r /= 255, this.g /= 255, this.b /= 255), this;\n }\n toJSON() {\n return this.getHex();\n }\n}\nBe.NAMES = mx;\nBe.prototype.isColor = !0;\nBe.prototype.r = 1;\nBe.prototype.g = 1;\nBe.prototype.b = 1;\nclass Fn extends en {\n constructor(e) {\n super(), this.type = \"MeshBasicMaterial\", this.color = new Be(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.combine = vl, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = \"round\", this.wireframeLinejoin = \"round\", this.morphTargets = !1, this.setValues(e);\n }\n copy(e) {\n return super.copy(e), this.color.copy(e.color), this.map = e.map, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.specularMap = e.specularMap, this.alphaMap = e.alphaMap, this.envMap = e.envMap, this.combine = e.combine, this.reflectivity = e.reflectivity, this.refractionRatio = e.refractionRatio, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.morphTargets = e.morphTargets, this;\n }\n}\nFn.prototype.isMeshBasicMaterial = !0;\nconst Tt = /* @__PURE__ */ new J(), Kl = /* @__PURE__ */ new Pe();\nclass nt {\n constructor(e, t, i) {\n if (Array.isArray(e))\n throw new TypeError(\"THREE.BufferAttribute: array should be a Typed Array.\");\n this.name = \"\", this.array = e, this.itemSize = t, this.count = e !== void 0 ? e.length / t : 0, this.normalized = i === !0, this.usage = zo, this.updateRange = { offset: 0, count: -1 }, this.version = 0;\n }\n onUploadCallback() {\n }\n set needsUpdate(e) {\n e === !0 && this.version++;\n }\n setUsage(e) {\n return this.usage = e, this;\n }\n copy(e) {\n return this.name = e.name, this.array = new e.array.constructor(e.array), this.itemSize = e.itemSize, this.count = e.count, this.normalized = e.normalized, this.usage = e.usage, this;\n }\n copyAt(e, t, i) {\n e *= this.itemSize, i *= t.itemSize;\n for (let r = 0, s = this.itemSize; r < s; r++)\n this.array[e + r] = t.array[i + r];\n return this;\n }\n copyArray(e) {\n return this.array.set(e), this;\n }\n copyColorsArray(e) {\n const t = this.array;\n let i = 0;\n for (let r = 0, s = e.length; r < s; r++) {\n let o = e[r];\n o === void 0 && (console.warn(\"THREE.BufferAttribute.copyColorsArray(): color is undefined\", r), o = new Be()), t[i++] = o.r, t[i++] = o.g, t[i++] = o.b;\n }\n return this;\n }\n copyVector2sArray(e) {\n const t = this.array;\n let i = 0;\n for (let r = 0, s = e.length; r < s; r++) {\n let o = e[r];\n o === void 0 && (console.warn(\"THREE.BufferAttribute.copyVector2sArray(): vector is undefined\", r), o = new Pe()), t[i++] = o.x, t[i++] = o.y;\n }\n return this;\n }\n copyVector3sArray(e) {\n const t = this.array;\n let i = 0;\n for (let r = 0, s = e.length; r < s; r++) {\n let o = e[r];\n o === void 0 && (console.warn(\"THREE.BufferAttribute.copyVector3sArray(): vector is undefined\", r), o = new J()), t[i++] = o.x, t[i++] = o.y, t[i++] = o.z;\n }\n return this;\n }\n copyVector4sArray(e) {\n const t = this.array;\n let i = 0;\n for (let r = 0, s = e.length; r < s; r++) {\n let o = e[r];\n o === void 0 && (console.warn(\"THREE.BufferAttribute.copyVector4sArray(): vector is undefined\", r), o = new _t()), t[i++] = o.x, t[i++] = o.y, t[i++] = o.z, t[i++] = o.w;\n }\n return this;\n }\n applyMatrix3(e) {\n if (this.itemSize === 2)\n for (let t = 0, i = this.count; t < i; t++)\n Kl.fromBufferAttribute(this, t), Kl.applyMatrix3(e), this.setXY(t, Kl.x, Kl.y);\n else if (this.itemSize === 3)\n for (let t = 0, i = this.count; t < i; t++)\n Tt.fromBufferAttribute(this, t), Tt.applyMatrix3(e), this.setXYZ(t, Tt.x, Tt.y, Tt.z);\n return this;\n }\n applyMatrix4(e) {\n for (let t = 0, i = this.count; t < i; t++)\n Tt.x = this.getX(t), Tt.y = this.getY(t), Tt.z = this.getZ(t), Tt.applyMatrix4(e), this.setXYZ(t, Tt.x, Tt.y, Tt.z);\n return this;\n }\n applyNormalMatrix(e) {\n for (let t = 0, i = this.count; t < i; t++)\n Tt.x = this.getX(t), Tt.y = this.getY(t), Tt.z = this.getZ(t), Tt.applyNormalMatrix(e), this.setXYZ(t, Tt.x, Tt.y, Tt.z);\n return this;\n }\n transformDirection(e) {\n for (let t = 0, i = this.count; t < i; t++)\n Tt.x = this.getX(t), Tt.y = this.getY(t), Tt.z = this.getZ(t), Tt.transformDirection(e), this.setXYZ(t, Tt.x, Tt.y, Tt.z);\n return this;\n }\n set(e, t = 0) {\n return this.array.set(e, t), this;\n }\n getX(e) {\n return this.array[e * this.itemSize];\n }\n setX(e, t) {\n return this.array[e * this.itemSize] = t, this;\n }\n getY(e) {\n return this.array[e * this.itemSize + 1];\n }\n setY(e, t) {\n return this.array[e * this.itemSize + 1] = t, this;\n }\n getZ(e) {\n return this.array[e * this.itemSize + 2];\n }\n setZ(e, t) {\n return this.array[e * this.itemSize + 2] = t, this;\n }\n getW(e) {\n return this.array[e * this.itemSize + 3];\n }\n setW(e, t) {\n return this.array[e * this.itemSize + 3] = t, this;\n }\n setXY(e, t, i) {\n return e *= this.itemSize, this.array[e + 0] = t, this.array[e + 1] = i, this;\n }\n setXYZ(e, t, i, r) {\n return e *= this.itemSize, this.array[e + 0] = t, this.array[e + 1] = i, this.array[e + 2] = r, this;\n }\n setXYZW(e, t, i, r, s) {\n return e *= this.itemSize, this.array[e + 0] = t, this.array[e + 1] = i, this.array[e + 2] = r, this.array[e + 3] = s, this;\n }\n onUpload(e) {\n return this.onUploadCallback = e, this;\n }\n clone() {\n return new this.constructor(this.array, this.itemSize).copy(this);\n }\n toJSON() {\n const e = {\n itemSize: this.itemSize,\n type: this.array.constructor.name,\n array: Array.prototype.slice.call(this.array),\n normalized: this.normalized\n };\n return this.name !== \"\" && (e.name = this.name), this.usage !== zo && (e.usage = this.usage), (this.updateRange.offset !== 0 || this.updateRange.count !== -1) && (e.updateRange = this.updateRange), e;\n }\n}\nnt.prototype.isBufferAttribute = !0;\nclass gx extends nt {\n constructor(e, t, i) {\n super(new Int8Array(e), t, i);\n }\n}\nclass vx extends nt {\n constructor(e, t, i) {\n super(new Uint8Array(e), t, i);\n }\n}\nclass yx extends nt {\n constructor(e, t, i) {\n super(new Uint8ClampedArray(e), t, i);\n }\n}\nclass bx extends nt {\n constructor(e, t, i) {\n super(new Int16Array(e), t, i);\n }\n}\nclass Lu extends nt {\n constructor(e, t, i) {\n super(new Uint16Array(e), t, i);\n }\n}\nclass xx extends nt {\n constructor(e, t, i) {\n super(new Int32Array(e), t, i);\n }\n}\nclass Ru extends nt {\n constructor(e, t, i) {\n super(new Uint32Array(e), t, i);\n }\n}\nclass wx extends nt {\n constructor(e, t, i) {\n super(new Uint16Array(e), t, i);\n }\n}\nwx.prototype.isFloat16BufferAttribute = !0;\nclass We extends nt {\n constructor(e, t, i) {\n super(new Float32Array(e), t, i);\n }\n}\nclass Mx extends nt {\n constructor(e, t, i) {\n super(new Float64Array(e), t, i);\n }\n}\nfunction _x(n) {\n if (n.length === 0) return -1 / 0;\n let e = n[0];\n for (let t = 1, i = n.length; t < i; ++t)\n n[t] > e && (e = n[t]);\n return e;\n}\nconst SI = {\n Int8Array,\n Uint8Array,\n Uint8ClampedArray,\n Int16Array,\n Uint16Array,\n Int32Array,\n Uint32Array,\n Float32Array,\n Float64Array\n};\nfunction Mo(n, e) {\n return new SI[n](e);\n}\nlet TI = 0;\nconst Qn = /* @__PURE__ */ new Ze(), wh = /* @__PURE__ */ new st(), so = /* @__PURE__ */ new J(), Hn = /* @__PURE__ */ new Vn(), Ma = /* @__PURE__ */ new Vn(), ln = /* @__PURE__ */ new J();\nclass Ke extends ts {\n constructor() {\n super(), Object.defineProperty(this, \"id\", { value: TI++ }), this.uuid = Xn(), this.name = \"\", this.type = \"BufferGeometry\", this.index = null, this.attributes = {}, this.morphAttributes = {}, this.morphTargetsRelative = !1, this.groups = [], this.boundingBox = null, this.boundingSphere = null, this.drawRange = { start: 0, count: 1 / 0 }, this.userData = {};\n }\n getIndex() {\n return this.index;\n }\n setIndex(e) {\n return Array.isArray(e) ? this.index = new (_x(e) > 65535 ? Ru : Lu)(e, 1) : this.index = e, this;\n }\n getAttribute(e) {\n return this.attributes[e];\n }\n setAttribute(e, t) {\n return this.attributes[e] = t, this;\n }\n deleteAttribute(e) {\n return delete this.attributes[e], this;\n }\n hasAttribute(e) {\n return this.attributes[e] !== void 0;\n }\n addGroup(e, t, i = 0) {\n this.groups.push({\n start: e,\n count: t,\n materialIndex: i\n });\n }\n clearGroups() {\n this.groups = [];\n }\n setDrawRange(e, t) {\n this.drawRange.start = e, this.drawRange.count = t;\n }\n applyMatrix4(e) {\n const t = this.attributes.position;\n t !== void 0 && (t.applyMatrix4(e), t.needsUpdate = !0);\n const i = this.attributes.normal;\n if (i !== void 0) {\n const s = new rn().getNormalMatrix(e);\n i.applyNormalMatrix(s), i.needsUpdate = !0;\n }\n const r = this.attributes.tangent;\n return r !== void 0 && (r.transformDirection(e), r.needsUpdate = !0), this.boundingBox !== null && this.computeBoundingBox(), this.boundingSphere !== null && this.computeBoundingSphere(), this;\n }\n applyQuaternion(e) {\n return Qn.makeRotationFromQuaternion(e), this.applyMatrix4(Qn), this;\n }\n rotateX(e) {\n return Qn.makeRotationX(e), this.applyMatrix4(Qn), this;\n }\n rotateY(e) {\n return Qn.makeRotationY(e), this.applyMatrix4(Qn), this;\n }\n rotateZ(e) {\n return Qn.makeRotationZ(e), this.applyMatrix4(Qn), this;\n }\n translate(e, t, i) {\n return Qn.makeTranslation(e, t, i), this.applyMatrix4(Qn), this;\n }\n scale(e, t, i) {\n return Qn.makeScale(e, t, i), this.applyMatrix4(Qn), this;\n }\n lookAt(e) {\n return wh.lookAt(e), wh.updateMatrix(), this.applyMatrix4(wh.matrix), this;\n }\n center() {\n return this.computeBoundingBox(), this.boundingBox.getCenter(so).negate(), this.translate(so.x, so.y, so.z), this;\n }\n setFromPoints(e) {\n const t = [];\n for (let i = 0, r = e.length; i < r; i++) {\n const s = e[i];\n t.push(s.x, s.y, s.z || 0);\n }\n return this.setAttribute(\"position\", new We(t, 3)), this;\n }\n computeBoundingBox() {\n this.boundingBox === null && (this.boundingBox = new Vn());\n const e = this.attributes.position, t = this.morphAttributes.position;\n if (e && e.isGLBufferAttribute) {\n console.error('THREE.BufferGeometry.computeBoundingBox(): GLBufferAttribute requires a manual bounding box. Alternatively set \"mesh.frustumCulled\" to \"false\".', this), this.boundingBox.set(\n new J(-1 / 0, -1 / 0, -1 / 0),\n new J(1 / 0, 1 / 0, 1 / 0)\n );\n return;\n }\n if (e !== void 0) {\n if (this.boundingBox.setFromBufferAttribute(e), t)\n for (let i = 0, r = t.length; i < r; i++) {\n const s = t[i];\n Hn.setFromBufferAttribute(s), this.morphTargetsRelative ? (ln.addVectors(this.boundingBox.min, Hn.min), this.boundingBox.expandByPoint(ln), ln.addVectors(this.boundingBox.max, Hn.max), this.boundingBox.expandByPoint(ln)) : (this.boundingBox.expandByPoint(Hn.min), this.boundingBox.expandByPoint(Hn.max));\n }\n } else\n this.boundingBox.makeEmpty();\n (isNaN(this.boundingBox.min.x) || isNaN(this.boundingBox.min.y) || isNaN(this.boundingBox.min.z)) && console.error('THREE.BufferGeometry.computeBoundingBox(): Computed min/max have NaN values. The \"position\" attribute is likely to have NaN values.', this);\n }\n computeBoundingSphere() {\n this.boundingSphere === null && (this.boundingSphere = new br());\n const e = this.attributes.position, t = this.morphAttributes.position;\n if (e && e.isGLBufferAttribute) {\n console.error('THREE.BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere. Alternatively set \"mesh.frustumCulled\" to \"false\".', this), this.boundingSphere.set(new J(), 1 / 0);\n return;\n }\n if (e) {\n const i = this.boundingSphere.center;\n if (Hn.setFromBufferAttribute(e), t)\n for (let s = 0, o = t.length; s < o; s++) {\n const a = t[s];\n Ma.setFromBufferAttribute(a), this.morphTargetsRelative ? (ln.addVectors(Hn.min, Ma.min), Hn.expandByPoint(ln), ln.addVectors(Hn.max, Ma.max), Hn.expandByPoint(ln)) : (Hn.expandByPoint(Ma.min), Hn.expandByPoint(Ma.max));\n }\n Hn.getCenter(i);\n let r = 0;\n for (let s = 0, o = e.count; s < o; s++)\n ln.fromBufferAttribute(e, s), r = Math.max(r, i.distanceToSquared(ln));\n if (t)\n for (let s = 0, o = t.length; s < o; s++) {\n const a = t[s], c = this.morphTargetsRelative;\n for (let l = 0, d = a.count; l < d; l++)\n ln.fromBufferAttribute(a, l), c && (so.fromBufferAttribute(e, l), ln.add(so)), r = Math.max(r, i.distanceToSquared(ln));\n }\n this.boundingSphere.radius = Math.sqrt(r), isNaN(this.boundingSphere.radius) && console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The \"position\" attribute is likely to have NaN values.', this);\n }\n }\n computeFaceNormals() {\n }\n computeTangents() {\n const e = this.index, t = this.attributes;\n if (e === null || t.position === void 0 || t.normal === void 0 || t.uv === void 0) {\n console.error(\"THREE.BufferGeometry: .computeTangents() failed. Missing required attributes (index, position, normal or uv)\");\n return;\n }\n const i = e.array, r = t.position.array, s = t.normal.array, o = t.uv.array, a = r.length / 3;\n t.tangent === void 0 && this.setAttribute(\"tangent\", new nt(new Float32Array(4 * a), 4));\n const c = t.tangent.array, l = [], d = [];\n for (let T = 0; T < a; T++)\n l[T] = new J(), d[T] = new J();\n const h = new J(), f = new J(), g = new J(), p = new Pe(), u = new Pe(), y = new Pe(), v = new J(), m = new J();\n function w(T, R, E) {\n h.fromArray(r, T * 3), f.fromArray(r, R * 3), g.fromArray(r, E * 3), p.fromArray(o, T * 2), u.fromArray(o, R * 2), y.fromArray(o, E * 2), f.sub(h), g.sub(h), u.sub(p), y.sub(p);\n const C = 1 / (u.x * y.y - y.x * u.y);\n isFinite(C) && (v.copy(f).multiplyScalar(y.y).addScaledVector(g, -u.y).multiplyScalar(C), m.copy(g).multiplyScalar(u.x).addScaledVector(f, -y.x).multiplyScalar(C), l[T].add(v), l[R].add(v), l[E].add(v), d[T].add(m), d[R].add(m), d[E].add(m));\n }\n let _ = this.groups;\n _.length === 0 && (_ = [{\n start: 0,\n count: i.length\n }]);\n for (let T = 0, R = _.length; T < R; ++T) {\n const E = _[T], C = E.start, L = E.count;\n for (let O = C, b = C + L; O < b; O += 3)\n w(\n i[O + 0],\n i[O + 1],\n i[O + 2]\n );\n }\n const S = new J(), M = new J(), x = new J(), A = new J();\n function P(T) {\n x.fromArray(s, T * 3), A.copy(x);\n const R = l[T];\n S.copy(R), S.sub(x.multiplyScalar(x.dot(R))).normalize(), M.crossVectors(A, R);\n const C = M.dot(d[T]) < 0 ? -1 : 1;\n c[T * 4] = S.x, c[T * 4 + 1] = S.y, c[T * 4 + 2] = S.z, c[T * 4 + 3] = C;\n }\n for (let T = 0, R = _.length; T < R; ++T) {\n const E = _[T], C = E.start, L = E.count;\n for (let O = C, b = C + L; O < b; O += 3)\n P(i[O + 0]), P(i[O + 1]), P(i[O + 2]);\n }\n }\n computeVertexNormals() {\n const e = this.index, t = this.getAttribute(\"position\");\n if (t !== void 0) {\n let i = this.getAttribute(\"normal\");\n if (i === void 0)\n i = new nt(new Float32Array(t.count * 3), 3), this.setAttribute(\"normal\", i);\n else\n for (let f = 0, g = i.count; f < g; f++)\n i.setXYZ(f, 0, 0, 0);\n const r = new J(), s = new J(), o = new J(), a = new J(), c = new J(), l = new J(), d = new J(), h = new J();\n if (e)\n for (let f = 0, g = e.count; f < g; f += 3) {\n const p = e.getX(f + 0), u = e.getX(f + 1), y = e.getX(f + 2);\n r.fromBufferAttribute(t, p), s.fromBufferAttribute(t, u), o.fromBufferAttribute(t, y), d.subVectors(o, s), h.subVectors(r, s), d.cross(h), a.fromBufferAttribute(i, p), c.fromBufferAttribute(i, u), l.fromBufferAttribute(i, y), a.add(d), c.add(d), l.add(d), i.setXYZ(p, a.x, a.y, a.z), i.setXYZ(u, c.x, c.y, c.z), i.setXYZ(y, l.x, l.y, l.z);\n }\n else\n for (let f = 0, g = t.count; f < g; f += 3)\n r.fromBufferAttribute(t, f + 0), s.fromBufferAttribute(t, f + 1), o.fromBufferAttribute(t, f + 2), d.subVectors(o, s), h.subVectors(r, s), d.cross(h), i.setXYZ(f + 0, d.x, d.y, d.z), i.setXYZ(f + 1, d.x, d.y, d.z), i.setXYZ(f + 2, d.x, d.y, d.z);\n this.normalizeNormals(), i.needsUpdate = !0;\n }\n }\n merge(e, t) {\n if (!(e && e.isBufferGeometry)) {\n console.error(\"THREE.BufferGeometry.merge(): geometry not an instance of THREE.BufferGeometry.\", e);\n return;\n }\n t === void 0 && (t = 0, console.warn(\n \"THREE.BufferGeometry.merge(): Overwriting original geometry, starting at offset=0. Use BufferGeometryUtils.mergeBufferGeometries() for lossless merge.\"\n ));\n const i = this.attributes;\n for (const r in i) {\n if (e.attributes[r] === void 0) continue;\n const o = i[r].array, a = e.attributes[r], c = a.array, l = a.itemSize * t, d = Math.min(c.length, o.length - l);\n for (let h = 0, f = l; h < d; h++, f++)\n o[f] = c[h];\n }\n return this;\n }\n normalizeNormals() {\n const e = this.attributes.normal;\n for (let t = 0, i = e.count; t < i; t++)\n ln.fromBufferAttribute(e, t), ln.normalize(), e.setXYZ(t, ln.x, ln.y, ln.z);\n }\n toNonIndexed() {\n function e(a, c) {\n const l = a.array, d = a.itemSize, h = a.normalized, f = new l.constructor(c.length * d);\n let g = 0, p = 0;\n for (let u = 0, y = c.length; u < y; u++) {\n a.isInterleavedBufferAttribute ? g = c[u] * a.data.stride + a.offset : g = c[u] * d;\n for (let v = 0; v < d; v++)\n f[p++] = l[g++];\n }\n return new nt(f, d, h);\n }\n if (this.index === null)\n return console.warn(\"THREE.BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed.\"), this;\n const t = new Ke(), i = this.index.array, r = this.attributes;\n for (const a in r) {\n const c = r[a], l = e(c, i);\n t.setAttribute(a, l);\n }\n const s = this.morphAttributes;\n for (const a in s) {\n const c = [], l = s[a];\n for (let d = 0, h = l.length; d < h; d++) {\n const f = l[d], g = e(f, i);\n c.push(g);\n }\n t.morphAttributes[a] = c;\n }\n t.morphTargetsRelative = this.morphTargetsRelative;\n const o = this.groups;\n for (let a = 0, c = o.length; a < c; a++) {\n const l = o[a];\n t.addGroup(l.start, l.count, l.materialIndex);\n }\n return t;\n }\n toJSON() {\n const e = {\n metadata: {\n version: 4.5,\n type: \"BufferGeometry\",\n generator: \"BufferGeometry.toJSON\"\n }\n };\n if (e.uuid = this.uuid, e.type = this.type, this.name !== \"\" && (e.name = this.name), Object.keys(this.userData).length > 0 && (e.userData = this.userData), this.parameters !== void 0) {\n const c = this.parameters;\n for (const l in c)\n c[l] !== void 0 && (e[l] = c[l]);\n return e;\n }\n e.data = { attributes: {} };\n const t = this.index;\n t !== null && (e.data.index = {\n type: t.array.constructor.name,\n array: Array.prototype.slice.call(t.array)\n });\n const i = this.attributes;\n for (const c in i) {\n const l = i[c];\n e.data.attributes[c] = l.toJSON(e.data);\n }\n const r = {};\n let s = !1;\n for (const c in this.morphAttributes) {\n const l = this.morphAttributes[c], d = [];\n for (let h = 0, f = l.length; h < f; h++) {\n const g = l[h];\n d.push(g.toJSON(e.data));\n }\n d.length > 0 && (r[c] = d, s = !0);\n }\n s && (e.data.morphAttributes = r, e.data.morphTargetsRelative = this.morphTargetsRelative);\n const o = this.groups;\n o.length > 0 && (e.data.groups = JSON.parse(JSON.stringify(o)));\n const a = this.boundingSphere;\n return a !== null && (e.data.boundingSphere = {\n center: a.center.toArray(),\n radius: a.radius\n }), e;\n }\n clone() {\n return new Ke().copy(this);\n }\n copy(e) {\n this.index = null, this.attributes = {}, this.morphAttributes = {}, this.groups = [], this.boundingBox = null, this.boundingSphere = null;\n const t = {};\n this.name = e.name;\n const i = e.index;\n i !== null && this.setIndex(i.clone(t));\n const r = e.attributes;\n for (const l in r) {\n const d = r[l];\n this.setAttribute(l, d.clone(t));\n }\n const s = e.morphAttributes;\n for (const l in s) {\n const d = [], h = s[l];\n for (let f = 0, g = h.length; f < g; f++)\n d.push(h[f].clone(t));\n this.morphAttributes[l] = d;\n }\n this.morphTargetsRelative = e.morphTargetsRelative;\n const o = e.groups;\n for (let l = 0, d = o.length; l < d; l++) {\n const h = o[l];\n this.addGroup(h.start, h.count, h.materialIndex);\n }\n const a = e.boundingBox;\n a !== null && (this.boundingBox = a.clone());\n const c = e.boundingSphere;\n return c !== null && (this.boundingSphere = c.clone()), this.drawRange.start = e.drawRange.start, this.drawRange.count = e.drawRange.count, this.userData = e.userData, this;\n }\n dispose() {\n this.dispatchEvent({ type: \"dispose\" });\n }\n}\nKe.prototype.isBufferGeometry = !0;\nconst Sg = /* @__PURE__ */ new Ze(), oo = /* @__PURE__ */ new ns(), Mh = /* @__PURE__ */ new br(), Er = /* @__PURE__ */ new J(), Ar = /* @__PURE__ */ new J(), Cr = /* @__PURE__ */ new J(), _h = /* @__PURE__ */ new J(), Sh = /* @__PURE__ */ new J(), Th = /* @__PURE__ */ new J(), ql = /* @__PURE__ */ new J(), Ql = /* @__PURE__ */ new J(), ec = /* @__PURE__ */ new J(), tc = /* @__PURE__ */ new Pe(), nc = /* @__PURE__ */ new Pe(), ic = /* @__PURE__ */ new Pe(), Eh = /* @__PURE__ */ new J(), rc = /* @__PURE__ */ new J();\nclass Kt extends st {\n constructor(e = new Ke(), t = new Fn()) {\n super(), this.type = \"Mesh\", this.geometry = e, this.material = t, this.updateMorphTargets();\n }\n copy(e) {\n return super.copy(e), e.morphTargetInfluences !== void 0 && (this.morphTargetInfluences = e.morphTargetInfluences.slice()), e.morphTargetDictionary !== void 0 && (this.morphTargetDictionary = Object.assign({}, e.morphTargetDictionary)), this.material = e.material, this.geometry = e.geometry, this;\n }\n updateMorphTargets() {\n const e = this.geometry;\n if (e.isBufferGeometry) {\n const t = e.morphAttributes, i = Object.keys(t);\n if (i.length > 0) {\n const r = t[i[0]];\n if (r !== void 0) {\n this.morphTargetInfluences = [], this.morphTargetDictionary = {};\n for (let s = 0, o = r.length; s < o; s++) {\n const a = r[s].name || String(s);\n this.morphTargetInfluences.push(0), this.morphTargetDictionary[a] = s;\n }\n }\n }\n } else {\n const t = e.morphTargets;\n t !== void 0 && t.length > 0 && console.error(\"THREE.Mesh.updateMorphTargets() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.\");\n }\n }\n raycast(e, t) {\n const i = this.geometry, r = this.material, s = this.matrixWorld;\n if (r === void 0 || (i.boundingSphere === null && i.computeBoundingSphere(), Mh.copy(i.boundingSphere), Mh.applyMatrix4(s), e.ray.intersectsSphere(Mh) === !1) || (Sg.copy(s).invert(), oo.copy(e.ray).applyMatrix4(Sg), i.boundingBox !== null && oo.intersectsBox(i.boundingBox) === !1))\n return;\n let o;\n if (i.isBufferGeometry) {\n const a = i.index, c = i.attributes.position, l = i.morphAttributes.position, d = i.morphTargetsRelative, h = i.attributes.uv, f = i.attributes.uv2, g = i.groups, p = i.drawRange;\n if (a !== null)\n if (Array.isArray(r))\n for (let u = 0, y = g.length; u < y; u++) {\n const v = g[u], m = r[v.materialIndex], w = Math.max(v.start, p.start), _ = Math.min(v.start + v.count, p.start + p.count);\n for (let S = w, M = _; S < M; S += 3) {\n const x = a.getX(S), A = a.getX(S + 1), P = a.getX(S + 2);\n o = sc(this, m, e, oo, c, l, d, h, f, x, A, P), o && (o.faceIndex = Math.floor(S / 3), o.face.materialIndex = v.materialIndex, t.push(o));\n }\n }\n else {\n const u = Math.max(0, p.start), y = Math.min(a.count, p.start + p.count);\n for (let v = u, m = y; v < m; v += 3) {\n const w = a.getX(v), _ = a.getX(v + 1), S = a.getX(v + 2);\n o = sc(this, r, e, oo, c, l, d, h, f, w, _, S), o && (o.faceIndex = Math.floor(v / 3), t.push(o));\n }\n }\n else if (c !== void 0)\n if (Array.isArray(r))\n for (let u = 0, y = g.length; u < y; u++) {\n const v = g[u], m = r[v.materialIndex], w = Math.max(v.start, p.start), _ = Math.min(v.start + v.count, p.start + p.count);\n for (let S = w, M = _; S < M; S += 3) {\n const x = S, A = S + 1, P = S + 2;\n o = sc(this, m, e, oo, c, l, d, h, f, x, A, P), o && (o.faceIndex = Math.floor(S / 3), o.face.materialIndex = v.materialIndex, t.push(o));\n }\n }\n else {\n const u = Math.max(0, p.start), y = Math.min(c.count, p.start + p.count);\n for (let v = u, m = y; v < m; v += 3) {\n const w = v, _ = v + 1, S = v + 2;\n o = sc(this, r, e, oo, c, l, d, h, f, w, _, S), o && (o.faceIndex = Math.floor(v / 3), t.push(o));\n }\n }\n } else i.isGeometry && console.error(\"THREE.Mesh.raycast() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.\");\n }\n}\nKt.prototype.isMesh = !0;\nfunction EI(n, e, t, i, r, s, o, a) {\n let c;\n if (e.side === Zt ? c = i.intersectTriangle(o, s, r, !0, a) : c = i.intersectTriangle(r, s, o, e.side !== Xr, a), c === null) return null;\n rc.copy(a), rc.applyMatrix4(n.matrixWorld);\n const l = t.ray.origin.distanceTo(rc);\n return l < t.near || l > t.far ? null : {\n distance: l,\n point: rc.clone(),\n object: n\n };\n}\nfunction sc(n, e, t, i, r, s, o, a, c, l, d, h) {\n Er.fromBufferAttribute(r, l), Ar.fromBufferAttribute(r, d), Cr.fromBufferAttribute(r, h);\n const f = n.morphTargetInfluences;\n if (e.morphTargets && s && f) {\n ql.set(0, 0, 0), Ql.set(0, 0, 0), ec.set(0, 0, 0);\n for (let p = 0, u = s.length; p < u; p++) {\n const y = f[p], v = s[p];\n y !== 0 && (_h.fromBufferAttribute(v, l), Sh.fromBufferAttribute(v, d), Th.fromBufferAttribute(v, h), o ? (ql.addScaledVector(_h, y), Ql.addScaledVector(Sh, y), ec.addScaledVector(Th, y)) : (ql.addScaledVector(_h.sub(Er), y), Ql.addScaledVector(Sh.sub(Ar), y), ec.addScaledVector(Th.sub(Cr), y)));\n }\n Er.add(ql), Ar.add(Ql), Cr.add(ec);\n }\n n.isSkinnedMesh && (n.boneTransform(l, Er), n.boneTransform(d, Ar), n.boneTransform(h, Cr));\n const g = EI(n, e, t, i, Er, Ar, Cr, Eh);\n if (g) {\n a && (tc.fromBufferAttribute(a, l), nc.fromBufferAttribute(a, d), ic.fromBufferAttribute(a, h), g.uv = Yt.getUV(Eh, Er, Ar, Cr, tc, nc, ic, new Pe())), c && (tc.fromBufferAttribute(c, l), nc.fromBufferAttribute(c, d), ic.fromBufferAttribute(c, h), g.uv2 = Yt.getUV(Eh, Er, Ar, Cr, tc, nc, ic, new Pe()));\n const p = {\n a: l,\n b: d,\n c: h,\n normal: new J(),\n materialIndex: 0\n };\n Yt.getNormal(Er, Ar, Cr, p.normal), g.face = p;\n }\n return g;\n}\nclass ur extends Ke {\n constructor(e = 1, t = 1, i = 1, r = 1, s = 1, o = 1) {\n super(), this.type = \"BoxGeometry\", this.parameters = {\n width: e,\n height: t,\n depth: i,\n widthSegments: r,\n heightSegments: s,\n depthSegments: o\n };\n const a = this;\n r = Math.floor(r), s = Math.floor(s), o = Math.floor(o);\n const c = [], l = [], d = [], h = [];\n let f = 0, g = 0;\n p(\"z\", \"y\", \"x\", -1, -1, i, t, e, o, s, 0), p(\"z\", \"y\", \"x\", 1, -1, i, t, -e, o, s, 1), p(\"x\", \"z\", \"y\", 1, 1, e, i, t, r, o, 2), p(\"x\", \"z\", \"y\", 1, -1, e, i, -t, r, o, 3), p(\"x\", \"y\", \"z\", 1, -1, e, t, i, r, s, 4), p(\"x\", \"y\", \"z\", -1, -1, e, t, -i, r, s, 5), this.setIndex(c), this.setAttribute(\"position\", new We(l, 3)), this.setAttribute(\"normal\", new We(d, 3)), this.setAttribute(\"uv\", new We(h, 2));\n function p(u, y, v, m, w, _, S, M, x, A, P) {\n const T = _ / x, R = S / A, E = _ / 2, C = S / 2, L = M / 2, O = x + 1, b = A + 1;\n let I = 0, N = 0;\n const D = new J();\n for (let z = 0; z < b; z++) {\n const V = z * R - C;\n for (let H = 0; H < O; H++) {\n const X = H * T - E;\n D[u] = X * m, D[y] = V * w, D[v] = L, l.push(D.x, D.y, D.z), D[u] = 0, D[y] = 0, D[v] = M > 0 ? 1 : -1, d.push(D.x, D.y, D.z), h.push(H / x), h.push(1 - z / A), I += 1;\n }\n }\n for (let z = 0; z < A; z++)\n for (let V = 0; V < x; V++) {\n const H = f + V + O * z, X = f + V + O * (z + 1), re = f + (V + 1) + O * (z + 1), j = f + (V + 1) + O * z;\n c.push(H, X, j), c.push(X, re, j), N += 6;\n }\n a.addGroup(g, N, P), g += N, f += I;\n }\n }\n static fromJSON(e) {\n return new ur(e.width, e.height, e.depth, e.widthSegments, e.heightSegments, e.depthSegments);\n }\n}\nfunction Vo(n) {\n const e = {};\n for (const t in n) {\n e[t] = {};\n for (const i in n[t]) {\n const r = n[t][i];\n r && (r.isColor || r.isMatrix3 || r.isMatrix4 || r.isVector2 || r.isVector3 || r.isVector4 || r.isTexture || r.isQuaternion) ? e[t][i] = r.clone() : Array.isArray(r) ? e[t][i] = r.slice() : e[t][i] = r;\n }\n }\n return e;\n}\nfunction Mn(n) {\n const e = {};\n for (let t = 0; t < n.length; t++) {\n const i = Vo(n[t]);\n for (const r in i)\n e[r] = i[r];\n }\n return e;\n}\nconst Sx = { clone: Vo, merge: Mn };\nvar AI = `void main() {\n\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}`, CI = `void main() {\n\tgl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );\n}`;\nclass hr extends en {\n constructor(e) {\n super(), this.type = \"ShaderMaterial\", this.defines = {}, this.uniforms = {}, this.vertexShader = AI, this.fragmentShader = CI, this.linewidth = 1, this.wireframe = !1, this.wireframeLinewidth = 1, this.fog = !1, this.lights = !1, this.clipping = !1, this.morphTargets = !1, this.morphNormals = !1, this.extensions = {\n derivatives: !1,\n // set to use derivatives\n fragDepth: !1,\n // set to use fragment depth values\n drawBuffers: !1,\n // set to use draw buffers\n shaderTextureLOD: !1\n // set to use shader texture LOD\n }, this.defaultAttributeValues = {\n color: [1, 1, 1],\n uv: [0, 0],\n uv2: [0, 0]\n }, this.index0AttributeName = void 0, this.uniformsNeedUpdate = !1, this.glslVersion = null, e !== void 0 && (e.attributes !== void 0 && console.error(\"THREE.ShaderMaterial: attributes should now be defined in THREE.BufferGeometry instead.\"), this.setValues(e));\n }\n copy(e) {\n return super.copy(e), this.fragmentShader = e.fragmentShader, this.vertexShader = e.vertexShader, this.uniforms = Vo(e.uniforms), this.defines = Object.assign({}, e.defines), this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.lights = e.lights, this.clipping = e.clipping, this.morphTargets = e.morphTargets, this.morphNormals = e.morphNormals, this.extensions = Object.assign({}, e.extensions), this.glslVersion = e.glslVersion, this;\n }\n toJSON(e) {\n const t = super.toJSON(e);\n t.glslVersion = this.glslVersion, t.uniforms = {};\n for (const r in this.uniforms) {\n const o = this.uniforms[r].value;\n o && o.isTexture ? t.uniforms[r] = {\n type: \"t\",\n value: o.toJSON(e).uuid\n } : o && o.isColor ? t.uniforms[r] = {\n type: \"c\",\n value: o.getHex()\n } : o && o.isVector2 ? t.uniforms[r] = {\n type: \"v2\",\n value: o.toArray()\n } : o && o.isVector3 ? t.uniforms[r] = {\n type: \"v3\",\n value: o.toArray()\n } : o && o.isVector4 ? t.uniforms[r] = {\n type: \"v4\",\n value: o.toArray()\n } : o && o.isMatrix3 ? t.uniforms[r] = {\n type: \"m3\",\n value: o.toArray()\n } : o && o.isMatrix4 ? t.uniforms[r] = {\n type: \"m4\",\n value: o.toArray()\n } : t.uniforms[r] = {\n value: o\n };\n }\n Object.keys(this.defines).length > 0 && (t.defines = this.defines), t.vertexShader = this.vertexShader, t.fragmentShader = this.fragmentShader;\n const i = {};\n for (const r in this.extensions)\n this.extensions[r] === !0 && (i[r] = !0);\n return Object.keys(i).length > 0 && (t.extensions = i), t;\n }\n}\nhr.prototype.isShaderMaterial = !0;\nclass wl extends st {\n constructor() {\n super(), this.type = \"Camera\", this.matrixWorldInverse = new Ze(), this.projectionMatrix = new Ze(), this.projectionMatrixInverse = new Ze();\n }\n copy(e, t) {\n return super.copy(e, t), this.matrixWorldInverse.copy(e.matrixWorldInverse), this.projectionMatrix.copy(e.projectionMatrix), this.projectionMatrixInverse.copy(e.projectionMatrixInverse), this;\n }\n getWorldDirection(e) {\n this.updateWorldMatrix(!0, !1);\n const t = this.matrixWorld.elements;\n return e.set(-t[8], -t[9], -t[10]).normalize();\n }\n updateMatrixWorld(e) {\n super.updateMatrixWorld(e), this.matrixWorldInverse.copy(this.matrixWorld).invert();\n }\n updateWorldMatrix(e, t) {\n super.updateWorldMatrix(e, t), this.matrixWorldInverse.copy(this.matrixWorld).invert();\n }\n clone() {\n return new this.constructor().copy(this);\n }\n}\nwl.prototype.isCamera = !0;\nclass nn extends wl {\n constructor(e = 50, t = 1, i = 0.1, r = 2e3) {\n super(), this.type = \"PerspectiveCamera\", this.fov = e, this.zoom = 1, this.near = i, this.far = r, this.focus = 10, this.aspect = t, this.view = null, this.filmGauge = 35, this.filmOffset = 0, this.updateProjectionMatrix();\n }\n copy(e, t) {\n return super.copy(e, t), this.fov = e.fov, this.zoom = e.zoom, this.near = e.near, this.far = e.far, this.focus = e.focus, this.aspect = e.aspect, this.view = e.view === null ? null : Object.assign({}, e.view), this.filmGauge = e.filmGauge, this.filmOffset = e.filmOffset, this;\n }\n /**\n * Sets the FOV by focal length in respect to the current .filmGauge.\n *\n * The default film gauge is 35, so that the focal length can be specified for\n * a 35mm (full frame) camera.\n *\n * Values for focal length and film gauge must have the same unit.\n */\n setFocalLength(e) {\n const t = 0.5 * this.getFilmHeight() / e;\n this.fov = nl * 2 * Math.atan(t), this.updateProjectionMatrix();\n }\n /**\n * Calculates the focal length from the current .fov and .filmGauge.\n */\n getFocalLength() {\n const e = Math.tan(As * 0.5 * this.fov);\n return 0.5 * this.getFilmHeight() / e;\n }\n getEffectiveFOV() {\n return nl * 2 * Math.atan(\n Math.tan(As * 0.5 * this.fov) / this.zoom\n );\n }\n getFilmWidth() {\n return this.filmGauge * Math.min(this.aspect, 1);\n }\n getFilmHeight() {\n return this.filmGauge / Math.max(this.aspect, 1);\n }\n /**\n * Sets an offset in a larger frustum. This is useful for multi-window or\n * multi-monitor/multi-machine setups.\n *\n * For example, if you have 3x2 monitors and each monitor is 1920x1080 and\n * the monitors are in grid like this\n *\n * +---+---+---+\n * | A | B | C |\n * +---+---+---+\n * | D | E | F |\n * +---+---+---+\n *\n * then for each monitor you would call it like this\n *\n * const w = 1920;\n * const h = 1080;\n * const fullWidth = w * 3;\n * const fullHeight = h * 2;\n *\n * --A--\n * camera.setViewOffset( fullWidth, fullHeight, w * 0, h * 0, w, h );\n * --B--\n * camera.setViewOffset( fullWidth, fullHeight, w * 1, h * 0, w, h );\n * --C--\n * camera.setViewOffset( fullWidth, fullHeight, w * 2, h * 0, w, h );\n * --D--\n * camera.setViewOffset( fullWidth, fullHeight, w * 0, h * 1, w, h );\n * --E--\n * camera.setViewOffset( fullWidth, fullHeight, w * 1, h * 1, w, h );\n * --F--\n * camera.setViewOffset( fullWidth, fullHeight, w * 2, h * 1, w, h );\n *\n * Note there is no reason monitors have to be the same size or in a grid.\n */\n setViewOffset(e, t, i, r, s, o) {\n this.aspect = e / t, this.view === null && (this.view = {\n enabled: !0,\n fullWidth: 1,\n fullHeight: 1,\n offsetX: 0,\n offsetY: 0,\n width: 1,\n height: 1\n }), this.view.enabled = !0, this.view.fullWidth = e, this.view.fullHeight = t, this.view.offsetX = i, this.view.offsetY = r, this.view.width = s, this.view.height = o, this.updateProjectionMatrix();\n }\n clearViewOffset() {\n this.view !== null && (this.view.enabled = !1), this.updateProjectionMatrix();\n }\n updateProjectionMatrix() {\n const e = this.near;\n let t = e * Math.tan(As * 0.5 * this.fov) / this.zoom, i = 2 * t, r = this.aspect * i, s = -0.5 * r;\n const o = this.view;\n if (this.view !== null && this.view.enabled) {\n const c = o.fullWidth, l = o.fullHeight;\n s += o.offsetX * r / c, t -= o.offsetY * i / l, r *= o.width / c, i *= o.height / l;\n }\n const a = this.filmOffset;\n a !== 0 && (s += e * a / this.getFilmWidth()), this.projectionMatrix.makePerspective(s, s + r, t, t - i, e, this.far), this.projectionMatrixInverse.copy(this.projectionMatrix).invert();\n }\n toJSON(e) {\n const t = super.toJSON(e);\n return t.object.fov = this.fov, t.object.zoom = this.zoom, t.object.near = this.near, t.object.far = this.far, t.object.focus = this.focus, t.object.aspect = this.aspect, this.view !== null && (t.object.view = Object.assign({}, this.view)), t.object.filmGauge = this.filmGauge, t.object.filmOffset = this.filmOffset, t;\n }\n}\nnn.prototype.isPerspectiveCamera = !0;\nconst ao = 90, lo = 1;\nclass Pu extends st {\n constructor(e, t, i) {\n if (super(), this.type = \"CubeCamera\", i.isWebGLCubeRenderTarget !== !0) {\n console.error(\"THREE.CubeCamera: The constructor now expects an instance of WebGLCubeRenderTarget as third parameter.\");\n return;\n }\n this.renderTarget = i;\n const r = new nn(ao, lo, e, t);\n r.layers = this.layers, r.up.set(0, -1, 0), r.lookAt(new J(1, 0, 0)), this.add(r);\n const s = new nn(ao, lo, e, t);\n s.layers = this.layers, s.up.set(0, -1, 0), s.lookAt(new J(-1, 0, 0)), this.add(s);\n const o = new nn(ao, lo, e, t);\n o.layers = this.layers, o.up.set(0, 0, 1), o.lookAt(new J(0, 1, 0)), this.add(o);\n const a = new nn(ao, lo, e, t);\n a.layers = this.layers, a.up.set(0, 0, -1), a.lookAt(new J(0, -1, 0)), this.add(a);\n const c = new nn(ao, lo, e, t);\n c.layers = this.layers, c.up.set(0, -1, 0), c.lookAt(new J(0, 0, 1)), this.add(c);\n const l = new nn(ao, lo, e, t);\n l.layers = this.layers, l.up.set(0, -1, 0), l.lookAt(new J(0, 0, -1)), this.add(l);\n }\n update(e, t) {\n this.parent === null && this.updateMatrixWorld();\n const i = this.renderTarget, [r, s, o, a, c, l] = this.children, d = e.xr.enabled, h = e.getRenderTarget();\n e.xr.enabled = !1;\n const f = i.texture.generateMipmaps;\n i.texture.generateMipmaps = !1, e.setRenderTarget(i, 0), e.render(t, r), e.setRenderTarget(i, 1), e.render(t, s), e.setRenderTarget(i, 2), e.render(t, o), e.setRenderTarget(i, 3), e.render(t, a), e.setRenderTarget(i, 4), e.render(t, c), i.texture.generateMipmaps = f, e.setRenderTarget(i, 5), e.render(t, l), e.setRenderTarget(h), e.xr.enabled = d;\n }\n}\nclass ca extends qt {\n constructor(e, t, i, r, s, o, a, c, l, d) {\n e = e !== void 0 ? e : [], t = t !== void 0 ? t : yl, a = a !== void 0 ? a : or, super(e, t, i, r, s, o, a, c, l, d), this._needsFlipEnvMap = !0, this.flipY = !1;\n }\n get images() {\n return this.image;\n }\n set images(e) {\n this.image = e;\n }\n}\nca.prototype.isCubeTexture = !0;\nclass Iu extends yi {\n constructor(e, t, i) {\n Number.isInteger(t) && (console.warn(\"THREE.WebGLCubeRenderTarget: constructor signature is now WebGLCubeRenderTarget( size, options )\"), t = i), super(e, e, t), t = t || {}, this.texture = new ca(void 0, t.mapping, t.wrapS, t.wrapT, t.magFilter, t.minFilter, t.format, t.type, t.anisotropy, t.encoding), this.texture.generateMipmaps = t.generateMipmaps !== void 0 ? t.generateMipmaps : !1, this.texture.minFilter = t.minFilter !== void 0 ? t.minFilter : kt, this.texture._needsFlipEnvMap = !1;\n }\n fromEquirectangularTexture(e, t) {\n this.texture.type = t.type, this.texture.format = Zn, this.texture.encoding = t.encoding, this.texture.generateMipmaps = t.generateMipmaps, this.texture.minFilter = t.minFilter, this.texture.magFilter = t.magFilter;\n const i = {\n uniforms: {\n tEquirect: { value: null }\n },\n vertexShader: (\n /* glsl */\n `\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\tvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\n\t\t\t\t\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n\n\t\t\t\t}\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvWorldDirection = transformDirection( position, modelMatrix );\n\n\t\t\t\t\t#include \n\t\t\t\t\t#include \n\n\t\t\t\t}\n\t\t\t`\n ),\n fragmentShader: (\n /* glsl */\n `\n\n\t\t\t\tuniform sampler2D tEquirect;\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\t#include \n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvec3 direction = normalize( vWorldDirection );\n\n\t\t\t\t\tvec2 sampleUV = equirectUv( direction );\n\n\t\t\t\t\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\n\t\t\t\t}\n\t\t\t`\n )\n }, r = new ur(5, 5, 5), s = new hr({\n name: \"CubemapFromEquirect\",\n uniforms: Vo(i.uniforms),\n vertexShader: i.vertexShader,\n fragmentShader: i.fragmentShader,\n side: Zt,\n blending: sr\n });\n s.uniforms.tEquirect.value = t;\n const o = new Kt(r, s), a = t.minFilter;\n return t.minFilter === yr && (t.minFilter = kt), new Pu(1, 10, this).update(e, o), t.minFilter = a, o.geometry.dispose(), o.material.dispose(), this;\n }\n clear(e, t, i, r) {\n const s = e.getRenderTarget();\n for (let o = 0; o < 6; o++)\n e.setRenderTarget(this, o), e.clear(t, i, r);\n e.setRenderTarget(s);\n }\n}\nIu.prototype.isWebGLCubeRenderTarget = !0;\nconst Ah = /* @__PURE__ */ new J(), LI = /* @__PURE__ */ new J(), RI = /* @__PURE__ */ new rn();\nclass Ci {\n constructor(e = new J(1, 0, 0), t = 0) {\n this.normal = e, this.constant = t;\n }\n set(e, t) {\n return this.normal.copy(e), this.constant = t, this;\n }\n setComponents(e, t, i, r) {\n return this.normal.set(e, t, i), this.constant = r, this;\n }\n setFromNormalAndCoplanarPoint(e, t) {\n return this.normal.copy(e), this.constant = -t.dot(this.normal), this;\n }\n setFromCoplanarPoints(e, t, i) {\n const r = Ah.subVectors(i, t).cross(LI.subVectors(e, t)).normalize();\n return this.setFromNormalAndCoplanarPoint(r, e), this;\n }\n copy(e) {\n return this.normal.copy(e.normal), this.constant = e.constant, this;\n }\n normalize() {\n const e = 1 / this.normal.length();\n return this.normal.multiplyScalar(e), this.constant *= e, this;\n }\n negate() {\n return this.constant *= -1, this.normal.negate(), this;\n }\n distanceToPoint(e) {\n return this.normal.dot(e) + this.constant;\n }\n distanceToSphere(e) {\n return this.distanceToPoint(e.center) - e.radius;\n }\n projectPoint(e, t) {\n return t.copy(this.normal).multiplyScalar(-this.distanceToPoint(e)).add(e);\n }\n intersectLine(e, t) {\n const i = e.delta(Ah), r = this.normal.dot(i);\n if (r === 0)\n return this.distanceToPoint(e.start) === 0 ? t.copy(e.start) : null;\n const s = -(e.start.dot(this.normal) + this.constant) / r;\n return s < 0 || s > 1 ? null : t.copy(i).multiplyScalar(s).add(e.start);\n }\n intersectsLine(e) {\n const t = this.distanceToPoint(e.start), i = this.distanceToPoint(e.end);\n return t < 0 && i > 0 || i < 0 && t > 0;\n }\n intersectsBox(e) {\n return e.intersectsPlane(this);\n }\n intersectsSphere(e) {\n return e.intersectsPlane(this);\n }\n coplanarPoint(e) {\n return e.copy(this.normal).multiplyScalar(-this.constant);\n }\n applyMatrix4(e, t) {\n const i = t || RI.getNormalMatrix(e), r = this.coplanarPoint(Ah).applyMatrix4(e), s = this.normal.applyMatrix3(i).normalize();\n return this.constant = -r.dot(s), this;\n }\n translate(e) {\n return this.constant -= e.dot(this.normal), this;\n }\n equals(e) {\n return e.normal.equals(this.normal) && e.constant === this.constant;\n }\n clone() {\n return new this.constructor().copy(this);\n }\n}\nCi.prototype.isPlane = !0;\nconst co = /* @__PURE__ */ new br(), oc = /* @__PURE__ */ new J();\nclass Ml {\n constructor(e = new Ci(), t = new Ci(), i = new Ci(), r = new Ci(), s = new Ci(), o = new Ci()) {\n this.planes = [e, t, i, r, s, o];\n }\n set(e, t, i, r, s, o) {\n const a = this.planes;\n return a[0].copy(e), a[1].copy(t), a[2].copy(i), a[3].copy(r), a[4].copy(s), a[5].copy(o), this;\n }\n copy(e) {\n const t = this.planes;\n for (let i = 0; i < 6; i++)\n t[i].copy(e.planes[i]);\n return this;\n }\n setFromProjectionMatrix(e) {\n const t = this.planes, i = e.elements, r = i[0], s = i[1], o = i[2], a = i[3], c = i[4], l = i[5], d = i[6], h = i[7], f = i[8], g = i[9], p = i[10], u = i[11], y = i[12], v = i[13], m = i[14], w = i[15];\n return t[0].setComponents(a - r, h - c, u - f, w - y).normalize(), t[1].setComponents(a + r, h + c, u + f, w + y).normalize(), t[2].setComponents(a + s, h + l, u + g, w + v).normalize(), t[3].setComponents(a - s, h - l, u - g, w - v).normalize(), t[4].setComponents(a - o, h - d, u - p, w - m).normalize(), t[5].setComponents(a + o, h + d, u + p, w + m).normalize(), this;\n }\n intersectsObject(e) {\n const t = e.geometry;\n return t.boundingSphere === null && t.computeBoundingSphere(), co.copy(t.boundingSphere).applyMatrix4(e.matrixWorld), this.intersectsSphere(co);\n }\n intersectsSprite(e) {\n return co.center.set(0, 0, 0), co.radius = 0.7071067811865476, co.applyMatrix4(e.matrixWorld), this.intersectsSphere(co);\n }\n intersectsSphere(e) {\n const t = this.planes, i = e.center, r = -e.radius;\n for (let s = 0; s < 6; s++)\n if (t[s].distanceToPoint(i) < r)\n return !1;\n return !0;\n }\n intersectsBox(e) {\n const t = this.planes;\n for (let i = 0; i < 6; i++) {\n const r = t[i];\n if (oc.x = r.normal.x > 0 ? e.max.x : e.min.x, oc.y = r.normal.y > 0 ? e.max.y : e.min.y, oc.z = r.normal.z > 0 ? e.max.z : e.min.z, r.distanceToPoint(oc) < 0)\n return !1;\n }\n return !0;\n }\n containsPoint(e) {\n const t = this.planes;\n for (let i = 0; i < 6; i++)\n if (t[i].distanceToPoint(e) < 0)\n return !1;\n return !0;\n }\n clone() {\n return new this.constructor().copy(this);\n }\n}\nfunction Tx() {\n let n = null, e = !1, t = null, i = null;\n function r(s, o) {\n t(s, o), i = n.requestAnimationFrame(r);\n }\n return {\n start: function() {\n e !== !0 && t !== null && (i = n.requestAnimationFrame(r), e = !0);\n },\n stop: function() {\n n.cancelAnimationFrame(i), e = !1;\n },\n setAnimationLoop: function(s) {\n t = s;\n },\n setContext: function(s) {\n n = s;\n }\n };\n}\nfunction PI(n, e) {\n const t = e.isWebGL2, i = /* @__PURE__ */ new WeakMap();\n function r(l, d) {\n const h = l.array, f = l.usage, g = n.createBuffer();\n n.bindBuffer(d, g), n.bufferData(d, h, f), l.onUploadCallback();\n let p = 5126;\n return h instanceof Float32Array ? p = 5126 : h instanceof Float64Array ? console.warn(\"THREE.WebGLAttributes: Unsupported data buffer format: Float64Array.\") : h instanceof Uint16Array ? l.isFloat16BufferAttribute ? t ? p = 5131 : console.warn(\"THREE.WebGLAttributes: Usage of Float16BufferAttribute requires WebGL2.\") : p = 5123 : h instanceof Int16Array ? p = 5122 : h instanceof Uint32Array ? p = 5125 : h instanceof Int32Array ? p = 5124 : h instanceof Int8Array ? p = 5120 : (h instanceof Uint8Array || h instanceof Uint8ClampedArray) && (p = 5121), {\n buffer: g,\n type: p,\n bytesPerElement: h.BYTES_PER_ELEMENT,\n version: l.version\n };\n }\n function s(l, d, h) {\n const f = d.array, g = d.updateRange;\n n.bindBuffer(h, l), g.count === -1 ? n.bufferSubData(h, 0, f) : (t ? n.bufferSubData(\n h,\n g.offset * f.BYTES_PER_ELEMENT,\n f,\n g.offset,\n g.count\n ) : n.bufferSubData(\n h,\n g.offset * f.BYTES_PER_ELEMENT,\n f.subarray(g.offset, g.offset + g.count)\n ), g.count = -1);\n }\n function o(l) {\n return l.isInterleavedBufferAttribute && (l = l.data), i.get(l);\n }\n function a(l) {\n l.isInterleavedBufferAttribute && (l = l.data);\n const d = i.get(l);\n d && (n.deleteBuffer(d.buffer), i.delete(l));\n }\n function c(l, d) {\n if (l.isGLBufferAttribute) {\n const f = i.get(l);\n (!f || f.version < l.version) && i.set(l, {\n buffer: l.buffer,\n type: l.type,\n bytesPerElement: l.elementSize,\n version: l.version\n });\n return;\n }\n l.isInterleavedBufferAttribute && (l = l.data);\n const h = i.get(l);\n h === void 0 ? i.set(l, r(l, d)) : h.version < l.version && (s(h.buffer, l, d), h.version = l.version);\n }\n return {\n get: o,\n remove: a,\n update: c\n };\n}\nclass Ds extends Ke {\n constructor(e = 1, t = 1, i = 1, r = 1) {\n super(), this.type = \"PlaneGeometry\", this.parameters = {\n width: e,\n height: t,\n widthSegments: i,\n heightSegments: r\n };\n const s = e / 2, o = t / 2, a = Math.floor(i), c = Math.floor(r), l = a + 1, d = c + 1, h = e / a, f = t / c, g = [], p = [], u = [], y = [];\n for (let v = 0; v < d; v++) {\n const m = v * f - o;\n for (let w = 0; w < l; w++) {\n const _ = w * h - s;\n p.push(_, -m, 0), u.push(0, 0, 1), y.push(w / a), y.push(1 - v / c);\n }\n }\n for (let v = 0; v < c; v++)\n for (let m = 0; m < a; m++) {\n const w = m + l * v, _ = m + l * (v + 1), S = m + 1 + l * (v + 1), M = m + 1 + l * v;\n g.push(w, _, M), g.push(_, S, M);\n }\n this.setIndex(g), this.setAttribute(\"position\", new We(p, 3)), this.setAttribute(\"normal\", new We(u, 3)), this.setAttribute(\"uv\", new We(y, 2));\n }\n static fromJSON(e) {\n return new Ds(e.width, e.height, e.widthSegments, e.heightSegments);\n }\n}\nvar II = `#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, vUv ).g;\n#endif`, OI = `#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif`, DI = `#ifdef ALPHATEST\n\tif ( diffuseColor.a < ALPHATEST ) discard;\n#endif`, NI = `#ifdef USE_AOMAP\n\tfloat ambientOcclusion = ( texture2D( aoMap, vUv2 ).r - 1.0 ) * aoMapIntensity + 1.0;\n\treflectedLight.indirectDiffuse *= ambientOcclusion;\n\t#if defined( USE_ENVMAP ) && defined( STANDARD )\n\t\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\n\t\treflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.specularRoughness );\n\t#endif\n#endif`, BI = `#ifdef USE_AOMAP\n\tuniform sampler2D aoMap;\n\tuniform float aoMapIntensity;\n#endif`, FI = \"vec3 transformed = vec3( position );\", zI = `vec3 objectNormal = vec3( normal );\n#ifdef USE_TANGENT\n\tvec3 objectTangent = vec3( tangent.xyz );\n#endif`, UI = `vec2 integrateSpecularBRDF( const in float dotNV, const in float roughness ) {\n\tconst vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n\tconst vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n\tvec4 r = roughness * c0 + c1;\n\tfloat a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n\treturn vec2( -1.04, 1.04 ) * a004 + r.zw;\n}\nfloat punctualLightIntensityToIrradianceFactor( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n#if defined ( PHYSICALLY_CORRECT_LIGHTS )\n\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\tif( cutoffDistance > 0.0 ) {\n\t\tdistanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t}\n\treturn distanceFalloff;\n#else\n\tif( cutoffDistance > 0.0 && decayExponent > 0.0 ) {\n\t\treturn pow( saturate( -lightDistance / cutoffDistance + 1.0 ), decayExponent );\n\t}\n\treturn 1.0;\n#endif\n}\nvec3 BRDF_Diffuse_Lambert( const in vec3 diffuseColor ) {\n\treturn RECIPROCAL_PI * diffuseColor;\n}\nvec3 F_Schlick( const in vec3 specularColor, const in float dotVH ) {\n\tfloat fresnel = exp2( ( -5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn ( 1.0 - specularColor ) * fresnel + specularColor;\n}\nvec3 F_Schlick_RoughnessDependent( const in vec3 F0, const in float dotNV, const in float roughness ) {\n\tfloat fresnel = exp2( ( -5.55473 * dotNV - 6.98316 ) * dotNV );\n\tvec3 Fr = max( vec3( 1.0 - roughness ), F0 ) - F0;\n\treturn Fr * fresnel + F0;\n}\nfloat G_GGX_Smith( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gl = dotNL + sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\tfloat gv = dotNV + sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\treturn 1.0 / ( gl * gv );\n}\nfloat G_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\tfloat gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\treturn 0.5 / max( gv + gl, EPSILON );\n}\nfloat D_GGX( const in float alpha, const in float dotNH ) {\n\tfloat a2 = pow2( alpha );\n\tfloat denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;\n\treturn RECIPROCAL_PI * a2 / pow2( denom );\n}\nvec3 BRDF_Specular_GGX( const in IncidentLight incidentLight, const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float roughness ) {\n\tfloat alpha = pow2( roughness );\n\tvec3 halfDir = normalize( incidentLight.direction + viewDir );\n\tfloat dotNL = saturate( dot( normal, incidentLight.direction ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotLH = saturate( dot( incidentLight.direction, halfDir ) );\n\tvec3 F = F_Schlick( specularColor, dotLH );\n\tfloat G = G_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\tfloat D = D_GGX( alpha, dotNH );\n\treturn F * ( G * D );\n}\nvec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {\n\tconst float LUT_SIZE = 64.0;\n\tconst float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;\n\tconst float LUT_BIAS = 0.5 / LUT_SIZE;\n\tfloat dotNV = saturate( dot( N, V ) );\n\tvec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );\n\tuv = uv * LUT_SCALE + LUT_BIAS;\n\treturn uv;\n}\nfloat LTC_ClippedSphereFormFactor( const in vec3 f ) {\n\tfloat l = length( f );\n\treturn max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );\n}\nvec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {\n\tfloat x = dot( v1, v2 );\n\tfloat y = abs( x );\n\tfloat a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;\n\tfloat b = 3.4175940 + ( 4.1616724 + y ) * y;\n\tfloat v = a / b;\n\tfloat theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;\n\treturn cross( v1, v2 ) * theta_sintheta;\n}\nvec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {\n\tvec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];\n\tvec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];\n\tvec3 lightNormal = cross( v1, v2 );\n\tif( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );\n\tvec3 T1, T2;\n\tT1 = normalize( V - N * dot( V, N ) );\n\tT2 = - cross( N, T1 );\n\tmat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );\n\tvec3 coords[ 4 ];\n\tcoords[ 0 ] = mat * ( rectCoords[ 0 ] - P );\n\tcoords[ 1 ] = mat * ( rectCoords[ 1 ] - P );\n\tcoords[ 2 ] = mat * ( rectCoords[ 2 ] - P );\n\tcoords[ 3 ] = mat * ( rectCoords[ 3 ] - P );\n\tcoords[ 0 ] = normalize( coords[ 0 ] );\n\tcoords[ 1 ] = normalize( coords[ 1 ] );\n\tcoords[ 2 ] = normalize( coords[ 2 ] );\n\tcoords[ 3 ] = normalize( coords[ 3 ] );\n\tvec3 vectorFormFactor = vec3( 0.0 );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );\n\tfloat result = LTC_ClippedSphereFormFactor( vectorFormFactor );\n\treturn vec3( result );\n}\nvec3 BRDF_Specular_GGX_Environment( const in vec3 viewDir, const in vec3 normal, const in vec3 specularColor, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tvec2 brdf = integrateSpecularBRDF( dotNV, roughness );\n\treturn specularColor * brdf.x + brdf.y;\n}\nvoid BRDF_Specular_Multiscattering_Environment( const in GeometricContext geometry, const in vec3 specularColor, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\n\tvec3 F = F_Schlick_RoughnessDependent( specularColor, dotNV, roughness );\n\tvec2 brdf = integrateSpecularBRDF( dotNV, roughness );\n\tvec3 FssEss = F * brdf.x + brdf.y;\n\tfloat Ess = brdf.x + brdf.y;\n\tfloat Ems = 1.0 - Ess;\n\tvec3 Favg = specularColor + ( 1.0 - specularColor ) * 0.047619;\tvec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n\tsingleScatter += FssEss;\n\tmultiScatter += Fms * Ems;\n}\nfloat G_BlinnPhong_Implicit( ) {\n\treturn 0.25;\n}\nfloat D_BlinnPhong( const in float shininess, const in float dotNH ) {\n\treturn RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );\n}\nvec3 BRDF_Specular_BlinnPhong( const in IncidentLight incidentLight, const in GeometricContext geometry, const in vec3 specularColor, const in float shininess ) {\n\tvec3 halfDir = normalize( incidentLight.direction + geometry.viewDir );\n\tfloat dotNH = saturate( dot( geometry.normal, halfDir ) );\n\tfloat dotLH = saturate( dot( incidentLight.direction, halfDir ) );\n\tvec3 F = F_Schlick( specularColor, dotLH );\n\tfloat G = G_BlinnPhong_Implicit( );\n\tfloat D = D_BlinnPhong( shininess, dotNH );\n\treturn F * ( G * D );\n}\nfloat GGXRoughnessToBlinnExponent( const in float ggxRoughness ) {\n\treturn ( 2.0 / pow2( ggxRoughness + 0.0001 ) - 2.0 );\n}\nfloat BlinnExponentToGGXRoughness( const in float blinnExponent ) {\n\treturn sqrt( 2.0 / ( blinnExponent + 2.0 ) );\n}\n#if defined( USE_SHEEN )\nfloat D_Charlie(float roughness, float NoH) {\n\tfloat invAlpha = 1.0 / roughness;\n\tfloat cos2h = NoH * NoH;\n\tfloat sin2h = max(1.0 - cos2h, 0.0078125);\treturn (2.0 + invAlpha) * pow(sin2h, invAlpha * 0.5) / (2.0 * PI);\n}\nfloat V_Neubelt(float NoV, float NoL) {\n\treturn saturate(1.0 / (4.0 * (NoL + NoV - NoL * NoV)));\n}\nvec3 BRDF_Specular_Sheen( const in float roughness, const in vec3 L, const in GeometricContext geometry, vec3 specularColor ) {\n\tvec3 N = geometry.normal;\n\tvec3 V = geometry.viewDir;\n\tvec3 H = normalize( V + L );\n\tfloat dotNH = saturate( dot( N, H ) );\n\treturn specularColor * D_Charlie( roughness, dotNH ) * V_Neubelt( dot(N, V), dot(N, L) );\n}\n#endif`, VI = `#ifdef USE_BUMPMAP\n\tuniform sampler2D bumpMap;\n\tuniform float bumpScale;\n\tvec2 dHdxy_fwd() {\n\t\tvec2 dSTdx = dFdx( vUv );\n\t\tvec2 dSTdy = dFdy( vUv );\n\t\tfloat Hll = bumpScale * texture2D( bumpMap, vUv ).x;\n\t\tfloat dBx = bumpScale * texture2D( bumpMap, vUv + dSTdx ).x - Hll;\n\t\tfloat dBy = bumpScale * texture2D( bumpMap, vUv + dSTdy ).x - Hll;\n\t\treturn vec2( dBx, dBy );\n\t}\n\tvec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy, float faceDirection ) {\n\t\tvec3 vSigmaX = vec3( dFdx( surf_pos.x ), dFdx( surf_pos.y ), dFdx( surf_pos.z ) );\n\t\tvec3 vSigmaY = vec3( dFdy( surf_pos.x ), dFdy( surf_pos.y ), dFdy( surf_pos.z ) );\n\t\tvec3 vN = surf_norm;\n\t\tvec3 R1 = cross( vSigmaY, vN );\n\t\tvec3 R2 = cross( vN, vSigmaX );\n\t\tfloat fDet = dot( vSigmaX, R1 ) * faceDirection;\n\t\tvec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 );\n\t\treturn normalize( abs( fDet ) * surf_norm - vGrad );\n\t}\n#endif`, kI = `#if NUM_CLIPPING_PLANES > 0\n\tvec4 plane;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\tplane = clippingPlanes[ i ];\n\t\tif ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;\n\t}\n\t#pragma unroll_loop_end\n\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\tbool clipped = true;\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tclipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\tif ( clipped ) discard;\n\t#endif\n#endif`, GI = `#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif`, HI = `#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n#endif`, WI = `#if NUM_CLIPPING_PLANES > 0\n\tvClipPosition = - mvPosition.xyz;\n#endif`, jI = `#if defined( USE_COLOR_ALPHA )\n\tdiffuseColor *= vColor;\n#elif defined( USE_COLOR )\n\tdiffuseColor.rgb *= vColor;\n#endif`, $I = `#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR )\n\tvarying vec3 vColor;\n#endif`, ZI = `#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvarying vec3 vColor;\n#endif`, XI = `#if defined( USE_COLOR_ALPHA )\n\tvColor = vec4( 1.0 );\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvColor = vec3( 1.0 );\n#endif\n#ifdef USE_COLOR\n\tvColor *= color;\n#endif\n#ifdef USE_INSTANCING_COLOR\n\tvColor.xyz *= instanceColor.xyz;\n#endif`, YI = `#define PI 3.141592653589793\n#define PI2 6.283185307179586\n#define PI_HALF 1.5707963267948966\n#define RECIPROCAL_PI 0.3183098861837907\n#define RECIPROCAL_PI2 0.15915494309189535\n#define EPSILON 1e-6\n#ifndef saturate\n#define saturate(a) clamp( a, 0.0, 1.0 )\n#endif\n#define whiteComplement(a) ( 1.0 - saturate( a ) )\nfloat pow2( const in float x ) { return x*x; }\nfloat pow3( const in float x ) { return x*x*x; }\nfloat pow4( const in float x ) { float x2 = x*x; return x2*x2; }\nfloat average( const in vec3 color ) { return dot( color, vec3( 0.3333 ) ); }\nhighp float rand( const in vec2 uv ) {\n\tconst highp float a = 12.9898, b = 78.233, c = 43758.5453;\n\thighp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );\n\treturn fract(sin(sn) * c);\n}\n#ifdef HIGH_PRECISION\n\tfloat precisionSafeLength( vec3 v ) { return length( v ); }\n#else\n\tfloat max3( vec3 v ) { return max( max( v.x, v.y ), v.z ); }\n\tfloat precisionSafeLength( vec3 v ) {\n\t\tfloat maxComponent = max3( abs( v ) );\n\t\treturn length( v / maxComponent ) * maxComponent;\n\t}\n#endif\nstruct IncidentLight {\n\tvec3 color;\n\tvec3 direction;\n\tbool visible;\n};\nstruct ReflectedLight {\n\tvec3 directDiffuse;\n\tvec3 directSpecular;\n\tvec3 indirectDiffuse;\n\tvec3 indirectSpecular;\n};\nstruct GeometricContext {\n\tvec3 position;\n\tvec3 normal;\n\tvec3 viewDir;\n#ifdef CLEARCOAT\n\tvec3 clearcoatNormal;\n#endif\n};\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\n}\nvec3 projectOnPlane(in vec3 point, in vec3 pointOnPlane, in vec3 planeNormal ) {\n\tfloat distance = dot( planeNormal, point - pointOnPlane );\n\treturn - distance * planeNormal + point;\n}\nfloat sideOfPlane( in vec3 point, in vec3 pointOnPlane, in vec3 planeNormal ) {\n\treturn sign( dot( point - pointOnPlane, planeNormal ) );\n}\nvec3 linePlaneIntersect( in vec3 pointOnLine, in vec3 lineDirection, in vec3 pointOnPlane, in vec3 planeNormal ) {\n\treturn lineDirection * ( dot( planeNormal, pointOnPlane - pointOnLine ) / dot( planeNormal, lineDirection ) ) + pointOnLine;\n}\nmat3 transposeMat3( const in mat3 m ) {\n\tmat3 tmp;\n\ttmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );\n\ttmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );\n\ttmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );\n\treturn tmp;\n}\nfloat linearToRelativeLuminance( const in vec3 color ) {\n\tvec3 weights = vec3( 0.2126, 0.7152, 0.0722 );\n\treturn dot( weights, color.rgb );\n}\nbool isPerspectiveMatrix( mat4 m ) {\n\treturn m[ 2 ][ 3 ] == - 1.0;\n}\nvec2 equirectUv( in vec3 dir ) {\n\tfloat u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;\n\tfloat v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\treturn vec2( u, v );\n}`, JI = `#ifdef ENVMAP_TYPE_CUBE_UV\n\t#define cubeUV_maxMipLevel 8.0\n\t#define cubeUV_minMipLevel 4.0\n\t#define cubeUV_maxTileSize 256.0\n\t#define cubeUV_minTileSize 16.0\n\tfloat getFace( vec3 direction ) {\n\t\tvec3 absDirection = abs( direction );\n\t\tfloat face = - 1.0;\n\t\tif ( absDirection.x > absDirection.z ) {\n\t\t\tif ( absDirection.x > absDirection.y )\n\t\t\t\tface = direction.x > 0.0 ? 0.0 : 3.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t} else {\n\t\t\tif ( absDirection.z > absDirection.y )\n\t\t\t\tface = direction.z > 0.0 ? 2.0 : 5.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t}\n\t\treturn face;\n\t}\n\tvec2 getUV( vec3 direction, float face ) {\n\t\tvec2 uv;\n\t\tif ( face == 0.0 ) {\n\t\t\tuv = vec2( direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 1.0 ) {\n\t\t\tuv = vec2( - direction.x, - direction.z ) / abs( direction.y );\n\t\t} else if ( face == 2.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.y ) / abs( direction.z );\n\t\t} else if ( face == 3.0 ) {\n\t\t\tuv = vec2( - direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 4.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.z ) / abs( direction.y );\n\t\t} else {\n\t\t\tuv = vec2( direction.x, direction.y ) / abs( direction.z );\n\t\t}\n\t\treturn 0.5 * ( uv + 1.0 );\n\t}\n\tvec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {\n\t\tfloat face = getFace( direction );\n\t\tfloat filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );\n\t\tmipInt = max( mipInt, cubeUV_minMipLevel );\n\t\tfloat faceSize = exp2( mipInt );\n\t\tfloat texelSize = 1.0 / ( 3.0 * cubeUV_maxTileSize );\n\t\tvec2 uv = getUV( direction, face ) * ( faceSize - 1.0 );\n\t\tvec2 f = fract( uv );\n\t\tuv += 0.5 - f;\n\t\tif ( face > 2.0 ) {\n\t\t\tuv.y += faceSize;\n\t\t\tface -= 3.0;\n\t\t}\n\t\tuv.x += face * faceSize;\n\t\tif ( mipInt < cubeUV_maxMipLevel ) {\n\t\t\tuv.y += 2.0 * cubeUV_maxTileSize;\n\t\t}\n\t\tuv.y += filterInt * 2.0 * cubeUV_minTileSize;\n\t\tuv.x += 3.0 * max( 0.0, cubeUV_maxTileSize - 2.0 * faceSize );\n\t\tuv *= texelSize;\n\t\tvec3 tl = envMapTexelToLinear( texture2D( envMap, uv ) ).rgb;\n\t\tuv.x += texelSize;\n\t\tvec3 tr = envMapTexelToLinear( texture2D( envMap, uv ) ).rgb;\n\t\tuv.y += texelSize;\n\t\tvec3 br = envMapTexelToLinear( texture2D( envMap, uv ) ).rgb;\n\t\tuv.x -= texelSize;\n\t\tvec3 bl = envMapTexelToLinear( texture2D( envMap, uv ) ).rgb;\n\t\tvec3 tm = mix( tl, tr, f.x );\n\t\tvec3 bm = mix( bl, br, f.x );\n\t\treturn mix( tm, bm, f.y );\n\t}\n\t#define r0 1.0\n\t#define v0 0.339\n\t#define m0 - 2.0\n\t#define r1 0.8\n\t#define v1 0.276\n\t#define m1 - 1.0\n\t#define r4 0.4\n\t#define v4 0.046\n\t#define m4 2.0\n\t#define r5 0.305\n\t#define v5 0.016\n\t#define m5 3.0\n\t#define r6 0.21\n\t#define v6 0.0038\n\t#define m6 4.0\n\tfloat roughnessToMip( float roughness ) {\n\t\tfloat mip = 0.0;\n\t\tif ( roughness >= r1 ) {\n\t\t\tmip = ( r0 - roughness ) * ( m1 - m0 ) / ( r0 - r1 ) + m0;\n\t\t} else if ( roughness >= r4 ) {\n\t\t\tmip = ( r1 - roughness ) * ( m4 - m1 ) / ( r1 - r4 ) + m1;\n\t\t} else if ( roughness >= r5 ) {\n\t\t\tmip = ( r4 - roughness ) * ( m5 - m4 ) / ( r4 - r5 ) + m4;\n\t\t} else if ( roughness >= r6 ) {\n\t\t\tmip = ( r5 - roughness ) * ( m6 - m5 ) / ( r5 - r6 ) + m5;\n\t\t} else {\n\t\t\tmip = - 2.0 * log2( 1.16 * roughness );\t\t}\n\t\treturn mip;\n\t}\n\tvec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {\n\t\tfloat mip = clamp( roughnessToMip( roughness ), m0, cubeUV_maxMipLevel );\n\t\tfloat mipF = fract( mip );\n\t\tfloat mipInt = floor( mip );\n\t\tvec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );\n\t\tif ( mipF == 0.0 ) {\n\t\t\treturn vec4( color0, 1.0 );\n\t\t} else {\n\t\t\tvec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );\n\t\t\treturn vec4( mix( color0, color1, mipF ), 1.0 );\n\t\t}\n\t}\n#endif`, KI = `vec3 transformedNormal = objectNormal;\n#ifdef USE_INSTANCING\n\tmat3 m = mat3( instanceMatrix );\n\ttransformedNormal /= vec3( dot( m[ 0 ], m[ 0 ] ), dot( m[ 1 ], m[ 1 ] ), dot( m[ 2 ], m[ 2 ] ) );\n\ttransformedNormal = m * transformedNormal;\n#endif\ntransformedNormal = normalMatrix * transformedNormal;\n#ifdef FLIP_SIDED\n\ttransformedNormal = - transformedNormal;\n#endif\n#ifdef USE_TANGENT\n\tvec3 transformedTangent = ( modelViewMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#ifdef FLIP_SIDED\n\t\ttransformedTangent = - transformedTangent;\n\t#endif\n#endif`, qI = `#ifdef USE_DISPLACEMENTMAP\n\tuniform sampler2D displacementMap;\n\tuniform float displacementScale;\n\tuniform float displacementBias;\n#endif`, QI = `#ifdef USE_DISPLACEMENTMAP\n\ttransformed += normalize( objectNormal ) * ( texture2D( displacementMap, vUv ).x * displacementScale + displacementBias );\n#endif`, eO = `#ifdef USE_EMISSIVEMAP\n\tvec4 emissiveColor = texture2D( emissiveMap, vUv );\n\temissiveColor.rgb = emissiveMapTexelToLinear( emissiveColor ).rgb;\n\ttotalEmissiveRadiance *= emissiveColor.rgb;\n#endif`, tO = `#ifdef USE_EMISSIVEMAP\n\tuniform sampler2D emissiveMap;\n#endif`, nO = \"gl_FragColor = linearToOutputTexel( gl_FragColor );\", iO = `\nvec4 LinearToLinear( in vec4 value ) {\n\treturn value;\n}\nvec4 GammaToLinear( in vec4 value, in float gammaFactor ) {\n\treturn vec4( pow( value.rgb, vec3( gammaFactor ) ), value.a );\n}\nvec4 LinearToGamma( in vec4 value, in float gammaFactor ) {\n\treturn vec4( pow( value.rgb, vec3( 1.0 / gammaFactor ) ), value.a );\n}\nvec4 sRGBToLinear( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), value.rgb * 0.0773993808, vec3( lessThanEqual( value.rgb, vec3( 0.04045 ) ) ) ), value.a );\n}\nvec4 LinearTosRGB( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );\n}\nvec4 RGBEToLinear( in vec4 value ) {\n\treturn vec4( value.rgb * exp2( value.a * 255.0 - 128.0 ), 1.0 );\n}\nvec4 LinearToRGBE( in vec4 value ) {\n\tfloat maxComponent = max( max( value.r, value.g ), value.b );\n\tfloat fExp = clamp( ceil( log2( maxComponent ) ), -128.0, 127.0 );\n\treturn vec4( value.rgb / exp2( fExp ), ( fExp + 128.0 ) / 255.0 );\n}\nvec4 RGBMToLinear( in vec4 value, in float maxRange ) {\n\treturn vec4( value.rgb * value.a * maxRange, 1.0 );\n}\nvec4 LinearToRGBM( in vec4 value, in float maxRange ) {\n\tfloat maxRGB = max( value.r, max( value.g, value.b ) );\n\tfloat M = clamp( maxRGB / maxRange, 0.0, 1.0 );\n\tM = ceil( M * 255.0 ) / 255.0;\n\treturn vec4( value.rgb / ( M * maxRange ), M );\n}\nvec4 RGBDToLinear( in vec4 value, in float maxRange ) {\n\treturn vec4( value.rgb * ( ( maxRange / 255.0 ) / value.a ), 1.0 );\n}\nvec4 LinearToRGBD( in vec4 value, in float maxRange ) {\n\tfloat maxRGB = max( value.r, max( value.g, value.b ) );\n\tfloat D = max( maxRange / maxRGB, 1.0 );\n\tD = clamp( floor( D ) / 255.0, 0.0, 1.0 );\n\treturn vec4( value.rgb * ( D * ( 255.0 / maxRange ) ), D );\n}\nconst mat3 cLogLuvM = mat3( 0.2209, 0.3390, 0.4184, 0.1138, 0.6780, 0.7319, 0.0102, 0.1130, 0.2969 );\nvec4 LinearToLogLuv( in vec4 value ) {\n\tvec3 Xp_Y_XYZp = cLogLuvM * value.rgb;\n\tXp_Y_XYZp = max( Xp_Y_XYZp, vec3( 1e-6, 1e-6, 1e-6 ) );\n\tvec4 vResult;\n\tvResult.xy = Xp_Y_XYZp.xy / Xp_Y_XYZp.z;\n\tfloat Le = 2.0 * log2(Xp_Y_XYZp.y) + 127.0;\n\tvResult.w = fract( Le );\n\tvResult.z = ( Le - ( floor( vResult.w * 255.0 ) ) / 255.0 ) / 255.0;\n\treturn vResult;\n}\nconst mat3 cLogLuvInverseM = mat3( 6.0014, -2.7008, -1.7996, -1.3320, 3.1029, -5.7721, 0.3008, -1.0882, 5.6268 );\nvec4 LogLuvToLinear( in vec4 value ) {\n\tfloat Le = value.z * 255.0 + value.w;\n\tvec3 Xp_Y_XYZp;\n\tXp_Y_XYZp.y = exp2( ( Le - 127.0 ) / 2.0 );\n\tXp_Y_XYZp.z = Xp_Y_XYZp.y / value.y;\n\tXp_Y_XYZp.x = value.x * Xp_Y_XYZp.z;\n\tvec3 vRGB = cLogLuvInverseM * Xp_Y_XYZp.rgb;\n\treturn vec4( max( vRGB, 0.0 ), 1.0 );\n}`, rO = `#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvec3 cameraToFrag;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToFrag = normalize( vWorldPosition - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( cameraToFrag, worldNormal );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );\n\t\t#endif\n\t#else\n\t\tvec3 reflectVec = vReflect;\n\t#endif\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 envColor = textureCube( envMap, vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\tvec4 envColor = textureCubeUV( envMap, reflectVec, 0.0 );\n\t#else\n\t\tvec4 envColor = vec4( 0.0 );\n\t#endif\n\t#ifndef ENVMAP_TYPE_CUBE_UV\n\t\tenvColor = envMapTexelToLinear( envColor );\n\t#endif\n\t#ifdef ENVMAP_BLENDING_MULTIPLY\n\t\toutgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_MIX )\n\t\toutgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_ADD )\n\t\toutgoingLight += envColor.xyz * specularStrength * reflectivity;\n\t#endif\n#endif`, sO = `#ifdef USE_ENVMAP\n\tuniform float envMapIntensity;\n\tuniform float flipEnvMap;\n\tuniform int maxMipLevel;\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tuniform samplerCube envMap;\n\t#else\n\t\tuniform sampler2D envMap;\n\t#endif\n\t\n#endif`, oO = `#ifdef USE_ENVMAP\n\tuniform float reflectivity;\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\tvarying vec3 vWorldPosition;\n\t\tuniform float refractionRatio;\n\t#else\n\t\tvarying vec3 vReflect;\n\t#endif\n#endif`, aO = `#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) ||defined( PHONG )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\t\n\t\tvarying vec3 vWorldPosition;\n\t#else\n\t\tvarying vec3 vReflect;\n\t\tuniform float refractionRatio;\n\t#endif\n#endif`, lO = `#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvWorldPosition = worldPosition.xyz;\n\t#else\n\t\tvec3 cameraToVertex;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToVertex = normalize( worldPosition.xyz - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvReflect = reflect( cameraToVertex, worldNormal );\n\t\t#else\n\t\t\tvReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n\t\t#endif\n\t#endif\n#endif`, cO = `#ifdef USE_FOG\n\tfogDepth = - mvPosition.z;\n#endif`, uO = `#ifdef USE_FOG\n\tvarying float fogDepth;\n#endif`, hO = `#ifdef USE_FOG\n\t#ifdef FOG_EXP2\n\t\tfloat fogFactor = 1.0 - exp( - fogDensity * fogDensity * fogDepth * fogDepth );\n\t#else\n\t\tfloat fogFactor = smoothstep( fogNear, fogFar, fogDepth );\n\t#endif\n\tgl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif`, dO = `#ifdef USE_FOG\n\tuniform vec3 fogColor;\n\tvarying float fogDepth;\n\t#ifdef FOG_EXP2\n\t\tuniform float fogDensity;\n\t#else\n\t\tuniform float fogNear;\n\t\tuniform float fogFar;\n\t#endif\n#endif`, fO = `#ifdef USE_GRADIENTMAP\n\tuniform sampler2D gradientMap;\n#endif\nvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n\tfloat dotNL = dot( normal, lightDirection );\n\tvec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n\t#ifdef USE_GRADIENTMAP\n\t\treturn texture2D( gradientMap, coord ).rgb;\n\t#else\n\t\treturn ( coord.x < 0.7 ) ? vec3( 0.7 ) : vec3( 1.0 );\n\t#endif\n}`, pO = `#ifdef USE_LIGHTMAP\n\tvec4 lightMapTexel= texture2D( lightMap, vUv2 );\n\treflectedLight.indirectDiffuse += PI * lightMapTexelToLinear( lightMapTexel ).rgb * lightMapIntensity;\n#endif`, mO = `#ifdef USE_LIGHTMAP\n\tuniform sampler2D lightMap;\n\tuniform float lightMapIntensity;\n#endif`, gO = `vec3 diffuse = vec3( 1.0 );\nGeometricContext geometry;\ngeometry.position = mvPosition.xyz;\ngeometry.normal = normalize( transformedNormal );\ngeometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( -mvPosition.xyz );\nGeometricContext backGeometry;\nbackGeometry.position = geometry.position;\nbackGeometry.normal = -geometry.normal;\nbackGeometry.viewDir = geometry.viewDir;\nvLightFront = vec3( 0.0 );\nvIndirectFront = vec3( 0.0 );\n#ifdef DOUBLE_SIDED\n\tvLightBack = vec3( 0.0 );\n\tvIndirectBack = vec3( 0.0 );\n#endif\nIncidentLight directLight;\nfloat dotNL;\nvec3 directLightColor_Diffuse;\nvIndirectFront += getAmbientLightIrradiance( ambientLightColor );\nvIndirectFront += getLightProbeIrradiance( lightProbe, geometry );\n#ifdef DOUBLE_SIDED\n\tvIndirectBack += getAmbientLightIrradiance( ambientLightColor );\n\tvIndirectBack += getLightProbeIrradiance( lightProbe, backGeometry );\n#endif\n#if NUM_POINT_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tgetPointDirectLightIrradiance( pointLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = PI * directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tgetSpotDirectLightIrradiance( spotLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = PI * directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if NUM_DIR_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tgetDirectionalDirectLightIrradiance( directionalLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = PI * directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\tvIndirectFront += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry );\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvIndirectBack += getHemisphereLightIrradiance( hemisphereLights[ i ], backGeometry );\n\t\t#endif\n\t}\n\t#pragma unroll_loop_end\n#endif`, vO = `uniform bool receiveShadow;\nuniform vec3 ambientLightColor;\nuniform vec3 lightProbe[ 9 ];\nvec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {\n\tfloat x = normal.x, y = normal.y, z = normal.z;\n\tvec3 result = shCoefficients[ 0 ] * 0.886227;\n\tresult += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;\n\tresult += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;\n\tresult += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;\n\tresult += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;\n\tresult += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;\n\tresult += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );\n\tresult += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;\n\tresult += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );\n\treturn result;\n}\nvec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in GeometricContext geometry ) {\n\tvec3 worldNormal = inverseTransformDirection( geometry.normal, viewMatrix );\n\tvec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );\n\treturn irradiance;\n}\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n\tvec3 irradiance = ambientLightColor;\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\treturn irradiance;\n}\n#if NUM_DIR_LIGHTS > 0\n\tstruct DirectionalLight {\n\t\tvec3 direction;\n\t\tvec3 color;\n\t};\n\tuniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\n\tvoid getDirectionalDirectLightIrradiance( const in DirectionalLight directionalLight, const in GeometricContext geometry, out IncidentLight directLight ) {\n\t\tdirectLight.color = directionalLight.color;\n\t\tdirectLight.direction = directionalLight.direction;\n\t\tdirectLight.visible = true;\n\t}\n#endif\n#if NUM_POINT_LIGHTS > 0\n\tstruct PointLight {\n\t\tvec3 position;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t};\n\tuniform PointLight pointLights[ NUM_POINT_LIGHTS ];\n\tvoid getPointDirectLightIrradiance( const in PointLight pointLight, const in GeometricContext geometry, out IncidentLight directLight ) {\n\t\tvec3 lVector = pointLight.position - geometry.position;\n\t\tdirectLight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tdirectLight.color = pointLight.color;\n\t\tdirectLight.color *= punctualLightIntensityToIrradianceFactor( lightDistance, pointLight.distance, pointLight.decay );\n\t\tdirectLight.visible = ( directLight.color != vec3( 0.0 ) );\n\t}\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\tstruct SpotLight {\n\t\tvec3 position;\n\t\tvec3 direction;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t\tfloat coneCos;\n\t\tfloat penumbraCos;\n\t};\n\tuniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\n\tvoid getSpotDirectLightIrradiance( const in SpotLight spotLight, const in GeometricContext geometry, out IncidentLight directLight ) {\n\t\tvec3 lVector = spotLight.position - geometry.position;\n\t\tdirectLight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tfloat angleCos = dot( directLight.direction, spotLight.direction );\n\t\tif ( angleCos > spotLight.coneCos ) {\n\t\t\tfloat spotEffect = smoothstep( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n\t\t\tdirectLight.color = spotLight.color;\n\t\t\tdirectLight.color *= spotEffect * punctualLightIntensityToIrradianceFactor( lightDistance, spotLight.distance, spotLight.decay );\n\t\t\tdirectLight.visible = true;\n\t\t} else {\n\t\t\tdirectLight.color = vec3( 0.0 );\n\t\t\tdirectLight.visible = false;\n\t\t}\n\t}\n#endif\n#if NUM_RECT_AREA_LIGHTS > 0\n\tstruct RectAreaLight {\n\t\tvec3 color;\n\t\tvec3 position;\n\t\tvec3 halfWidth;\n\t\tvec3 halfHeight;\n\t};\n\tuniform sampler2D ltc_1;\tuniform sampler2D ltc_2;\n\tuniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\tstruct HemisphereLight {\n\t\tvec3 direction;\n\t\tvec3 skyColor;\n\t\tvec3 groundColor;\n\t};\n\tuniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];\n\tvec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in GeometricContext geometry ) {\n\t\tfloat dotNL = dot( geometry.normal, hemiLight.direction );\n\t\tfloat hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n\t\tvec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n\t\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\t\tirradiance *= PI;\n\t\t#endif\n\t\treturn irradiance;\n\t}\n#endif`, yO = `#if defined( USE_ENVMAP )\n\t#ifdef ENVMAP_MODE_REFRACTION\n\t\tuniform float refractionRatio;\n\t#endif\n\tvec3 getLightProbeIndirectIrradiance( const in GeometricContext geometry, const in int maxMIPLevel ) {\n\t\tvec3 worldNormal = inverseTransformDirection( geometry.normal, viewMatrix );\n\t\t#ifdef ENVMAP_TYPE_CUBE\n\t\t\tvec3 queryVec = vec3( flipEnvMap * worldNormal.x, worldNormal.yz );\n\t\t\t#ifdef TEXTURE_LOD_EXT\n\t\t\t\tvec4 envMapColor = textureCubeLodEXT( envMap, queryVec, float( maxMIPLevel ) );\n\t\t\t#else\n\t\t\t\tvec4 envMapColor = textureCube( envMap, queryVec, float( maxMIPLevel ) );\n\t\t\t#endif\n\t\t\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\n\t\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, worldNormal, 1.0 );\n\t\t#else\n\t\t\tvec4 envMapColor = vec4( 0.0 );\n\t\t#endif\n\t\treturn PI * envMapColor.rgb * envMapIntensity;\n\t}\n\tfloat getSpecularMIPLevel( const in float roughness, const in int maxMIPLevel ) {\n\t\tfloat maxMIPLevelScalar = float( maxMIPLevel );\n\t\tfloat sigma = PI * roughness * roughness / ( 1.0 + roughness );\n\t\tfloat desiredMIPLevel = maxMIPLevelScalar + log2( sigma );\n\t\treturn clamp( desiredMIPLevel, 0.0, maxMIPLevelScalar );\n\t}\n\tvec3 getLightProbeIndirectRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness, const in int maxMIPLevel ) {\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( -viewDir, normal );\n\t\t\treflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( -viewDir, normal, refractionRatio );\n\t\t#endif\n\t\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n\t\tfloat specularMIPLevel = getSpecularMIPLevel( roughness, maxMIPLevel );\n\t\t#ifdef ENVMAP_TYPE_CUBE\n\t\t\tvec3 queryReflectVec = vec3( flipEnvMap * reflectVec.x, reflectVec.yz );\n\t\t\t#ifdef TEXTURE_LOD_EXT\n\t\t\t\tvec4 envMapColor = textureCubeLodEXT( envMap, queryReflectVec, specularMIPLevel );\n\t\t\t#else\n\t\t\t\tvec4 envMapColor = textureCube( envMap, queryReflectVec, specularMIPLevel );\n\t\t\t#endif\n\t\t\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\n\t\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, reflectVec, roughness );\n\t\t#endif\n\t\treturn envMapColor.rgb * envMapIntensity;\n\t}\n#endif`, bO = `ToonMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;`, xO = `varying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\nstruct ToonMaterial {\n\tvec3 diffuseColor;\n};\nvoid RE_Direct_Toon( const in IncidentLight directLight, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\tvec3 irradiance = getGradientIrradiance( geometry.normal, directLight.direction ) * directLight.color;\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\treflectedLight.directDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Toon\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Toon\n#define Material_LightProbeLOD( material )\t(0)`, wO = `BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;`, MO = `varying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\nstruct BlinnPhongMaterial {\n\tvec3 diffuseColor;\n\tvec3 specularColor;\n\tfloat specularShininess;\n\tfloat specularStrength;\n};\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\treflectedLight.directDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n\treflectedLight.directSpecular += irradiance * BRDF_Specular_BlinnPhong( directLight, geometry, material.specularColor, material.specularShininess ) * material.specularStrength;\n}\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_BlinnPhong\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_BlinnPhong\n#define Material_LightProbeLOD( material )\t(0)`, _O = `PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nvec3 dxy = max( abs( dFdx( geometryNormal ) ), abs( dFdy( geometryNormal ) ) );\nfloat geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );\nmaterial.specularRoughness = max( roughnessFactor, 0.0525 );material.specularRoughness += geometryRoughness;\nmaterial.specularRoughness = min( material.specularRoughness, 1.0 );\n#ifdef REFLECTIVITY\n\tmaterial.specularColor = mix( vec3( MAXIMUM_SPECULAR_COEFFICIENT * pow2( reflectivity ) ), diffuseColor.rgb, metalnessFactor );\n#else\n\tmaterial.specularColor = mix( vec3( DEFAULT_SPECULAR_COEFFICIENT ), diffuseColor.rgb, metalnessFactor );\n#endif\n#ifdef CLEARCOAT\n\tmaterial.clearcoat = clearcoat;\n\tmaterial.clearcoatRoughness = clearcoatRoughness;\n\t#ifdef USE_CLEARCOATMAP\n\t\tmaterial.clearcoat *= texture2D( clearcoatMap, vUv ).x;\n\t#endif\n\t#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\t\tmaterial.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vUv ).y;\n\t#endif\n\tmaterial.clearcoat = saturate( material.clearcoat );\tmaterial.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );\n\tmaterial.clearcoatRoughness += geometryRoughness;\n\tmaterial.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );\n#endif\n#ifdef USE_SHEEN\n\tmaterial.sheenColor = sheen;\n#endif`, SO = `struct PhysicalMaterial {\n\tvec3 diffuseColor;\n\tfloat specularRoughness;\n\tvec3 specularColor;\n#ifdef CLEARCOAT\n\tfloat clearcoat;\n\tfloat clearcoatRoughness;\n#endif\n#ifdef USE_SHEEN\n\tvec3 sheenColor;\n#endif\n};\n#define MAXIMUM_SPECULAR_COEFFICIENT 0.16\n#define DEFAULT_SPECULAR_COEFFICIENT 0.04\nfloat clearcoatDHRApprox( const in float roughness, const in float dotNL ) {\n\treturn DEFAULT_SPECULAR_COEFFICIENT + ( 1.0 - DEFAULT_SPECULAR_COEFFICIENT ) * ( pow( 1.0 - dotNL, 5.0 ) * pow( 1.0 - roughness, 2.0 ) );\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n\tvoid RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\t\tvec3 normal = geometry.normal;\n\t\tvec3 viewDir = geometry.viewDir;\n\t\tvec3 position = geometry.position;\n\t\tvec3 lightPos = rectAreaLight.position;\n\t\tvec3 halfWidth = rectAreaLight.halfWidth;\n\t\tvec3 halfHeight = rectAreaLight.halfHeight;\n\t\tvec3 lightColor = rectAreaLight.color;\n\t\tfloat roughness = material.specularRoughness;\n\t\tvec3 rectCoords[ 4 ];\n\t\trectCoords[ 0 ] = lightPos + halfWidth - halfHeight;\t\trectCoords[ 1 ] = lightPos - halfWidth - halfHeight;\n\t\trectCoords[ 2 ] = lightPos - halfWidth + halfHeight;\n\t\trectCoords[ 3 ] = lightPos + halfWidth + halfHeight;\n\t\tvec2 uv = LTC_Uv( normal, viewDir, roughness );\n\t\tvec4 t1 = texture2D( ltc_1, uv );\n\t\tvec4 t2 = texture2D( ltc_2, uv );\n\t\tmat3 mInv = mat3(\n\t\t\tvec3( t1.x, 0, t1.y ),\n\t\t\tvec3( 0, 1, 0 ),\n\t\t\tvec3( t1.z, 0, t1.w )\n\t\t);\n\t\tvec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\n\t\treflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n\t\treflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );\n\t}\n#endif\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\t#ifdef CLEARCOAT\n\t\tfloat ccDotNL = saturate( dot( geometry.clearcoatNormal, directLight.direction ) );\n\t\tvec3 ccIrradiance = ccDotNL * directLight.color;\n\t\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\t\tccIrradiance *= PI;\n\t\t#endif\n\t\tfloat clearcoatDHR = material.clearcoat * clearcoatDHRApprox( material.clearcoatRoughness, ccDotNL );\n\t\treflectedLight.directSpecular += ccIrradiance * material.clearcoat * BRDF_Specular_GGX( directLight, geometry.viewDir, geometry.clearcoatNormal, vec3( DEFAULT_SPECULAR_COEFFICIENT ), material.clearcoatRoughness );\n\t#else\n\t\tfloat clearcoatDHR = 0.0;\n\t#endif\n\t#ifdef USE_SHEEN\n\t\treflectedLight.directSpecular += ( 1.0 - clearcoatDHR ) * irradiance * BRDF_Specular_Sheen(\n\t\t\tmaterial.specularRoughness,\n\t\t\tdirectLight.direction,\n\t\t\tgeometry,\n\t\t\tmaterial.sheenColor\n\t\t);\n\t#else\n\t\treflectedLight.directSpecular += ( 1.0 - clearcoatDHR ) * irradiance * BRDF_Specular_GGX( directLight, geometry.viewDir, geometry.normal, material.specularColor, material.specularRoughness);\n\t#endif\n\treflectedLight.directDiffuse += ( 1.0 - clearcoatDHR ) * irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {\n\t#ifdef CLEARCOAT\n\t\tfloat ccDotNV = saturate( dot( geometry.clearcoatNormal, geometry.viewDir ) );\n\t\treflectedLight.indirectSpecular += clearcoatRadiance * material.clearcoat * BRDF_Specular_GGX_Environment( geometry.viewDir, geometry.clearcoatNormal, vec3( DEFAULT_SPECULAR_COEFFICIENT ), material.clearcoatRoughness );\n\t\tfloat ccDotNL = ccDotNV;\n\t\tfloat clearcoatDHR = material.clearcoat * clearcoatDHRApprox( material.clearcoatRoughness, ccDotNL );\n\t#else\n\t\tfloat clearcoatDHR = 0.0;\n\t#endif\n\tfloat clearcoatInv = 1.0 - clearcoatDHR;\n\tvec3 singleScattering = vec3( 0.0 );\n\tvec3 multiScattering = vec3( 0.0 );\n\tvec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;\n\tBRDF_Specular_Multiscattering_Environment( geometry, material.specularColor, material.specularRoughness, singleScattering, multiScattering );\n\tvec3 diffuse = material.diffuseColor * ( 1.0 - ( singleScattering + multiScattering ) );\n\treflectedLight.indirectSpecular += clearcoatInv * radiance * singleScattering;\n\treflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;\n\treflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;\n}\n#define RE_Direct\t\t\t\tRE_Direct_Physical\n#define RE_Direct_RectArea\t\tRE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular\t\tRE_IndirectSpecular_Physical\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n\treturn saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\n}`, TO = `\nGeometricContext geometry;\ngeometry.position = - vViewPosition;\ngeometry.normal = normal;\ngeometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );\n#ifdef CLEARCOAT\n\tgeometry.clearcoatNormal = clearcoatNormal;\n#endif\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n\tPointLight pointLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tpointLight = pointLights[ i ];\n\t\tgetPointDirectLightIrradiance( pointLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )\n\t\tpointLightShadow = pointLightShadows[ i ];\n\t\tdirectLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n\tSpotLight spotLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tspotLight = spotLights[ i ];\n\t\tgetSpotDirectLightIrradiance( spotLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\tspotLightShadow = spotLightShadows[ i ];\n\t\tdirectLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n\tDirectionalLight directionalLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tdirectionalLight = directionalLights[ i ];\n\t\tgetDirectionalDirectLightIrradiance( directionalLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )\n\t\tdirectionalLightShadow = directionalLightShadows[ i ];\n\t\tdirectLight.color *= all( bvec2( directLight.visible, receiveShadow ) ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\n\tRectAreaLight rectAreaLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\n\t\trectAreaLight = rectAreaLights[ i ];\n\t\tRE_Direct_RectArea( rectAreaLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if defined( RE_IndirectDiffuse )\n\tvec3 iblIrradiance = vec3( 0.0 );\n\tvec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n\tirradiance += getLightProbeIrradiance( lightProbe, geometry );\n\t#if ( NUM_HEMI_LIGHTS > 0 )\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\t\tirradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry );\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if defined( RE_IndirectSpecular )\n\tvec3 radiance = vec3( 0.0 );\n\tvec3 clearcoatRadiance = vec3( 0.0 );\n#endif`, EO = `#if defined( RE_IndirectDiffuse )\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel= texture2D( lightMap, vUv2 );\n\t\tvec3 lightMapIrradiance = lightMapTexelToLinear( lightMapTexel ).rgb * lightMapIntensity;\n\t\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\t\tlightMapIrradiance *= PI;\n\t\t#endif\n\t\tirradiance += lightMapIrradiance;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )\n\t\tiblIrradiance += getLightProbeIndirectIrradiance( geometry, maxMipLevel );\n\t#endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\tradiance += getLightProbeIndirectRadiance( geometry.viewDir, geometry.normal, material.specularRoughness, maxMipLevel );\n\t#ifdef CLEARCOAT\n\t\tclearcoatRadiance += getLightProbeIndirectRadiance( geometry.viewDir, geometry.clearcoatNormal, material.clearcoatRoughness, maxMipLevel );\n\t#endif\n#endif`, AO = `#if defined( RE_IndirectDiffuse )\n\tRE_IndirectDiffuse( irradiance, geometry, material, reflectedLight );\n#endif\n#if defined( RE_IndirectSpecular )\n\tRE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometry, material, reflectedLight );\n#endif`, CO = `#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tgl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif`, LO = `#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tuniform float logDepthBufFC;\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif`, RO = `#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvarying float vFragDepth;\n\t\tvarying float vIsPerspective;\n\t#else\n\t\tuniform float logDepthBufFC;\n\t#endif\n#endif`, PO = `#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvFragDepth = 1.0 + gl_Position.w;\n\t\tvIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );\n\t#else\n\t\tif ( isPerspectiveMatrix( projectionMatrix ) ) {\n\t\t\tgl_Position.z = log2( max( EPSILON, gl_Position.w + 1.0 ) ) * logDepthBufFC - 1.0;\n\t\t\tgl_Position.z *= gl_Position.w;\n\t\t}\n\t#endif\n#endif`, IO = `#ifdef USE_MAP\n\tvec4 texelColor = texture2D( map, vUv );\n\ttexelColor = mapTexelToLinear( texelColor );\n\tdiffuseColor *= texelColor;\n#endif`, OO = `#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif`, DO = `#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\tvec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\n#endif\n#ifdef USE_MAP\n\tvec4 mapTexel = texture2D( map, uv );\n\tdiffuseColor *= mapTexelToLinear( mapTexel );\n#endif\n#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, uv ).g;\n#endif`, NO = `#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\tuniform mat3 uvTransform;\n#endif\n#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif`, BO = `float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n\tvec4 texelMetalness = texture2D( metalnessMap, vUv );\n\tmetalnessFactor *= texelMetalness.b;\n#endif`, FO = `#ifdef USE_METALNESSMAP\n\tuniform sampler2D metalnessMap;\n#endif`, zO = `#ifdef USE_MORPHNORMALS\n\tobjectNormal *= morphTargetBaseInfluence;\n\tobjectNormal += morphNormal0 * morphTargetInfluences[ 0 ];\n\tobjectNormal += morphNormal1 * morphTargetInfluences[ 1 ];\n\tobjectNormal += morphNormal2 * morphTargetInfluences[ 2 ];\n\tobjectNormal += morphNormal3 * morphTargetInfluences[ 3 ];\n#endif`, UO = `#ifdef USE_MORPHTARGETS\n\tuniform float morphTargetBaseInfluence;\n\t#ifndef USE_MORPHNORMALS\n\t\tuniform float morphTargetInfluences[ 8 ];\n\t#else\n\t\tuniform float morphTargetInfluences[ 4 ];\n\t#endif\n#endif`, VO = `#ifdef USE_MORPHTARGETS\n\ttransformed *= morphTargetBaseInfluence;\n\ttransformed += morphTarget0 * morphTargetInfluences[ 0 ];\n\ttransformed += morphTarget1 * morphTargetInfluences[ 1 ];\n\ttransformed += morphTarget2 * morphTargetInfluences[ 2 ];\n\ttransformed += morphTarget3 * morphTargetInfluences[ 3 ];\n\t#ifndef USE_MORPHNORMALS\n\t\ttransformed += morphTarget4 * morphTargetInfluences[ 4 ];\n\t\ttransformed += morphTarget5 * morphTargetInfluences[ 5 ];\n\t\ttransformed += morphTarget6 * morphTargetInfluences[ 6 ];\n\t\ttransformed += morphTarget7 * morphTargetInfluences[ 7 ];\n\t#endif\n#endif`, kO = `float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;\n#ifdef FLAT_SHADED\n\tvec3 fdx = vec3( dFdx( vViewPosition.x ), dFdx( vViewPosition.y ), dFdx( vViewPosition.z ) );\n\tvec3 fdy = vec3( dFdy( vViewPosition.x ), dFdy( vViewPosition.y ), dFdy( vViewPosition.z ) );\n\tvec3 normal = normalize( cross( fdx, fdy ) );\n#else\n\tvec3 normal = normalize( vNormal );\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * faceDirection;\n\t#endif\n\t#ifdef USE_TANGENT\n\t\tvec3 tangent = normalize( vTangent );\n\t\tvec3 bitangent = normalize( vBitangent );\n\t\t#ifdef DOUBLE_SIDED\n\t\t\ttangent = tangent * faceDirection;\n\t\t\tbitangent = bitangent * faceDirection;\n\t\t#endif\n\t\t#if defined( TANGENTSPACE_NORMALMAP ) || defined( USE_CLEARCOAT_NORMALMAP )\n\t\t\tmat3 vTBN = mat3( tangent, bitangent, normal );\n\t\t#endif\n\t#endif\n#endif\nvec3 geometryNormal = normal;`, GO = `#ifdef OBJECTSPACE_NORMALMAP\n\tnormal = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\n\t#ifdef FLIP_SIDED\n\t\tnormal = - normal;\n\t#endif\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * faceDirection;\n\t#endif\n\tnormal = normalize( normalMatrix * normal );\n#elif defined( TANGENTSPACE_NORMALMAP )\n\tvec3 mapN = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\n\tmapN.xy *= normalScale;\n\t#ifdef USE_TANGENT\n\t\tnormal = normalize( vTBN * mapN );\n\t#else\n\t\tnormal = perturbNormal2Arb( -vViewPosition, normal, mapN, faceDirection );\n\t#endif\n#elif defined( USE_BUMPMAP )\n\tnormal = perturbNormalArb( -vViewPosition, normal, dHdxy_fwd(), faceDirection );\n#endif`, HO = `#ifdef USE_NORMALMAP\n\tuniform sampler2D normalMap;\n\tuniform vec2 normalScale;\n#endif\n#ifdef OBJECTSPACE_NORMALMAP\n\tuniform mat3 normalMatrix;\n#endif\n#if ! defined ( USE_TANGENT ) && ( defined ( TANGENTSPACE_NORMALMAP ) || defined ( USE_CLEARCOAT_NORMALMAP ) )\n\tvec3 perturbNormal2Arb( vec3 eye_pos, vec3 surf_norm, vec3 mapN, float faceDirection ) {\n\t\tvec3 q0 = vec3( dFdx( eye_pos.x ), dFdx( eye_pos.y ), dFdx( eye_pos.z ) );\n\t\tvec3 q1 = vec3( dFdy( eye_pos.x ), dFdy( eye_pos.y ), dFdy( eye_pos.z ) );\n\t\tvec2 st0 = dFdx( vUv.st );\n\t\tvec2 st1 = dFdy( vUv.st );\n\t\tvec3 N = surf_norm;\n\t\tvec3 q1perp = cross( q1, N );\n\t\tvec3 q0perp = cross( N, q0 );\n\t\tvec3 T = q1perp * st0.x + q0perp * st1.x;\n\t\tvec3 B = q1perp * st0.y + q0perp * st1.y;\n\t\tfloat det = max( dot( T, T ), dot( B, B ) );\n\t\tfloat scale = ( det == 0.0 ) ? 0.0 : faceDirection * inversesqrt( det );\n\t\treturn normalize( T * ( mapN.x * scale ) + B * ( mapN.y * scale ) + N * mapN.z );\n\t}\n#endif`, WO = `#ifdef CLEARCOAT\n\tvec3 clearcoatNormal = geometryNormal;\n#endif`, jO = `#ifdef USE_CLEARCOAT_NORMALMAP\n\tvec3 clearcoatMapN = texture2D( clearcoatNormalMap, vUv ).xyz * 2.0 - 1.0;\n\tclearcoatMapN.xy *= clearcoatNormalScale;\n\t#ifdef USE_TANGENT\n\t\tclearcoatNormal = normalize( vTBN * clearcoatMapN );\n\t#else\n\t\tclearcoatNormal = perturbNormal2Arb( - vViewPosition, clearcoatNormal, clearcoatMapN, faceDirection );\n\t#endif\n#endif`, $O = `#ifdef USE_CLEARCOATMAP\n\tuniform sampler2D clearcoatMap;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform sampler2D clearcoatRoughnessMap;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform sampler2D clearcoatNormalMap;\n\tuniform vec2 clearcoatNormalScale;\n#endif`, ZO = `vec3 packNormalToRGB( const in vec3 normal ) {\n\treturn normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n\treturn 2.0 * rgb.xyz - 1.0;\n}\nconst float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;\nconst vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. );\nconst vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );\nconst float ShiftRight8 = 1. / 256.;\nvec4 packDepthToRGBA( const in float v ) {\n\tvec4 r = vec4( fract( v * PackFactors ), v );\n\tr.yzw -= r.xyz * ShiftRight8;\treturn r * PackUpscale;\n}\nfloat unpackRGBAToDepth( const in vec4 v ) {\n\treturn dot( v, UnpackFactors );\n}\nvec4 pack2HalfToRGBA( vec2 v ) {\n\tvec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ));\n\treturn vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w);\n}\nvec2 unpackRGBATo2Half( vec4 v ) {\n\treturn vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );\n}\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float linearClipZ, const in float near, const in float far ) {\n\treturn linearClipZ * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn (( near + viewZ ) * far ) / (( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float invClipZ, const in float near, const in float far ) {\n\treturn ( near * far ) / ( ( far - near ) * invClipZ - far );\n}`, XO = `#ifdef PREMULTIPLIED_ALPHA\n\tgl_FragColor.rgb *= gl_FragColor.a;\n#endif`, YO = `vec4 mvPosition = vec4( transformed, 1.0 );\n#ifdef USE_INSTANCING\n\tmvPosition = instanceMatrix * mvPosition;\n#endif\nmvPosition = modelViewMatrix * mvPosition;\ngl_Position = projectionMatrix * mvPosition;`, JO = `#ifdef DITHERING\n\tgl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif`, KO = `#ifdef DITHERING\n\tvec3 dithering( vec3 color ) {\n\t\tfloat grid_position = rand( gl_FragCoord.xy );\n\t\tvec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\n\t\tdither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\n\t\treturn color + dither_shift_RGB;\n\t}\n#endif`, qO = `float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n\tvec4 texelRoughness = texture2D( roughnessMap, vUv );\n\troughnessFactor *= texelRoughness.g;\n#endif`, QO = `#ifdef USE_ROUGHNESSMAP\n\tuniform sampler2D roughnessMap;\n#endif`, e3 = `#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n\tfloat texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n\t\treturn step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n\t}\n\tvec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {\n\t\treturn unpackRGBATo2Half( texture2D( shadow, uv ) );\n\t}\n\tfloat VSMShadow (sampler2D shadow, vec2 uv, float compare ){\n\t\tfloat occlusion = 1.0;\n\t\tvec2 distribution = texture2DDistribution( shadow, uv );\n\t\tfloat hard_shadow = step( compare , distribution.x );\n\t\tif (hard_shadow != 1.0 ) {\n\t\t\tfloat distance = compare - distribution.x ;\n\t\t\tfloat variance = max( 0.00000, distribution.y * distribution.y );\n\t\t\tfloat softness_probability = variance / (variance + distance * distance );\t\t\tsoftness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 );\t\t\tocclusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );\n\t\t}\n\t\treturn occlusion;\n\t}\n\tfloat getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n\t\tfloat shadow = 1.0;\n\t\tshadowCoord.xyz /= shadowCoord.w;\n\t\tshadowCoord.z += shadowBias;\n\t\tbvec4 inFrustumVec = bvec4 ( shadowCoord.x >= 0.0, shadowCoord.x <= 1.0, shadowCoord.y >= 0.0, shadowCoord.y <= 1.0 );\n\t\tbool inFrustum = all( inFrustumVec );\n\t\tbvec2 frustumTestVec = bvec2( inFrustum, shadowCoord.z <= 1.0 );\n\t\tbool frustumTest = all( frustumTestVec );\n\t\tif ( frustumTest ) {\n\t\t#if defined( SHADOWMAP_TYPE_PCF )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx0 = - texelSize.x * shadowRadius;\n\t\t\tfloat dy0 = - texelSize.y * shadowRadius;\n\t\t\tfloat dx1 = + texelSize.x * shadowRadius;\n\t\t\tfloat dy1 = + texelSize.y * shadowRadius;\n\t\t\tfloat dx2 = dx0 / 2.0;\n\t\t\tfloat dy2 = dy0 / 2.0;\n\t\t\tfloat dx3 = dx1 / 2.0;\n\t\t\tfloat dy3 = dy1 / 2.0;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n\t\t\t) * ( 1.0 / 17.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx = texelSize.x;\n\t\t\tfloat dy = texelSize.y;\n\t\t\tvec2 uv = shadowCoord.xy;\n\t\t\tvec2 f = fract( uv * shadowMapSize + 0.5 );\n\t\t\tuv -= f * texelSize;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, uv, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ), \n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ), \n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ), \n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t f.y )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_VSM )\n\t\t\tshadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#else\n\t\t\tshadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#endif\n\t\t}\n\t\treturn shadow;\n\t}\n\tvec2 cubeToUV( vec3 v, float texelSizeY ) {\n\t\tvec3 absV = abs( v );\n\t\tfloat scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n\t\tabsV *= scaleToCube;\n\t\tv *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n\t\tvec2 planar = v.xy;\n\t\tfloat almostATexel = 1.5 * texelSizeY;\n\t\tfloat almostOne = 1.0 - almostATexel;\n\t\tif ( absV.z >= almostOne ) {\n\t\t\tif ( v.z > 0.0 )\n\t\t\t\tplanar.x = 4.0 - v.x;\n\t\t} else if ( absV.x >= almostOne ) {\n\t\t\tfloat signX = sign( v.x );\n\t\t\tplanar.x = v.z * signX + 2.0 * signX;\n\t\t} else if ( absV.y >= almostOne ) {\n\t\t\tfloat signY = sign( v.y );\n\t\t\tplanar.x = v.x + 2.0 * signY + 2.0;\n\t\t\tplanar.y = v.z * signY - 2.0;\n\t\t}\n\t\treturn vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n\t}\n\tfloat getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n\t\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n\t\tvec3 lightToPosition = shadowCoord.xyz;\n\t\tfloat dp = ( length( lightToPosition ) - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );\t\tdp += shadowBias;\n\t\tvec3 bd3D = normalize( lightToPosition );\n\t\t#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )\n\t\t\tvec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n\t\t\treturn (\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#else\n\t\t\treturn texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n\t\t#endif\n\t}\n#endif`, t3 = `#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 spotShadowMatrix[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n#endif`, n3 = `#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0 || NUM_SPOT_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0\n\t\tvec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\tvec4 shadowWorldPosition;\n\t#endif\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );\n\t\tvDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias, 0 );\n\t\tvSpotShadowCoord[ i ] = spotShadowMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );\n\t\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n#endif`, i3 = `float getShadowMask() {\n\tfloat shadow = 1.0;\n\t#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tdirectionalLight = directionalLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tspotLight = spotLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tpointLight = pointLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#endif\n\treturn shadow;\n}`, r3 = `#ifdef USE_SKINNING\n\tmat4 boneMatX = getBoneMatrix( skinIndex.x );\n\tmat4 boneMatY = getBoneMatrix( skinIndex.y );\n\tmat4 boneMatZ = getBoneMatrix( skinIndex.z );\n\tmat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif`, s3 = `#ifdef USE_SKINNING\n\tuniform mat4 bindMatrix;\n\tuniform mat4 bindMatrixInverse;\n\t#ifdef BONE_TEXTURE\n\t\tuniform highp sampler2D boneTexture;\n\t\tuniform int boneTextureSize;\n\t\tmat4 getBoneMatrix( const in float i ) {\n\t\t\tfloat j = i * 4.0;\n\t\t\tfloat x = mod( j, float( boneTextureSize ) );\n\t\t\tfloat y = floor( j / float( boneTextureSize ) );\n\t\t\tfloat dx = 1.0 / float( boneTextureSize );\n\t\t\tfloat dy = 1.0 / float( boneTextureSize );\n\t\t\ty = dy * ( y + 0.5 );\n\t\t\tvec4 v1 = texture2D( boneTexture, vec2( dx * ( x + 0.5 ), y ) );\n\t\t\tvec4 v2 = texture2D( boneTexture, vec2( dx * ( x + 1.5 ), y ) );\n\t\t\tvec4 v3 = texture2D( boneTexture, vec2( dx * ( x + 2.5 ), y ) );\n\t\t\tvec4 v4 = texture2D( boneTexture, vec2( dx * ( x + 3.5 ), y ) );\n\t\t\tmat4 bone = mat4( v1, v2, v3, v4 );\n\t\t\treturn bone;\n\t\t}\n\t#else\n\t\tuniform mat4 boneMatrices[ MAX_BONES ];\n\t\tmat4 getBoneMatrix( const in float i ) {\n\t\t\tmat4 bone = boneMatrices[ int(i) ];\n\t\t\treturn bone;\n\t\t}\n\t#endif\n#endif`, o3 = `#ifdef USE_SKINNING\n\tvec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n\tvec4 skinned = vec4( 0.0 );\n\tskinned += boneMatX * skinVertex * skinWeight.x;\n\tskinned += boneMatY * skinVertex * skinWeight.y;\n\tskinned += boneMatZ * skinVertex * skinWeight.z;\n\tskinned += boneMatW * skinVertex * skinWeight.w;\n\ttransformed = ( bindMatrixInverse * skinned ).xyz;\n#endif`, a3 = `#ifdef USE_SKINNING\n\tmat4 skinMatrix = mat4( 0.0 );\n\tskinMatrix += skinWeight.x * boneMatX;\n\tskinMatrix += skinWeight.y * boneMatY;\n\tskinMatrix += skinWeight.z * boneMatZ;\n\tskinMatrix += skinWeight.w * boneMatW;\n\tskinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;\n\tobjectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\n\t#ifdef USE_TANGENT\n\t\tobjectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#endif\n#endif`, l3 = `float specularStrength;\n#ifdef USE_SPECULARMAP\n\tvec4 texelSpecular = texture2D( specularMap, vUv );\n\tspecularStrength = texelSpecular.r;\n#else\n\tspecularStrength = 1.0;\n#endif`, c3 = `#ifdef USE_SPECULARMAP\n\tuniform sampler2D specularMap;\n#endif`, u3 = `#if defined( TONE_MAPPING )\n\tgl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif`, h3 = `#ifndef saturate\n#define saturate(a) clamp( a, 0.0, 1.0 )\n#endif\nuniform float toneMappingExposure;\nvec3 LinearToneMapping( vec3 color ) {\n\treturn toneMappingExposure * color;\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( color / ( vec3( 1.0 ) + color ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\tcolor = max( vec3( 0.0 ), color - 0.004 );\n\treturn pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\nvec3 RRTAndODTFit( vec3 v ) {\n\tvec3 a = v * ( v + 0.0245786 ) - 0.000090537;\n\tvec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;\n\treturn a / b;\n}\nvec3 ACESFilmicToneMapping( vec3 color ) {\n\tconst mat3 ACESInputMat = mat3(\n\t\tvec3( 0.59719, 0.07600, 0.02840 ),\t\tvec3( 0.35458, 0.90834, 0.13383 ),\n\t\tvec3( 0.04823, 0.01566, 0.83777 )\n\t);\n\tconst mat3 ACESOutputMat = mat3(\n\t\tvec3( 1.60475, -0.10208, -0.00327 ),\t\tvec3( -0.53108, 1.10813, -0.07276 ),\n\t\tvec3( -0.07367, -0.00605, 1.07602 )\n\t);\n\tcolor *= toneMappingExposure / 0.6;\n\tcolor = ACESInputMat * color;\n\tcolor = RRTAndODTFit( color );\n\tcolor = ACESOutputMat * color;\n\treturn saturate( color );\n}\nvec3 CustomToneMapping( vec3 color ) { return color; }`, d3 = `#ifdef USE_TRANSMISSION\n\tfloat transmissionFactor = transmission;\n\tfloat thicknessFactor = thickness;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\ttransmissionFactor *= texture2D( transmissionMap, vUv ).r;\n\t#endif\n\t#ifdef USE_THICKNESSNMAP\n\t\tthicknessFactor *= texture2D( thicknessMap, vUv ).g;\n\t#endif\n\tvec3 pos = vWorldPosition.xyz / vWorldPosition.w;\n\tvec3 v = normalize( cameraPosition - pos );\n\tfloat ior = ( 1.0 + 0.4 * reflectivity ) / ( 1.0 - 0.4 * reflectivity );\n\tvec3 transmission = transmissionFactor * getIBLVolumeRefraction(\n\t\tnormal, v, roughnessFactor, material.diffuseColor, totalSpecular,\n\t\tpos, modelMatrix, viewMatrix, projectionMatrix, ior, thicknessFactor,\n\t\tattenuationColor, attenuationDistance );\n\ttotalDiffuse = mix( totalDiffuse, transmission, transmissionFactor );\n#endif`, f3 = `#ifdef USE_TRANSMISSION\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tuniform sampler2D transmissionMap;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tuniform sampler2D thicknessMap;\n\t#endif\n\tuniform vec2 transmissionSamplerSize;\n\tuniform sampler2D transmissionSamplerMap;\n\tuniform mat4 modelMatrix;\n\tuniform mat4 projectionMatrix;\n\tvarying vec4 vWorldPosition;\n\tvec3 getVolumeTransmissionRay(vec3 n, vec3 v, float thickness, float ior, mat4 modelMatrix) {\n\t\tvec3 refractionVector = refract(-v, normalize(n), 1.0 / ior);\n\t\tvec3 modelScale;\n\t\tmodelScale.x = length(vec3(modelMatrix[0].xyz));\n\t\tmodelScale.y = length(vec3(modelMatrix[1].xyz));\n\t\tmodelScale.z = length(vec3(modelMatrix[2].xyz));\n\t\treturn normalize(refractionVector) * thickness * modelScale;\n\t}\n\tfloat applyIorToRoughness(float roughness, float ior) {\n\t\treturn roughness * clamp(ior * 2.0 - 2.0, 0.0, 1.0);\n\t}\n\tvec3 getTransmissionSample(vec2 fragCoord, float roughness, float ior) {\n\t\tfloat framebufferLod = log2(transmissionSamplerSize.x) * applyIorToRoughness(roughness, ior);\n\t\treturn texture2DLodEXT(transmissionSamplerMap, fragCoord.xy, framebufferLod).rgb;\n\t}\n\tvec3 applyVolumeAttenuation(vec3 radiance, float transmissionDistance, vec3 attenuationColor, float attenuationDistance) {\n\t\tif (attenuationDistance == 0.0) {\n\t\t\treturn radiance;\n\t\t} else {\n\t\t\tvec3 attenuationCoefficient = -log(attenuationColor) / attenuationDistance;\n\t\t\tvec3 transmittance = exp(-attenuationCoefficient * transmissionDistance);\t\t\treturn transmittance * radiance;\n\t\t}\n\t}\n\tvec3 getIBLVolumeRefraction(vec3 n, vec3 v, float perceptualRoughness, vec3 baseColor, vec3 specularColor,\n\t\tvec3 position, mat4 modelMatrix, mat4 viewMatrix, mat4 projMatrix, float ior, float thickness,\n\t\tvec3 attenuationColor, float attenuationDistance) {\n\t\tvec3 transmissionRay = getVolumeTransmissionRay(n, v, thickness, ior, modelMatrix);\n\t\tvec3 refractedRayExit = position + transmissionRay;\n\t\tvec4 ndcPos = projMatrix * viewMatrix * vec4(refractedRayExit, 1.0);\n\t\tvec2 refractionCoords = ndcPos.xy / ndcPos.w;\n\t\trefractionCoords += 1.0;\n\t\trefractionCoords /= 2.0;\n\t\tvec3 transmittedLight = getTransmissionSample(refractionCoords, perceptualRoughness, ior);\n\t\tvec3 attenuatedColor = applyVolumeAttenuation(transmittedLight, length(transmissionRay), attenuationColor, attenuationDistance);\n\t\treturn (1.0 - specularColor) * attenuatedColor * baseColor;\n\t}\n#endif`, p3 = `#if ( defined( USE_UV ) && ! defined( UVS_VERTEX_ONLY ) )\n\tvarying vec2 vUv;\n#endif`, m3 = `#ifdef USE_UV\n\t#ifdef UVS_VERTEX_ONLY\n\t\tvec2 vUv;\n\t#else\n\t\tvarying vec2 vUv;\n\t#endif\n\tuniform mat3 uvTransform;\n#endif`, g3 = `#ifdef USE_UV\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n#endif`, v3 = `#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tvarying vec2 vUv2;\n#endif`, y3 = `#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tattribute vec2 uv2;\n\tvarying vec2 vUv2;\n\tuniform mat3 uv2Transform;\n#endif`, b3 = `#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tvUv2 = ( uv2Transform * vec3( uv2, 1 ) ).xy;\n#endif`, x3 = `#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION )\n\tvec4 worldPosition = vec4( transformed, 1.0 );\n\t#ifdef USE_INSTANCING\n\t\tworldPosition = instanceMatrix * worldPosition;\n\t#endif\n\tworldPosition = modelMatrix * worldPosition;\n#endif`, w3 = `uniform sampler2D t2D;\nvarying vec2 vUv;\nvoid main() {\n\tvec4 texColor = texture2D( t2D, vUv );\n\tgl_FragColor = mapTexelToLinear( texColor );\n\t#include \n\t#include \n}`, M3 = `varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\tgl_Position = vec4( position.xy, 1.0, 1.0 );\n}`, _3 = `#include \nuniform float opacity;\nvarying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvec3 vReflect = vWorldDirection;\n\t#include \n\tgl_FragColor = envColor;\n\tgl_FragColor.a *= opacity;\n\t#include \n\t#include \n}`, S3 = `varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n\tgl_Position.z = gl_Position.w;\n}`, T3 = `#if DEPTH_PACKING == 3200\n\tuniform float opacity;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( 1.0 );\n\t#if DEPTH_PACKING == 3200\n\t\tdiffuseColor.a = opacity;\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\tfloat fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;\n\t#if DEPTH_PACKING == 3200\n\t\tgl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );\n\t#elif DEPTH_PACKING == 3201\n\t\tgl_FragColor = packDepthToRGBA( fragCoordZ );\n\t#endif\n}`, E3 = `#include \n#include \n#include \n#include \n#include \n#include \n#include \nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include \n\t#include \n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvHighPrecisionZW = gl_Position.zw;\n}`, A3 = `#define DISTANCE\nuniform vec3 referencePosition;\nuniform float nearDistance;\nuniform float farDistance;\nvarying vec3 vWorldPosition;\n#include \n#include \n#include \n#include \n#include \n#include \nvoid main () {\n\t#include \n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include \n\t#include \n\t#include \n\tfloat dist = length( vWorldPosition - referencePosition );\n\tdist = ( dist - nearDistance ) / ( farDistance - nearDistance );\n\tdist = saturate( dist );\n\tgl_FragColor = packDepthToRGBA( dist );\n}`, C3 = `#define DISTANCE\nvarying vec3 vWorldPosition;\n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvWorldPosition = worldPosition.xyz;\n}`, L3 = `uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvec3 direction = normalize( vWorldDirection );\n\tvec2 sampleUV = equirectUv( direction );\n\tvec4 texColor = texture2D( tEquirect, sampleUV );\n\tgl_FragColor = mapTexelToLinear( texColor );\n\t#include \n\t#include \n}`, R3 = `varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n}`, P3 = `uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tif ( mod( vLineDistance, totalSize ) > dashSize ) {\n\t\tdiscard;\n\t}\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include \n\t#include \n\t#include \n\t#include \n}`, I3 = `uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvLineDistance = scale * lineDistance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}`, O3 = `uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\t#ifdef USE_LIGHTMAP\n\t\n\t\tvec4 lightMapTexel= texture2D( lightMap, vUv2 );\n\t\treflectedLight.indirectDiffuse += lightMapTexelToLinear( lightMapTexel ).rgb * lightMapIntensity;\n\t#else\n\t\treflectedLight.indirectDiffuse += vec3( 1.0 );\n\t#endif\n\t#include \n\treflectedLight.indirectDiffuse *= diffuseColor.rgb;\n\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\n\t#include \n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}`, D3 = `#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#ifdef USE_ENVMAP\n\t#include \n\t#include \n\t#include \n\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}`, N3 = `uniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\nvarying vec3 vLightFront;\nvarying vec3 vIndirectFront;\n#ifdef DOUBLE_SIDED\n\tvarying vec3 vLightBack;\n\tvarying vec3 vIndirectBack;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#ifdef DOUBLE_SIDED\n\t\treflectedLight.indirectDiffuse += ( gl_FrontFacing ) ? vIndirectFront : vIndirectBack;\n\t#else\n\t\treflectedLight.indirectDiffuse += vIndirectFront;\n\t#endif\n\t#include \n\treflectedLight.indirectDiffuse *= BRDF_Diffuse_Lambert( diffuseColor.rgb );\n\t#ifdef DOUBLE_SIDED\n\t\treflectedLight.directDiffuse = ( gl_FrontFacing ) ? vLightFront : vLightBack;\n\t#else\n\t\treflectedLight.directDiffuse = vLightFront;\n\t#endif\n\treflectedLight.directDiffuse *= BRDF_Diffuse_Lambert( diffuseColor.rgb ) * getShadowMask();\n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include \n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}`, B3 = `#define LAMBERT\nvarying vec3 vLightFront;\nvarying vec3 vIndirectFront;\n#ifdef DOUBLE_SIDED\n\tvarying vec3 vLightBack;\n\tvarying vec3 vIndirectBack;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}`, F3 = `#define MATCAP\nuniform vec3 diffuse;\nuniform float opacity;\nuniform sampler2D matcap;\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 viewDir = normalize( vViewPosition );\n\tvec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );\n\tvec3 y = cross( viewDir, x );\n\tvec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;\n\t#ifdef USE_MATCAP\n\t\tvec4 matcapColor = texture2D( matcap, uv );\n\t\tmatcapColor = matcapTexelToLinear( matcapColor );\n\t#else\n\t\tvec4 matcapColor = vec4( 1.0 );\n\t#endif\n\tvec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}`, z3 = `#define MATCAP\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include