{
"version": 3,
"sources": ["../../@abi-software/scaffoldvuer/dist/scaffoldvuer.js"],
"sourcesContent": ["import { shallowRef as En, watchEffect as Nv, readonly as Bv, unref as z, getCurrentScope as NM, onScopeDispose as BM, getCurrentInstance as dn, onMounted as Jt, nextTick as bt, watch as Qe, ref as Te, defineComponent as Pe, openBlock as ve, createElementBlock as Le, createElementVNode as Ne, warn as UM, isVNode as Uh, computed as ue, inject as pt, isRef as Zc, onBeforeUnmount as ei, onBeforeMount as zM, provide as sn, mergeProps as Ei, renderSlot as je, toRef as hi, onUnmounted as Uv, useAttrs as VM, useSlots as Xc, createCommentVNode as Ve, Fragment as Pt, normalizeClass as Ee, createBlock as ke, withCtx as de, resolveDynamicComponent as Fn, withModifiers as Ut, createVNode as oe, toDisplayString as vt, normalizeStyle as Rt, Transition as el, withDirectives as Lt, vShow as mn, reactive as Wn, onActivated as kM, onUpdated as zd, cloneVNode as GM, Text as zv, Comment as HM, Teleport as WM, onDeactivated as jM, vModelRadio as Vv, createTextVNode as rt, toRefs as Br, toHandlers as $M, withKeys as ui, createSlots as ZM, toRaw as kv, resolveComponent as kn, resolveDirective as XM, toHandlerKey as YM, renderList as Jn, vModelText as JM, h as ho, createApp as KM, markRaw as An } from \"vue\";\nimport { TreeControls as qM, CreateTooltipContent as QM, Tooltip as ew, DrawToolbar as tw } from \"@abi-software/map-utilities\";\nimport { defineStore as nw, mapState as Gv, mapStores as iw } from \"pinia\";\nimport { MapSvgIcon as rw, MapSvgSpriteColor as sw } from \"@abi-software/svg-sprite\";\nimport { AnnotationService as ow } from \"@abi-software/sparc-annotation\";\nconst Yi = (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 aw = Object.defineProperty, lw = Object.defineProperties, cw = Object.getOwnPropertyDescriptors, bp = Object.getOwnPropertySymbols, uw = Object.prototype.hasOwnProperty, hw = Object.prototype.propertyIsEnumerable, xp = (n, e, t) => e in n ? aw(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, dw = (n, e) => {\n for (var t in e || (e = {}))\n uw.call(e, t) && xp(n, t, e[t]);\n if (bp)\n for (var t of bp(e))\n hw.call(e, t) && xp(n, t, e[t]);\n return n;\n}, fw = (n, e) => lw(n, cw(e));\nfunction Mp(n, e) {\n var t;\n const i = En();\n return Nv(() => {\n i.value = n();\n }, fw(dw({}, e), {\n flush: (t = void 0) != null ? t : \"sync\"\n })), Bv(i);\n}\nvar wp;\nconst en = typeof window < \"u\", pw = (n) => typeof n == \"string\", Hv = () => {\n}, zh = en && ((wp = window == null ? void 0 : window.navigator) == null ? void 0 : wp.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);\nfunction Wv(n) {\n return typeof n == \"function\" ? n() : z(n);\n}\nfunction mw(n) {\n return n;\n}\nfunction Yc(n) {\n return NM() ? (BM(n), !0) : !1;\n}\nfunction gw(n, e = !0) {\n dn() ? Jt(n) : e ? n() : bt(n);\n}\nfunction Qi(n) {\n var e;\n const t = Wv(n);\n return (e = t == null ? void 0 : t.$el) != null ? e : t;\n}\nconst tl = en ? window : void 0, vw = en ? window.document : void 0;\nfunction un(...n) {\n let e, t, i, r;\n if (pw(n[0]) || Array.isArray(n[0]) ? ([t, i, r] = n, e = tl) : [e, t, i, r] = n, !e)\n return Hv;\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(() => [Qi(e), Wv(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 Yc(l), l;\n}\nlet Ap = !1;\nfunction yw(n, e, t = {}) {\n const { window: i = tl, ignore: r = [], capture: s = !0, detectIframe: o = !1 } = t;\n if (!i)\n return;\n zh && !Ap && (Ap = !0, Array.from(i.document.body.children).forEach((f) => f.addEventListener(\"click\", Hv)));\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 = Qi(g);\n return p && (f.target === p || f.composedPath().includes(p));\n }\n }), d = [\n un(i, \"click\", (f) => {\n const g = Qi(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 = Qi(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 = Qi(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 jv(n, e = !1) {\n const t = Te(), i = () => t.value = !!n();\n return i(), gw(i, e), t;\n}\nconst Sp = typeof globalThis < \"u\" ? globalThis : typeof window < \"u\" ? window : typeof global < \"u\" ? global : typeof self < \"u\" ? self : {}, _p = \"__vueuse_ssr_handlers__\";\nSp[_p] = Sp[_p] || {};\nfunction bw({ document: n = vw } = {}) {\n if (!n)\n return Te(\"visible\");\n const e = Te(n.visibilityState);\n return un(n, \"visibilitychange\", () => {\n e.value = n.visibilityState;\n }), e;\n}\nvar Tp = Object.getOwnPropertySymbols, xw = Object.prototype.hasOwnProperty, Mw = Object.prototype.propertyIsEnumerable, ww = (n, e) => {\n var t = {};\n for (var i in n)\n xw.call(n, i) && e.indexOf(i) < 0 && (t[i] = n[i]);\n if (n != null && Tp)\n for (var i of Tp(n))\n e.indexOf(i) < 0 && Mw.call(n, i) && (t[i] = n[i]);\n return t;\n};\nfunction Yn(n, e, t = {}) {\n const i = t, { window: r = tl } = i, s = ww(i, [\"window\"]);\n let o;\n const a = jv(() => r && \"ResizeObserver\" in r), c = () => {\n o && (o.disconnect(), o = void 0);\n }, l = Qe(() => Qi(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 Yc(d), {\n isSupported: a,\n stop: d\n };\n}\nvar Ep = Object.getOwnPropertySymbols, Aw = Object.prototype.hasOwnProperty, Sw = Object.prototype.propertyIsEnumerable, _w = (n, e) => {\n var t = {};\n for (var i in n)\n Aw.call(n, i) && e.indexOf(i) < 0 && (t[i] = n[i]);\n if (n != null && Ep)\n for (var i of Ep(n))\n e.indexOf(i) < 0 && Sw.call(n, i) && (t[i] = n[i]);\n return t;\n};\nfunction Tw(n, e, t = {}) {\n const i = t, { window: r = tl } = i, s = _w(i, [\"window\"]);\n let o;\n const a = jv(() => r && \"MutationObserver\" in r), c = () => {\n o && (o.disconnect(), o = void 0);\n }, l = Qe(() => Qi(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 Yc(d), {\n isSupported: a,\n stop: d\n };\n}\nvar Cp;\n(function(n) {\n n.UP = \"UP\", n.RIGHT = \"RIGHT\", n.DOWN = \"DOWN\", n.LEFT = \"LEFT\", n.NONE = \"NONE\";\n})(Cp || (Cp = {}));\nvar Ew = Object.defineProperty, Lp = Object.getOwnPropertySymbols, Cw = Object.prototype.hasOwnProperty, Lw = Object.prototype.propertyIsEnumerable, Rp = (n, e, t) => e in n ? Ew(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, Rw = (n, e) => {\n for (var t in e || (e = {}))\n Cw.call(e, t) && Rp(n, t, e[t]);\n if (Lp)\n for (var t of Lp(e))\n Lw.call(e, t) && Rp(n, t, e[t]);\n return n;\n};\nconst Fw = {\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};\nRw({\n linear: mw\n}, Fw);\nfunction Pw({ window: n = tl } = {}) {\n if (!n)\n return Te(!1);\n const e = Te(n.document.hasFocus());\n return un(n, \"blur\", () => {\n e.value = !1;\n }), un(n, \"focus\", () => {\n e.value = !0;\n }), e;\n}\nconst Iw = () => en && /firefox/i.test(window.navigator.userAgent);\n/**\n* @vue/shared v3.5.13\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 Oa = () => {\n}, Ow = Object.prototype.hasOwnProperty, Fp = (n, e) => Ow.call(n, e), Pn = Array.isArray, Sn = (n) => typeof n == \"function\", vn = (n) => typeof n == \"string\", Tn = (n) => n !== null && typeof n == \"object\", Dw = Object.prototype.toString, Nw = (n) => Dw.call(n), Pu = (n) => Nw(n).slice(8, -1), Vd = (n) => {\n const e = /* @__PURE__ */ Object.create(null);\n return (t) => e[t] || (e[t] = n(t));\n}, Bw = /-(\\w)/g, Uw = Vd(\n (n) => n.replace(Bw, (e, t) => t ? t.toUpperCase() : \"\")\n), zw = /\\B([A-Z])/g, Vw = Vd(\n (n) => n.replace(zw, \"-$1\").toLowerCase()\n), kw = Vd((n) => n.charAt(0).toUpperCase() + n.slice(1));\nvar $v = typeof global == \"object\" && global && global.Object === Object && global, Gw = typeof self == \"object\" && self && self.Object === Object && self, Bi = $v || Gw || Function(\"return this\")(), Pi = Bi.Symbol, Zv = Object.prototype, Hw = Zv.hasOwnProperty, Ww = Zv.toString, la = Pi ? Pi.toStringTag : void 0;\nfunction jw(n) {\n var e = Hw.call(n, la), t = n[la];\n try {\n n[la] = void 0;\n var i = !0;\n } catch {\n }\n var r = Ww.call(n);\n return i && (e ? n[la] = t : delete n[la]), r;\n}\nvar $w = Object.prototype, Zw = $w.toString;\nfunction Xw(n) {\n return Zw.call(n);\n}\nvar Yw = \"[object Null]\", Jw = \"[object Undefined]\", Pp = Pi ? Pi.toStringTag : void 0;\nfunction Zo(n) {\n return n == null ? n === void 0 ? Jw : Yw : Pp && Pp in Object(n) ? jw(n) : Xw(n);\n}\nfunction Mo(n) {\n return n != null && typeof n == \"object\";\n}\nvar Kw = \"[object Symbol]\";\nfunction Jc(n) {\n return typeof n == \"symbol\" || Mo(n) && Zo(n) == Kw;\n}\nfunction qw(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 pi = Array.isArray, Qw = 1 / 0, Ip = Pi ? Pi.prototype : void 0, Op = Ip ? Ip.toString : void 0;\nfunction Xv(n) {\n if (typeof n == \"string\")\n return n;\n if (pi(n))\n return qw(n, Xv) + \"\";\n if (Jc(n))\n return Op ? Op.call(n) : \"\";\n var e = n + \"\";\n return e == \"0\" && 1 / n == -Qw ? \"-0\" : e;\n}\nvar e1 = /\\s/;\nfunction t1(n) {\n for (var e = n.length; e-- && e1.test(n.charAt(e)); )\n ;\n return e;\n}\nvar n1 = /^\\s+/;\nfunction i1(n) {\n return n && n.slice(0, t1(n) + 1).replace(n1, \"\");\n}\nfunction Ur(n) {\n var e = typeof n;\n return n != null && (e == \"object\" || e == \"function\");\n}\nvar Dp = NaN, r1 = /^[-+]0x[0-9a-f]+$/i, s1 = /^0b[01]+$/i, o1 = /^0o[0-7]+$/i, a1 = parseInt;\nfunction Np(n) {\n if (typeof n == \"number\")\n return n;\n if (Jc(n))\n return Dp;\n if (Ur(n)) {\n var e = typeof n.valueOf == \"function\" ? n.valueOf() : n;\n n = Ur(e) ? e + \"\" : e;\n }\n if (typeof n != \"string\")\n return n === 0 ? n : +n;\n n = i1(n);\n var t = s1.test(n);\n return t || o1.test(n) ? a1(n.slice(2), t ? 2 : 8) : r1.test(n) ? Dp : +n;\n}\nfunction Yv(n) {\n return n;\n}\nvar l1 = \"[object AsyncFunction]\", c1 = \"[object Function]\", u1 = \"[object GeneratorFunction]\", h1 = \"[object Proxy]\";\nfunction Jv(n) {\n if (!Ur(n))\n return !1;\n var e = Zo(n);\n return e == c1 || e == u1 || e == l1 || e == h1;\n}\nvar Iu = Bi[\"__core-js_shared__\"], Bp = function() {\n var n = /[^.]+$/.exec(Iu && Iu.keys && Iu.keys.IE_PROTO || \"\");\n return n ? \"Symbol(src)_1.\" + n : \"\";\n}();\nfunction d1(n) {\n return !!Bp && Bp in n;\n}\nvar f1 = Function.prototype, p1 = f1.toString;\nfunction Os(n) {\n if (n != null) {\n try {\n return p1.call(n);\n } catch {\n }\n try {\n return n + \"\";\n } catch {\n }\n }\n return \"\";\n}\nvar m1 = /[\\\\^$.*+?()[\\]{}|]/g, g1 = /^\\[object .+?Constructor\\]$/, v1 = Function.prototype, y1 = Object.prototype, b1 = v1.toString, x1 = y1.hasOwnProperty, M1 = RegExp(\n \"^\" + b1.call(x1).replace(m1, \"\\\\$&\").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, \"$1.*?\") + \"$\"\n);\nfunction w1(n) {\n if (!Ur(n) || d1(n))\n return !1;\n var e = Jv(n) ? M1 : g1;\n return e.test(Os(n));\n}\nfunction A1(n, e) {\n return n == null ? void 0 : n[e];\n}\nfunction Ds(n, e) {\n var t = A1(n, e);\n return w1(t) ? t : void 0;\n}\nvar Vh = Ds(Bi, \"WeakMap\");\nfunction S1(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 _1 = 800, T1 = 16, E1 = Date.now;\nfunction C1(n) {\n var e = 0, t = 0;\n return function() {\n var i = E1(), r = T1 - (i - t);\n if (t = i, r > 0) {\n if (++e >= _1)\n return arguments[0];\n } else\n e = 0;\n return n.apply(void 0, arguments);\n };\n}\nfunction L1(n) {\n return function() {\n return n;\n };\n}\nvar Fc = function() {\n try {\n var n = Ds(Object, \"defineProperty\");\n return n({}, \"\", {}), n;\n } catch {\n }\n}(), R1 = Fc ? function(n, e) {\n return Fc(n, \"toString\", {\n configurable: !0,\n enumerable: !1,\n value: L1(e),\n writable: !0\n });\n} : Yv, F1 = C1(R1);\nfunction P1(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 I1 = 9007199254740991, O1 = /^(?:0|[1-9]\\d*)$/;\nfunction kd(n, e) {\n var t = typeof n;\n return e = e ?? I1, !!e && (t == \"number\" || t != \"symbol\" && O1.test(n)) && n > -1 && n % 1 == 0 && n < e;\n}\nfunction D1(n, e, t) {\n e == \"__proto__\" && Fc ? Fc(n, e, {\n configurable: !0,\n enumerable: !0,\n value: t,\n writable: !0\n }) : n[e] = t;\n}\nfunction Gd(n, e) {\n return n === e || n !== n && e !== e;\n}\nvar N1 = Object.prototype, B1 = N1.hasOwnProperty;\nfunction U1(n, e, t) {\n var i = n[e];\n (!(B1.call(n, e) && Gd(i, t)) || t === void 0 && !(e in n)) && D1(n, e, t);\n}\nvar Up = Math.max;\nfunction z1(n, e, t) {\n return e = Up(e === void 0 ? n.length - 1 : e, 0), function() {\n for (var i = arguments, r = -1, s = Up(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), S1(n, this, a);\n };\n}\nvar V1 = 9007199254740991;\nfunction Hd(n) {\n return typeof n == \"number\" && n > -1 && n % 1 == 0 && n <= V1;\n}\nfunction k1(n) {\n return n != null && Hd(n.length) && !Jv(n);\n}\nvar G1 = Object.prototype;\nfunction H1(n) {\n var e = n && n.constructor, t = typeof e == \"function\" && e.prototype || G1;\n return n === t;\n}\nfunction W1(n, e) {\n for (var t = -1, i = Array(n); ++t < n; )\n i[t] = e(t);\n return i;\n}\nvar j1 = \"[object Arguments]\";\nfunction zp(n) {\n return Mo(n) && Zo(n) == j1;\n}\nvar Kv = Object.prototype, $1 = Kv.hasOwnProperty, Z1 = Kv.propertyIsEnumerable, Wd = zp(/* @__PURE__ */ function() {\n return arguments;\n}()) ? zp : function(n) {\n return Mo(n) && $1.call(n, \"callee\") && !Z1.call(n, \"callee\");\n};\nfunction X1() {\n return !1;\n}\nvar qv = typeof exports == \"object\" && exports && !exports.nodeType && exports, Vp = qv && typeof module == \"object\" && module && !module.nodeType && module, Y1 = Vp && Vp.exports === qv, kp = Y1 ? Bi.Buffer : void 0, J1 = kp ? kp.isBuffer : void 0, kh = J1 || X1, K1 = \"[object Arguments]\", q1 = \"[object Array]\", Q1 = \"[object Boolean]\", eA = \"[object Date]\", tA = \"[object Error]\", nA = \"[object Function]\", iA = \"[object Map]\", rA = \"[object Number]\", sA = \"[object Object]\", oA = \"[object RegExp]\", aA = \"[object Set]\", lA = \"[object String]\", cA = \"[object WeakMap]\", uA = \"[object ArrayBuffer]\", hA = \"[object DataView]\", dA = \"[object Float32Array]\", fA = \"[object Float64Array]\", pA = \"[object Int8Array]\", mA = \"[object Int16Array]\", gA = \"[object Int32Array]\", vA = \"[object Uint8Array]\", yA = \"[object Uint8ClampedArray]\", bA = \"[object Uint16Array]\", xA = \"[object Uint32Array]\", Et = {};\nEt[dA] = Et[fA] = Et[pA] = Et[mA] = Et[gA] = Et[vA] = Et[yA] = Et[bA] = Et[xA] = !0;\nEt[K1] = Et[q1] = Et[uA] = Et[Q1] = Et[hA] = Et[eA] = Et[tA] = Et[nA] = Et[iA] = Et[rA] = Et[sA] = Et[oA] = Et[aA] = Et[lA] = Et[cA] = !1;\nfunction MA(n) {\n return Mo(n) && Hd(n.length) && !!Et[Zo(n)];\n}\nfunction wA(n) {\n return function(e) {\n return n(e);\n };\n}\nvar Qv = typeof exports == \"object\" && exports && !exports.nodeType && exports, Ea = Qv && typeof module == \"object\" && module && !module.nodeType && module, AA = Ea && Ea.exports === Qv, Ou = AA && $v.process, Gp = function() {\n try {\n var n = Ea && Ea.require && Ea.require(\"util\").types;\n return n || Ou && Ou.binding && Ou.binding(\"util\");\n } catch {\n }\n}(), Hp = Gp && Gp.isTypedArray, e0 = Hp ? wA(Hp) : MA, SA = Object.prototype, _A = SA.hasOwnProperty;\nfunction TA(n, e) {\n var t = pi(n), i = !t && Wd(n), r = !t && !i && kh(n), s = !t && !i && !r && e0(n), o = t || i || r || s, a = o ? W1(n.length, String) : [], c = a.length;\n for (var l in n)\n _A.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 kd(l, c))) && a.push(l);\n return a;\n}\nfunction EA(n, e) {\n return function(t) {\n return n(e(t));\n };\n}\nvar CA = EA(Object.keys, Object), LA = Object.prototype, RA = LA.hasOwnProperty;\nfunction FA(n) {\n if (!H1(n))\n return CA(n);\n var e = [];\n for (var t in Object(n))\n RA.call(n, t) && t != \"constructor\" && e.push(t);\n return e;\n}\nfunction t0(n) {\n return k1(n) ? TA(n) : FA(n);\n}\nvar PA = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/, IA = /^\\w*$/;\nfunction jd(n, e) {\n if (pi(n))\n return !1;\n var t = typeof n;\n return t == \"number\" || t == \"symbol\" || t == \"boolean\" || n == null || Jc(n) ? !0 : IA.test(n) || !PA.test(n) || e != null && n in Object(e);\n}\nvar Da = Ds(Object, \"create\");\nfunction OA() {\n this.__data__ = Da ? Da(null) : {}, this.size = 0;\n}\nfunction DA(n) {\n var e = this.has(n) && delete this.__data__[n];\n return this.size -= e ? 1 : 0, e;\n}\nvar NA = \"__lodash_hash_undefined__\", BA = Object.prototype, UA = BA.hasOwnProperty;\nfunction zA(n) {\n var e = this.__data__;\n if (Da) {\n var t = e[n];\n return t === NA ? void 0 : t;\n }\n return UA.call(e, n) ? e[n] : void 0;\n}\nvar VA = Object.prototype, kA = VA.hasOwnProperty;\nfunction GA(n) {\n var e = this.__data__;\n return Da ? e[n] !== void 0 : kA.call(e, n);\n}\nvar HA = \"__lodash_hash_undefined__\";\nfunction WA(n, e) {\n var t = this.__data__;\n return this.size += this.has(n) ? 0 : 1, t[n] = Da && e === void 0 ? HA : e, this;\n}\nfunction _s(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}\n_s.prototype.clear = OA;\n_s.prototype.delete = DA;\n_s.prototype.get = zA;\n_s.prototype.has = GA;\n_s.prototype.set = WA;\nfunction jA() {\n this.__data__ = [], this.size = 0;\n}\nfunction Kc(n, e) {\n for (var t = n.length; t--; )\n if (Gd(n[t][0], e))\n return t;\n return -1;\n}\nvar $A = Array.prototype, ZA = $A.splice;\nfunction XA(n) {\n var e = this.__data__, t = Kc(e, n);\n if (t < 0)\n return !1;\n var i = e.length - 1;\n return t == i ? e.pop() : ZA.call(e, t, 1), --this.size, !0;\n}\nfunction YA(n) {\n var e = this.__data__, t = Kc(e, n);\n return t < 0 ? void 0 : e[t][1];\n}\nfunction JA(n) {\n return Kc(this.__data__, n) > -1;\n}\nfunction KA(n, e) {\n var t = this.__data__, i = Kc(t, n);\n return i < 0 ? (++this.size, t.push([n, e])) : t[i][1] = e, this;\n}\nfunction lr(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}\nlr.prototype.clear = jA;\nlr.prototype.delete = XA;\nlr.prototype.get = YA;\nlr.prototype.has = JA;\nlr.prototype.set = KA;\nvar Na = Ds(Bi, \"Map\");\nfunction qA() {\n this.size = 0, this.__data__ = {\n hash: new _s(),\n map: new (Na || lr)(),\n string: new _s()\n };\n}\nfunction QA(n) {\n var e = typeof n;\n return e == \"string\" || e == \"number\" || e == \"symbol\" || e == \"boolean\" ? n !== \"__proto__\" : n === null;\n}\nfunction qc(n, e) {\n var t = n.__data__;\n return QA(e) ? t[typeof e == \"string\" ? \"string\" : \"hash\"] : t.map;\n}\nfunction eS(n) {\n var e = qc(this, n).delete(n);\n return this.size -= e ? 1 : 0, e;\n}\nfunction tS(n) {\n return qc(this, n).get(n);\n}\nfunction nS(n) {\n return qc(this, n).has(n);\n}\nfunction iS(n, e) {\n var t = qc(this, n), i = t.size;\n return t.set(n, e), this.size += t.size == i ? 0 : 1, this;\n}\nfunction cr(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}\ncr.prototype.clear = qA;\ncr.prototype.delete = eS;\ncr.prototype.get = tS;\ncr.prototype.has = nS;\ncr.prototype.set = iS;\nvar rS = \"Expected a function\";\nfunction $d(n, e) {\n if (typeof n != \"function\" || e != null && typeof e != \"function\")\n throw new TypeError(rS);\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 ($d.Cache || cr)(), t;\n}\n$d.Cache = cr;\nvar sS = 500;\nfunction oS(n) {\n var e = $d(n, function(i) {\n return t.size === sS && t.clear(), i;\n }), t = e.cache;\n return e;\n}\nvar aS = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g, lS = /\\\\(\\\\)?/g, cS = oS(function(n) {\n var e = [];\n return n.charCodeAt(0) === 46 && e.push(\"\"), n.replace(aS, function(t, i, r, s) {\n e.push(r ? s.replace(lS, \"$1\") : i || t);\n }), e;\n});\nfunction uS(n) {\n return n == null ? \"\" : Xv(n);\n}\nfunction Qc(n, e) {\n return pi(n) ? n : jd(n, e) ? [n] : cS(uS(n));\n}\nvar hS = 1 / 0;\nfunction nl(n) {\n if (typeof n == \"string\" || Jc(n))\n return n;\n var e = n + \"\";\n return e == \"0\" && 1 / n == -hS ? \"-0\" : e;\n}\nfunction Zd(n, e) {\n e = Qc(e, n);\n for (var t = 0, i = e.length; n != null && t < i; )\n n = n[nl(e[t++])];\n return t && t == i ? n : void 0;\n}\nfunction Ji(n, e, t) {\n var i = n == null ? void 0 : Zd(n, e);\n return i === void 0 ? t : i;\n}\nfunction n0(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 Wp = Pi ? Pi.isConcatSpreadable : void 0;\nfunction dS(n) {\n return pi(n) || Wd(n) || !!(Wp && n && n[Wp]);\n}\nfunction fS(n, e, t, i, r) {\n var s = -1, o = n.length;\n for (t || (t = dS), r || (r = []); ++s < o; ) {\n var a = n[s];\n t(a) ? n0(r, a) : r[r.length] = a;\n }\n return r;\n}\nfunction pS(n) {\n var e = n == null ? 0 : n.length;\n return e ? fS(n) : [];\n}\nfunction mS(n) {\n return F1(z1(n, void 0, pS), n + \"\");\n}\nfunction Si() {\n if (!arguments.length)\n return [];\n var n = arguments[0];\n return pi(n) ? n : [n];\n}\nfunction gS() {\n this.__data__ = new lr(), this.size = 0;\n}\nfunction vS(n) {\n var e = this.__data__, t = e.delete(n);\n return this.size = e.size, t;\n}\nfunction yS(n) {\n return this.__data__.get(n);\n}\nfunction bS(n) {\n return this.__data__.has(n);\n}\nvar xS = 200;\nfunction MS(n, e) {\n var t = this.__data__;\n if (t instanceof lr) {\n var i = t.__data__;\n if (!Na || i.length < xS - 1)\n return i.push([n, e]), this.size = ++t.size, this;\n t = this.__data__ = new cr(i);\n }\n return t.set(n, e), this.size = t.size, this;\n}\nfunction er(n) {\n var e = this.__data__ = new lr(n);\n this.size = e.size;\n}\ner.prototype.clear = gS;\ner.prototype.delete = vS;\ner.prototype.get = yS;\ner.prototype.has = bS;\ner.prototype.set = MS;\nfunction wS(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 AS() {\n return [];\n}\nvar SS = Object.prototype, _S = SS.propertyIsEnumerable, jp = Object.getOwnPropertySymbols, TS = jp ? function(n) {\n return n == null ? [] : (n = Object(n), wS(jp(n), function(e) {\n return _S.call(n, e);\n }));\n} : AS;\nfunction ES(n, e, t) {\n var i = e(n);\n return pi(n) ? i : n0(i, t(n));\n}\nfunction $p(n) {\n return ES(n, t0, TS);\n}\nvar Gh = Ds(Bi, \"DataView\"), Hh = Ds(Bi, \"Promise\"), Wh = Ds(Bi, \"Set\"), Zp = \"[object Map]\", CS = \"[object Object]\", Xp = \"[object Promise]\", Yp = \"[object Set]\", Jp = \"[object WeakMap]\", Kp = \"[object DataView]\", LS = Os(Gh), RS = Os(Na), FS = Os(Hh), PS = Os(Wh), IS = Os(Vh), Cr = Zo;\n(Gh && Cr(new Gh(new ArrayBuffer(1))) != Kp || Na && Cr(new Na()) != Zp || Hh && Cr(Hh.resolve()) != Xp || Wh && Cr(new Wh()) != Yp || Vh && Cr(new Vh()) != Jp) && (Cr = function(n) {\n var e = Zo(n), t = e == CS ? n.constructor : void 0, i = t ? Os(t) : \"\";\n if (i)\n switch (i) {\n case LS:\n return Kp;\n case RS:\n return Zp;\n case FS:\n return Xp;\n case PS:\n return Yp;\n case IS:\n return Jp;\n }\n return e;\n});\nvar qp = Bi.Uint8Array, OS = \"__lodash_hash_undefined__\";\nfunction DS(n) {\n return this.__data__.set(n, OS), this;\n}\nfunction NS(n) {\n return this.__data__.has(n);\n}\nfunction Pc(n) {\n var e = -1, t = n == null ? 0 : n.length;\n for (this.__data__ = new cr(); ++e < t; )\n this.add(n[e]);\n}\nPc.prototype.add = Pc.prototype.push = DS;\nPc.prototype.has = NS;\nfunction BS(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 US(n, e) {\n return n.has(e);\n}\nvar zS = 1, VS = 2;\nfunction i0(n, e, t, i, r, s) {\n var o = t & zS, 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 & VS ? new Pc() : 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 (!BS(e, function(v, m) {\n if (!US(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 kS(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 GS(n) {\n var e = -1, t = Array(n.size);\n return n.forEach(function(i) {\n t[++e] = i;\n }), t;\n}\nvar HS = 1, WS = 2, jS = \"[object Boolean]\", $S = \"[object Date]\", ZS = \"[object Error]\", XS = \"[object Map]\", YS = \"[object Number]\", JS = \"[object RegExp]\", KS = \"[object Set]\", qS = \"[object String]\", QS = \"[object Symbol]\", e_ = \"[object ArrayBuffer]\", t_ = \"[object DataView]\", Qp = Pi ? Pi.prototype : void 0, Du = Qp ? Qp.valueOf : void 0;\nfunction n_(n, e, t, i, r, s, o) {\n switch (t) {\n case t_:\n if (n.byteLength != e.byteLength || n.byteOffset != e.byteOffset)\n return !1;\n n = n.buffer, e = e.buffer;\n case e_:\n return !(n.byteLength != e.byteLength || !s(new qp(n), new qp(e)));\n case jS:\n case $S:\n case YS:\n return Gd(+n, +e);\n case ZS:\n return n.name == e.name && n.message == e.message;\n case JS:\n case qS:\n return n == e + \"\";\n case XS:\n var a = kS;\n case KS:\n var c = i & HS;\n if (a || (a = GS), n.size != e.size && !c)\n return !1;\n var l = o.get(n);\n if (l)\n return l == e;\n i |= WS, o.set(n, e);\n var d = i0(a(n), a(e), i, r, s, o);\n return o.delete(n), d;\n case QS:\n if (Du)\n return Du.call(n) == Du.call(e);\n }\n return !1;\n}\nvar i_ = 1, r_ = Object.prototype, s_ = r_.hasOwnProperty;\nfunction o_(n, e, t, i, r, s) {\n var o = t & i_, a = $p(n), c = a.length, l = $p(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 : s_.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 x = o ? i(m, v, f, e, n, s) : i(v, m, f, n, e, s);\n if (!(x === void 0 ? v === m || r(v, m, t, i, s) : x)) {\n u = !1;\n break;\n }\n y || (y = f == \"constructor\");\n }\n if (u && !y) {\n var w = n.constructor, A = e.constructor;\n w != A && \"constructor\" in n && \"constructor\" in e && !(typeof w == \"function\" && w instanceof w && typeof A == \"function\" && A instanceof A) && (u = !1);\n }\n return s.delete(n), s.delete(e), u;\n}\nvar a_ = 1, em = \"[object Arguments]\", tm = \"[object Array]\", _l = \"[object Object]\", l_ = Object.prototype, nm = l_.hasOwnProperty;\nfunction c_(n, e, t, i, r, s) {\n var o = pi(n), a = pi(e), c = o ? tm : Cr(n), l = a ? tm : Cr(e);\n c = c == em ? _l : c, l = l == em ? _l : l;\n var d = c == _l, h = l == _l, f = c == l;\n if (f && kh(n)) {\n if (!kh(e))\n return !1;\n o = !0, d = !1;\n }\n if (f && !d)\n return s || (s = new er()), o || e0(n) ? i0(n, e, t, i, r, s) : n_(n, e, c, t, i, r, s);\n if (!(t & a_)) {\n var g = d && nm.call(n, \"__wrapped__\"), p = h && nm.call(e, \"__wrapped__\");\n if (g || p) {\n var u = g ? n.value() : n, y = p ? e.value() : e;\n return s || (s = new er()), r(u, y, t, i, s);\n }\n }\n return f ? (s || (s = new er()), o_(n, e, t, i, r, s)) : !1;\n}\nfunction eu(n, e, t, i, r) {\n return n === e ? !0 : n == null || e == null || !Mo(n) && !Mo(e) ? n !== n && e !== e : c_(n, e, t, i, eu, r);\n}\nvar u_ = 1, h_ = 2;\nfunction d_(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 er(), h;\n if (!(h === void 0 ? eu(l, c, u_ | h_, i, d) : h))\n return !1;\n }\n }\n return !0;\n}\nfunction r0(n) {\n return n === n && !Ur(n);\n}\nfunction f_(n) {\n for (var e = t0(n), t = e.length; t--; ) {\n var i = e[t], r = n[i];\n e[t] = [i, r, r0(r)];\n }\n return e;\n}\nfunction s0(n, e) {\n return function(t) {\n return t == null ? !1 : t[n] === e && (e !== void 0 || n in Object(t));\n };\n}\nfunction p_(n) {\n var e = f_(n);\n return e.length == 1 && e[0][2] ? s0(e[0][0], e[0][1]) : function(t) {\n return t === n || d_(t, n, e);\n };\n}\nfunction m_(n, e) {\n return n != null && e in Object(n);\n}\nfunction g_(n, e, t) {\n e = Qc(e, n);\n for (var i = -1, r = e.length, s = !1; ++i < r; ) {\n var o = nl(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 && Hd(r) && kd(o, r) && (pi(n) || Wd(n)));\n}\nfunction o0(n, e) {\n return n != null && g_(n, e, m_);\n}\nvar v_ = 1, y_ = 2;\nfunction b_(n, e) {\n return jd(n) && r0(e) ? s0(nl(n), e) : function(t) {\n var i = Ji(t, n);\n return i === void 0 && i === e ? o0(t, n) : eu(e, i, v_ | y_);\n };\n}\nfunction x_(n) {\n return function(e) {\n return e == null ? void 0 : e[n];\n };\n}\nfunction M_(n) {\n return function(e) {\n return Zd(e, n);\n };\n}\nfunction w_(n) {\n return jd(n) ? x_(nl(n)) : M_(n);\n}\nfunction A_(n) {\n return typeof n == \"function\" ? n : n == null ? Yv : typeof n == \"object\" ? pi(n) ? b_(n[0], n[1]) : p_(n) : w_(n);\n}\nvar Nu = function() {\n return Bi.Date.now();\n}, S_ = \"Expected a function\", __ = Math.max, T_ = Math.min;\nfunction jh(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(S_);\n e = Np(e) || 0, Ur(t) && (d = !!t.leading, h = \"maxWait\" in t, s = h ? __(Np(t.maxWait) || 0, e) : s, f = \"trailing\" in t ? !!t.trailing : f);\n function g(M) {\n var R = i, L = r;\n return i = r = void 0, l = M, o = n.apply(L, R), 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 R = M - c, L = M - l, S = e - R;\n return h ? T_(S, s - L) : S;\n }\n function y(M) {\n var R = M - c, L = M - l;\n return c === void 0 || R >= e || R < 0 || h && L >= s;\n }\n function v() {\n var M = Nu();\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 x() {\n a !== void 0 && clearTimeout(a), l = 0, i = c = r = a = void 0;\n }\n function w() {\n return a === void 0 ? o : m(Nu());\n }\n function A() {\n var M = Nu(), R = y(M);\n if (i = arguments, r = this, c = M, R) {\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 A.cancel = x, A.flush = w, A;\n}\nfunction E_(n, e, t) {\n var i = n == null ? 0 : n.length;\n if (!i)\n return -1;\n var r = i - 1;\n return P1(n, A_(e), r);\n}\nfunction Ic(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 $h(n, e) {\n return eu(n, e);\n}\nfunction Ci(n) {\n return n == null;\n}\nfunction C_(n) {\n return n === void 0;\n}\nfunction L_(n, e, t, i) {\n if (!Ur(n))\n return n;\n e = Qc(e, n);\n for (var r = -1, s = e.length, o = s - 1, a = n; a != null && ++r < s; ) {\n var c = nl(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 = Ur(d) ? d : kd(e[r + 1]) ? [] : {});\n }\n U1(a, c, l), a = a[c];\n }\n return n;\n}\nfunction R_(n, e, t) {\n for (var i = -1, r = e.length, s = {}; ++i < r; ) {\n var o = e[i], a = Zd(n, o);\n t(a, o) && L_(s, Qc(o, n), a);\n }\n return s;\n}\nfunction F_(n, e) {\n return R_(n, e, function(t, i) {\n return o0(n, i);\n });\n}\nvar P_ = mS(function(n, e) {\n return n == null ? {} : F_(n, e);\n});\nconst di = (n) => n === void 0, Ba = (n) => typeof n == \"boolean\", yt = (n) => typeof n == \"number\", ys = (n) => typeof Element > \"u\" ? !1 : n instanceof Element, im = (n) => Ci(n), I_ = (n) => vn(n) ? !Number.isNaN(Number(n)) : !1, O_ = (n = \"\") => n.replace(/[|\\\\{}()[\\]^$+*?.]/g, \"\\\\$&\").replace(/-/g, \"\\\\x2d\"), Rr = (n) => kw(n), rm = (n) => Object.keys(n);\nclass a0 extends Error {\n constructor(e) {\n super(e), this.name = \"ElementPlusError\";\n }\n}\nfunction Xo(n, e) {\n throw new a0(`[${n}] ${e}`);\n}\nfunction Vt(n, e) {\n if (process.env.NODE_ENV !== \"production\") {\n const t = vn(n) ? new a0(`[${n}] ${e}`) : n;\n console.warn(t);\n }\n}\nconst D_ = \"utils/dom/style\", l0 = (n = \"\") => n.split(\" \").filter((e) => !!e.trim()), sm = (n, e) => {\n !n || !e.trim() || n.classList.add(...l0(e));\n}, Oc = (n, e) => {\n !n || !e.trim() || n.classList.remove(...l0(e));\n}, ca = (n, e) => {\n var t;\n if (!en || !n || !e)\n return \"\";\n let i = Uw(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 Dc(n, e = \"px\") {\n if (!n)\n return \"\";\n if (yt(n) || I_(n))\n return `${n}${e}`;\n if (vn(n))\n return n;\n Vt(D_, \"binding value must be a string or number\");\n}\nfunction N_(n, e) {\n if (!en)\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 B_ = /* @__PURE__ */ Pe({\n name: \"ArrowDown\",\n __name: \"arrow-down\",\n setup(n) {\n return (e, t) => (ve(), Le(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 1024 1024\"\n }, [\n Ne(\"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}), Xd = B_, U_ = /* @__PURE__ */ Pe({\n name: \"ArrowLeft\",\n __name: \"arrow-left\",\n setup(n) {\n return (e, t) => (ve(), Le(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 1024 1024\"\n }, [\n Ne(\"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}), zr = U_, z_ = /* @__PURE__ */ Pe({\n name: \"ArrowRight\",\n __name: \"arrow-right\",\n setup(n) {\n return (e, t) => (ve(), Le(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 1024 1024\"\n }, [\n Ne(\"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}), Vr = z_, V_ = /* @__PURE__ */ Pe({\n name: \"ArrowUp\",\n __name: \"arrow-up\",\n setup(n) {\n return (e, t) => (ve(), Le(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 1024 1024\"\n }, [\n Ne(\"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}), k_ = V_, G_ = /* @__PURE__ */ Pe({\n name: \"CircleCheck\",\n __name: \"circle-check\",\n setup(n) {\n return (e, t) => (ve(), Le(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 1024 1024\"\n }, [\n Ne(\"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 Ne(\"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}), H_ = G_, W_ = /* @__PURE__ */ Pe({\n name: \"CircleClose\",\n __name: \"circle-close\",\n setup(n) {\n return (e, t) => (ve(), Le(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 1024 1024\"\n }, [\n Ne(\"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 Ne(\"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}), Yd = W_, j_ = /* @__PURE__ */ Pe({\n name: \"Close\",\n __name: \"close\",\n setup(n) {\n return (e, t) => (ve(), Le(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 1024 1024\"\n }, [\n Ne(\"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}), Zh = j_, $_ = /* @__PURE__ */ Pe({\n name: \"Delete\",\n __name: \"delete\",\n setup(n) {\n return (e, t) => (ve(), Le(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 1024 1024\"\n }, [\n Ne(\"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}), Nc = $_, Z_ = /* @__PURE__ */ Pe({\n name: \"Hide\",\n __name: \"hide\",\n setup(n) {\n return (e, t) => (ve(), Le(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 1024 1024\"\n }, [\n Ne(\"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 Ne(\"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}), X_ = Z_, Y_ = /* @__PURE__ */ Pe({\n name: \"Loading\",\n __name: \"loading\",\n setup(n) {\n return (e, t) => (ve(), Le(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 1024 1024\"\n }, [\n Ne(\"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}), c0 = Y_, J_ = /* @__PURE__ */ Pe({\n name: \"Minus\",\n __name: \"minus\",\n setup(n) {\n return (e, t) => (ve(), Le(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 1024 1024\"\n }, [\n Ne(\"path\", {\n fill: \"currentColor\",\n d: \"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64\"\n })\n ]));\n }\n}), K_ = J_, q_ = /* @__PURE__ */ Pe({\n name: \"Plus\",\n __name: \"plus\",\n setup(n) {\n return (e, t) => (ve(), Le(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 1024 1024\"\n }, [\n Ne(\"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}), tu = q_, Q_ = /* @__PURE__ */ Pe({\n name: \"View\",\n __name: \"view\",\n setup(n) {\n return (e, t) => (ve(), Le(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 1024 1024\"\n }, [\n Ne(\"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}), eT = Q_, tT = /* @__PURE__ */ Pe({\n name: \"WarningFilled\",\n __name: \"warning-filled\",\n setup(n) {\n return (e, t) => (ve(), Le(\"svg\", {\n xmlns: \"http://www.w3.org/2000/svg\",\n viewBox: \"0 0 1024 1024\"\n }, [\n Ne(\"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}), u0 = tT;\nconst h0 = \"__epPropKey\", Je = (n) => n, nT = (n) => Tn(n) && !!n[h0], nu = (n, e) => {\n if (!Tn(n) || nT(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), Fp(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 UM(`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 [h0]: !0\n };\n return Fp(n, \"default\") && (c.default = r), c;\n}, at = (n) => Ic(Object.entries(n).map(([e, t]) => [\n e,\n nu(t, e)\n])), kr = Je([\n String,\n Object,\n Function\n]), d0 = {\n validating: c0,\n success: H_,\n error: Yd\n}, on = (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}, iT = (n, e) => (n.install = (t) => {\n t.directive(e, n);\n}, n), vi = (n) => (n.install = Oa, n), Li = {\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}, At = \"update:modelValue\", ur = \"change\", bs = \"input\", f0 = [\"\", \"default\", \"small\", \"large\"], Sc = (n) => {\n const e = Pn(n) ? n : [n], t = [];\n return e.forEach((i) => {\n var r;\n Pn(i) ? t.push(...Sc(i)) : Uh(i) && Pn(i.children) ? t.push(...Sc(i.children)) : (t.push(i), Uh(i) && ((r = i.component) != null && r.subTree) && t.push(...Sc(i.component.subTree)));\n }), t;\n}, rT = (n) => /([\\uAC00-\\uD7AF\\u3130-\\u318F])+/gi.test(n), Ki = (n) => n, sT = [\"class\", \"style\"], oT = /^on[A-Z]/, aT = (n = {}) => {\n const { excludeListeners: e = !1, excludeKeys: t } = n, i = ue(() => ((t == null ? void 0 : t.value) || []).concat(sT)), r = dn();\n return r ? ue(() => {\n var s;\n return Ic(Object.entries((s = r.proxy) == null ? void 0 : s.$attrs).filter(([o]) => !i.value.includes(o) && !(e && oT.test(o))));\n }) : (Vt(\"use-attrs\", \"getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function\"), ue(() => ({})));\n}, p0 = ({ from: n, replacement: e, scope: t, version: i, ref: r, type: s = \"API\" }, o) => {\n Qe(() => z(o), (a) => {\n a && Vt(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 lT = {\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 cT = (n) => (e, t) => uT(e, t, z(n)), uT = (n, e, t) => Ji(t, n, n).replace(/\\{(\\w+)\\}/g, (i, r) => {\n var s;\n return `${(s = e == null ? void 0 : e[r]) != null ? s : `{${r}}`}`;\n}), hT = (n) => {\n const e = ue(() => z(n).name), t = Zc(n) ? n : Te(n);\n return {\n lang: e,\n locale: t,\n t: cT(n)\n };\n}, m0 = Symbol(\"localeContextKey\"), iu = (n) => {\n const e = n || pt(m0, Te());\n return hT(ue(() => e.value || lT));\n}, _c = \"el\", dT = \"is-\", rs = (n, e, t, i, r) => {\n let s = `${n}-${e}`;\n return t && (s += `-${t}`), i && (s += `__${i}`), r && (s += `--${r}`), s;\n}, g0 = Symbol(\"namespaceContextKey\"), Jd = (n) => {\n const e = n || (dn() ? pt(g0, Te(_c)) : Te(_c));\n return ue(() => z(e) || _c);\n}, nt = (n, e) => {\n const t = Jd(e);\n return {\n namespace: t,\n b: (u = \"\") => rs(t.value, n, u, \"\", \"\"),\n e: (u) => u ? rs(t.value, n, \"\", u, \"\") : \"\",\n m: (u) => u ? rs(t.value, n, \"\", \"\", u) : \"\",\n be: (u, y) => u && y ? rs(t.value, n, u, y, \"\") : \"\",\n em: (u, y) => u && y ? rs(t.value, n, \"\", u, y) : \"\",\n bm: (u, y) => u && y ? rs(t.value, n, u, \"\", y) : \"\",\n bem: (u, y, v) => u && y && v ? rs(t.value, n, u, y, v) : \"\",\n is: (u, ...y) => {\n const v = y.length >= 1 ? y[0] : !0;\n return u && v ? `${dT}${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}, fT = nu({\n type: Je(Boolean),\n default: null\n}), pT = nu({\n type: Je(Function)\n}), mT = (n) => {\n const e = `update:${n}`, t = `onUpdate:${n}`, i = [e], r = {\n [n]: fT,\n [t]: pT\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 = dn(), { emit: g } = f, p = f.props, u = ue(() => Sn(p[t])), y = ue(() => p[n] === null), v = (R) => {\n o.value !== !0 && (o.value = !0, a && (a.value = R), Sn(d) && d(R));\n }, m = (R) => {\n o.value !== !1 && (o.value = !1, a && (a.value = R), Sn(h) && h(R));\n }, x = (R) => {\n if (p.disabled === !0 || Sn(l) && !l())\n return;\n const L = u.value && en;\n L && g(e, !0), (y.value || !L) && v(R);\n }, w = (R) => {\n if (p.disabled === !0 || !en)\n return;\n const L = u.value && en;\n L && g(e, !1), (y.value || !L) && m(R);\n }, A = (R) => {\n Ba(R) && (p.disabled && R ? u.value && g(e, !1) : o.value !== R && (R ? v() : m()));\n }, M = () => {\n o.value ? w() : x();\n };\n return Qe(() => p[n], A), c && f.appContext.config.globalProperties.$route !== void 0 && Qe(() => ({\n ...f.proxy.$route\n }), () => {\n c.value && o.value && w();\n }), Jt(() => {\n A(p[n]);\n }), {\n hide: w,\n show: x,\n toggle: M,\n hasUpdateHandler: u\n };\n },\n useModelToggleProps: r,\n useModelToggleEmits: i\n };\n}, v0 = (n) => {\n const e = dn();\n return ue(() => {\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 On = \"top\", qn = \"bottom\", Qn = \"right\", Dn = \"left\", Kd = \"auto\", il = [On, qn, Qn, Dn], wo = \"start\", Ua = \"end\", gT = \"clippingParents\", y0 = \"viewport\", ua = \"popper\", vT = \"reference\", om = il.reduce(function(n, e) {\n return n.concat([e + \"-\" + wo, e + \"-\" + Ua]);\n}, []), Yo = [].concat(il, [Kd]).reduce(function(n, e) {\n return n.concat([e, e + \"-\" + wo, e + \"-\" + Ua]);\n}, []), yT = \"beforeRead\", bT = \"read\", xT = \"afterRead\", MT = \"beforeMain\", wT = \"main\", AT = \"afterMain\", ST = \"beforeWrite\", _T = \"write\", TT = \"afterWrite\", ET = [yT, bT, xT, MT, wT, AT, ST, _T, TT];\nfunction Ii(n) {\n return n ? (n.nodeName || \"\").toLowerCase() : null;\n}\nfunction yi(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 Ao(n) {\n var e = yi(n).Element;\n return n instanceof e || n instanceof Element;\n}\nfunction Kn(n) {\n var e = yi(n).HTMLElement;\n return n instanceof e || n instanceof HTMLElement;\n}\nfunction qd(n) {\n if (typeof ShadowRoot > \"u\") return !1;\n var e = yi(n).ShadowRoot;\n return n instanceof e || n instanceof ShadowRoot;\n}\nfunction CT(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 !Kn(s) || !Ii(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 LT(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 !Kn(r) || !Ii(r) || (Object.assign(r.style, a), Object.keys(s).forEach(function(c) {\n r.removeAttribute(c);\n }));\n });\n };\n}\nvar b0 = { name: \"applyStyles\", enabled: !0, phase: \"write\", fn: CT, effect: LT, requires: [\"computeStyles\"] };\nfunction Ri(n) {\n return n.split(\"-\")[0];\n}\nvar xs = Math.max, Bc = Math.min, So = Math.round;\nfunction _o(n, e) {\n e === void 0 && (e = !1);\n var t = n.getBoundingClientRect(), i = 1, r = 1;\n if (Kn(n) && e) {\n var s = n.offsetHeight, o = n.offsetWidth;\n o > 0 && (i = So(t.width) / o || 1), s > 0 && (r = So(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 Qd(n) {\n var e = _o(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 x0(n, e) {\n var t = e.getRootNode && e.getRootNode();\n if (n.contains(e)) return !0;\n if (t && qd(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 rr(n) {\n return yi(n).getComputedStyle(n);\n}\nfunction RT(n) {\n return [\"table\", \"td\", \"th\"].indexOf(Ii(n)) >= 0;\n}\nfunction Xr(n) {\n return ((Ao(n) ? n.ownerDocument : n.document) || window.document).documentElement;\n}\nfunction ru(n) {\n return Ii(n) === \"html\" ? n : n.assignedSlot || n.parentNode || (qd(n) ? n.host : null) || Xr(n);\n}\nfunction am(n) {\n return !Kn(n) || rr(n).position === \"fixed\" ? null : n.offsetParent;\n}\nfunction FT(n) {\n var e = navigator.userAgent.toLowerCase().indexOf(\"firefox\") !== -1, t = navigator.userAgent.indexOf(\"Trident\") !== -1;\n if (t && Kn(n)) {\n var i = rr(n);\n if (i.position === \"fixed\") return null;\n }\n var r = ru(n);\n for (qd(r) && (r = r.host); Kn(r) && [\"html\", \"body\"].indexOf(Ii(r)) < 0; ) {\n var s = rr(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 rl(n) {\n for (var e = yi(n), t = am(n); t && RT(t) && rr(t).position === \"static\"; ) t = am(t);\n return t && (Ii(t) === \"html\" || Ii(t) === \"body\" && rr(t).position === \"static\") ? e : t || FT(n) || e;\n}\nfunction ef(n) {\n return [\"top\", \"bottom\"].indexOf(n) >= 0 ? \"x\" : \"y\";\n}\nfunction Ca(n, e, t) {\n return xs(n, Bc(e, t));\n}\nfunction PT(n, e, t) {\n var i = Ca(n, e, t);\n return i > t ? t : i;\n}\nfunction M0() {\n return { top: 0, right: 0, bottom: 0, left: 0 };\n}\nfunction w0(n) {\n return Object.assign({}, M0(), n);\n}\nfunction A0(n, e) {\n return e.reduce(function(t, i) {\n return t[i] = n, t;\n }, {});\n}\nvar IT = function(n, e) {\n return n = typeof n == \"function\" ? n(Object.assign({}, e.rects, { placement: e.placement })) : n, w0(typeof n != \"number\" ? n : A0(n, il));\n};\nfunction OT(n) {\n var e, t = n.state, i = n.name, r = n.options, s = t.elements.arrow, o = t.modifiersData.popperOffsets, a = Ri(t.placement), c = ef(a), l = [Dn, Qn].indexOf(a) >= 0, d = l ? \"height\" : \"width\";\n if (!(!s || !o)) {\n var h = IT(r.padding, t), f = Qd(s), g = c === \"y\" ? On : Dn, p = c === \"y\" ? qn : Qn, u = t.rects.reference[d] + t.rects.reference[c] - o[c] - t.rects.popper[d], y = o[c] - t.rects.reference[c], v = rl(s), m = v ? c === \"y\" ? v.clientHeight || 0 : v.clientWidth || 0 : 0, x = u / 2 - y / 2, w = h[g], A = m - f[d] - h[p], M = m / 2 - f[d] / 2 + x, R = Ca(w, M, A), L = c;\n t.modifiersData[i] = (e = {}, e[L] = R, e.centerOffset = R - M, e);\n }\n}\nfunction DT(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) || !x0(e.elements.popper, r) || (e.elements.arrow = r));\n}\nvar NT = { name: \"arrow\", enabled: !0, phase: \"main\", fn: OT, effect: DT, requires: [\"popperOffsets\"], requiresIfExists: [\"preventOverflow\"] };\nfunction To(n) {\n return n.split(\"-\")[1];\n}\nvar BT = { top: \"auto\", right: \"auto\", bottom: \"auto\", left: \"auto\" };\nfunction UT(n) {\n var e = n.x, t = n.y, i = window, r = i.devicePixelRatio || 1;\n return { x: So(e * r) / r || 0, y: So(t * r) / r || 0 };\n}\nfunction lm(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\"), x = Dn, w = On, A = window;\n if (l) {\n var M = rl(t), R = \"clientHeight\", L = \"clientWidth\";\n if (M === yi(t) && (M = Xr(t), rr(M).position !== \"static\" && a === \"absolute\" && (R = \"scrollHeight\", L = \"scrollWidth\")), M = M, r === On || (r === Dn || r === Qn) && s === Ua) {\n w = qn;\n var S = h && M === A && A.visualViewport ? A.visualViewport.height : M[R];\n u -= S - i.height, u *= c ? 1 : -1;\n }\n if (r === Dn || (r === On || r === qn) && s === Ua) {\n x = Qn;\n var I = h && M === A && A.visualViewport ? A.visualViewport.width : M[L];\n g -= I - i.width, g *= c ? 1 : -1;\n }\n }\n var T = Object.assign({ position: a }, l && BT), _ = d === !0 ? UT({ x: g, y: u }) : { x: g, y: u };\n if (g = _.x, u = _.y, c) {\n var E;\n return Object.assign({}, T, (E = {}, E[w] = m ? \"0\" : \"\", E[x] = v ? \"0\" : \"\", E.transform = (A.devicePixelRatio || 1) <= 1 ? \"translate(\" + g + \"px, \" + u + \"px)\" : \"translate3d(\" + g + \"px, \" + u + \"px, 0)\", E));\n }\n return Object.assign({}, T, (e = {}, e[w] = m ? u + \"px\" : \"\", e[x] = v ? g + \"px\" : \"\", e.transform = \"\", e));\n}\nfunction zT(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: Ri(e.placement), variation: To(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, lm(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, lm(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 S0 = { name: \"computeStyles\", enabled: !0, phase: \"beforeWrite\", fn: zT, data: {} }, Tl = { passive: !0 };\nfunction VT(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 = yi(e.elements.popper), l = [].concat(e.scrollParents.reference, e.scrollParents.popper);\n return s && l.forEach(function(d) {\n d.addEventListener(\"scroll\", t.update, Tl);\n }), a && c.addEventListener(\"resize\", t.update, Tl), function() {\n s && l.forEach(function(d) {\n d.removeEventListener(\"scroll\", t.update, Tl);\n }), a && c.removeEventListener(\"resize\", t.update, Tl);\n };\n}\nvar _0 = { name: \"eventListeners\", enabled: !0, phase: \"write\", fn: function() {\n}, effect: VT, data: {} }, kT = { left: \"right\", right: \"left\", bottom: \"top\", top: \"bottom\" };\nfunction Tc(n) {\n return n.replace(/left|right|bottom|top/g, function(e) {\n return kT[e];\n });\n}\nvar GT = { start: \"end\", end: \"start\" };\nfunction cm(n) {\n return n.replace(/start|end/g, function(e) {\n return GT[e];\n });\n}\nfunction tf(n) {\n var e = yi(n), t = e.pageXOffset, i = e.pageYOffset;\n return { scrollLeft: t, scrollTop: i };\n}\nfunction nf(n) {\n return _o(Xr(n)).left + tf(n).scrollLeft;\n}\nfunction HT(n) {\n var e = yi(n), t = Xr(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 + nf(n), y: a };\n}\nfunction WT(n) {\n var e, t = Xr(n), i = tf(n), r = (e = n.ownerDocument) == null ? void 0 : e.body, s = xs(t.scrollWidth, t.clientWidth, r ? r.scrollWidth : 0, r ? r.clientWidth : 0), o = xs(t.scrollHeight, t.clientHeight, r ? r.scrollHeight : 0, r ? r.clientHeight : 0), a = -i.scrollLeft + nf(n), c = -i.scrollTop;\n return rr(r || t).direction === \"rtl\" && (a += xs(t.clientWidth, r ? r.clientWidth : 0) - s), { width: s, height: o, x: a, y: c };\n}\nfunction rf(n) {\n var e = rr(n), t = e.overflow, i = e.overflowX, r = e.overflowY;\n return /auto|scroll|overlay|hidden/.test(t + r + i);\n}\nfunction T0(n) {\n return [\"html\", \"body\", \"#document\"].indexOf(Ii(n)) >= 0 ? n.ownerDocument.body : Kn(n) && rf(n) ? n : T0(ru(n));\n}\nfunction La(n, e) {\n var t;\n e === void 0 && (e = []);\n var i = T0(n), r = i === ((t = n.ownerDocument) == null ? void 0 : t.body), s = yi(i), o = r ? [s].concat(s.visualViewport || [], rf(i) ? i : []) : i, a = e.concat(o);\n return r ? a : a.concat(La(ru(o)));\n}\nfunction Xh(n) {\n return Object.assign({}, n, { left: n.x, top: n.y, right: n.x + n.width, bottom: n.y + n.height });\n}\nfunction jT(n) {\n var e = _o(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 um(n, e) {\n return e === y0 ? Xh(HT(n)) : Ao(e) ? jT(e) : Xh(WT(Xr(n)));\n}\nfunction $T(n) {\n var e = La(ru(n)), t = [\"absolute\", \"fixed\"].indexOf(rr(n).position) >= 0, i = t && Kn(n) ? rl(n) : n;\n return Ao(i) ? e.filter(function(r) {\n return Ao(r) && x0(r, i) && Ii(r) !== \"body\";\n }) : [];\n}\nfunction ZT(n, e, t) {\n var i = e === \"clippingParents\" ? $T(n) : [].concat(e), r = [].concat(i, [t]), s = r[0], o = r.reduce(function(a, c) {\n var l = um(n, c);\n return a.top = xs(l.top, a.top), a.right = Bc(l.right, a.right), a.bottom = Bc(l.bottom, a.bottom), a.left = xs(l.left, a.left), a;\n }, um(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 E0(n) {\n var e = n.reference, t = n.element, i = n.placement, r = i ? Ri(i) : null, s = i ? To(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 On:\n c = { x: o, y: e.y - t.height };\n break;\n case qn:\n c = { x: o, y: e.y + e.height };\n break;\n case Qn:\n c = { x: e.x + e.width, y: a };\n break;\n case Dn:\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 ? ef(r) : null;\n if (l != null) {\n var d = l === \"y\" ? \"height\" : \"width\";\n switch (s) {\n case wo:\n c[l] = c[l] - (e[d] / 2 - t[d] / 2);\n break;\n case Ua:\n c[l] = c[l] + (e[d] / 2 - t[d] / 2);\n break;\n }\n }\n return c;\n}\nfunction za(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 ? gT : s, a = t.rootBoundary, c = a === void 0 ? y0 : a, l = t.elementContext, d = l === void 0 ? ua : l, h = t.altBoundary, f = h === void 0 ? !1 : h, g = t.padding, p = g === void 0 ? 0 : g, u = w0(typeof p != \"number\" ? p : A0(p, il)), y = d === ua ? vT : ua, v = n.rects.popper, m = n.elements[f ? y : d], x = ZT(Ao(m) ? m : m.contextElement || Xr(n.elements.popper), o, c), w = _o(n.elements.reference), A = E0({ reference: w, element: v, strategy: \"absolute\", placement: r }), M = Xh(Object.assign({}, v, A)), R = d === ua ? M : w, L = { top: x.top - R.top + u.top, bottom: R.bottom - x.bottom + u.bottom, left: x.left - R.left + u.left, right: R.right - x.right + u.right }, S = n.modifiersData.offset;\n if (d === ua && S) {\n var I = S[r];\n Object.keys(L).forEach(function(T) {\n var _ = [Qn, qn].indexOf(T) >= 0 ? 1 : -1, E = [On, qn].indexOf(T) >= 0 ? \"y\" : \"x\";\n L[T] += I[E] * _;\n });\n }\n return L;\n}\nfunction XT(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 ? Yo : c, d = To(i), h = d ? a ? om : om.filter(function(p) {\n return To(p) === d;\n }) : il, 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] = za(n, { placement: u, boundary: r, rootBoundary: s, padding: o })[Ri(u)], p;\n }, {});\n return Object.keys(g).sort(function(p, u) {\n return g[p] - g[u];\n });\n}\nfunction YT(n) {\n if (Ri(n) === Kd) return [];\n var e = Tc(n);\n return [cm(n), e, cm(e)];\n}\nfunction JT(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 = Ri(y), m = v === y, x = c || (m || !p ? [Tc(y)] : YT(y)), w = [y].concat(x).reduce(function(te, ae) {\n return te.concat(Ri(ae) === Kd ? XT(e, { placement: ae, boundary: d, rootBoundary: h, padding: l, flipVariations: p, allowedAutoPlacements: u }) : ae);\n }, []), A = e.rects.reference, M = e.rects.popper, R = /* @__PURE__ */ new Map(), L = !0, S = w[0], I = 0; I < w.length; I++) {\n var T = w[I], _ = Ri(T), E = To(T) === wo, C = [On, qn].indexOf(_) >= 0, P = C ? \"width\" : \"height\", b = za(e, { placement: T, boundary: d, rootBoundary: h, altBoundary: f, padding: l }), F = C ? E ? Qn : Dn : E ? qn : On;\n A[P] > M[P] && (F = Tc(F));\n var D = Tc(F), N = [];\n if (s && N.push(b[_] <= 0), a && N.push(b[F] <= 0, b[D] <= 0), N.every(function(te) {\n return te;\n })) {\n S = T, L = !1;\n break;\n }\n R.set(T, N);\n }\n if (L) for (var B = p ? 3 : 1, U = function(te) {\n var ae = w.find(function(ie) {\n var le = R.get(ie);\n if (le) return le.slice(0, te).every(function(W) {\n return W;\n });\n });\n if (ae) return S = ae, \"break\";\n }, G = B; G > 0; G--) {\n var Y = U(G);\n if (Y === \"break\") break;\n }\n e.placement !== S && (e.modifiersData[i]._skip = !0, e.placement = S, e.reset = !0);\n }\n}\nvar KT = { name: \"flip\", enabled: !0, phase: \"main\", fn: JT, requiresIfExists: [\"offset\"], data: { _skip: !1 } };\nfunction hm(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 [On, Qn, qn, Dn].some(function(e) {\n return n[e] >= 0;\n });\n}\nfunction qT(n) {\n var e = n.state, t = n.name, i = e.rects.reference, r = e.rects.popper, s = e.modifiersData.preventOverflow, o = za(e, { elementContext: \"reference\" }), a = za(e, { altBoundary: !0 }), c = hm(o, i), l = hm(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 QT = { name: \"hide\", enabled: !0, phase: \"main\", requiresIfExists: [\"preventOverflow\"], fn: qT };\nfunction eE(n, e, t) {\n var i = Ri(n), r = [Dn, On].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, [Dn, Qn].indexOf(i) >= 0 ? { x: a, y: o } : { x: o, y: a };\n}\nfunction tE(n) {\n var e = n.state, t = n.options, i = n.name, r = t.offset, s = r === void 0 ? [0, 0] : r, o = Yo.reduce(function(d, h) {\n return d[h] = eE(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 nE = { name: \"offset\", enabled: !0, phase: \"main\", requires: [\"popperOffsets\"], fn: tE };\nfunction iE(n) {\n var e = n.state, t = n.name;\n e.modifiersData[t] = E0({ reference: e.rects.reference, element: e.rects.popper, strategy: \"absolute\", placement: e.placement });\n}\nvar C0 = { name: \"popperOffsets\", enabled: !0, phase: \"read\", fn: iE, data: {} };\nfunction rE(n) {\n return n === \"x\" ? \"y\" : \"x\";\n}\nfunction sE(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 = za(e, { boundary: c, rootBoundary: l, padding: h, altBoundary: d }), v = Ri(e.placement), m = To(e.placement), x = !m, w = ef(v), A = rE(w), M = e.modifiersData.popperOffsets, R = e.rects.reference, L = e.rects.popper, S = typeof u == \"function\" ? u(Object.assign({}, e.rects, { placement: e.placement })) : u, I = typeof S == \"number\" ? { mainAxis: S, altAxis: S } : Object.assign({ mainAxis: 0, altAxis: 0 }, S), T = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, _ = { x: 0, y: 0 };\n if (M) {\n if (s) {\n var E, C = w === \"y\" ? On : Dn, P = w === \"y\" ? qn : Qn, b = w === \"y\" ? \"height\" : \"width\", F = M[w], D = F + y[C], N = F - y[P], B = g ? -L[b] / 2 : 0, U = m === wo ? R[b] : L[b], G = m === wo ? -L[b] : -R[b], Y = e.elements.arrow, te = g && Y ? Qd(Y) : { width: 0, height: 0 }, ae = e.modifiersData[\"arrow#persistent\"] ? e.modifiersData[\"arrow#persistent\"].padding : M0(), ie = ae[C], le = ae[P], W = Ca(0, R[b], te[b]), $ = x ? R[b] / 2 - B - W - ie - I.mainAxis : U - W - ie - I.mainAxis, j = x ? -R[b] / 2 + B + W + le + I.mainAxis : G + W + le + I.mainAxis, re = e.elements.arrow && rl(e.elements.arrow), V = re ? w === \"y\" ? re.clientTop || 0 : re.clientLeft || 0 : 0, H = (E = T == null ? void 0 : T[w]) != null ? E : 0, K = F + $ - H - V, ce = F + j - H, se = Ca(g ? Bc(D, K) : D, F, g ? xs(N, ce) : N);\n M[w] = se, _[w] = se - F;\n }\n if (a) {\n var k, O = w === \"x\" ? On : Dn, Z = w === \"x\" ? qn : Qn, X = M[A], ee = A === \"y\" ? \"height\" : \"width\", fe = X + y[O], be = X - y[Z], Ae = [On, Dn].indexOf(v) !== -1, he = (k = T == null ? void 0 : T[A]) != null ? k : 0, xe = Ae ? fe : X - R[ee] - L[ee] - he + I.altAxis, ne = Ae ? X + R[ee] + L[ee] - he - I.altAxis : be, me = g && Ae ? PT(xe, X, ne) : Ca(g ? xe : fe, X, g ? ne : be);\n M[A] = me, _[A] = me - X;\n }\n e.modifiersData[i] = _;\n }\n}\nvar oE = { name: \"preventOverflow\", enabled: !0, phase: \"main\", fn: sE, requiresIfExists: [\"offset\"] };\nfunction aE(n) {\n return { scrollLeft: n.scrollLeft, scrollTop: n.scrollTop };\n}\nfunction lE(n) {\n return n === yi(n) || !Kn(n) ? tf(n) : aE(n);\n}\nfunction cE(n) {\n var e = n.getBoundingClientRect(), t = So(e.width) / n.offsetWidth || 1, i = So(e.height) / n.offsetHeight || 1;\n return t !== 1 || i !== 1;\n}\nfunction uE(n, e, t) {\n t === void 0 && (t = !1);\n var i = Kn(e), r = Kn(e) && cE(e), s = Xr(e), o = _o(n, r), a = { scrollLeft: 0, scrollTop: 0 }, c = { x: 0, y: 0 };\n return (i || !i && !t) && ((Ii(e) !== \"body\" || rf(s)) && (a = lE(e)), Kn(e) ? (c = _o(e, !0), c.x += e.clientLeft, c.y += e.clientTop) : s && (c.x = nf(s))), { x: o.left + a.scrollLeft - c.x, y: o.top + a.scrollTop - c.y, width: o.width, height: o.height };\n}\nfunction hE(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 dE(n) {\n var e = hE(n);\n return ET.reduce(function(t, i) {\n return t.concat(e.filter(function(r) {\n return r.phase === i;\n }));\n }, []);\n}\nfunction fE(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 pE(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 fm = { placement: \"bottom\", modifiers: [], strategy: \"absolute\" };\nfunction pm() {\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 sf(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 ? fm : r;\n return function(o, a, c) {\n c === void 0 && (c = s);\n var l = { placement: \"bottom\", orderedModifiers: [], options: Object.assign({}, fm, 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: Ao(o) ? La(o) : o.contextElement ? La(o.contextElement) : [], popper: La(a) };\n var v = dE(pE([].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 (pm(y, v)) {\n l.rects = { reference: uE(y, rl(v), l.options.strategy === \"fixed\"), popper: Qd(v) }, l.reset = !1, l.placement = l.options.placement, l.orderedModifiers.forEach(function(L) {\n return l.modifiersData[L.name] = Object.assign({}, L.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 x = l.orderedModifiers[m], w = x.fn, A = x.options, M = A === void 0 ? {} : A, R = x.name;\n typeof w == \"function\" && (l = w({ state: l, options: M, name: R, instance: f }) || l);\n }\n }\n }\n }, update: fE(function() {\n return new Promise(function(u) {\n f.forceUpdate(), u(l);\n });\n }), destroy: function() {\n p(), h = !0;\n } };\n if (!pm(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, x = u.effect;\n if (typeof x == \"function\") {\n var w = x({ state: l, name: y, instance: f, options: m }), A = function() {\n };\n d.push(w || A);\n }\n });\n }\n function p() {\n d.forEach(function(u) {\n return u();\n }), d = [];\n }\n return f;\n };\n}\nsf();\nvar mE = [_0, C0, S0, b0];\nsf({ defaultModifiers: mE });\nvar gE = [_0, C0, S0, b0, nE, KT, oE, NT, QT], vE = sf({ defaultModifiers: gE });\nconst yE = (n, e, t = {}) => {\n const i = {\n name: \"updateState\",\n enabled: !0,\n phase: \"write\",\n fn: ({ state: c }) => {\n const l = bE(c);\n Object.assign(o.value, l);\n },\n requires: [\"computeStyles\"]\n }, r = ue(() => {\n const { onFirstUpdate: c, placement: l, strategy: d, modifiers: h } = z(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 = En(), o = Te({\n styles: {\n popper: {\n position: z(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 = z(s);\n l && l.setOptions(c);\n }, {\n deep: !0\n }), Qe([n, e], ([c, l]) => {\n a(), !(!c || !l) && (s.value = vE(c, l, z(r)));\n }), ei(() => {\n a();\n }), {\n state: ue(() => {\n var c;\n return { ...((c = z(s)) == null ? void 0 : c.state) || {} };\n }),\n styles: ue(() => z(o).styles),\n attributes: ue(() => z(o).attributes),\n update: () => {\n var c;\n return (c = z(s)) == null ? void 0 : c.update();\n },\n forceUpdate: () => {\n var c;\n return (c = z(s)) == null ? void 0 : c.forceUpdate();\n },\n instanceRef: ue(() => z(s))\n };\n};\nfunction bE(n) {\n const e = Object.keys(n.elements), t = Ic(e.map((r) => [r, n.styles[r] || {}])), i = Ic(e.map((r) => [r, n.attributes[r]]));\n return {\n styles: t,\n attributes: i\n };\n}\nfunction mm() {\n let n;\n const e = (i, r) => {\n t(), n = window.setTimeout(i, r);\n }, t = () => window.clearTimeout(n);\n return Yc(() => t()), {\n registerTimeout: e,\n cancelTimeout: t\n };\n}\nconst Yh = {\n prefix: Math.floor(Math.random() * 1e4),\n current: 0\n}, xE = Symbol(\"elIdInjection\"), of = () => dn() ? pt(xE, Yh) : Yh, sl = (n) => {\n const e = of();\n !en && e === Yh && Vt(\"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 = Jd();\n return ue(() => z(n) || `${t.value}-id-${e.prefix}-${e.current++}`);\n};\nlet fo = [];\nconst gm = (n) => {\n const e = n;\n e.key === Li.esc && fo.forEach((t) => t(e));\n}, ME = (n) => {\n Jt(() => {\n fo.length === 0 && document.addEventListener(\"keydown\", gm), en && fo.push(n);\n }), ei(() => {\n fo = fo.filter((e) => e !== n), fo.length === 0 && en && document.removeEventListener(\"keydown\", gm);\n });\n};\nlet vm;\nconst L0 = () => {\n const n = Jd(), e = of(), t = ue(() => `${n.value}-popper-container-${e.prefix}`), i = ue(() => `#${t.value}`);\n return {\n id: t,\n selector: i\n };\n}, wE = (n) => {\n const e = document.createElement(\"div\");\n return e.id = n, document.body.appendChild(e), e;\n}, AE = () => {\n const { id: n, selector: e } = L0();\n return zM(() => {\n en && (process.env.NODE_ENV === \"test\" || !vm || !document.body.querySelector(e.value)) && (vm = wE(n.value));\n }), {\n id: n,\n selector: e\n };\n}, SE = at({\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}), _E = ({\n showAfter: n,\n hideAfter: e,\n autoClose: t,\n open: i,\n close: r\n}) => {\n const { registerTimeout: s } = mm(), {\n registerTimeout: o,\n cancelTimeout: a\n } = mm();\n return {\n onOpen: (d) => {\n s(() => {\n i(d);\n const h = z(t);\n yt(h) && h > 0 && o(() => {\n r(d);\n }, h);\n }, z(n));\n },\n onClose: (d) => {\n a(), s(() => {\n r(d);\n }, z(e));\n }\n };\n}, R0 = Symbol(\"elForwardRef\"), TE = (n) => {\n sn(R0, {\n setForwardRef: (t) => {\n n.value = t;\n }\n });\n}, EE = (n) => ({\n mounted(e) {\n n(e);\n },\n updated(e) {\n n(e);\n },\n unmounted() {\n n(null);\n }\n}), ym = {\n current: 0\n}, bm = Te(0), F0 = 2e3, xm = Symbol(\"elZIndexContextKey\"), P0 = Symbol(\"zIndexContextKey\"), I0 = (n) => {\n const e = dn() ? pt(xm, ym) : ym, t = n || (dn() ? pt(P0, void 0) : void 0), i = ue(() => {\n const o = z(t);\n return yt(o) ? o : F0;\n }), r = ue(() => i.value + bm.value), s = () => (e.current++, bm.value = e.current, r.value);\n return !en && !pt(xm) && Vt(\"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 CE(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 LE = (n, e, t) => Sc(n.subTree).filter((s) => {\n var o;\n return Uh(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), RE = (n, e) => {\n const t = {}, i = En([]);\n return {\n children: i,\n addChild: (o) => {\n t[o.uid] = o, i.value = LE(n, e, t);\n },\n removeChild: (o) => {\n delete t[o], i.value = i.value.filter((a) => a.uid !== o);\n }\n };\n}, Gr = nu({\n type: String,\n values: f0,\n required: !1\n}), O0 = Symbol(\"size\"), FE = () => {\n const n = pt(O0, {});\n return ue(() => z(n.size) || \"\");\n};\nfunction D0(n, {\n beforeFocus: e,\n afterFocus: t,\n beforeBlur: i,\n afterBlur: r\n} = {}) {\n const s = dn(), { emit: o } = s, a = En(), c = Te(!1), l = (f) => {\n Sn(e) && e(f) || c.value || (c.value = !0, o(\"focus\", f), t == null || t());\n }, d = (f) => {\n var g;\n Sn(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\" && Jt(() => {\n const f = ys(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 N0({\n afterComposition: n,\n emit: e\n}) {\n const t = Te(!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 = !rT(d);\n }, s = (a) => {\n e == null || e(\"compositionend\", a), t.value && (t.value = !1, bt(() => 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 B0 = Symbol(\"emptyValuesContextKey\"), PE = \"use-empty-values\", IE = [\"\", void 0, null], OE = void 0, DE = at({\n emptyValues: Array,\n valueOnClear: {\n type: [String, Number, Boolean, Function],\n default: void 0,\n validator: (n) => Sn(n) ? !n() : !n\n }\n}), NE = (n, e) => {\n const t = dn() ? pt(B0, Te({})) : Te({}), i = ue(() => n.emptyValues || t.value.emptyValues || IE), r = ue(() => Sn(n.valueOnClear) ? n.valueOnClear() : n.valueOnClear !== void 0 ? n.valueOnClear : Sn(t.value.valueOnClear) ? t.value.valueOnClear() : t.value.valueOnClear !== void 0 ? t.value.valueOnClear : OE), s = (o) => i.value.includes(o);\n return i.value.includes(r.value) || Vt(PE, \"value-on-clear should be a value of empty-values\"), {\n emptyValues: i,\n valueOnClear: r,\n isEmptyValue: s\n };\n}, BE = at({\n ariaLabel: String,\n ariaOrientation: {\n type: String,\n values: [\"horizontal\", \"vertical\", \"undefined\"]\n },\n ariaControls: String\n}), Yr = (n) => P_(BE, n), U0 = Symbol(), Uc = Te();\nfunction af(n, e = void 0) {\n const t = dn() ? pt(U0, Uc) : Uc;\n return n ? ue(() => {\n var i, r;\n return (r = (i = t.value) == null ? void 0 : i[n]) != null ? r : e;\n }) : t;\n}\nfunction UE(n, e) {\n const t = af(), i = nt(n, ue(() => {\n var a;\n return ((a = t.value) == null ? void 0 : a.namespace) || _c;\n })), r = iu(ue(() => {\n var a;\n return (a = t.value) == null ? void 0 : a.locale;\n })), s = I0(ue(() => {\n var a;\n return ((a = t.value) == null ? void 0 : a.zIndex) || F0;\n })), o = ue(() => {\n var a;\n return z(e) || ((a = t.value) == null ? void 0 : a.size) || \"\";\n });\n return zE(ue(() => z(t) || {})), {\n ns: i,\n locale: r,\n zIndex: s,\n size: o\n };\n}\nconst zE = (n, e, t = !1) => {\n var i;\n const r = !!dn(), s = r ? af() : void 0, o = (i = void 0) != null ? i : r ? sn : void 0;\n if (!o) {\n Vt(\"provideGlobalConfig\", \"provideGlobalConfig() can only be used inside setup().\");\n return;\n }\n const a = ue(() => {\n const c = z(n);\n return s != null && s.value ? VE(s.value, c) : c;\n });\n return o(U0, a), o(m0, ue(() => a.value.locale)), o(g0, ue(() => a.value.namespace)), o(P0, ue(() => a.value.zIndex)), o(O0, {\n size: ue(() => a.value.size || \"\")\n }), o(B0, ue(() => ({\n emptyValues: a.value.emptyValues,\n valueOnClear: a.value.valueOnClear\n }))), (t || !Uc.value) && (Uc.value = a.value), a;\n}, VE = (n, e) => {\n const t = [.../* @__PURE__ */ new Set([...rm(n), ...rm(e)])], i = {};\n for (const r of t)\n i[r] = e[r] !== void 0 ? e[r] : n[r];\n return i;\n};\nvar st = (n, e) => {\n const t = n.__vccOpts || n;\n for (const [i, r] of e)\n t[i] = r;\n return t;\n};\nconst kE = at({\n size: {\n type: Je([Number, String])\n },\n color: {\n type: String\n }\n}), GE = Pe({\n name: \"ElIcon\",\n inheritAttrs: !1\n}), HE = /* @__PURE__ */ Pe({\n ...GE,\n props: kE,\n setup(n) {\n const e = n, t = nt(\"icon\"), i = ue(() => {\n const { size: r, color: s } = e;\n return !r && !s ? {} : {\n fontSize: di(r) ? void 0 : Dc(r),\n \"--color\": s\n };\n });\n return (r, s) => (ve(), Le(\"i\", Ei({\n class: z(t).b(),\n style: z(i)\n }, r.$attrs), [\n je(r.$slots, \"default\")\n ], 16));\n }\n});\nvar WE = /* @__PURE__ */ st(HE, [[\"__file\", \"icon.vue\"]]);\nconst It = on(WE), lf = Symbol(\"formContextKey\"), zc = Symbol(\"formItemContextKey\"), Ns = (n, e = {}) => {\n const t = Te(void 0), i = e.prop ? t : v0(\"size\"), r = e.global ? t : FE(), s = e.form ? { size: void 0 } : pt(lf, void 0), o = e.formItem ? { size: void 0 } : pt(zc, void 0);\n return ue(() => i.value || z(n) || (o == null ? void 0 : o.size) || (s == null ? void 0 : s.size) || r.value || \"\");\n}, ol = (n) => {\n const e = v0(\"disabled\"), t = pt(lf, void 0);\n return ue(() => e.value || z(n) || (t == null ? void 0 : t.disabled) || !1);\n}, Jo = () => {\n const n = pt(lf, void 0), e = pt(zc, void 0);\n return {\n form: n,\n formItem: e\n };\n}, su = (n, {\n formItemContext: e,\n disableIdGeneration: t,\n disableIdManagement: i\n}) => {\n t || (t = Te(!1)), i || (i = Te(!1));\n const r = Te();\n let s;\n const o = ue(() => {\n var a;\n return !!(!(n.label || n.ariaLabel) && e && e.inputIds && ((a = e.inputIds) == null ? void 0 : a.length) <= 1);\n });\n return Jt(() => {\n s = Qe([hi(n, \"id\"), t], ([a, c]) => {\n const l = a ?? (c ? void 0 : sl().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 }), Uv(() => {\n s && s(), e != null && e.removeInputId && r.value && e.removeInputId(r.value);\n }), {\n isLabeledByFormItem: o,\n inputId: r\n };\n};\nlet ii;\nconst jE = `\n height:0 !important;\n visibility:hidden !important;\n ${Iw() ? \"\" : \"overflow:hidden !important;\"}\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n`, $E = [\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 ZE(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: $E.map((o) => `${o}:${e.getPropertyValue(o)}`).join(\";\"), paddingSize: i, borderSize: r, boxSizing: t };\n}\nfunction Mm(n, e = 1, t) {\n var i;\n ii || (ii = document.createElement(\"textarea\"), document.body.appendChild(ii));\n const { paddingSize: r, borderSize: s, boxSizing: o, contextStyle: a } = ZE(n);\n ii.setAttribute(\"style\", `${a};${jE}`), ii.value = n.value || n.placeholder || \"\";\n let c = ii.scrollHeight;\n const l = {};\n o === \"border-box\" ? c = c + s : o === \"content-box\" && (c = c - r), ii.value = \"\";\n const d = ii.scrollHeight - r;\n if (yt(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 (yt(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 = ii.parentNode) == null || i.removeChild(ii), ii = void 0, l;\n}\nconst XE = at({\n id: {\n type: String,\n default: void 0\n },\n size: Gr,\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: kr\n },\n prefixIcon: {\n type: kr\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: () => Ki({})\n },\n autofocus: Boolean,\n rows: {\n type: Number,\n default: 2\n },\n ...Yr([\"ariaLabel\"])\n}), YE = {\n [At]: (n) => vn(n),\n input: (n) => vn(n),\n change: (n) => vn(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}, JE = Pe({\n name: \"ElInput\",\n inheritAttrs: !1\n}), KE = /* @__PURE__ */ Pe({\n ...JE,\n props: XE,\n emits: YE,\n setup(n, { expose: e, emit: t }) {\n const i = n, r = VM(), s = Xc(), o = ue(() => {\n const he = {};\n return i.containerRole === \"combobox\" && (he[\"aria-haspopup\"] = r[\"aria-haspopup\"], he[\"aria-owns\"] = r[\"aria-owns\"], he[\"aria-expanded\"] = r[\"aria-expanded\"]), he;\n }), a = ue(() => [\n i.type === \"textarea\" ? y.b() : u.b(),\n u.m(g.value),\n u.is(\"disabled\", p.value),\n u.is(\"exceed\", Y.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\")]: N.value && B.value,\n [u.b(\"hidden\")]: i.type === \"hidden\"\n },\n r.class\n ]), c = ue(() => [\n u.e(\"wrapper\"),\n u.is(\"focus\", S.value)\n ]), l = aT({\n excludeKeys: ue(() => Object.keys(o.value))\n }), { form: d, formItem: h } = Jo(), { inputId: f } = su(i, {\n formItemContext: h\n }), g = Ns(), p = ol(), u = nt(\"input\"), y = nt(\"textarea\"), v = En(), m = En(), x = Te(!1), w = Te(!1), A = Te(), M = En(i.inputStyle), R = ue(() => v.value || m.value), { wrapperRef: L, isFocused: S, handleFocus: I, handleBlur: T } = D0(R, {\n beforeFocus() {\n return p.value;\n },\n afterBlur() {\n var he;\n i.validateEvent && ((he = h == null ? void 0 : h.validate) == null || he.call(h, \"blur\").catch((xe) => Vt(xe)));\n }\n }), _ = ue(() => {\n var he;\n return (he = d == null ? void 0 : d.statusIcon) != null ? he : !1;\n }), E = ue(() => (h == null ? void 0 : h.validateState) || \"\"), C = ue(() => E.value && d0[E.value]), P = ue(() => w.value ? eT : X_), b = ue(() => [\n r.style\n ]), F = ue(() => [\n i.inputStyle,\n M.value,\n { resize: i.resize }\n ]), D = ue(() => Ci(i.modelValue) ? \"\" : String(i.modelValue)), N = ue(() => i.clearable && !p.value && !i.readonly && !!D.value && (S.value || x.value)), B = ue(() => i.showPassword && !p.value && !i.readonly && !!D.value && (!!D.value || S.value)), U = ue(() => i.showWordLimit && !!i.maxlength && (i.type === \"text\" || i.type === \"textarea\") && !p.value && !i.readonly && !i.showPassword), G = ue(() => D.value.length), Y = ue(() => !!U.value && G.value > Number(i.maxlength)), te = ue(() => !!s.suffix || !!i.suffixIcon || N.value || i.showPassword || U.value || !!E.value && _.value), [ae, ie] = CE(v);\n Yn(m, (he) => {\n if ($(), !U.value || i.resize !== \"both\")\n return;\n const xe = he[0], { width: ne } = xe.contentRect;\n A.value = {\n right: `calc(100% - ${ne + 15 + 6}px)`\n };\n });\n const le = () => {\n const { type: he, autosize: xe } = i;\n if (!(!en || he !== \"textarea\" || !m.value))\n if (xe) {\n const ne = Tn(xe) ? xe.minRows : void 0, me = Tn(xe) ? xe.maxRows : void 0, Me = Mm(m.value, ne, me);\n M.value = {\n overflowY: \"hidden\",\n ...Me\n }, bt(() => {\n m.value.offsetHeight, M.value = Me;\n });\n } else\n M.value = {\n minHeight: Mm(m.value).minHeight\n };\n }, $ = ((he) => {\n let xe = !1;\n return () => {\n var ne;\n if (xe || !i.autosize)\n return;\n ((ne = m.value) == null ? void 0 : ne.offsetParent) === null || (he(), xe = !0);\n };\n })(le), j = () => {\n const he = R.value, xe = i.formatter ? i.formatter(D.value) : D.value;\n !he || he.value === xe || (he.value = xe);\n }, re = async (he) => {\n ae();\n let { value: xe } = he.target;\n if (i.formatter && (xe = i.parser ? i.parser(xe) : xe), !H.value) {\n if (xe === D.value) {\n j();\n return;\n }\n t(At, xe), t(\"input\", xe), await bt(), j(), ie();\n }\n }, V = (he) => {\n t(\"change\", he.target.value);\n }, {\n isComposing: H,\n handleCompositionStart: K,\n handleCompositionUpdate: ce,\n handleCompositionEnd: se\n } = N0({ emit: t, afterComposition: re }), k = () => {\n w.value = !w.value, O();\n }, O = async () => {\n var he;\n await bt(), (he = R.value) == null || he.focus();\n }, Z = () => {\n var he;\n return (he = R.value) == null ? void 0 : he.blur();\n }, X = (he) => {\n x.value = !1, t(\"mouseleave\", he);\n }, ee = (he) => {\n x.value = !0, t(\"mouseenter\", he);\n }, fe = (he) => {\n t(\"keydown\", he);\n }, be = () => {\n var he;\n (he = R.value) == null || he.select();\n }, Ae = () => {\n t(At, \"\"), t(\"change\", \"\"), t(\"clear\"), t(\"input\", \"\");\n };\n return Qe(() => i.modelValue, () => {\n var he;\n bt(() => le()), i.validateEvent && ((he = h == null ? void 0 : h.validate) == null || he.call(h, \"change\").catch((xe) => Vt(xe)));\n }), Qe(D, () => j()), Qe(() => i.type, async () => {\n await bt(), j(), le();\n }), Jt(() => {\n !i.formatter && i.parser && Vt(\"ElInput\", \"If you set the parser, you also need to set the formatter.\"), j(), bt(le);\n }), e({\n input: v,\n textarea: m,\n ref: R,\n textareaStyle: F,\n autosize: hi(i, \"autosize\"),\n isComposing: H,\n focus: O,\n blur: Z,\n select: be,\n clear: Ae,\n resizeTextarea: le\n }), (he, xe) => (ve(), Le(\"div\", Ei(z(o), {\n class: [\n z(a),\n {\n [z(u).bm(\"group\", \"append\")]: he.$slots.append,\n [z(u).bm(\"group\", \"prepend\")]: he.$slots.prepend\n }\n ],\n style: z(b),\n role: he.containerRole,\n onMouseenter: ee,\n onMouseleave: X\n }), [\n Ve(\" input \"),\n he.type !== \"textarea\" ? (ve(), Le(Pt, { key: 0 }, [\n Ve(\" prepend slot \"),\n he.$slots.prepend ? (ve(), Le(\"div\", {\n key: 0,\n class: Ee(z(u).be(\"group\", \"prepend\"))\n }, [\n je(he.$slots, \"prepend\")\n ], 2)) : Ve(\"v-if\", !0),\n Ne(\"div\", {\n ref_key: \"wrapperRef\",\n ref: L,\n class: Ee(z(c))\n }, [\n Ve(\" prefix slot \"),\n he.$slots.prefix || he.prefixIcon ? (ve(), Le(\"span\", {\n key: 0,\n class: Ee(z(u).e(\"prefix\"))\n }, [\n Ne(\"span\", {\n class: Ee(z(u).e(\"prefix-inner\"))\n }, [\n je(he.$slots, \"prefix\"),\n he.prefixIcon ? (ve(), ke(z(It), {\n key: 0,\n class: Ee(z(u).e(\"icon\"))\n }, {\n default: de(() => [\n (ve(), ke(Fn(he.prefixIcon)))\n ]),\n _: 1\n }, 8, [\"class\"])) : Ve(\"v-if\", !0)\n ], 2)\n ], 2)) : Ve(\"v-if\", !0),\n Ne(\"input\", Ei({\n id: z(f),\n ref_key: \"input\",\n ref: v,\n class: z(u).e(\"inner\")\n }, z(l), {\n minlength: he.minlength,\n maxlength: he.maxlength,\n type: he.showPassword ? w.value ? \"text\" : \"password\" : he.type,\n disabled: z(p),\n readonly: he.readonly,\n autocomplete: he.autocomplete,\n tabindex: he.tabindex,\n \"aria-label\": he.ariaLabel,\n placeholder: he.placeholder,\n style: he.inputStyle,\n form: he.form,\n autofocus: he.autofocus,\n onCompositionstart: z(K),\n onCompositionupdate: z(ce),\n onCompositionend: z(se),\n onInput: re,\n onChange: V,\n onKeydown: fe\n }), null, 16, [\"id\", \"minlength\", \"maxlength\", \"type\", \"disabled\", \"readonly\", \"autocomplete\", \"tabindex\", \"aria-label\", \"placeholder\", \"form\", \"autofocus\", \"onCompositionstart\", \"onCompositionupdate\", \"onCompositionend\"]),\n Ve(\" suffix slot \"),\n z(te) ? (ve(), Le(\"span\", {\n key: 1,\n class: Ee(z(u).e(\"suffix\"))\n }, [\n Ne(\"span\", {\n class: Ee(z(u).e(\"suffix-inner\"))\n }, [\n !z(N) || !z(B) || !z(U) ? (ve(), Le(Pt, { key: 0 }, [\n je(he.$slots, \"suffix\"),\n he.suffixIcon ? (ve(), ke(z(It), {\n key: 0,\n class: Ee(z(u).e(\"icon\"))\n }, {\n default: de(() => [\n (ve(), ke(Fn(he.suffixIcon)))\n ]),\n _: 1\n }, 8, [\"class\"])) : Ve(\"v-if\", !0)\n ], 64)) : Ve(\"v-if\", !0),\n z(N) ? (ve(), ke(z(It), {\n key: 1,\n class: Ee([z(u).e(\"icon\"), z(u).e(\"clear\")]),\n onMousedown: Ut(z(Oa), [\"prevent\"]),\n onClick: Ae\n }, {\n default: de(() => [\n oe(z(Yd))\n ]),\n _: 1\n }, 8, [\"class\", \"onMousedown\"])) : Ve(\"v-if\", !0),\n z(B) ? (ve(), ke(z(It), {\n key: 2,\n class: Ee([z(u).e(\"icon\"), z(u).e(\"password\")]),\n onClick: k\n }, {\n default: de(() => [\n (ve(), ke(Fn(z(P))))\n ]),\n _: 1\n }, 8, [\"class\"])) : Ve(\"v-if\", !0),\n z(U) ? (ve(), Le(\"span\", {\n key: 3,\n class: Ee(z(u).e(\"count\"))\n }, [\n Ne(\"span\", {\n class: Ee(z(u).e(\"count-inner\"))\n }, vt(z(G)) + \" / \" + vt(he.maxlength), 3)\n ], 2)) : Ve(\"v-if\", !0),\n z(E) && z(C) && z(_) ? (ve(), ke(z(It), {\n key: 4,\n class: Ee([\n z(u).e(\"icon\"),\n z(u).e(\"validateIcon\"),\n z(u).is(\"loading\", z(E) === \"validating\")\n ])\n }, {\n default: de(() => [\n (ve(), ke(Fn(z(C))))\n ]),\n _: 1\n }, 8, [\"class\"])) : Ve(\"v-if\", !0)\n ], 2)\n ], 2)) : Ve(\"v-if\", !0)\n ], 2),\n Ve(\" append slot \"),\n he.$slots.append ? (ve(), Le(\"div\", {\n key: 1,\n class: Ee(z(u).be(\"group\", \"append\"))\n }, [\n je(he.$slots, \"append\")\n ], 2)) : Ve(\"v-if\", !0)\n ], 64)) : (ve(), Le(Pt, { key: 1 }, [\n Ve(\" textarea \"),\n Ne(\"textarea\", Ei({\n id: z(f),\n ref_key: \"textarea\",\n ref: m,\n class: [z(y).e(\"inner\"), z(u).is(\"focus\", z(S))]\n }, z(l), {\n minlength: he.minlength,\n maxlength: he.maxlength,\n tabindex: he.tabindex,\n disabled: z(p),\n readonly: he.readonly,\n autocomplete: he.autocomplete,\n style: z(F),\n \"aria-label\": he.ariaLabel,\n placeholder: he.placeholder,\n form: he.form,\n autofocus: he.autofocus,\n rows: he.rows,\n onCompositionstart: z(K),\n onCompositionupdate: z(ce),\n onCompositionend: z(se),\n onInput: re,\n onFocus: z(I),\n onBlur: z(T),\n onChange: V,\n onKeydown: fe\n }), null, 16, [\"id\", \"minlength\", \"maxlength\", \"tabindex\", \"disabled\", \"readonly\", \"autocomplete\", \"aria-label\", \"placeholder\", \"form\", \"autofocus\", \"rows\", \"onCompositionstart\", \"onCompositionupdate\", \"onCompositionend\", \"onFocus\", \"onBlur\"]),\n z(U) ? (ve(), Le(\"span\", {\n key: 0,\n style: Rt(A.value),\n class: Ee(z(u).e(\"count\"))\n }, vt(z(G)) + \" / \" + vt(he.maxlength), 7)) : Ve(\"v-if\", !0)\n ], 64))\n ], 16, [\"role\"]));\n }\n});\nvar qE = /* @__PURE__ */ st(KE, [[\"__file\", \"input.vue\"]]);\nconst QE = on(qE), Hs = 4, e2 = {\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}, t2 = ({\n move: n,\n size: e,\n bar: t\n}) => ({\n [t.size]: e,\n transform: `translate${t.axis}(${n}%)`\n}), cf = Symbol(\"scrollbarContextKey\"), n2 = at({\n vertical: Boolean,\n size: String,\n move: Number,\n ratio: {\n type: Number,\n required: !0\n },\n always: Boolean\n}), i2 = \"Thumb\", r2 = /* @__PURE__ */ Pe({\n __name: \"thumb\",\n props: n2,\n setup(n) {\n const e = n, t = pt(cf), i = nt(\"scrollbar\");\n t || Xo(i2, \"can not inject scrollbar context\");\n const r = Te(), s = Te(), o = Te({}), a = Te(!1);\n let c = !1, l = !1, d = en ? document.onselectstart : null;\n const h = ue(() => e2[e.vertical ? \"vertical\" : \"horizontal\"]), f = ue(() => t2({\n size: e.size,\n move: e.move,\n bar: h.value\n })), g = ue(() => r.value[h.value.offset] ** 2 / t.wrapElement[h.value.scrollSize] / e.ratio / s.value[h.value.offset]), p = (M) => {\n var R;\n if (M.stopPropagation(), M.ctrlKey || [1, 2].includes(M.button))\n return;\n (R = window.getSelection()) == null || R.removeAllRanges(), y(M);\n const L = M.currentTarget;\n L && (o.value[h.value.axis] = L[h.value.offset] - (M[h.value.client] - L.getBoundingClientRect()[h.value.direction]));\n }, u = (M) => {\n if (!s.value || !r.value || !t.wrapElement)\n return;\n const R = Math.abs(M.target.getBoundingClientRect()[h.value.direction] - M[h.value.client]), L = s.value[h.value.offset] / 2, S = (R - L) * 100 * g.value / r.value[h.value.offset];\n t.wrapElement[h.value.scroll] = S * 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 R = o.value[h.value.axis];\n if (!R)\n return;\n const L = (r.value.getBoundingClientRect()[h.value.direction] - M[h.value.client]) * -1, S = s.value[h.value.offset] - R, I = (L - S) * 100 * g.value / r.value[h.value.offset];\n t.wrapElement[h.value.scroll] = I * 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), A(), l && (a.value = !1);\n }, x = () => {\n l = !1, a.value = !!e.size;\n }, w = () => {\n l = !0, a.value = c;\n };\n ei(() => {\n A(), document.removeEventListener(\"mouseup\", m);\n });\n const A = () => {\n document.onselectstart !== d && (document.onselectstart = d);\n };\n return un(hi(t, \"scrollbarElement\"), \"mousemove\", x), un(hi(t, \"scrollbarElement\"), \"mouseleave\", w), (M, R) => (ve(), ke(el, {\n name: z(i).b(\"fade\"),\n persisted: \"\"\n }, {\n default: de(() => [\n Lt(Ne(\"div\", {\n ref_key: \"instance\",\n ref: r,\n class: Ee([z(i).e(\"bar\"), z(i).is(z(h).key)]),\n onMousedown: u\n }, [\n Ne(\"div\", {\n ref_key: \"thumb\",\n ref: s,\n class: Ee(z(i).e(\"thumb\")),\n style: Rt(z(f)),\n onMousedown: p\n }, null, 38)\n ], 34), [\n [mn, M.always || a.value]\n ])\n ]),\n _: 1\n }, 8, [\"name\"]));\n }\n});\nvar wm = /* @__PURE__ */ st(r2, [[\"__file\", \"thumb.vue\"]]);\nconst s2 = at({\n always: {\n type: Boolean,\n default: !0\n },\n minSize: {\n type: Number,\n required: !0\n }\n}), o2 = /* @__PURE__ */ Pe({\n __name: \"bar\",\n props: s2,\n setup(n, { expose: e }) {\n const t = n, i = pt(cf), r = Te(0), s = Te(0), o = Te(\"\"), a = Te(\"\"), c = Te(1), l = Te(1);\n return e({\n handleScroll: (f) => {\n if (f) {\n const g = f.offsetHeight - Hs, p = f.offsetWidth - Hs;\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 - Hs, p = f.offsetWidth - Hs, 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 + Hs < g ? `${v}px` : \"\", o.value = m + Hs < p ? `${m}px` : \"\";\n }\n }), (f, g) => (ve(), Le(Pt, null, [\n oe(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 oe(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 a2 = /* @__PURE__ */ st(o2, [[\"__file\", \"bar.vue\"]]);\nconst l2 = at({\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 ...Yr([\"ariaLabel\", \"ariaOrientation\"])\n}), c2 = {\n scroll: ({\n scrollTop: n,\n scrollLeft: e\n }) => [n, e].every(yt)\n}, Jh = \"ElScrollbar\", u2 = Pe({\n name: Jh\n}), h2 = /* @__PURE__ */ Pe({\n ...u2,\n props: l2,\n emits: c2,\n setup(n, { expose: e, emit: t }) {\n const i = n, r = nt(\"scrollbar\");\n let s, o, a = 0, c = 0;\n const l = Te(), d = Te(), h = Te(), f = Te(), g = ue(() => {\n const A = {};\n return i.height && (A.height = Dc(i.height)), i.maxHeight && (A.maxHeight = Dc(i.maxHeight)), [i.wrapStyle, A];\n }), p = ue(() => [\n i.wrapClass,\n r.e(\"wrap\"),\n { [r.em(\"wrap\", \"hidden-default\")]: !i.native }\n ]), u = ue(() => [r.e(\"view\"), i.viewClass]), y = () => {\n var A;\n d.value && ((A = f.value) == null || A.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(A, M) {\n Tn(A) ? d.value.scrollTo(A) : yt(A) && yt(M) && d.value.scrollTo(A, M);\n }\n const m = (A) => {\n if (!yt(A)) {\n Vt(Jh, \"value must be a number\");\n return;\n }\n d.value.scrollTop = A;\n }, x = (A) => {\n if (!yt(A)) {\n Vt(Jh, \"value must be a number\");\n return;\n }\n d.value.scrollLeft = A;\n }, w = () => {\n var A;\n (A = f.value) == null || A.update();\n };\n return Qe(() => i.noresize, (A) => {\n A ? (s == null || s(), o == null || o()) : ({ stop: s } = Yn(h, w), o = un(\"resize\", w));\n }, { immediate: !0 }), Qe(() => [i.maxHeight, i.height], () => {\n i.native || bt(() => {\n var A;\n w(), d.value && ((A = f.value) == null || A.handleScroll(d.value));\n });\n }), sn(cf, Wn({\n scrollbarElement: l,\n wrapElement: d\n })), kM(() => {\n d.value && (d.value.scrollTop = a, d.value.scrollLeft = c);\n }), Jt(() => {\n i.native || bt(() => {\n w();\n });\n }), zd(() => w()), e({\n wrapRef: d,\n update: w,\n scrollTo: v,\n setScrollTop: m,\n setScrollLeft: x,\n handleScroll: y\n }), (A, M) => (ve(), Le(\"div\", {\n ref_key: \"scrollbarRef\",\n ref: l,\n class: Ee(z(r).b())\n }, [\n Ne(\"div\", {\n ref_key: \"wrapRef\",\n ref: d,\n class: Ee(z(p)),\n style: Rt(z(g)),\n tabindex: A.tabindex,\n onScroll: y\n }, [\n (ve(), ke(Fn(A.tag), {\n id: A.id,\n ref_key: \"resizeRef\",\n ref: h,\n class: Ee(z(u)),\n style: Rt(A.viewStyle),\n role: A.role,\n \"aria-label\": A.ariaLabel,\n \"aria-orientation\": A.ariaOrientation\n }, {\n default: de(() => [\n je(A.$slots, \"default\")\n ]),\n _: 3\n }, 8, [\"id\", \"class\", \"style\", \"role\", \"aria-label\", \"aria-orientation\"]))\n ], 46, [\"tabindex\"]),\n A.native ? Ve(\"v-if\", !0) : (ve(), ke(a2, {\n key: 0,\n ref_key: \"barRef\",\n ref: f,\n always: A.always,\n \"min-size\": A.minSize\n }, null, 8, [\"always\", \"min-size\"]))\n ], 2));\n }\n});\nvar d2 = /* @__PURE__ */ st(h2, [[\"__file\", \"scrollbar.vue\"]]);\nconst f2 = on(d2), uf = Symbol(\"popper\"), z0 = Symbol(\"popperContent\"), p2 = [\n \"dialog\",\n \"grid\",\n \"group\",\n \"listbox\",\n \"menu\",\n \"navigation\",\n \"tooltip\",\n \"tree\"\n], V0 = at({\n role: {\n type: String,\n values: p2,\n default: \"tooltip\"\n }\n}), m2 = Pe({\n name: \"ElPopper\",\n inheritAttrs: !1\n}), g2 = /* @__PURE__ */ Pe({\n ...m2,\n props: V0,\n setup(n, { expose: e }) {\n const t = n, i = Te(), r = Te(), s = Te(), o = Te(), a = ue(() => t.role), c = {\n triggerRef: i,\n popperInstanceRef: r,\n contentRef: s,\n referenceRef: o,\n role: a\n };\n return e(c), sn(uf, c), (l, d) => je(l.$slots, \"default\");\n }\n});\nvar v2 = /* @__PURE__ */ st(g2, [[\"__file\", \"popper.vue\"]]);\nconst k0 = at({\n arrowOffset: {\n type: Number,\n default: 5\n }\n}), y2 = Pe({\n name: \"ElPopperArrow\",\n inheritAttrs: !1\n}), b2 = /* @__PURE__ */ Pe({\n ...y2,\n props: k0,\n setup(n, { expose: e }) {\n const t = n, i = nt(\"popper\"), { arrowOffset: r, arrowRef: s, arrowStyle: o } = pt(z0, void 0);\n return Qe(() => t.arrowOffset, (a) => {\n r.value = a;\n }), ei(() => {\n s.value = void 0;\n }), e({\n arrowRef: s\n }), (a, c) => (ve(), Le(\"span\", {\n ref_key: \"arrowRef\",\n ref: s,\n class: Ee(z(i).e(\"arrow\")),\n style: Rt(z(o)),\n \"data-popper-arrow\": \"\"\n }, null, 6));\n }\n});\nvar x2 = /* @__PURE__ */ st(b2, [[\"__file\", \"arrow.vue\"]]);\nconst Bu = \"ElOnlyChild\", M2 = Pe({\n name: Bu,\n setup(n, {\n slots: e,\n attrs: t\n }) {\n var i;\n const r = pt(R0), s = EE((i = r == null ? void 0 : r.setForwardRef) != null ? i : Oa);\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 Vt(Bu, \"requires exact only one valid child.\"), null;\n const c = G0(a);\n return c ? Lt(GM(c, t), [[s]]) : (Vt(Bu, \"no valid child node found\"), null);\n };\n }\n});\nfunction G0(n) {\n if (!n)\n return null;\n const e = n;\n for (const t of e) {\n if (Tn(t))\n switch (t.type) {\n case HM:\n continue;\n case zv:\n case \"svg\":\n return Am(t);\n case Pt:\n return G0(t.children);\n default:\n return t;\n }\n return Am(t);\n }\n return null;\n}\nfunction Am(n) {\n const e = nt(\"only-child\");\n return oe(\"span\", {\n class: e.e(\"content\")\n }, [n]);\n}\nconst H0 = at({\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}), w2 = Pe({\n name: \"ElPopperTrigger\",\n inheritAttrs: !1\n}), A2 = /* @__PURE__ */ Pe({\n ...w2,\n props: H0,\n setup(n, { expose: e }) {\n const t = n, { role: i, triggerRef: r } = pt(uf, void 0);\n TE(r);\n const s = ue(() => a.value ? t.id : void 0), o = ue(() => {\n if (i && i.value === \"tooltip\")\n return t.open && t.id ? t.id : void 0;\n }), a = ue(() => {\n if (i && i.value !== \"tooltip\")\n return i.value;\n }), c = ue(() => 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 Jt(() => {\n Qe(() => t.virtualRef, (h) => {\n h && (r.value = Qi(h));\n }, {\n immediate: !0\n }), Qe(r, (h, f) => {\n l == null || l(), l = void 0, ys(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 Ci(g[u]) ? h.removeAttribute(p) : h.setAttribute(p, g[u]);\n });\n }, { immediate: !0 })), ys(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 }), ei(() => {\n if (l == null || l(), l = void 0, r.value && ys(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 ? Ve(\"v-if\", !0) : (ve(), ke(z(M2), Ei({ key: 0 }, h.$attrs, {\n \"aria-controls\": z(s),\n \"aria-describedby\": z(o),\n \"aria-expanded\": z(c),\n \"aria-haspopup\": z(a)\n }), {\n default: de(() => [\n je(h.$slots, \"default\")\n ]),\n _: 3\n }, 16, [\"aria-controls\", \"aria-describedby\", \"aria-expanded\", \"aria-haspopup\"]));\n }\n});\nvar S2 = /* @__PURE__ */ st(A2, [[\"__file\", \"trigger.vue\"]]);\nconst Uu = \"focus-trap.focus-after-trapped\", zu = \"focus-trap.focus-after-released\", _2 = \"focus-trap.focusout-prevented\", Sm = {\n cancelable: !0,\n bubbles: !1\n}, T2 = {\n cancelable: !0,\n bubbles: !1\n}, _m = \"focusAfterTrapped\", Tm = \"focusAfterReleased\", E2 = Symbol(\"elFocusTrap\"), hf = Te(), ou = Te(0), df = Te(0);\nlet El = 0;\nconst W0 = (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}, Em = (n, e) => {\n for (const t of n)\n if (!C2(t, e))\n return t;\n}, C2 = (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}, L2 = (n) => {\n const e = W0(n), t = Em(e, n), i = Em(e.reverse(), n);\n return [t, i];\n}, R2 = (n) => n instanceof HTMLInputElement && \"select\" in n, Tr = (n, e) => {\n if (n && n.focus) {\n const t = document.activeElement;\n n.focus({ preventScroll: !0 }), df.value = window.performance.now(), n !== t && R2(n) && e && n.select();\n }\n};\nfunction Cm(n, e) {\n const t = [...n], i = n.indexOf(e);\n return i !== -1 && t.splice(i, 1), t;\n}\nconst F2 = () => {\n let n = [];\n return {\n push: (i) => {\n const r = n[0];\n r && i !== r && r.pause(), n = Cm(n, i), n.unshift(i);\n },\n remove: (i) => {\n var r, s;\n n = Cm(n, i), (s = (r = n[0]) == null ? void 0 : r.resume) == null || s.call(r);\n }\n };\n}, P2 = (n, e = !1) => {\n const t = document.activeElement;\n for (const i of n)\n if (Tr(i, e), document.activeElement !== t)\n return;\n}, Lm = F2(), I2 = () => ou.value > df.value, Cl = () => {\n hf.value = \"pointer\", ou.value = window.performance.now();\n}, Rm = () => {\n hf.value = \"keyboard\", ou.value = window.performance.now();\n}, O2 = () => (Jt(() => {\n El === 0 && (document.addEventListener(\"mousedown\", Cl), document.addEventListener(\"touchstart\", Cl), document.addEventListener(\"keydown\", Rm)), El++;\n}), ei(() => {\n El--, El <= 0 && (document.removeEventListener(\"mousedown\", Cl), document.removeEventListener(\"touchstart\", Cl), document.removeEventListener(\"keydown\", Rm));\n}), {\n focusReason: hf,\n lastUserFocusTimestamp: ou,\n lastAutomatedFocusTimestamp: df\n}), Ll = (n) => new CustomEvent(_2, {\n ...T2,\n detail: n\n}), D2 = Pe({\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 _m,\n Tm,\n \"focusin\",\n \"focusout\",\n \"focusout-prevented\",\n \"release-requested\"\n ],\n setup(n, { emit: e }) {\n const t = Te();\n let i, r;\n const { focusReason: s } = O2();\n ME((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: x, shiftKey: w } = p, { loop: A } = n, M = u === Li.tab && !y && !v && !m, R = document.activeElement;\n if (M && R) {\n const L = x, [S, I] = L2(L);\n if (S && I) {\n if (!w && R === I) {\n const _ = Ll({\n focusReason: s.value\n });\n e(\"focusout-prevented\", _), _.defaultPrevented || (p.preventDefault(), A && Tr(S, !0));\n } else if (w && [S, L].includes(R)) {\n const _ = Ll({\n focusReason: s.value\n });\n e(\"focusout-prevented\", _), _.defaultPrevented || (p.preventDefault(), A && Tr(I, !0));\n }\n } else if (R === L) {\n const _ = Ll({\n focusReason: s.value\n });\n e(\"focusout-prevented\", _), _.defaultPrevented || p.preventDefault();\n }\n }\n };\n sn(E2, {\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(_m, p);\n }, l = (p) => e(Tm, p), d = (p) => {\n const u = z(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 : Tr(r, !0));\n }, h = (p) => {\n const u = z(t);\n if (!(o.paused || !u))\n if (n.trapped) {\n const y = p.relatedTarget;\n !Ci(y) && !u.contains(y) && setTimeout(() => {\n if (!o.paused && n.trapped) {\n const v = Ll({\n focusReason: s.value\n });\n e(\"focusout-prevented\", v), v.defaultPrevented || Tr(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 bt();\n const p = z(t);\n if (p) {\n Lm.push(o);\n const u = p.contains(document.activeElement) ? i : document.activeElement;\n if (i = u, !p.contains(u)) {\n const v = new Event(Uu, Sm);\n p.addEventListener(Uu, c), p.dispatchEvent(v), v.defaultPrevented || bt(() => {\n let m = n.focusStartEl;\n vn(m) || (Tr(m), document.activeElement !== m && (m = \"first\")), m === \"first\" && P2(W0(p), !0), (document.activeElement === u || m === \"container\") && Tr(p);\n });\n }\n }\n }\n function g() {\n const p = z(t);\n if (p) {\n p.removeEventListener(Uu, c);\n const u = new CustomEvent(zu, {\n ...Sm,\n detail: {\n focusReason: s.value\n }\n });\n p.addEventListener(zu, l), p.dispatchEvent(u), !u.defaultPrevented && (s.value == \"keyboard\" || !I2() || p.contains(document.activeElement)) && Tr(i ?? document.body), p.removeEventListener(zu, l), Lm.remove(o);\n }\n }\n return Jt(() => {\n n.trapped && f(), Qe(() => n.trapped, (p) => {\n p ? f() : g();\n });\n }), ei(() => {\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 N2(n, e, t, i, r, s) {\n return je(n.$slots, \"default\", { handleKeydown: n.onKeydown });\n}\nvar B2 = /* @__PURE__ */ st(D2, [[\"render\", N2], [\"__file\", \"focus-trap.vue\"]]);\nconst U2 = [\"fixed\", \"absolute\"], z2 = at({\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: Yo,\n default: \"bottom\"\n },\n popperOptions: {\n type: Je(Object),\n default: () => ({})\n },\n strategy: {\n type: String,\n values: U2,\n default: \"absolute\"\n }\n}), j0 = at({\n ...z2,\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 ...Yr([\"ariaLabel\"])\n}), V2 = {\n mouseenter: (n) => n instanceof MouseEvent,\n mouseleave: (n) => n instanceof MouseEvent,\n focus: () => !0,\n blur: () => !0,\n close: () => !0\n}, k2 = (n, e = []) => {\n const { placement: t, strategy: i, popperOptions: r } = n, s = {\n placement: t,\n strategy: i,\n ...r,\n modifiers: [...H2(n), ...e]\n };\n return W2(s, r == null ? void 0 : r.modifiers), s;\n}, G2 = (n) => {\n if (en)\n return Qi(n);\n};\nfunction H2(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 W2(n, e) {\n e && (n.modifiers = [...n.modifiers, ...e ?? []]);\n}\nconst j2 = 0, $2 = (n) => {\n const { popperInstanceRef: e, contentRef: t, triggerRef: i, role: r } = pt(uf, void 0), s = Te(), o = Te(), a = ue(() => ({\n name: \"eventListeners\",\n enabled: !!n.visible\n })), c = ue(() => {\n var v;\n const m = z(s), x = (v = z(o)) != null ? v : j2;\n return {\n name: \"arrow\",\n enabled: !C_(m),\n options: {\n element: m,\n padding: x\n }\n };\n }), l = ue(() => ({\n onFirstUpdate: () => {\n p();\n },\n ...k2(n, [\n z(c),\n z(a)\n ])\n })), d = ue(() => G2(n.referenceEl) || z(i)), { attributes: h, state: f, styles: g, update: p, forceUpdate: u, instanceRef: y } = yE(d, t, l);\n return Qe(y, (v) => e.value = v), Jt(() => {\n Qe(() => {\n var v;\n return (v = z(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}, Z2 = (n, {\n attributes: e,\n styles: t,\n role: i\n}) => {\n const { nextZIndex: r } = I0(), s = nt(\"popper\"), o = ue(() => z(e).popper), a = Te(yt(n.zIndex) ? n.zIndex : r()), c = ue(() => [\n s.b(),\n s.is(\"pure\", n.pure),\n s.is(n.effect),\n n.popperClass\n ]), l = ue(() => [\n { zIndex: z(a) },\n z(t).popper,\n n.popperStyle || {}\n ]), d = ue(() => i.value === \"dialog\" ? \"false\" : void 0), h = ue(() => z(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 = yt(n.zIndex) ? n.zIndex : r();\n }\n };\n}, X2 = (n, e) => {\n const t = Te(!1), i = Te();\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}, Y2 = Pe({\n name: \"ElPopperContent\"\n}), J2 = /* @__PURE__ */ Pe({\n ...Y2,\n props: j0,\n emits: V2,\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 } = X2(i, t), { attributes: h, arrowRef: f, contentRef: g, styles: p, instanceRef: u, role: y, update: v } = $2(i), {\n ariaModal: m,\n arrowStyle: x,\n contentAttrs: w,\n contentClass: A,\n contentStyle: M,\n updateZIndex: R\n } = Z2(i, {\n styles: p,\n attributes: h,\n role: y\n }), L = pt(zc, void 0), S = Te();\n sn(z0, {\n arrowStyle: x,\n arrowRef: f,\n arrowOffset: S\n }), L && sn(zc, {\n ...L,\n addInputId: Oa,\n removeInputId: Oa\n });\n let I;\n const T = (E = !0) => {\n v(), E && R();\n }, _ = () => {\n T(!1), i.visible && i.focusOnShow ? s.value = !0 : i.visible === !1 && (s.value = !1);\n };\n return Jt(() => {\n Qe(() => i.triggerTargetEl, (E, C) => {\n I == null || I(), I = void 0;\n const P = z(E || g.value), b = z(C || g.value);\n ys(P) && (I = Qe([y, () => i.ariaLabel, m, () => i.id], (F) => {\n [\"role\", \"aria-label\", \"aria-modal\", \"id\"].forEach((D, N) => {\n Ci(F[N]) ? P.removeAttribute(D) : P.setAttribute(D, F[N]);\n });\n }, { immediate: !0 })), b !== P && ys(b) && [\"role\", \"aria-label\", \"aria-modal\", \"id\"].forEach((F) => {\n b.removeAttribute(F);\n });\n }, { immediate: !0 }), Qe(() => i.visible, _, { immediate: !0 });\n }), ei(() => {\n I == null || I(), I = void 0;\n }), e({\n popperContentRef: g,\n popperInstanceRef: u,\n updatePopper: T,\n contentStyle: M\n }), (E, C) => (ve(), Le(\"div\", Ei({\n ref_key: \"contentRef\",\n ref: g\n }, z(w), {\n style: z(M),\n class: z(A),\n tabindex: \"-1\",\n onMouseenter: (P) => E.$emit(\"mouseenter\", P),\n onMouseleave: (P) => E.$emit(\"mouseleave\", P)\n }), [\n oe(z(B2), {\n trapped: z(s),\n \"trap-on-focus-in\": !0,\n \"focus-trap-el\": z(g),\n \"focus-start-el\": z(r),\n onFocusAfterTrapped: z(a),\n onFocusAfterReleased: z(o),\n onFocusin: z(c),\n onFocusoutPrevented: z(l),\n onReleaseRequested: z(d)\n }, {\n default: de(() => [\n je(E.$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 K2 = /* @__PURE__ */ st(J2, [[\"__file\", \"content.vue\"]]);\nconst q2 = on(v2), ff = Symbol(\"elTooltip\"), Vn = at({\n ...SE,\n ...j0,\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 ...Yr([\"ariaLabel\"])\n}), Va = at({\n ...H0,\n disabled: Boolean,\n trigger: {\n type: Je([String, Array]),\n default: \"hover\"\n },\n triggerKeys: {\n type: Je(Array),\n default: () => [Li.enter, Li.space]\n }\n}), {\n useModelToggleProps: Q2,\n useModelToggleEmits: eC,\n useModelToggle: tC\n} = mT(\"visible\"), nC = at({\n ...V0,\n ...Q2,\n ...Vn,\n ...Va,\n ...k0,\n showArrow: {\n type: Boolean,\n default: !0\n }\n}), iC = [\n ...eC,\n \"before-show\",\n \"before-hide\",\n \"show\",\n \"hide\",\n \"open\",\n \"close\"\n], rC = (n, e) => Pn(n) ? n.includes(e) : n === e, Ws = (n, e, t) => (i) => {\n rC(z(n), e) && t(i);\n}, sC = Pe({\n name: \"ElTooltipTrigger\"\n}), oC = /* @__PURE__ */ Pe({\n ...sC,\n props: Va,\n setup(n, { expose: e }) {\n const t = n, i = nt(\"tooltip\"), { controlled: r, id: s, open: o, onOpen: a, onClose: c, onToggle: l } = pt(ff, void 0), d = Te(null), h = () => {\n if (z(r) || t.disabled)\n return !0;\n }, f = hi(t, \"trigger\"), g = Yi(h, Ws(f, \"hover\", a)), p = Yi(h, Ws(f, \"hover\", c)), u = Yi(h, Ws(f, \"click\", (w) => {\n w.button === 0 && l(w);\n })), y = Yi(h, Ws(f, \"focus\", a)), v = Yi(h, Ws(f, \"focus\", c)), m = Yi(h, Ws(f, \"contextmenu\", (w) => {\n w.preventDefault(), l(w);\n })), x = Yi(h, (w) => {\n const { code: A } = w;\n t.triggerKeys.includes(A) && (w.preventDefault(), l(w));\n });\n return e({\n triggerRef: d\n }), (w, A) => (ve(), ke(z(S2), {\n id: z(s),\n \"virtual-ref\": w.virtualRef,\n open: z(o),\n \"virtual-triggering\": w.virtualTriggering,\n class: Ee(z(i).e(\"trigger\")),\n onBlur: z(v),\n onClick: z(u),\n onContextmenu: z(m),\n onFocus: z(y),\n onMouseenter: z(g),\n onMouseleave: z(p),\n onKeydown: z(x)\n }, {\n default: de(() => [\n je(w.$slots, \"default\")\n ]),\n _: 3\n }, 8, [\"id\", \"virtual-ref\", \"open\", \"virtual-triggering\", \"class\", \"onBlur\", \"onClick\", \"onContextmenu\", \"onFocus\", \"onMouseenter\", \"onMouseleave\", \"onKeydown\"]));\n }\n});\nvar aC = /* @__PURE__ */ st(oC, [[\"__file\", \"trigger.vue\"]]);\nconst lC = at({\n to: {\n type: Je([String, Object]),\n required: !0\n },\n disabled: Boolean\n}), cC = /* @__PURE__ */ Pe({\n __name: \"teleport\",\n props: lC,\n setup(n) {\n return (e, t) => e.disabled ? je(e.$slots, \"default\", { key: 0 }) : (ve(), ke(WM, {\n key: 1,\n to: e.to\n }, [\n je(e.$slots, \"default\")\n ], 8, [\"to\"]));\n }\n});\nvar uC = /* @__PURE__ */ st(cC, [[\"__file\", \"teleport.vue\"]]);\nconst hC = on(uC), dC = Pe({\n name: \"ElTooltipContent\",\n inheritAttrs: !1\n}), fC = /* @__PURE__ */ Pe({\n ...dC,\n props: Vn,\n setup(n, { expose: e }) {\n const t = n, { selector: i } = L0(), r = nt(\"tooltip\"), s = Te(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 } = pt(ff, void 0), v = ue(() => t.transition || `${r.namespace.value}-fade-in-linear`), m = ue(() => process.env.NODE_ENV === \"test\" ? !0 : t.persistent);\n ei(() => {\n o == null || o();\n });\n const x = ue(() => z(m) ? !0 : z(l)), w = ue(() => t.disabled ? !1 : z(l)), A = ue(() => t.appendTo || i.value), M = ue(() => {\n var b;\n return (b = t.style) != null ? b : {};\n }), R = Te(!0), L = () => {\n p(), R.value = !0;\n }, S = () => {\n if (z(a))\n return !0;\n }, I = Yi(S, () => {\n t.enterable && z(d) === \"hover\" && f();\n }), T = Yi(S, () => {\n z(d) === \"hover\" && h();\n }), _ = () => {\n var b, F;\n (F = (b = s.value) == null ? void 0 : b.updatePopper) == null || F.call(b), u == null || u();\n }, E = () => {\n y == null || y();\n }, C = () => {\n g(), o = yw(ue(() => {\n var b;\n return (b = s.value) == null ? void 0 : b.popperContentRef;\n }), () => {\n if (z(a))\n return;\n z(d) !== \"hover\" && h();\n });\n }, P = () => {\n t.virtualTriggering || h();\n };\n return Qe(() => z(l), (b) => {\n b ? R.value = !1 : o == null || o();\n }, {\n flush: \"post\"\n }), Qe(() => t.content, () => {\n var b, F;\n (F = (b = s.value) == null ? void 0 : b.updatePopper) == null || F.call(b);\n }), e({\n contentRef: s\n }), (b, F) => (ve(), ke(z(hC), {\n disabled: !b.teleported,\n to: z(A)\n }, {\n default: de(() => [\n oe(el, {\n name: z(v),\n onAfterLeave: L,\n onBeforeEnter: _,\n onAfterEnter: C,\n onBeforeLeave: E\n }, {\n default: de(() => [\n z(x) ? Lt((ve(), ke(z(K2), Ei({\n key: 0,\n id: z(c),\n ref_key: \"contentRef\",\n ref: s\n }, b.$attrs, {\n \"aria-label\": b.ariaLabel,\n \"aria-hidden\": R.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, z(M)],\n \"reference-el\": b.referenceEl,\n \"trigger-target-el\": b.triggerTargetEl,\n visible: z(w),\n \"z-index\": b.zIndex,\n onMouseenter: z(I),\n onMouseleave: z(T),\n onBlur: P,\n onClose: z(h)\n }), {\n default: de(() => [\n je(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 [mn, z(w)]\n ]) : Ve(\"v-if\", !0)\n ]),\n _: 3\n }, 8, [\"name\"])\n ]),\n _: 3\n }, 8, [\"disabled\", \"to\"]));\n }\n});\nvar pC = /* @__PURE__ */ st(fC, [[\"__file\", \"content.vue\"]]);\nconst mC = Pe({\n name: \"ElTooltip\"\n}), gC = /* @__PURE__ */ Pe({\n ...mC,\n props: nC,\n emits: iC,\n setup(n, { expose: e, emit: t }) {\n const i = n;\n AE();\n const r = sl(), s = Te(), o = Te(), a = () => {\n var v;\n const m = z(s);\n m && ((v = m.popperInstanceRef) == null || v.update());\n }, c = Te(!1), l = Te(), { show: d, hide: h, hasUpdateHandler: f } = tC({\n indicator: c,\n toggleReason: l\n }), { onOpen: g, onClose: p } = _E({\n showAfter: hi(i, \"showAfter\"),\n hideAfter: hi(i, \"hideAfter\"),\n autoClose: hi(i, \"autoClose\"),\n open: d,\n close: h\n }), u = ue(() => Ba(i.visible) && !f.value);\n sn(ff, {\n controlled: u,\n id: r,\n open: Bv(c),\n trigger: hi(i, \"trigger\"),\n onOpen: (v) => {\n g(v);\n },\n onClose: (v) => {\n p(v);\n },\n onToggle: (v) => {\n z(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, x;\n const w = (x = (m = o.value) == null ? void 0 : m.contentRef) == null ? void 0 : x.popperContentRef, A = (v == null ? void 0 : v.relatedTarget) || document.activeElement;\n return w && w.contains(A);\n };\n return jM(() => 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) => (ve(), ke(z(q2), {\n ref_key: \"popperRef\",\n ref: s,\n role: v.role\n }, {\n default: de(() => [\n oe(aC, {\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: de(() => [\n v.$slots.default ? je(v.$slots, \"default\", { key: 0 }) : Ve(\"v-if\", !0)\n ]),\n _: 3\n }, 8, [\"disabled\", \"trigger\", \"trigger-keys\", \"virtual-ref\", \"virtual-triggering\"]),\n oe(pC, {\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: de(() => [\n je(v.$slots, \"content\", {}, () => [\n v.rawContent ? (ve(), Le(\"span\", {\n key: 0,\n innerHTML: v.content\n }, null, 8, [\"innerHTML\"])) : (ve(), Le(\"span\", { key: 1 }, vt(v.content), 1))\n ]),\n v.showArrow ? (ve(), ke(z(x2), {\n key: 0,\n \"arrow-offset\": v.arrowOffset\n }, null, 8, [\"arrow-offset\"])) : Ve(\"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 vC = /* @__PURE__ */ st(gC, [[\"__file\", \"tooltip.vue\"]]);\nconst pf = on(vC), $0 = Symbol(\"buttonGroupContextKey\"), yC = (n, e) => {\n p0({\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 }, ue(() => n.type === \"text\"));\n const t = pt($0, void 0), i = af(\"button\"), { form: r } = Jo(), s = Ns(ue(() => t == null ? void 0 : t.size)), o = ol(), a = Te(), c = Xc(), l = ue(() => n.type || (t == null ? void 0 : t.type) || \"\"), d = ue(() => {\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 = ue(() => 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 = ue(() => {\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) === zv) {\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}, bC = [\n \"default\",\n \"primary\",\n \"success\",\n \"warning\",\n \"info\",\n \"danger\",\n \"text\",\n \"\"\n], xC = [\"button\", \"submit\", \"reset\"], Kh = at({\n size: Gr,\n disabled: Boolean,\n type: {\n type: String,\n values: bC,\n default: \"\"\n },\n icon: {\n type: kr\n },\n nativeType: {\n type: String,\n values: xC,\n default: \"button\"\n },\n loading: Boolean,\n loadingIcon: {\n type: kr,\n default: () => c0\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}), MC = {\n click: (n) => n instanceof MouseEvent\n};\nfunction yn(n, e) {\n wC(n) && (n = \"100%\");\n var t = AC(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 Rl(n) {\n return Math.min(1, Math.max(0, n));\n}\nfunction wC(n) {\n return typeof n == \"string\" && n.indexOf(\".\") !== -1 && parseFloat(n) === 1;\n}\nfunction AC(n) {\n return typeof n == \"string\" && n.indexOf(\"%\") !== -1;\n}\nfunction Z0(n) {\n return n = parseFloat(n), (isNaN(n) || n < 0 || n > 1) && (n = 1), n;\n}\nfunction Fl(n) {\n return n <= 1 ? \"\".concat(Number(n) * 100, \"%\") : n;\n}\nfunction ms(n) {\n return n.length === 1 ? \"0\" + n : String(n);\n}\nfunction SC(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 Fm(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 Vu(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 _C(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 = Vu(a, o, n + 1 / 3), r = Vu(a, o, n), s = Vu(a, o, n - 1 / 3);\n }\n return { r: i * 255, g: r * 255, b: s * 255 };\n}\nfunction Pm(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 TC(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 Im(n, e, t, i) {\n var r = [\n ms(Math.round(n).toString(16)),\n ms(Math.round(e).toString(16)),\n ms(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 EC(n, e, t, i, r) {\n var s = [\n ms(Math.round(n).toString(16)),\n ms(Math.round(e).toString(16)),\n ms(Math.round(t).toString(16)),\n ms(CC(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 CC(n) {\n return Math.round(parseFloat(n) * 255).toString(16);\n}\nfunction Om(n) {\n return zn(n) / 255;\n}\nfunction zn(n) {\n return parseInt(n, 16);\n}\nfunction LC(n) {\n return {\n r: n >> 16,\n g: (n & 65280) >> 8,\n b: n & 255\n };\n}\nvar qh = {\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 RC(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 = IC(n)), typeof n == \"object\" && (Gi(n.r) && Gi(n.g) && Gi(n.b) ? (e = SC(n.r, n.g, n.b), o = !0, a = String(n.r).substr(-1) === \"%\" ? \"prgb\" : \"rgb\") : Gi(n.h) && Gi(n.s) && Gi(n.v) ? (i = Fl(n.s), r = Fl(n.v), e = TC(n.h, i, r), o = !0, a = \"hsv\") : Gi(n.h) && Gi(n.s) && Gi(n.l) && (i = Fl(n.s), s = Fl(n.l), e = _C(n.h, i, s), o = !0, a = \"hsl\"), Object.prototype.hasOwnProperty.call(n, \"a\") && (t = n.a)), t = Z0(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 FC = \"[-\\\\+]?\\\\d+%?\", PC = \"[-\\\\+]?\\\\d*\\\\.\\\\d+%?\", Fr = \"(?:\".concat(PC, \")|(?:\").concat(FC, \")\"), ku = \"[\\\\s|\\\\(]+(\".concat(Fr, \")[,|\\\\s]+(\").concat(Fr, \")[,|\\\\s]+(\").concat(Fr, \")\\\\s*\\\\)?\"), Gu = \"[\\\\s|\\\\(]+(\".concat(Fr, \")[,|\\\\s]+(\").concat(Fr, \")[,|\\\\s]+(\").concat(Fr, \")[,|\\\\s]+(\").concat(Fr, \")\\\\s*\\\\)?\"), li = {\n CSS_UNIT: new RegExp(Fr),\n rgb: new RegExp(\"rgb\" + ku),\n rgba: new RegExp(\"rgba\" + Gu),\n hsl: new RegExp(\"hsl\" + ku),\n hsla: new RegExp(\"hsla\" + Gu),\n hsv: new RegExp(\"hsv\" + ku),\n hsva: new RegExp(\"hsva\" + Gu),\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 IC(n) {\n if (n = n.trim().toLowerCase(), n.length === 0)\n return !1;\n var e = !1;\n if (qh[n])\n n = qh[n], e = !0;\n else if (n === \"transparent\")\n return { r: 0, g: 0, b: 0, a: 0, format: \"name\" };\n var t = li.rgb.exec(n);\n return t ? { r: t[1], g: t[2], b: t[3] } : (t = li.rgba.exec(n), t ? { r: t[1], g: t[2], b: t[3], a: t[4] } : (t = li.hsl.exec(n), t ? { h: t[1], s: t[2], l: t[3] } : (t = li.hsla.exec(n), t ? { h: t[1], s: t[2], l: t[3], a: t[4] } : (t = li.hsv.exec(n), t ? { h: t[1], s: t[2], v: t[3] } : (t = li.hsva.exec(n), t ? { h: t[1], s: t[2], v: t[3], a: t[4] } : (t = li.hex8.exec(n), t ? {\n r: zn(t[1]),\n g: zn(t[2]),\n b: zn(t[3]),\n a: Om(t[4]),\n format: e ? \"name\" : \"hex8\"\n } : (t = li.hex6.exec(n), t ? {\n r: zn(t[1]),\n g: zn(t[2]),\n b: zn(t[3]),\n format: e ? \"name\" : \"hex\"\n } : (t = li.hex4.exec(n), t ? {\n r: zn(t[1] + t[1]),\n g: zn(t[2] + t[2]),\n b: zn(t[3] + t[3]),\n a: Om(t[4] + t[4]),\n format: e ? \"name\" : \"hex8\"\n } : (t = li.hex3.exec(n), t ? {\n r: zn(t[1] + t[1]),\n g: zn(t[2] + t[2]),\n b: zn(t[3] + t[3]),\n format: e ? \"name\" : \"hex\"\n } : !1)))))))));\n}\nfunction Gi(n) {\n return !!li.CSS_UNIT.exec(String(n));\n}\nvar OC = (\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 = LC(e)), this.originalInput = e;\n var r = RC(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 = Z0(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 = Pm(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 = Pm(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 = Fm(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 = Fm(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), Im(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), EC(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 = \"#\" + Im(this.r, this.g, this.b, !1), t = 0, i = Object.entries(qh); 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 = Rl(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 = Rl(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 = Rl(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 = Rl(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 gr(n, e = 20) {\n return n.mix(\"#141414\", e).toString();\n}\nfunction DC(n) {\n const e = ol(), t = nt(\"button\");\n return ue(() => {\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 OC(r), a = n.dark ? o.tint(20).toString() : gr(o, 20);\n if (n.plain)\n i = t.cssVarBlock({\n \"bg-color\": n.dark ? gr(o, 90) : o.tint(90).toString(),\n \"text-color\": r,\n \"border-color\": n.dark ? gr(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 ? gr(o, 90) : o.tint(90).toString(), i[t.cssVarBlockName(\"disabled-text-color\")] = n.dark ? gr(o, 50) : o.tint(50).toString(), i[t.cssVarBlockName(\"disabled-border-color\")] = n.dark ? gr(o, 80) : o.tint(80).toString());\n else {\n const c = n.dark ? gr(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 ? gr(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 NC = Pe({\n name: \"ElButton\"\n}), BC = /* @__PURE__ */ Pe({\n ...NC,\n props: Kh,\n emits: MC,\n setup(n, { expose: e, emit: t }) {\n const i = n, r = DC(i), s = nt(\"button\"), { _ref: o, _size: a, _type: c, _disabled: l, _props: d, shouldAddSpace: h, handleClick: f } = yC(i, t), g = ue(() => [\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) => (ve(), ke(Fn(p.tag), Ei({\n ref_key: \"_ref\",\n ref: o\n }, z(d), {\n class: z(g),\n style: z(r),\n onClick: z(f)\n }), {\n default: de(() => [\n p.loading ? (ve(), Le(Pt, { key: 0 }, [\n p.$slots.loading ? je(p.$slots, \"loading\", { key: 0 }) : (ve(), ke(z(It), {\n key: 1,\n class: Ee(z(s).is(\"loading\"))\n }, {\n default: de(() => [\n (ve(), ke(Fn(p.loadingIcon)))\n ]),\n _: 1\n }, 8, [\"class\"]))\n ], 64)) : p.icon || p.$slots.icon ? (ve(), ke(z(It), { key: 1 }, {\n default: de(() => [\n p.icon ? (ve(), ke(Fn(p.icon), { key: 0 })) : je(p.$slots, \"icon\", { key: 1 })\n ]),\n _: 3\n })) : Ve(\"v-if\", !0),\n p.$slots.default ? (ve(), Le(\"span\", {\n key: 2,\n class: Ee({ [z(s).em(\"text\", \"expand\")]: z(h) })\n }, [\n je(p.$slots, \"default\")\n ], 2)) : Ve(\"v-if\", !0)\n ]),\n _: 3\n }, 16, [\"class\", \"style\", \"onClick\"]));\n }\n});\nvar UC = /* @__PURE__ */ st(BC, [[\"__file\", \"button.vue\"]]);\nconst zC = {\n size: Kh.size,\n type: Kh.type\n}, VC = Pe({\n name: \"ElButtonGroup\"\n}), kC = /* @__PURE__ */ Pe({\n ...VC,\n props: zC,\n setup(n) {\n const e = n;\n sn($0, Wn({\n size: hi(e, \"size\"),\n type: hi(e, \"type\")\n }));\n const t = nt(\"button\");\n return (i, r) => (ve(), Le(\"div\", {\n class: Ee(z(t).b(\"group\"))\n }, [\n je(i.$slots, \"default\")\n ], 2));\n }\n});\nvar X0 = /* @__PURE__ */ st(kC, [[\"__file\", \"button-group.vue\"]]);\nconst Ko = on(UC, {\n ButtonGroup: X0\n});\nvi(X0);\nvar Lr = typeof globalThis < \"u\" ? globalThis : typeof window < \"u\" ? window : typeof global < \"u\" ? global : typeof self < \"u\" ? self : {};\nfunction GC(n) {\n return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, \"default\") ? n.default : n;\n}\nfunction au(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 Er = /* @__PURE__ */ new Map();\nif (en) {\n let n;\n document.addEventListener(\"mousedown\", (e) => n = e), document.addEventListener(\"mouseup\", (e) => {\n if (n) {\n for (const t of Er.values())\n for (const { documentHandler: i } of t)\n i(e, n);\n n = void 0;\n }\n });\n}\nfunction Dm(n, e) {\n let t = [];\n return Array.isArray(e.arg) ? t = e.arg : ys(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 HC = {\n beforeMount(n, e) {\n Er.has(n) || Er.set(n, []), Er.get(n).push({\n documentHandler: Dm(n, e),\n bindingFn: e.value\n });\n },\n updated(n, e) {\n Er.has(n) || Er.set(n, []);\n const t = Er.get(n), i = t.findIndex((s) => s.bindingFn === e.oldValue), r = {\n documentHandler: Dm(n, e),\n bindingFn: e.value\n };\n i >= 0 ? t.splice(i, 1, r) : t.push(r);\n },\n unmounted(n) {\n Er.delete(n);\n }\n}, WC = 100, jC = 600, Nm = {\n beforeMount(n, e) {\n const t = e.value, { interval: i = WC, delay: r = jC } = Sn(t) ? {} : t;\n let s, o;\n const a = () => Sn(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}, Y0 = at({\n modelValue: {\n type: [String, Number, Boolean],\n default: void 0\n },\n size: Gr,\n disabled: Boolean,\n label: {\n type: [String, Number, Boolean],\n default: void 0\n },\n value: {\n type: [String, Number, Boolean],\n default: void 0\n },\n name: {\n type: String,\n default: void 0\n }\n}), $C = at({\n ...Y0,\n border: Boolean\n}), J0 = {\n [At]: (n) => vn(n) || yt(n) || Ba(n),\n [ur]: (n) => vn(n) || yt(n) || Ba(n)\n}, K0 = Symbol(\"radioGroupKey\"), q0 = (n, e) => {\n const t = Te(), i = pt(K0, void 0), r = ue(() => !!i), s = ue(() => im(n.value) ? n.label : n.value), o = ue({\n get() {\n return r.value ? i.modelValue : n.modelValue;\n },\n set(h) {\n r.value ? i.changeEvent(h) : e && e(At, h), t.value.checked = n.modelValue === s.value;\n }\n }), a = Ns(ue(() => i == null ? void 0 : i.size)), c = ol(ue(() => i == null ? void 0 : i.disabled)), l = Te(!1), d = ue(() => c.value || r.value && o.value !== s.value ? -1 : 0);\n return p0({\n from: \"label act as value\",\n replacement: \"value\",\n version: \"3.0.0\",\n scope: \"el-radio\",\n ref: \"https://element-plus.org/en-US/component/radio.html\"\n }, ue(() => r.value && im(n.value))), {\n radioRef: t,\n isGroup: r,\n radioGroup: i,\n focus: l,\n size: a,\n disabled: c,\n tabIndex: d,\n modelValue: o,\n actualValue: s\n };\n}, ZC = Pe({\n name: \"ElRadio\"\n}), XC = /* @__PURE__ */ Pe({\n ...ZC,\n props: $C,\n emits: J0,\n setup(n, { emit: e }) {\n const t = n, i = nt(\"radio\"), { radioRef: r, radioGroup: s, focus: o, size: a, disabled: c, modelValue: l, actualValue: d } = q0(t, e);\n function h() {\n bt(() => e(\"change\", l.value));\n }\n return (f, g) => {\n var p;\n return ve(), Le(\"label\", {\n class: Ee([\n z(i).b(),\n z(i).is(\"disabled\", z(c)),\n z(i).is(\"focus\", z(o)),\n z(i).is(\"bordered\", f.border),\n z(i).is(\"checked\", z(l) === z(d)),\n z(i).m(z(a))\n ])\n }, [\n Ne(\"span\", {\n class: Ee([\n z(i).e(\"input\"),\n z(i).is(\"disabled\", z(c)),\n z(i).is(\"checked\", z(l) === z(d))\n ])\n }, [\n Lt(Ne(\"input\", {\n ref_key: \"radioRef\",\n ref: r,\n \"onUpdate:modelValue\": (u) => Zc(l) ? l.value = u : null,\n class: Ee(z(i).e(\"original\")),\n value: z(d),\n name: f.name || ((p = z(s)) == null ? void 0 : p.name),\n disabled: z(c),\n checked: z(l) === z(d),\n type: \"radio\",\n onFocus: (u) => o.value = !0,\n onBlur: (u) => o.value = !1,\n onChange: h,\n onClick: Ut(() => {\n }, [\"stop\"])\n }, null, 42, [\"onUpdate:modelValue\", \"value\", \"name\", \"disabled\", \"checked\", \"onFocus\", \"onBlur\", \"onClick\"]), [\n [Vv, z(l)]\n ]),\n Ne(\"span\", {\n class: Ee(z(i).e(\"inner\"))\n }, null, 2)\n ], 2),\n Ne(\"span\", {\n class: Ee(z(i).e(\"label\")),\n onKeydown: Ut(() => {\n }, [\"stop\"])\n }, [\n je(f.$slots, \"default\", {}, () => [\n rt(vt(f.label), 1)\n ])\n ], 42, [\"onKeydown\"])\n ], 2);\n };\n }\n});\nvar YC = /* @__PURE__ */ st(XC, [[\"__file\", \"radio.vue\"]]);\nconst JC = at({\n ...Y0\n}), KC = Pe({\n name: \"ElRadioButton\"\n}), qC = /* @__PURE__ */ Pe({\n ...KC,\n props: JC,\n setup(n) {\n const e = n, t = nt(\"radio\"), { radioRef: i, focus: r, size: s, disabled: o, modelValue: a, radioGroup: c, actualValue: l } = q0(e), d = ue(() => ({\n backgroundColor: (c == null ? void 0 : c.fill) || \"\",\n borderColor: (c == null ? void 0 : c.fill) || \"\",\n boxShadow: c != null && c.fill ? `-1px 0 0 0 ${c.fill}` : \"\",\n color: (c == null ? void 0 : c.textColor) || \"\"\n }));\n return (h, f) => {\n var g;\n return ve(), Le(\"label\", {\n class: Ee([\n z(t).b(\"button\"),\n z(t).is(\"active\", z(a) === z(l)),\n z(t).is(\"disabled\", z(o)),\n z(t).is(\"focus\", z(r)),\n z(t).bm(\"button\", z(s))\n ])\n }, [\n Lt(Ne(\"input\", {\n ref_key: \"radioRef\",\n ref: i,\n \"onUpdate:modelValue\": (p) => Zc(a) ? a.value = p : null,\n class: Ee(z(t).be(\"button\", \"original-radio\")),\n value: z(l),\n type: \"radio\",\n name: h.name || ((g = z(c)) == null ? void 0 : g.name),\n disabled: z(o),\n onFocus: (p) => r.value = !0,\n onBlur: (p) => r.value = !1,\n onClick: Ut(() => {\n }, [\"stop\"])\n }, null, 42, [\"onUpdate:modelValue\", \"value\", \"name\", \"disabled\", \"onFocus\", \"onBlur\", \"onClick\"]), [\n [Vv, z(a)]\n ]),\n Ne(\"span\", {\n class: Ee(z(t).be(\"button\", \"inner\")),\n style: Rt(z(a) === z(l) ? z(d) : {}),\n onKeydown: Ut(() => {\n }, [\"stop\"])\n }, [\n je(h.$slots, \"default\", {}, () => [\n rt(vt(h.label), 1)\n ])\n ], 46, [\"onKeydown\"])\n ], 2);\n };\n }\n});\nvar Q0 = /* @__PURE__ */ st(qC, [[\"__file\", \"radio-button.vue\"]]);\nconst QC = at({\n id: {\n type: String,\n default: void 0\n },\n size: Gr,\n disabled: Boolean,\n modelValue: {\n type: [String, Number, Boolean],\n default: void 0\n },\n fill: {\n type: String,\n default: \"\"\n },\n textColor: {\n type: String,\n default: \"\"\n },\n name: {\n type: String,\n default: void 0\n },\n validateEvent: {\n type: Boolean,\n default: !0\n },\n ...Yr([\"ariaLabel\"])\n}), eL = J0, tL = Pe({\n name: \"ElRadioGroup\"\n}), nL = /* @__PURE__ */ Pe({\n ...tL,\n props: QC,\n emits: eL,\n setup(n, { emit: e }) {\n const t = n, i = nt(\"radio\"), r = sl(), s = Te(), { formItem: o } = Jo(), { inputId: a, isLabeledByFormItem: c } = su(t, {\n formItemContext: o\n }), l = (h) => {\n e(At, h), bt(() => e(\"change\", h));\n };\n Jt(() => {\n const h = s.value.querySelectorAll(\"[type=radio]\"), f = h[0];\n !Array.from(h).some((g) => g.checked) && f && (f.tabIndex = 0);\n });\n const d = ue(() => t.name || r.value);\n return sn(K0, Wn({\n ...Br(t),\n changeEvent: l,\n name: d\n })), Qe(() => t.modelValue, () => {\n t.validateEvent && (o == null || o.validate(\"change\").catch((h) => Vt(h)));\n }), (h, f) => (ve(), Le(\"div\", {\n id: z(a),\n ref_key: \"radioGroupRef\",\n ref: s,\n class: Ee(z(i).b(\"group\")),\n role: \"radiogroup\",\n \"aria-label\": z(c) ? void 0 : h.ariaLabel || \"radio-group\",\n \"aria-labelledby\": z(c) ? z(o).labelId : void 0\n }, [\n je(h.$slots, \"default\")\n ], 10, [\"id\", \"aria-label\", \"aria-labelledby\"]));\n }\n});\nvar ey = /* @__PURE__ */ st(nL, [[\"__file\", \"radio-group.vue\"]]);\nconst ty = on(YC, {\n RadioButton: Q0,\n RadioGroup: ey\n}), ny = vi(ey);\nvi(Q0);\nconst Qh = at({\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: f0\n },\n effect: {\n type: String,\n values: [\"dark\", \"light\", \"plain\"],\n default: \"light\"\n },\n round: Boolean\n}), iL = {\n close: (n) => n instanceof MouseEvent,\n click: (n) => n instanceof MouseEvent\n}, rL = Pe({\n name: \"ElTag\"\n}), sL = /* @__PURE__ */ Pe({\n ...rL,\n props: Qh,\n emits: iL,\n setup(n, { emit: e }) {\n const t = n, i = Ns(), r = nt(\"tag\"), s = ue(() => {\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 ? (ve(), Le(\"span\", {\n key: 0,\n class: Ee(z(s)),\n style: Rt({ backgroundColor: l.color }),\n onClick: a\n }, [\n Ne(\"span\", {\n class: Ee(z(r).e(\"content\"))\n }, [\n je(l.$slots, \"default\")\n ], 2),\n l.closable ? (ve(), ke(z(It), {\n key: 0,\n class: Ee(z(r).e(\"close\")),\n onClick: Ut(o, [\"stop\"])\n }, {\n default: de(() => [\n oe(z(Zh))\n ]),\n _: 1\n }, 8, [\"class\", \"onClick\"])) : Ve(\"v-if\", !0)\n ], 6)) : (ve(), ke(el, {\n key: 1,\n name: `${z(r).namespace.value}-zoom-in-center`,\n appear: \"\",\n onVnodeMounted: c\n }, {\n default: de(() => [\n Ne(\"span\", {\n class: Ee(z(s)),\n style: Rt({ backgroundColor: l.color }),\n onClick: a\n }, [\n Ne(\"span\", {\n class: Ee(z(r).e(\"content\"))\n }, [\n je(l.$slots, \"default\")\n ], 2),\n l.closable ? (ve(), ke(z(It), {\n key: 0,\n class: Ee(z(r).e(\"close\")),\n onClick: Ut(o, [\"stop\"])\n }, {\n default: de(() => [\n oe(z(Zh))\n ]),\n _: 1\n }, 8, [\"class\", \"onClick\"])) : Ve(\"v-if\", !0)\n ], 6)\n ]),\n _: 3\n }, 8, [\"name\"]));\n }\n});\nvar oL = /* @__PURE__ */ st(sL, [[\"__file\", \"tag.vue\"]]);\nconst aL = on(oL), iy = Symbol(\"rowContextKey\"), lL = [\n \"start\",\n \"center\",\n \"end\",\n \"space-around\",\n \"space-between\",\n \"space-evenly\"\n], cL = [\"top\", \"middle\", \"bottom\"], uL = at({\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: lL,\n default: \"start\"\n },\n align: {\n type: String,\n values: cL\n }\n}), hL = Pe({\n name: \"ElRow\"\n}), dL = /* @__PURE__ */ Pe({\n ...hL,\n props: uL,\n setup(n) {\n const e = n, t = nt(\"row\"), i = ue(() => e.gutter);\n sn(iy, {\n gutter: i\n });\n const r = ue(() => {\n const o = {};\n return e.gutter && (o.marginRight = o.marginLeft = `-${e.gutter / 2}px`), o;\n }), s = ue(() => [\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) => (ve(), ke(Fn(o.tag), {\n class: Ee(z(s)),\n style: Rt(z(r))\n }, {\n default: de(() => [\n je(o.$slots, \"default\")\n ]),\n _: 3\n }, 8, [\"class\", \"style\"]));\n }\n});\nvar fL = /* @__PURE__ */ st(dL, [[\"__file\", \"row.vue\"]]);\nconst Ui = on(fL), pL = at({\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: () => Ki({})\n },\n sm: {\n type: Je([Number, Object]),\n default: () => Ki({})\n },\n md: {\n type: Je([Number, Object]),\n default: () => Ki({})\n },\n lg: {\n type: Je([Number, Object]),\n default: () => Ki({})\n },\n xl: {\n type: Je([Number, Object]),\n default: () => Ki({})\n }\n}), mL = Pe({\n name: \"ElCol\"\n}), gL = /* @__PURE__ */ Pe({\n ...mL,\n props: pL,\n setup(n) {\n const e = n, { gutter: t } = pt(iy, { gutter: ue(() => 0) }), i = nt(\"col\"), r = ue(() => {\n const o = {};\n return t.value && (o.paddingLeft = o.paddingRight = `${t.value / 2}px`), o;\n }), s = ue(() => {\n const o = [];\n return [\"span\", \"offset\", \"pull\", \"push\"].forEach((l) => {\n const d = e[l];\n yt(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 yt(e[l]) ? o.push(i.b(`${l}-${e[l]}`)) : Tn(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) => (ve(), ke(Fn(o.tag), {\n class: Ee(z(s)),\n style: Rt(z(r))\n }, {\n default: de(() => [\n je(o.$slots, \"default\")\n ]),\n _: 3\n }, 8, [\"class\", \"style\"]));\n }\n});\nvar vL = /* @__PURE__ */ st(gL, [[\"__file\", \"col.vue\"]]);\nconst bi = on(vL), Bm = (n) => yt(n) || vn(n) || Pn(n), yL = at({\n accordion: Boolean,\n modelValue: {\n type: Je([Array, String, Number]),\n default: () => Ki([])\n }\n}), bL = {\n [At]: Bm,\n [ur]: Bm\n}, ry = Symbol(\"collapseContextKey\"), xL = (n, e) => {\n const t = Te(Si(n.modelValue)), i = (s) => {\n t.value = s;\n const o = n.accordion ? t.value[0] : t.value;\n e(At, o), e(ur, 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 = Si(n.modelValue), { deep: !0 }), sn(ry, {\n activeNames: t,\n handleItemClick: r\n }), {\n activeNames: t,\n setActiveNames: i\n };\n}, ML = () => {\n const n = nt(\"collapse\");\n return {\n rootKls: ue(() => n.b())\n };\n}, wL = Pe({\n name: \"ElCollapse\"\n}), AL = /* @__PURE__ */ Pe({\n ...wL,\n props: yL,\n emits: bL,\n setup(n, { expose: e, emit: t }) {\n const i = n, { activeNames: r, setActiveNames: s } = xL(i, t), { rootKls: o } = ML();\n return e({\n activeNames: r,\n setActiveNames: s\n }), (a, c) => (ve(), Le(\"div\", {\n class: Ee(z(o))\n }, [\n je(a.$slots, \"default\")\n ], 2));\n }\n});\nvar SL = /* @__PURE__ */ st(AL, [[\"__file\", \"collapse.vue\"]]);\nconst _L = Pe({\n name: \"ElCollapseTransition\"\n}), TL = /* @__PURE__ */ Pe({\n ..._L,\n setup(n) {\n const e = nt(\"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) => (ve(), ke(el, Ei({\n name: z(e).b()\n }, $M(i)), {\n default: de(() => [\n je(r.$slots, \"default\")\n ]),\n _: 3\n }, 16, [\"name\"]));\n }\n});\nvar EL = /* @__PURE__ */ st(TL, [[\"__file\", \"collapse-transition.vue\"]]);\nconst CL = on(EL), LL = at({\n title: {\n type: String,\n default: \"\"\n },\n name: {\n type: Je([String, Number]),\n default: void 0\n },\n icon: {\n type: kr,\n default: Vr\n },\n disabled: Boolean\n}), RL = (n) => {\n const e = pt(ry), { namespace: t } = nt(\"collapse\"), i = Te(!1), r = Te(!1), s = of(), o = ue(() => s.current++), a = ue(() => {\n var f;\n return (f = n.name) != null ? f : `${t.value}-id-${s.prefix}-${z(o)}`;\n }), c = ue(() => e == null ? void 0 : e.activeNames.value.includes(z(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(z(a)), i.value = !1, r.value = !0);\n },\n handleEnterClick: () => {\n e == null || e.handleItemClick(z(a));\n }\n };\n}, FL = (n, { focusing: e, isActive: t, id: i }) => {\n const r = nt(\"collapse\"), s = ue(() => [\n r.b(\"item\"),\n r.is(\"active\", z(t)),\n r.is(\"disabled\", n.disabled)\n ]), o = ue(() => [\n r.be(\"item\", \"header\"),\n r.is(\"active\", z(t)),\n { focusing: z(e) && !n.disabled }\n ]), a = ue(() => [\n r.be(\"item\", \"arrow\"),\n r.is(\"active\", z(t))\n ]), c = ue(() => r.be(\"item\", \"wrap\")), l = ue(() => r.be(\"item\", \"content\")), d = ue(() => r.b(`content-${z(i)}`)), h = ue(() => r.b(`head-${z(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}, PL = Pe({\n name: \"ElCollapseItem\"\n}), IL = /* @__PURE__ */ Pe({\n ...PL,\n props: LL,\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 } = RL(t), {\n arrowKls: l,\n headKls: d,\n rootKls: h,\n itemWrapperKls: f,\n itemContentKls: g,\n scopedContentId: p,\n scopedHeadId: u\n } = FL(t, { focusing: i, isActive: s, id: r });\n return e({\n isActive: s\n }), (y, v) => (ve(), Le(\"div\", {\n class: Ee(z(h))\n }, [\n Ne(\"button\", {\n id: z(u),\n class: Ee(z(d)),\n \"aria-expanded\": z(s),\n \"aria-controls\": z(p),\n \"aria-describedby\": z(p),\n tabindex: y.disabled ? -1 : 0,\n type: \"button\",\n onClick: z(a),\n onKeydown: ui(Ut(z(c), [\"stop\", \"prevent\"]), [\"space\", \"enter\"]),\n onFocus: z(o),\n onBlur: (m) => i.value = !1\n }, [\n je(y.$slots, \"title\", {}, () => [\n rt(vt(y.title), 1)\n ]),\n je(y.$slots, \"icon\", { isActive: z(s) }, () => [\n oe(z(It), {\n class: Ee(z(l))\n }, {\n default: de(() => [\n (ve(), ke(Fn(y.icon)))\n ]),\n _: 1\n }, 8, [\"class\"])\n ])\n ], 42, [\"id\", \"aria-expanded\", \"aria-controls\", \"aria-describedby\", \"tabindex\", \"onClick\", \"onKeydown\", \"onFocus\", \"onBlur\"]),\n oe(z(CL), null, {\n default: de(() => [\n Lt(Ne(\"div\", {\n id: z(p),\n role: \"region\",\n class: Ee(z(f)),\n \"aria-hidden\": !z(s),\n \"aria-labelledby\": z(u)\n }, [\n Ne(\"div\", {\n class: Ee(z(g))\n }, [\n je(y.$slots, \"default\")\n ], 2)\n ], 10, [\"id\", \"aria-hidden\", \"aria-labelledby\"]), [\n [mn, z(s)]\n ])\n ]),\n _: 3\n })\n ], 2));\n }\n});\nvar sy = /* @__PURE__ */ st(IL, [[\"__file\", \"collapse-item.vue\"]]);\nconst oy = on(SL, {\n CollapseItem: sy\n}), ay = vi(sy), OL = Pe({\n name: \"ElContainer\"\n}), DL = /* @__PURE__ */ Pe({\n ...OL,\n props: {\n direction: {\n type: String\n }\n },\n setup(n) {\n const e = n, t = Xc(), i = nt(\"container\"), r = ue(() => 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) => (ve(), Le(\"section\", {\n class: Ee([z(i).b(), z(i).is(\"vertical\", z(r))])\n }, [\n je(s.$slots, \"default\")\n ], 2));\n }\n});\nvar NL = /* @__PURE__ */ st(DL, [[\"__file\", \"container.vue\"]]);\nconst BL = Pe({\n name: \"ElAside\"\n}), UL = /* @__PURE__ */ Pe({\n ...BL,\n props: {\n width: {\n type: String,\n default: null\n }\n },\n setup(n) {\n const e = n, t = nt(\"aside\"), i = ue(() => e.width ? t.cssVarBlock({ width: e.width }) : {});\n return (r, s) => (ve(), Le(\"aside\", {\n class: Ee(z(t).b()),\n style: Rt(z(i))\n }, [\n je(r.$slots, \"default\")\n ], 6));\n }\n});\nvar ly = /* @__PURE__ */ st(UL, [[\"__file\", \"aside.vue\"]]);\nconst zL = Pe({\n name: \"ElFooter\"\n}), VL = /* @__PURE__ */ Pe({\n ...zL,\n props: {\n height: {\n type: String,\n default: null\n }\n },\n setup(n) {\n const e = n, t = nt(\"footer\"), i = ue(() => e.height ? t.cssVarBlock({ height: e.height }) : {});\n return (r, s) => (ve(), Le(\"footer\", {\n class: Ee(z(t).b()),\n style: Rt(z(i))\n }, [\n je(r.$slots, \"default\")\n ], 6));\n }\n});\nvar cy = /* @__PURE__ */ st(VL, [[\"__file\", \"footer.vue\"]]);\nconst kL = Pe({\n name: \"ElHeader\"\n}), GL = /* @__PURE__ */ Pe({\n ...kL,\n props: {\n height: {\n type: String,\n default: null\n }\n },\n setup(n) {\n const e = n, t = nt(\"header\"), i = ue(() => e.height ? t.cssVarBlock({\n height: e.height\n }) : {});\n return (r, s) => (ve(), Le(\"header\", {\n class: Ee(z(t).b()),\n style: Rt(z(i))\n }, [\n je(r.$slots, \"default\")\n ], 6));\n }\n});\nvar uy = /* @__PURE__ */ st(GL, [[\"__file\", \"header.vue\"]]);\nconst HL = Pe({\n name: \"ElMain\"\n}), WL = /* @__PURE__ */ Pe({\n ...HL,\n setup(n) {\n const e = nt(\"main\");\n return (t, i) => (ve(), Le(\"main\", {\n class: Ee(z(e).b())\n }, [\n je(t.$slots, \"default\")\n ], 2));\n }\n});\nvar hy = /* @__PURE__ */ st(WL, [[\"__file\", \"main.vue\"]]);\nconst zi = on(NL, {\n Aside: ly,\n Footer: cy,\n Header: uy,\n Main: hy\n});\nvi(ly);\nconst dy = vi(cy), jL = vi(uy), hr = vi(hy), $L = /* @__PURE__ */ Pe({\n inheritAttrs: !1\n});\nfunction ZL(n, e, t, i, r, s) {\n return je(n.$slots, \"default\");\n}\nvar XL = /* @__PURE__ */ st($L, [[\"render\", ZL], [\"__file\", \"collection.vue\"]]);\nconst YL = /* @__PURE__ */ Pe({\n name: \"ElCollectionItem\",\n inheritAttrs: !1\n});\nfunction JL(n, e, t, i, r, s) {\n return je(n.$slots, \"default\");\n}\nvar KL = /* @__PURE__ */ st(YL, [[\"render\", JL], [\"__file\", \"collection-item.vue\"]]);\nconst qL = \"data-el-collection-item\", QL = (n) => {\n const e = `El${n}Collection`, t = `${e}Item`, i = Symbol(e), r = Symbol(t), s = {\n ...XL,\n name: e,\n setup() {\n const a = Te(null), c = /* @__PURE__ */ new Map();\n sn(i, {\n itemMap: c,\n getItems: () => {\n const d = z(a);\n if (!d)\n return [];\n const h = Array.from(d.querySelectorAll(`[${qL}]`));\n return [...c.values()].sort((g, p) => h.indexOf(g.ref) - h.indexOf(p.ref));\n },\n collectionRef: a\n });\n }\n }, o = {\n ...KL,\n name: t,\n setup(a, { attrs: c }) {\n const l = Te(null), d = pt(i, void 0);\n sn(r, {\n collectionItemRef: l\n }), Jt(() => {\n const h = z(l);\n h && d.itemMap.set(h, {\n ref: h,\n ...c\n });\n }), ei(() => {\n const h = z(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}, Hu = at({\n trigger: Va.trigger,\n effect: {\n ...Vn.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: Vn.teleported\n});\nat({\n command: {\n type: [Object, String, Number],\n default: () => ({})\n },\n disabled: Boolean,\n divided: Boolean,\n textValue: String,\n icon: {\n type: kr\n }\n});\nat({\n onKeydown: { type: Je(Function) }\n});\nQL(\"Dropdown\");\nconst eR = at({\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: Gr,\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 || yt(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 ...Yr([\"ariaLabel\"])\n}), tR = {\n [ur]: (n, e) => e !== n,\n blur: (n) => n instanceof FocusEvent,\n focus: (n) => n instanceof FocusEvent,\n [bs]: (n) => yt(n) || Ci(n),\n [At]: (n) => yt(n) || Ci(n)\n}, nR = Pe({\n name: \"ElInputNumber\"\n}), iR = /* @__PURE__ */ Pe({\n ...nR,\n props: eR,\n emits: tR,\n setup(n, { expose: e, emit: t }) {\n const i = n, { t: r } = iu(), s = nt(\"input-number\"), o = Te(), a = Wn({\n currentValue: i.modelValue,\n userInput: null\n }), { formItem: c } = Jo(), l = ue(() => yt(i.modelValue) && i.modelValue <= i.min), d = ue(() => yt(i.modelValue) && i.modelValue >= i.max), h = ue(() => {\n const P = v(i.step);\n return di(i.precision) ? Math.max(v(i.modelValue), P) : (P > i.precision && Vt(\"InputNumber\", \"precision should not be less than the decimal places of step\"), i.precision);\n }), f = ue(() => i.controls && i.controlsPosition === \"right\"), g = Ns(), p = ol(), u = ue(() => {\n if (a.userInput !== null)\n return a.userInput;\n let P = a.currentValue;\n if (Ci(P))\n return \"\";\n if (yt(P)) {\n if (Number.isNaN(P))\n return \"\";\n di(i.precision) || (P = P.toFixed(i.precision));\n }\n return P;\n }), y = (P, b) => {\n if (di(b) && (b = h.value), b === 0)\n return Math.round(P);\n let F = String(P);\n const D = F.indexOf(\".\");\n if (D === -1 || !F.replace(\".\", \"\").split(\"\")[D + b])\n return P;\n const U = F.length;\n return F.charAt(U - 1) === \"5\" && (F = `${F.slice(0, Math.max(0, U - 1))}6`), Number.parseFloat(Number(F).toFixed(b));\n }, v = (P) => {\n if (Ci(P))\n return 0;\n const b = P.toString(), F = b.indexOf(\".\");\n let D = 0;\n return F !== -1 && (D = b.length - F - 1), D;\n }, m = (P, b = 1) => yt(P) ? y(P + i.step * b) : a.currentValue, x = () => {\n if (i.readonly || p.value || d.value)\n return;\n const P = Number(u.value) || 0, b = m(P);\n M(b), t(bs, a.currentValue), E();\n }, w = () => {\n if (i.readonly || p.value || l.value)\n return;\n const P = Number(u.value) || 0, b = m(P, -1);\n M(b), t(bs, a.currentValue), E();\n }, A = (P, b) => {\n const { max: F, min: D, step: N, precision: B, stepStrictly: U, valueOnClear: G } = i;\n F < D && Xo(\"InputNumber\", \"min should not be greater than max.\");\n let Y = Number(P);\n if (Ci(P) || Number.isNaN(Y))\n return null;\n if (P === \"\") {\n if (G === null)\n return null;\n Y = vn(G) ? { min: D, max: F }[G] : G;\n }\n return U && (Y = y(Math.round(Y / N) * N, B), Y !== P && b && t(At, Y)), di(B) || (Y = y(Y, B)), (Y > F || Y < D) && (Y = Y > F ? F : D, b && t(At, Y)), Y;\n }, M = (P, b = !0) => {\n var F;\n const D = a.currentValue, N = A(P);\n if (!b) {\n t(At, N);\n return;\n }\n D === N && P || (a.userInput = null, t(At, N), D !== N && t(ur, N, D), i.validateEvent && ((F = c == null ? void 0 : c.validate) == null || F.call(c, \"change\").catch((B) => Vt(B))), a.currentValue = N);\n }, R = (P) => {\n a.userInput = P;\n const b = P === \"\" ? null : Number(P);\n t(bs, b), M(b, !1);\n }, L = (P) => {\n const b = P !== \"\" ? Number(P) : \"\";\n (yt(b) && !Number.isNaN(b) || P === \"\") && M(b), E(), a.userInput = null;\n }, S = () => {\n var P, b;\n (b = (P = o.value) == null ? void 0 : P.focus) == null || b.call(P);\n }, I = () => {\n var P, b;\n (b = (P = o.value) == null ? void 0 : P.blur) == null || b.call(P);\n }, T = (P) => {\n t(\"focus\", P);\n }, _ = (P) => {\n var b;\n a.userInput = null, t(\"blur\", P), i.validateEvent && ((b = c == null ? void 0 : c.validate) == null || b.call(c, \"blur\").catch((F) => Vt(F)));\n }, E = () => {\n a.currentValue !== i.modelValue && (a.currentValue = i.modelValue);\n }, C = (P) => {\n document.activeElement === P.target && P.preventDefault();\n };\n return Qe(() => i.modelValue, (P, b) => {\n const F = A(P, !0);\n a.userInput === null && F !== b && (a.currentValue = F);\n }, { immediate: !0 }), Jt(() => {\n var P;\n const { min: b, max: F, modelValue: D } = i, N = (P = o.value) == null ? void 0 : P.input;\n if (N.setAttribute(\"role\", \"spinbutton\"), Number.isFinite(F) ? N.setAttribute(\"aria-valuemax\", String(F)) : N.removeAttribute(\"aria-valuemax\"), Number.isFinite(b) ? N.setAttribute(\"aria-valuemin\", String(b)) : N.removeAttribute(\"aria-valuemin\"), N.setAttribute(\"aria-valuenow\", a.currentValue || a.currentValue === 0 ? String(a.currentValue) : \"\"), N.setAttribute(\"aria-disabled\", String(p.value)), !yt(D) && D != null) {\n let B = Number(D);\n Number.isNaN(B) && (B = null), t(At, B);\n }\n N.addEventListener(\"wheel\", C, { passive: !1 });\n }), zd(() => {\n var P, b;\n const F = (P = o.value) == null ? void 0 : P.input;\n F == null || F.setAttribute(\"aria-valuenow\", `${(b = a.currentValue) != null ? b : \"\"}`);\n }), e({\n focus: S,\n blur: I\n }), (P, b) => (ve(), Le(\"div\", {\n class: Ee([\n z(s).b(),\n z(s).m(z(g)),\n z(s).is(\"disabled\", z(p)),\n z(s).is(\"without-controls\", !P.controls),\n z(s).is(\"controls-right\", z(f))\n ]),\n onDragstart: Ut(() => {\n }, [\"prevent\"])\n }, [\n P.controls ? Lt((ve(), Le(\"span\", {\n key: 0,\n role: \"button\",\n \"aria-label\": z(r)(\"el.inputNumber.decrease\"),\n class: Ee([z(s).e(\"decrease\"), z(s).is(\"disabled\", z(l))]),\n onKeydown: ui(w, [\"enter\"])\n }, [\n je(P.$slots, \"decrease-icon\", {}, () => [\n oe(z(It), null, {\n default: de(() => [\n z(f) ? (ve(), ke(z(Xd), { key: 0 })) : (ve(), ke(z(K_), { key: 1 }))\n ]),\n _: 1\n })\n ])\n ], 42, [\"aria-label\", \"onKeydown\"])), [\n [z(Nm), w]\n ]) : Ve(\"v-if\", !0),\n P.controls ? Lt((ve(), Le(\"span\", {\n key: 1,\n role: \"button\",\n \"aria-label\": z(r)(\"el.inputNumber.increase\"),\n class: Ee([z(s).e(\"increase\"), z(s).is(\"disabled\", z(d))]),\n onKeydown: ui(x, [\"enter\"])\n }, [\n je(P.$slots, \"increase-icon\", {}, () => [\n oe(z(It), null, {\n default: de(() => [\n z(f) ? (ve(), ke(z(k_), { key: 0 })) : (ve(), ke(z(tu), { key: 1 }))\n ]),\n _: 1\n })\n ])\n ], 42, [\"aria-label\", \"onKeydown\"])), [\n [z(Nm), x]\n ]) : Ve(\"v-if\", !0),\n oe(z(QE), {\n id: P.id,\n ref_key: \"input\",\n ref: o,\n type: \"number\",\n step: P.step,\n \"model-value\": z(u),\n placeholder: P.placeholder,\n readonly: P.readonly,\n disabled: z(p),\n size: z(g),\n max: P.max,\n min: P.min,\n name: P.name,\n \"aria-label\": P.ariaLabel,\n \"validate-event\": !1,\n onKeydown: [\n ui(Ut(x, [\"prevent\"]), [\"up\"]),\n ui(Ut(w, [\"prevent\"]), [\"down\"])\n ],\n onBlur: _,\n onFocus: T,\n onInput: R,\n onChange: L\n }, ZM({ _: 2 }, [\n P.$slots.prefix ? {\n name: \"prefix\",\n fn: de(() => [\n je(P.$slots, \"prefix\")\n ])\n } : void 0,\n P.$slots.suffix ? {\n name: \"suffix\",\n fn: de(() => [\n je(P.$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 rR = /* @__PURE__ */ st(iR, [[\"__file\", \"input-number.vue\"]]);\nconst dr = on(rR), fy = Symbol(\"ElSelectGroup\"), lu = Symbol(\"ElSelect\");\nfunction sR(n, e) {\n const t = pt(lu), i = pt(fy, { disabled: !1 }), r = ue(() => d(Si(t.props.modelValue), n.value)), s = ue(() => {\n var g;\n if (t.props.multiple) {\n const p = Si((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 = ue(() => n.label || (Tn(n.value) ? \"\" : n.value)), a = ue(() => n.value || n.label || \"\"), c = ue(() => n.disabled || e.groupDisabled || s.value), l = dn(), d = (g = [], p) => {\n if (Tn(n.value)) {\n const u = t.props.valueKey;\n return g && g.some((y) => kv(Ji(y, u)) === Ji(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(O_(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 && Tn(g) && Tn(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 oR = Pe({\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 = nt(\"select\"), t = sl(), i = ue(() => [\n e.be(\"dropdown\", \"item\"),\n e.is(\"disabled\", z(a)),\n e.is(\"selected\", z(o)),\n e.is(\"hovering\", z(f))\n ]), r = Wn({\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 } = sR(n, r), { visible: h, hover: f } = Br(r), g = dn().proxy;\n c.onOptionCreate(g), ei(() => {\n const u = g.value, { selected: y } = c.states, m = (c.props.multiple ? y : [y]).some((x) => x.value === g.value);\n bt(() => {\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 aR(n, e, t, i, r, s) {\n return Lt((ve(), Le(\"li\", {\n id: n.id,\n class: Ee(n.containerKls),\n role: \"option\",\n \"aria-disabled\": n.isDisabled || void 0,\n \"aria-selected\": n.itemSelected,\n onMouseenter: n.hoverItem,\n onClick: Ut(n.selectOptionClick, [\"stop\"])\n }, [\n je(n.$slots, \"default\", {}, () => [\n Ne(\"span\", null, vt(n.currentLabel), 1)\n ])\n ], 42, [\"id\", \"aria-disabled\", \"aria-selected\", \"onMouseenter\", \"onClick\"])), [\n [mn, n.visible]\n ]);\n}\nvar mf = /* @__PURE__ */ st(oR, [[\"render\", aR], [\"__file\", \"option.vue\"]]);\nconst lR = Pe({\n name: \"ElSelectDropdown\",\n componentName: \"ElSelectDropdown\",\n setup() {\n const n = pt(lu), e = nt(\"select\"), t = ue(() => n.props.popperClass), i = ue(() => n.props.multiple), r = ue(() => n.props.fitInputWidth), s = Te(\"\");\n function o() {\n var a;\n s.value = `${(a = n.selectRef) == null ? void 0 : a.offsetWidth}px`;\n }\n return Jt(() => {\n o(), Yn(n.selectRef, o);\n }), {\n ns: e,\n minWidth: s,\n popperClass: t,\n isMultiple: i,\n isFitInputWidth: r\n };\n }\n});\nfunction cR(n, e, t, i, r, s) {\n return ve(), Le(\"div\", {\n class: Ee([n.ns.b(\"dropdown\"), n.ns.is(\"multiple\", n.isMultiple), n.popperClass]),\n style: Rt({ [n.isFitInputWidth ? \"width\" : \"minWidth\"]: n.minWidth })\n }, [\n n.$slots.header ? (ve(), Le(\"div\", {\n key: 0,\n class: Ee(n.ns.be(\"dropdown\", \"header\"))\n }, [\n je(n.$slots, \"header\")\n ], 2)) : Ve(\"v-if\", !0),\n je(n.$slots, \"default\"),\n n.$slots.footer ? (ve(), Le(\"div\", {\n key: 1,\n class: Ee(n.ns.be(\"dropdown\", \"footer\"))\n }, [\n je(n.$slots, \"footer\")\n ], 2)) : Ve(\"v-if\", !0)\n ], 6);\n}\nvar uR = /* @__PURE__ */ st(lR, [[\"render\", cR], [\"__file\", \"select-dropdown.vue\"]]);\nconst hR = 11, dR = (n, e) => {\n const { t } = iu(), i = sl(), r = nt(\"select\"), s = nt(\"input\"), o = Wn({\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 = Te(null), c = Te(null), l = Te(null), d = Te(null), h = Te(null), f = Te(null), g = Te(null), p = Te(null), u = Te(null), y = Te(null), v = Te(null), m = Te(null), {\n isComposing: x,\n handleCompositionStart: w,\n handleCompositionUpdate: A,\n handleCompositionEnd: M\n } = N0({\n afterComposition: (ge) => ne(ge)\n }), { wrapperRef: R, isFocused: L } = D0(h, {\n beforeFocus() {\n return b.value;\n },\n afterFocus() {\n n.automaticDropdown && !S.value && (S.value = !0, o.menuVisibleOnFocus = !0);\n },\n beforeBlur(ge) {\n var Se, Fe;\n return ((Se = l.value) == null ? void 0 : Se.isFocusInsideContent(ge)) || ((Fe = d.value) == null ? void 0 : Fe.isFocusInsideContent(ge));\n },\n afterBlur() {\n S.value = !1, o.menuVisibleOnFocus = !1;\n }\n }), S = Te(!1), I = Te(), { form: T, formItem: _ } = Jo(), { inputId: E } = su(n, {\n formItemContext: _\n }), { valueOnClear: C, isEmptyValue: P } = NE(n), b = ue(() => n.disabled || (T == null ? void 0 : T.disabled)), F = ue(() => Pn(n.modelValue) ? n.modelValue.length > 0 : !P(n.modelValue)), D = ue(() => n.clearable && !b.value && o.inputHovering && F.value), N = ue(() => n.remote && n.filterable && !n.remoteShowSuffix ? \"\" : n.suffixIcon), B = ue(() => r.is(\"reverse\", N.value && S.value)), U = ue(() => (_ == null ? void 0 : _.validateState) || \"\"), G = ue(() => d0[U.value]), Y = ue(() => n.remote ? 300 : 0), te = ue(() => 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 && ae.value === 0 ? n.noMatchText || t(\"el.select.noMatch\") : o.options.size === 0 ? n.noDataText || t(\"el.select.noData\") : null), ae = ue(() => ie.value.filter((ge) => ge.visible).length), ie = ue(() => {\n const ge = Array.from(o.options.values()), Se = [];\n return o.optionValues.forEach((Fe) => {\n const Ge = ge.findIndex((We) => We.value === Fe);\n Ge > -1 && Se.push(ge[Ge]);\n }), Se.length >= ge.length ? Se : ge;\n }), le = ue(() => Array.from(o.cachedOptions.values())), W = ue(() => {\n const ge = ie.value.filter((Se) => !Se.created).some((Se) => Se.currentLabel === o.inputValue);\n return n.filterable && n.allowCreate && o.inputValue !== \"\" && !ge;\n }), $ = () => {\n n.filterable && Sn(n.filterMethod) || n.filterable && n.remote && Sn(n.remoteMethod) || ie.value.forEach((ge) => {\n var Se;\n (Se = ge.updateOption) == null || Se.call(ge, o.inputValue);\n });\n }, j = Ns(), re = ue(() => [\"small\"].includes(j.value) ? \"small\" : \"default\"), V = ue({\n get() {\n return S.value && te.value !== !1;\n },\n set(ge) {\n S.value = ge;\n }\n }), H = ue(() => {\n if (n.multiple && !di(n.modelValue))\n return Si(n.modelValue).length === 0 && !o.inputValue;\n const ge = Pn(n.modelValue) ? n.modelValue[0] : n.modelValue;\n return n.filterable || di(ge) ? !o.inputValue : !0;\n }), K = ue(() => {\n var ge;\n const Se = (ge = n.placeholder) != null ? ge : t(\"el.select.placeholder\");\n return n.multiple || !F.value ? Se : o.selectedLabel;\n }), ce = ue(() => zh ? null : \"mouseenter\");\n Qe(() => n.modelValue, (ge, Se) => {\n n.multiple && n.filterable && !n.reserveKeyword && (o.inputValue = \"\", se(\"\")), O(), !$h(ge, Se) && n.validateEvent && (_ == null || _.validate(\"change\").catch((Fe) => Vt(Fe)));\n }, {\n flush: \"post\",\n deep: !0\n }), Qe(() => S.value, (ge) => {\n ge ? se(o.inputValue) : (o.inputValue = \"\", o.previousQuery = null, o.isBeforeHide = !0), e(\"visible-change\", ge);\n }), Qe(() => o.options.entries(), () => {\n var ge;\n if (!en)\n return;\n const Se = ((ge = a.value) == null ? void 0 : ge.querySelectorAll(\"input\")) || [];\n (!n.filterable && !n.defaultFirstOption && !di(n.modelValue) || !Array.from(Se).includes(document.activeElement)) && O(), n.defaultFirstOption && (n.filterable || n.remote) && ae.value && k();\n }, {\n flush: \"post\"\n }), Qe(() => o.hoveringIndex, (ge) => {\n yt(ge) && ge > -1 ? I.value = ie.value[ge] || {} : I.value = {}, ie.value.forEach((Se) => {\n Se.hover = I.value === Se;\n });\n }), Nv(() => {\n o.isBeforeHide || $();\n });\n const se = (ge) => {\n o.previousQuery === ge || x.value || (o.previousQuery = ge, n.filterable && Sn(n.filterMethod) ? n.filterMethod(ge) : n.filterable && n.remote && Sn(n.remoteMethod) && n.remoteMethod(ge), n.defaultFirstOption && (n.filterable || n.remote) && ae.value ? bt(k) : bt(X));\n }, k = () => {\n const ge = ie.value.filter((Ge) => Ge.visible && !Ge.disabled && !Ge.states.groupDisabled), Se = ge.find((Ge) => Ge.created), Fe = ge[0];\n o.hoveringIndex = Mt(ie.value, Se || Fe);\n }, O = () => {\n if (n.multiple)\n o.selectedLabel = \"\";\n else {\n const Se = Pn(n.modelValue) ? n.modelValue[0] : n.modelValue, Fe = Z(Se);\n o.selectedLabel = Fe.currentLabel, o.selected = [Fe];\n return;\n }\n const ge = [];\n di(n.modelValue) || Si(n.modelValue).forEach((Se) => {\n ge.push(Z(Se));\n }), o.selected = ge;\n }, Z = (ge) => {\n let Se;\n const Fe = Pu(ge).toLowerCase() === \"object\", Ge = Pu(ge).toLowerCase() === \"null\", We = Pu(ge).toLowerCase() === \"undefined\";\n for (let ft = o.cachedOptions.size - 1; ft >= 0; ft--) {\n const kt = le.value[ft];\n if (Fe ? Ji(kt.value, n.valueKey) === Ji(ge, n.valueKey) : kt.value === ge) {\n Se = {\n value: ge,\n currentLabel: kt.currentLabel,\n get isDisabled() {\n return kt.isDisabled;\n }\n };\n break;\n }\n }\n if (Se)\n return Se;\n const et = Fe ? ge.label : !Ge && !We ? ge : \"\";\n return {\n value: ge,\n currentLabel: et\n };\n }, X = () => {\n o.hoveringIndex = ie.value.findIndex((ge) => o.selected.some((Se) => _e(Se) === _e(ge)));\n }, ee = () => {\n o.selectionWidth = c.value.getBoundingClientRect().width;\n }, fe = () => {\n o.calculatorWidth = f.value.getBoundingClientRect().width;\n }, be = () => {\n o.collapseItemWidth = v.value.getBoundingClientRect().width;\n }, Ae = () => {\n var ge, Se;\n (Se = (ge = l.value) == null ? void 0 : ge.updatePopper) == null || Se.call(ge);\n }, he = () => {\n var ge, Se;\n (Se = (ge = d.value) == null ? void 0 : ge.updatePopper) == null || Se.call(ge);\n }, xe = () => {\n o.inputValue.length > 0 && !S.value && (S.value = !0), se(o.inputValue);\n }, ne = (ge) => {\n if (o.inputValue = ge.target.value, n.remote)\n me();\n else\n return xe();\n }, me = jh(() => {\n xe();\n }, Y.value), Me = (ge) => {\n $h(n.modelValue, ge) || e(ur, ge);\n }, De = (ge) => E_(ge, (Se) => !o.disabledOptions.has(Se)), Ie = (ge) => {\n if (n.multiple && ge.code !== Li.delete && ge.target.value.length <= 0) {\n const Se = Si(n.modelValue).slice(), Fe = De(Se);\n if (Fe < 0)\n return;\n const Ge = Se[Fe];\n Se.splice(Fe, 1), e(At, Se), Me(Se), e(\"remove-tag\", Ge);\n }\n }, $e = (ge, Se) => {\n const Fe = o.selected.indexOf(Se);\n if (Fe > -1 && !b.value) {\n const Ge = Si(n.modelValue).slice();\n Ge.splice(Fe, 1), e(At, Ge), Me(Ge), e(\"remove-tag\", Se.value);\n }\n ge.stopPropagation(), Ft();\n }, lt = (ge) => {\n ge.stopPropagation();\n const Se = n.multiple ? [] : C.value;\n if (n.multiple)\n for (const Fe of o.selected)\n Fe.isDisabled && Se.push(Fe.value);\n e(At, Se), Me(Se), o.hoveringIndex = -1, S.value = !1, e(\"clear\"), Ft();\n }, qe = (ge) => {\n var Se;\n if (n.multiple) {\n const Fe = Si((Se = n.modelValue) != null ? Se : []).slice(), Ge = Mt(Fe, ge.value);\n Ge > -1 ? Fe.splice(Ge, 1) : (n.multipleLimit <= 0 || Fe.length < n.multipleLimit) && Fe.push(ge.value), e(At, Fe), Me(Fe), ge.created && se(\"\"), n.filterable && !n.reserveKeyword && (o.inputValue = \"\");\n } else\n e(At, ge.value), Me(ge.value), S.value = !1;\n Ft(), !S.value && bt(() => {\n Be(ge);\n });\n }, Mt = (ge = [], Se) => {\n if (!Tn(Se))\n return ge.indexOf(Se);\n const Fe = n.valueKey;\n let Ge = -1;\n return ge.some((We, et) => kv(Ji(We, Fe)) === Ji(Se, Fe) ? (Ge = et, !0) : !1), Ge;\n }, Be = (ge) => {\n var Se, Fe, Ge, We, et;\n const Ye = Pn(ge) ? ge[0] : ge;\n let ft = null;\n if (Ye != null && Ye.value) {\n const kt = ie.value.filter((ln) => ln.value === Ye.value);\n kt.length > 0 && (ft = kt[0].$el);\n }\n if (l.value && ft) {\n const kt = (We = (Ge = (Fe = (Se = l.value) == null ? void 0 : Se.popperRef) == null ? void 0 : Fe.contentRef) == null ? void 0 : Ge.querySelector) == null ? void 0 : We.call(Ge, `.${r.be(\"dropdown\", \"wrap\")}`);\n kt && N_(kt, ft);\n }\n (et = m.value) == null || et.handleScroll();\n }, it = (ge) => {\n o.options.set(ge.value, ge), o.cachedOptions.set(ge.value, ge), ge.disabled && o.disabledOptions.set(ge.value, ge);\n }, tt = (ge, Se) => {\n o.options.get(ge) === Se && o.options.delete(ge);\n }, qt = ue(() => {\n var ge, Se;\n return (Se = (ge = l.value) == null ? void 0 : ge.popperRef) == null ? void 0 : Se.contentRef;\n }), Qt = () => {\n o.isBeforeHide = !1, bt(() => Be(o.selected));\n }, Ft = () => {\n var ge;\n (ge = h.value) == null || ge.focus();\n }, Nt = () => {\n var ge;\n (ge = h.value) == null || ge.blur();\n }, Vi = (ge) => {\n lt(ge);\n }, ki = () => {\n S.value = !1, L.value && Nt();\n }, ni = () => {\n o.inputValue.length > 0 ? o.inputValue = \"\" : S.value = !1;\n }, ts = () => {\n b.value || (zh && (o.inputHovering = !0), o.menuVisibleOnFocus ? o.menuVisibleOnFocus = !1 : S.value = !S.value);\n }, Q = () => {\n S.value ? ie.value[o.hoveringIndex] && qe(ie.value[o.hoveringIndex]) : ts();\n }, _e = (ge) => Tn(ge.value) ? Ji(ge.value, n.valueKey) : ge.value, Oe = ue(() => ie.value.filter((ge) => ge.visible).every((ge) => ge.disabled)), Ze = ue(() => n.multiple ? n.collapseTags ? o.selected.slice(0, n.maxCollapseTags) : o.selected : []), ht = ue(() => n.multiple ? n.collapseTags ? o.selected.slice(n.maxCollapseTags) : [] : []), J = (ge) => {\n if (!S.value) {\n S.value = !0;\n return;\n }\n if (!(o.options.size === 0 || o.filteredOptionsCount === 0 || x.value) && !Oe.value) {\n ge === \"next\" ? (o.hoveringIndex++, o.hoveringIndex === o.options.size && (o.hoveringIndex = 0)) : ge === \"prev\" && (o.hoveringIndex--, o.hoveringIndex < 0 && (o.hoveringIndex = o.options.size - 1));\n const Se = ie.value[o.hoveringIndex];\n (Se.disabled === !0 || Se.states.groupDisabled === !0 || !Se.visible) && J(ge), bt(() => Be(I.value));\n }\n }, ye = () => {\n if (!c.value)\n return 0;\n const ge = window.getComputedStyle(c.value);\n return Number.parseFloat(ge.gap || \"6px\");\n }, pe = ue(() => {\n const ge = ye();\n return { maxWidth: `${v.value && n.maxCollapseTags === 1 ? o.selectionWidth - o.collapseItemWidth - ge : o.selectionWidth}px` };\n }), we = ue(() => ({ maxWidth: `${o.selectionWidth}px` })), Ce = ue(() => ({\n width: `${Math.max(o.calculatorWidth, hR)}px`\n }));\n return Yn(c, ee), Yn(f, fe), Yn(u, Ae), Yn(R, Ae), Yn(y, he), Yn(v, be), Jt(() => {\n O();\n }), {\n inputId: E,\n contentId: i,\n nsSelect: r,\n nsInput: s,\n states: o,\n isFocused: L,\n expanded: S,\n optionsArray: ie,\n hoverOption: I,\n selectSize: j,\n filteredOptionsCount: ae,\n resetCalculatorWidth: fe,\n updateTooltip: Ae,\n updateTagTooltip: he,\n debouncedOnInputChange: me,\n onInput: ne,\n deletePrevTag: Ie,\n deleteTag: $e,\n deleteSelected: lt,\n handleOptionSelect: qe,\n scrollToOption: Be,\n hasModelValue: F,\n shouldShowPlaceholder: H,\n currentPlaceholder: K,\n mouseEnterEventName: ce,\n showClose: D,\n iconComponent: N,\n iconReverse: B,\n validateState: U,\n validateIcon: G,\n showNewOption: W,\n updateOptions: $,\n collapseTagSize: re,\n setSelected: O,\n selectDisabled: b,\n emptyText: te,\n handleCompositionStart: w,\n handleCompositionUpdate: A,\n handleCompositionEnd: M,\n onOptionCreate: it,\n onOptionDestroy: tt,\n handleMenuEnter: Qt,\n focus: Ft,\n blur: Nt,\n handleClearClick: Vi,\n handleClickOutside: ki,\n handleEsc: ni,\n toggleMenu: ts,\n selectOption: Q,\n getValueKey: _e,\n navigateOptions: J,\n dropdownMenuVisible: V,\n showTagList: Ze,\n collapseTagList: ht,\n tagStyle: pe,\n collapseTagStyle: we,\n inputStyle: Ce,\n popperRef: qt,\n inputRef: h,\n tooltipRef: l,\n tagTooltipRef: d,\n calculatorRef: f,\n prefixRef: g,\n suffixRef: p,\n selectRef: a,\n wrapperRef: R,\n selectionRef: c,\n scrollbarRef: m,\n menuRef: u,\n tagMenuRef: y,\n collapseItemRef: v\n };\n};\nvar fR = Pe({\n name: \"ElOptions\",\n setup(n, { slots: e }) {\n const t = pt(lu);\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 Pn(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(!vn(d.children) && !Pn(d.children) && Sn((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) : Pn(d.children) && c(d.children);\n });\n }\n return o.length && c((s = o[0]) == null ? void 0 : s.children), $h(a, i) || (i = a, t && (t.states.optionValues = a)), o;\n };\n }\n});\nconst pR = at({\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: Gr,\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: Vn.teleported,\n persistent: {\n type: Boolean,\n default: !0\n },\n clearIcon: {\n type: kr,\n default: Yd\n },\n fitInputWidth: Boolean,\n suffixIcon: {\n type: kr,\n default: Xd\n },\n tagType: { ...Qh.type, default: \"info\" },\n tagEffect: { ...Qh.effect, default: \"light\" },\n validateEvent: {\n type: Boolean,\n default: !0\n },\n remoteShowSuffix: Boolean,\n placement: {\n type: Je(String),\n values: Yo,\n default: \"bottom-start\"\n },\n fallbackPlacements: {\n type: Je(Array),\n default: [\"bottom-start\", \"top-start\", \"right\", \"left\"]\n },\n appendTo: String,\n ...DE,\n ...Yr([\"ariaLabel\"])\n}), Um = \"ElSelect\", mR = Pe({\n name: Um,\n componentName: Um,\n components: {\n ElSelectMenu: uR,\n ElOption: mf,\n ElOptions: fR,\n ElTag: aL,\n ElScrollbar: f2,\n ElTooltip: pf,\n ElIcon: It\n },\n directives: { ClickOutside: HC },\n props: pR,\n emits: [\n At,\n ur,\n \"remove-tag\",\n \"clear\",\n \"visible-change\",\n \"focus\",\n \"blur\"\n ],\n setup(n, { emit: e }) {\n const t = ue(() => {\n const { modelValue: s, multiple: o } = n, a = o ? [] : void 0;\n return Pn(s) ? o ? s : a : o ? a : s;\n }), i = Wn({\n ...Br(n),\n modelValue: t\n }), r = dR(i, e);\n return sn(lu, Wn({\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 gR(n, e, t, i, r, s) {\n const o = kn(\"el-tag\"), a = kn(\"el-tooltip\"), c = kn(\"el-icon\"), l = kn(\"el-option\"), d = kn(\"el-options\"), h = kn(\"el-scrollbar\"), f = kn(\"el-select-menu\"), g = XM(\"click-outside\");\n return Lt((ve(), Le(\"div\", {\n ref: \"selectRef\",\n class: Ee([n.nsSelect.b(), n.nsSelect.m(n.selectSize)]),\n [YM(n.mouseEnterEventName)]: (p) => n.states.inputHovering = !0,\n onMouseleave: (p) => n.states.inputHovering = !1\n }, [\n oe(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: de(() => {\n var p;\n return [\n Ne(\"div\", {\n ref: \"wrapperRef\",\n class: Ee([\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: Ut(n.toggleMenu, [\"prevent\"])\n }, [\n n.$slots.prefix ? (ve(), Le(\"div\", {\n key: 0,\n ref: \"prefixRef\",\n class: Ee(n.nsSelect.e(\"prefix\"))\n }, [\n je(n.$slots, \"prefix\")\n ], 2)) : Ve(\"v-if\", !0),\n Ne(\"div\", {\n ref: \"selectionRef\",\n class: Ee([\n n.nsSelect.e(\"selection\"),\n n.nsSelect.is(\"near\", n.multiple && !n.$slots.prefix && !!n.states.selected.length)\n ])\n }, [\n n.multiple ? je(n.$slots, \"tag\", { key: 0 }, () => [\n (ve(!0), Le(Pt, null, Jn(n.showTagList, (u) => (ve(), Le(\"div\", {\n key: n.getValueKey(u),\n class: Ee(n.nsSelect.e(\"selected-item\"))\n }, [\n oe(o, {\n closable: !n.selectDisabled && !u.isDisabled,\n size: n.collapseTagSize,\n type: n.tagType,\n effect: n.tagEffect,\n \"disable-transitions\": \"\",\n style: Rt(n.tagStyle),\n onClose: (y) => n.deleteTag(y, u)\n }, {\n default: de(() => [\n Ne(\"span\", {\n class: Ee(n.nsSelect.e(\"tags-text\"))\n }, [\n je(n.$slots, \"label\", {\n label: u.currentLabel,\n value: u.value\n }, () => [\n rt(vt(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 ? (ve(), ke(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: de(() => [\n Ne(\"div\", {\n ref: \"collapseItemRef\",\n class: Ee(n.nsSelect.e(\"selected-item\"))\n }, [\n oe(o, {\n closable: !1,\n size: n.collapseTagSize,\n type: n.tagType,\n effect: n.tagEffect,\n \"disable-transitions\": \"\",\n style: Rt(n.collapseTagStyle)\n }, {\n default: de(() => [\n Ne(\"span\", {\n class: Ee(n.nsSelect.e(\"tags-text\"))\n }, \" + \" + vt(n.states.selected.length - n.maxCollapseTags), 3)\n ]),\n _: 1\n }, 8, [\"size\", \"type\", \"effect\", \"style\"])\n ], 2)\n ]),\n content: de(() => [\n Ne(\"div\", {\n ref: \"tagMenuRef\",\n class: Ee(n.nsSelect.e(\"selection\"))\n }, [\n (ve(!0), Le(Pt, null, Jn(n.collapseTagList, (u) => (ve(), Le(\"div\", {\n key: n.getValueKey(u),\n class: Ee(n.nsSelect.e(\"selected-item\"))\n }, [\n oe(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: de(() => [\n Ne(\"span\", {\n class: Ee(n.nsSelect.e(\"tags-text\"))\n }, [\n je(n.$slots, \"label\", {\n label: u.currentLabel,\n value: u.value\n }, () => [\n rt(vt(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\"])) : Ve(\"v-if\", !0)\n ]) : Ve(\"v-if\", !0),\n n.selectDisabled ? Ve(\"v-if\", !0) : (ve(), Le(\"div\", {\n key: 1,\n class: Ee([\n n.nsSelect.e(\"selected-item\"),\n n.nsSelect.e(\"input-wrapper\"),\n n.nsSelect.is(\"hidden\", !n.filterable)\n ])\n }, [\n Lt(Ne(\"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: Ee([n.nsSelect.e(\"input\"), n.nsSelect.is(n.selectSize)]),\n disabled: n.selectDisabled,\n autocomplete: n.autocomplete,\n style: Rt(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 ui(Ut((u) => n.navigateOptions(\"next\"), [\"stop\", \"prevent\"]), [\"down\"]),\n ui(Ut((u) => n.navigateOptions(\"prev\"), [\"stop\", \"prevent\"]), [\"up\"]),\n ui(Ut(n.handleEsc, [\"stop\", \"prevent\"]), [\"esc\"]),\n ui(Ut(n.selectOption, [\"stop\", \"prevent\"]), [\"enter\"]),\n ui(Ut(n.deletePrevTag, [\"stop\"]), [\"delete\"])\n ],\n onCompositionstart: n.handleCompositionStart,\n onCompositionupdate: n.handleCompositionUpdate,\n onCompositionend: n.handleCompositionEnd,\n onInput: n.onInput,\n onClick: Ut(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 [JM, n.states.inputValue]\n ]),\n n.filterable ? (ve(), Le(\"span\", {\n key: 0,\n ref: \"calculatorRef\",\n \"aria-hidden\": \"true\",\n class: Ee(n.nsSelect.e(\"input-calculator\")),\n textContent: vt(n.states.inputValue)\n }, null, 10, [\"textContent\"])) : Ve(\"v-if\", !0)\n ], 2)),\n n.shouldShowPlaceholder ? (ve(), Le(\"div\", {\n key: 2,\n class: Ee([\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 ? je(n.$slots, \"label\", {\n key: 0,\n label: n.currentPlaceholder,\n value: n.modelValue\n }, () => [\n Ne(\"span\", null, vt(n.currentPlaceholder), 1)\n ]) : (ve(), Le(\"span\", { key: 1 }, vt(n.currentPlaceholder), 1))\n ], 2)) : Ve(\"v-if\", !0)\n ], 2),\n Ne(\"div\", {\n ref: \"suffixRef\",\n class: Ee(n.nsSelect.e(\"suffix\"))\n }, [\n n.iconComponent && !n.showClose ? (ve(), ke(c, {\n key: 0,\n class: Ee([n.nsSelect.e(\"caret\"), n.nsSelect.e(\"icon\"), n.iconReverse])\n }, {\n default: de(() => [\n (ve(), ke(Fn(n.iconComponent)))\n ]),\n _: 1\n }, 8, [\"class\"])) : Ve(\"v-if\", !0),\n n.showClose && n.clearIcon ? (ve(), ke(c, {\n key: 1,\n class: Ee([\n n.nsSelect.e(\"caret\"),\n n.nsSelect.e(\"icon\"),\n n.nsSelect.e(\"clear\")\n ]),\n onClick: n.handleClearClick\n }, {\n default: de(() => [\n (ve(), ke(Fn(n.clearIcon)))\n ]),\n _: 1\n }, 8, [\"class\", \"onClick\"])) : Ve(\"v-if\", !0),\n n.validateState && n.validateIcon ? (ve(), ke(c, {\n key: 2,\n class: Ee([n.nsInput.e(\"icon\"), n.nsInput.e(\"validateIcon\")])\n }, {\n default: de(() => [\n (ve(), ke(Fn(n.validateIcon)))\n ]),\n _: 1\n }, 8, [\"class\"])) : Ve(\"v-if\", !0)\n ], 2)\n ], 10, [\"onClick\"])\n ];\n }),\n content: de(() => [\n oe(f, { ref: \"menuRef\" }, {\n default: de(() => [\n n.$slots.header ? (ve(), Le(\"div\", {\n key: 0,\n class: Ee(n.nsSelect.be(\"dropdown\", \"header\")),\n onClick: Ut(() => {\n }, [\"stop\"])\n }, [\n je(n.$slots, \"header\")\n ], 10, [\"onClick\"])) : Ve(\"v-if\", !0),\n Lt(oe(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: Ee([n.nsSelect.is(\"empty\", n.filteredOptionsCount === 0)]),\n role: \"listbox\",\n \"aria-label\": n.ariaLabel,\n \"aria-orientation\": \"vertical\"\n }, {\n default: de(() => [\n n.showNewOption ? (ve(), ke(l, {\n key: 0,\n value: n.states.inputValue,\n created: !0\n }, null, 8, [\"value\"])) : Ve(\"v-if\", !0),\n oe(d, null, {\n default: de(() => [\n je(n.$slots, \"default\")\n ]),\n _: 3\n })\n ]),\n _: 3\n }, 8, [\"id\", \"wrap-class\", \"view-class\", \"class\", \"aria-label\"]), [\n [mn, n.states.options.size > 0 && !n.loading]\n ]),\n n.$slots.loading && n.loading ? (ve(), Le(\"div\", {\n key: 1,\n class: Ee(n.nsSelect.be(\"dropdown\", \"loading\"))\n }, [\n je(n.$slots, \"loading\")\n ], 2)) : n.loading || n.filteredOptionsCount === 0 ? (ve(), Le(\"div\", {\n key: 2,\n class: Ee(n.nsSelect.be(\"dropdown\", \"empty\"))\n }, [\n je(n.$slots, \"empty\", {}, () => [\n Ne(\"span\", null, vt(n.emptyText), 1)\n ])\n ], 2)) : Ve(\"v-if\", !0),\n n.$slots.footer ? (ve(), Le(\"div\", {\n key: 3,\n class: Ee(n.nsSelect.be(\"dropdown\", \"footer\")),\n onClick: Ut(() => {\n }, [\"stop\"])\n }, [\n je(n.$slots, \"footer\")\n ], 10, [\"onClick\"])) : Ve(\"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 vR = /* @__PURE__ */ st(mR, [[\"render\", gR], [\"__file\", \"select.vue\"]]);\nconst yR = Pe({\n name: \"ElOptionGroup\",\n componentName: \"ElOptionGroup\",\n props: {\n label: String,\n disabled: Boolean\n },\n setup(n) {\n const e = nt(\"select\"), t = Te(null), i = dn(), r = Te([]);\n sn(fy, Wn({\n ...Br(n)\n }));\n const s = ue(() => 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 = Si(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 Jt(() => {\n c();\n }), Tw(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 bR(n, e, t, i, r, s) {\n return Lt((ve(), Le(\"ul\", {\n ref: \"groupRef\",\n class: Ee(n.ns.be(\"group\", \"wrap\"))\n }, [\n Ne(\"li\", {\n class: Ee(n.ns.be(\"group\", \"title\"))\n }, vt(n.label), 3),\n Ne(\"li\", null, [\n Ne(\"ul\", {\n class: Ee(n.ns.b(\"group\"))\n }, [\n je(n.$slots, \"default\")\n ], 2)\n ])\n ], 2)), [\n [mn, n.visible]\n ]);\n}\nvar py = /* @__PURE__ */ st(yR, [[\"render\", bR], [\"__file\", \"option-group.vue\"]]);\nconst qo = on(vR, {\n Option: mf,\n OptionGroup: py\n}), Qo = vi(mf);\nvi(py);\nconst xR = at({\n trigger: Va.trigger,\n placement: Hu.placement,\n disabled: Va.disabled,\n visible: Vn.visible,\n transition: Vn.transition,\n popperOptions: Hu.popperOptions,\n tabindex: Hu.tabindex,\n content: Vn.content,\n popperStyle: Vn.popperStyle,\n popperClass: Vn.popperClass,\n enterable: {\n ...Vn.enterable,\n default: !0\n },\n effect: {\n ...Vn.effect,\n default: \"light\"\n },\n teleported: Vn.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}), MR = {\n \"update:visible\": (n) => Ba(n),\n \"before-enter\": () => !0,\n \"before-leave\": () => !0,\n \"after-enter\": () => !0,\n \"after-leave\": () => !0\n}, wR = \"onUpdate:visible\", AR = Pe({\n name: \"ElPopover\"\n}), SR = /* @__PURE__ */ Pe({\n ...AR,\n props: xR,\n emits: MR,\n setup(n, { expose: e, emit: t }) {\n const i = n, r = ue(() => i[wR]), s = nt(\"popover\"), o = Te(), a = ue(() => {\n var y;\n return (y = z(o)) == null ? void 0 : y.popperRef;\n }), c = ue(() => [\n {\n width: Dc(i.width)\n },\n i.popperStyle\n ]), l = ue(() => [s.b(), i.popperClass, { [s.m(\"plain\")]: !!i.content }]), d = ue(() => 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) => (ve(), ke(z(pf), Ei({\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\": z(l),\n \"popper-style\": z(c),\n teleported: y.teleported,\n persistent: y.persistent,\n \"gpu-acceleration\": z(d),\n \"onUpdate:visible\": z(r),\n onBeforeShow: f,\n onBeforeHide: g,\n onShow: p,\n onHide: u\n }), {\n content: de(() => [\n y.title ? (ve(), Le(\"div\", {\n key: 0,\n class: Ee(z(s).e(\"title\")),\n role: \"title\"\n }, vt(y.title), 3)) : Ve(\"v-if\", !0),\n je(y.$slots, \"default\", {}, () => [\n rt(vt(y.content), 1)\n ])\n ]),\n default: de(() => [\n y.$slots.reference ? je(y.$slots, \"reference\", { key: 0 }) : Ve(\"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 _R = /* @__PURE__ */ st(SR, [[\"__file\", \"popover.vue\"]]);\nconst zm = (n, e) => {\n const t = e.arg || e.value, i = t == null ? void 0 : t.popperRef;\n i && (i.triggerRef = n);\n};\nvar TR = {\n mounted(n, e) {\n zm(n, e);\n },\n updated(n, e) {\n zm(n, e);\n }\n};\nconst ER = \"popover\", CR = iT(TR, ER), cu = on(_R, {\n directive: CR\n}), my = Symbol(\"sliderContextKey\"), LR = at({\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: Gr,\n inputSize: Gr,\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: Yo,\n default: \"top\"\n },\n marks: {\n type: Je(Object)\n },\n validateEvent: {\n type: Boolean,\n default: !0\n },\n ...Yr([\"ariaLabel\"])\n}), Wu = (n) => yt(n) || Pn(n) && n.every(yt), RR = {\n [At]: Wu,\n [bs]: Wu,\n [ur]: Wu\n}, FR = (n, e, t) => {\n const i = Te();\n return Jt(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 bt(), t();\n }), {\n sliderWrapper: i\n };\n}, PR = (n) => ue(() => 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})) : []), IR = (n, e, t) => {\n const { form: i, formItem: r } = Jo(), s = En(), o = Te(), a = Te(), c = {\n firstButton: o,\n secondButton: a\n }, l = ue(() => n.disabled || (i == null ? void 0 : i.disabled) || !1), d = ue(() => Math.min(e.firstValue, e.secondValue)), h = ue(() => Math.max(e.firstValue, e.secondValue)), f = ue(() => n.range ? `${100 * (h.value - d.value) / (n.max - n.min)}%` : `${100 * (e.firstValue - n.min) / (n.max - n.min)}%`), g = ue(() => n.range ? `${100 * (d.value - n.min) / (n.max - n.min)}%` : \"0%\"), p = ue(() => n.vertical ? { height: n.height } : {}), u = ue(() => 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 = (_) => {\n const E = n.min + _ * (n.max - n.min) / 100;\n if (!n.range)\n return o;\n let C;\n return Math.abs(d.value - E) < Math.abs(h.value - E) ? C = e.firstValue < e.secondValue ? \"firstButton\" : \"secondButton\" : C = e.firstValue > e.secondValue ? \"firstButton\" : \"secondButton\", c[C];\n }, m = (_) => {\n const E = v(_);\n return E.value.setPosition(_), E;\n }, x = (_) => {\n e.firstValue = _ ?? n.min, A(n.range ? [d.value, h.value] : _ ?? n.min);\n }, w = (_) => {\n e.secondValue = _, n.range && A([d.value, h.value]);\n }, A = (_) => {\n t(At, _), t(bs, _);\n }, M = async () => {\n await bt(), t(ur, n.range ? [d.value, h.value] : n.modelValue);\n }, R = (_) => {\n var E, C, P, b, F, D;\n if (l.value || e.dragging)\n return;\n y();\n let N = 0;\n if (n.vertical) {\n const B = (P = (C = (E = _.touches) == null ? void 0 : E.item(0)) == null ? void 0 : C.clientY) != null ? P : _.clientY;\n N = (s.value.getBoundingClientRect().bottom - B) / e.sliderSize * 100;\n } else {\n const B = (D = (F = (b = _.touches) == null ? void 0 : b.item(0)) == null ? void 0 : F.clientX) != null ? D : _.clientX, U = s.value.getBoundingClientRect().left;\n N = (B - U) / e.sliderSize * 100;\n }\n if (!(N < 0 || N > 100))\n return m(N);\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: (_) => {\n var E, C;\n ((E = c.firstButton.value) != null && E.dragging || (C = c.secondButton.value) != null && C.dragging) && _.preventDefault();\n },\n onSliderClick: (_) => {\n R(_) && M();\n },\n onSliderDown: async (_) => {\n const E = R(_);\n E && (await bt(), E.value.onButtonDown(_));\n },\n onSliderMarkerDown: (_) => {\n l.value || e.dragging || m(_);\n },\n setFirstValue: x,\n setSecondValue: w\n };\n}, { left: OR, down: DR, right: NR, up: BR, home: UR, end: zR, pageUp: VR, pageDown: kR } = Li, GR = (n, e, t) => {\n const i = Te(), r = Te(!1), s = ue(() => e.value instanceof Function), o = ue(() => s.value && e.value(n.modelValue) || n.modelValue), a = jh(() => {\n t.value && (r.value = !0);\n }, 50), c = jh(() => {\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}, HR = (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 } = pt(my), { tooltip: p, tooltipVisible: u, formatValue: y, displayTooltip: v, hideTooltip: m } = GR(n, d, a), x = Te(), w = ue(() => `${(n.modelValue - r.value) / (s.value - r.value) * 100}%`), A = ue(() => n.vertical ? { bottom: w.value } : { left: w.value }), M = () => {\n e.hovering = !0, v();\n }, R = () => {\n e.hovering = !1, e.dragging || m();\n }, L = (G) => {\n i.value || (G.preventDefault(), D(G), window.addEventListener(\"mousemove\", N), window.addEventListener(\"touchmove\", N), window.addEventListener(\"mouseup\", B), window.addEventListener(\"touchend\", B), window.addEventListener(\"contextmenu\", B), x.value.focus());\n }, S = (G) => {\n i.value || (e.newPosition = Number.parseFloat(w.value) + G / (s.value - r.value) * 100, U(e.newPosition), h());\n }, I = () => {\n S(-o.value);\n }, T = () => {\n S(o.value);\n }, _ = () => {\n S(-o.value * 4);\n }, E = () => {\n S(o.value * 4);\n }, C = () => {\n i.value || (U(0), h());\n }, P = () => {\n i.value || (U(100), h());\n }, b = (G) => {\n let Y = !0;\n [OR, DR].includes(G.key) ? I() : [NR, BR].includes(G.key) ? T() : G.key === UR ? C() : G.key === zR ? P() : G.key === kR ? _() : G.key === VR ? E() : Y = !1, Y && G.preventDefault();\n }, F = (G) => {\n let Y, te;\n return G.type.startsWith(\"touch\") ? (te = G.touches[0].clientY, Y = G.touches[0].clientX) : (te = G.clientY, Y = G.clientX), {\n clientX: Y,\n clientY: te\n };\n }, D = (G) => {\n e.dragging = !0, e.isClick = !0;\n const { clientX: Y, clientY: te } = F(G);\n n.vertical ? e.startY = te : e.startX = Y, e.startPosition = Number.parseFloat(w.value), e.newPosition = e.startPosition;\n }, N = (G) => {\n if (e.dragging) {\n e.isClick = !1, v(), f();\n let Y;\n const { clientX: te, clientY: ae } = F(G);\n n.vertical ? (e.currentY = ae, Y = (e.startY - e.currentY) / l.value * 100) : (e.currentX = te, Y = (e.currentX - e.startX) / l.value * 100), e.newPosition = e.startPosition + Y, U(e.newPosition);\n }\n }, B = () => {\n e.dragging && (setTimeout(() => {\n e.dragging = !1, e.hovering || m(), e.isClick || U(e.newPosition), h();\n }, 0), window.removeEventListener(\"mousemove\", N), window.removeEventListener(\"touchmove\", N), window.removeEventListener(\"mouseup\", B), window.removeEventListener(\"touchend\", B), window.removeEventListener(\"contextmenu\", B));\n }, U = async (G) => {\n if (G === null || Number.isNaN(+G))\n return;\n G < 0 ? G = 0 : G > 100 && (G = 100);\n const Y = 100 / ((s.value - r.value) / o.value);\n let ae = Math.round(G / Y) * Y * (s.value - r.value) * 0.01 + r.value;\n ae = Number.parseFloat(ae.toFixed(c.value)), ae !== n.modelValue && t(At, ae), !e.dragging && n.modelValue !== e.oldValue && (e.oldValue = n.modelValue), await bt(), e.dragging && v(), p.value.updatePopper();\n };\n return Qe(() => e.dragging, (G) => {\n g(G);\n }), un(x, \"touchstart\", L, { passive: !1 }), {\n disabled: i,\n button: x,\n tooltip: p,\n tooltipVisible: u,\n showTooltip: a,\n wrapperStyle: A,\n formatValue: y,\n handleMouseEnter: M,\n handleMouseLeave: R,\n onButtonDown: L,\n onKeyDown: b,\n setPosition: U\n };\n}, WR = (n, e, t, i) => ({\n stops: ue(() => {\n if (!n.showStops || n.min > n.max)\n return [];\n if (n.step === 0)\n return Vt(\"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(At, l), r(bs, 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 && Xo(\"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) => Vt(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) => Vt(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}, $R = at({\n modelValue: {\n type: Number,\n default: 0\n },\n vertical: Boolean,\n tooltipClass: String,\n placement: {\n type: String,\n values: Yo,\n default: \"top\"\n }\n}), ZR = {\n [At]: (n) => yt(n)\n}, XR = Pe({\n name: \"ElSliderButton\"\n}), YR = /* @__PURE__ */ Pe({\n ...XR,\n props: $R,\n emits: ZR,\n setup(n, { expose: e, emit: t }) {\n const i = n, r = nt(\"slider\"), s = Wn({\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 } = HR(i, s, t), { hovering: m, dragging: x } = Br(s);\n return e({\n onButtonDown: u,\n onKeyDown: y,\n setPosition: v,\n hovering: m,\n dragging: x\n }), (w, A) => (ve(), Le(\"div\", {\n ref_key: \"button\",\n ref: a,\n class: Ee([z(r).e(\"button-wrapper\"), { hover: z(m), dragging: z(x) }]),\n style: Rt(z(h)),\n tabindex: z(o) ? -1 : 0,\n onMouseenter: z(g),\n onMouseleave: z(p),\n onMousedown: z(u),\n onFocus: z(g),\n onBlur: z(p),\n onKeydown: z(y)\n }, [\n oe(z(pf), {\n ref_key: \"tooltip\",\n ref: c,\n visible: z(d),\n placement: w.placement,\n \"fallback-placements\": [\"top\", \"bottom\", \"right\", \"left\"],\n \"stop-popper-mouse-event\": !1,\n \"popper-class\": w.tooltipClass,\n disabled: !z(l),\n persistent: \"\"\n }, {\n content: de(() => [\n Ne(\"span\", null, vt(z(f)), 1)\n ]),\n default: de(() => [\n Ne(\"div\", {\n class: Ee([z(r).e(\"button\"), { hover: z(m), dragging: z(x) }])\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 Vm = /* @__PURE__ */ st(YR, [[\"__file\", \"button.vue\"]]);\nconst JR = at({\n mark: {\n type: Je([String, Object]),\n default: void 0\n }\n});\nvar KR = Pe({\n name: \"ElSliderMarker\",\n props: JR,\n setup(n) {\n const e = nt(\"slider\"), t = ue(() => vn(n.mark) ? n.mark : n.mark.label), i = ue(() => vn(n.mark) ? void 0 : n.mark.style);\n return () => ho(\"div\", {\n class: e.e(\"marks-text\"),\n style: i.value\n }, t.value);\n }\n});\nconst qR = Pe({\n name: \"ElSlider\"\n}), QR = /* @__PURE__ */ Pe({\n ...qR,\n props: LR,\n emits: RR,\n setup(n, { expose: e, emit: t }) {\n const i = n, r = nt(\"slider\"), { t: s } = iu(), o = Wn({\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: x,\n onSliderDown: w,\n onSliderMarkerDown: A,\n setFirstValue: M,\n setSecondValue: R\n } = IR(i, o, t), { stops: L, getStopStyle: S } = WR(i, o, f, g), { inputId: I, isLabeledByFormItem: T } = su(i, {\n formItemContext: a\n }), _ = Ns(), E = ue(() => i.inputSize || _.value), C = ue(() => i.ariaLabel || s(\"el.slider.defaultLabel\", {\n min: i.min,\n max: i.max\n })), P = ue(() => i.range ? i.rangeStartLabel || s(\"el.slider.defaultRangeStartLabel\") : C.value), b = ue(() => i.formatValueText ? i.formatValueText(Y.value) : `${Y.value}`), F = ue(() => i.rangeEndLabel || s(\"el.slider.defaultRangeEndLabel\")), D = ue(() => i.formatValueText ? i.formatValueText(te.value) : `${te.value}`), N = ue(() => [\n r.b(),\n r.m(_.value),\n r.is(\"vertical\", i.vertical),\n { [r.m(\"with-input\")]: i.showInput }\n ]), B = PR(i);\n jR(i, o, f, g, t, a);\n const U = ue(() => {\n const le = [i.min, i.max, i.step].map((W) => {\n const $ = `${W}`.split(\".\")[1];\n return $ ? $.length : 0;\n });\n return Math.max.apply(null, le);\n }), { sliderWrapper: G } = FR(i, o, y), { firstValue: Y, secondValue: te, sliderSize: ae } = Br(o), ie = (le) => {\n o.dragging = le;\n };\n return un(G, \"touchstart\", m, {\n passive: !1\n }), un(G, \"touchmove\", m, {\n passive: !1\n }), sn(my, {\n ...Br(i),\n sliderSize: ae,\n disabled: h,\n precision: U,\n emitChange: v,\n resetSize: y,\n updateDragging: ie\n }), e({\n onSliderClick: x\n }), (le, W) => {\n var $, j;\n return ve(), Le(\"div\", {\n id: le.range ? z(I) : void 0,\n ref_key: \"sliderWrapper\",\n ref: G,\n class: Ee(z(N)),\n role: le.range ? \"group\" : void 0,\n \"aria-label\": le.range && !z(T) ? z(C) : void 0,\n \"aria-labelledby\": le.range && z(T) ? ($ = z(a)) == null ? void 0 : $.labelId : void 0\n }, [\n Ne(\"div\", {\n ref_key: \"slider\",\n ref: c,\n class: Ee([\n z(r).e(\"runway\"),\n { \"show-input\": le.showInput && !le.range },\n z(r).is(\"disabled\", z(h))\n ]),\n style: Rt(z(p)),\n onMousedown: z(w),\n onTouchstartPassive: z(w)\n }, [\n Ne(\"div\", {\n class: Ee(z(r).e(\"bar\")),\n style: Rt(z(u))\n }, null, 6),\n oe(Vm, {\n id: le.range ? void 0 : z(I),\n ref_key: \"firstButton\",\n ref: l,\n \"model-value\": z(Y),\n vertical: le.vertical,\n \"tooltip-class\": le.tooltipClass,\n placement: le.placement,\n role: \"slider\",\n \"aria-label\": le.range || !z(T) ? z(P) : void 0,\n \"aria-labelledby\": !le.range && z(T) ? (j = z(a)) == null ? void 0 : j.labelId : void 0,\n \"aria-valuemin\": le.min,\n \"aria-valuemax\": le.range ? z(te) : le.max,\n \"aria-valuenow\": z(Y),\n \"aria-valuetext\": z(b),\n \"aria-orientation\": le.vertical ? \"vertical\" : \"horizontal\",\n \"aria-disabled\": z(h),\n \"onUpdate:modelValue\": z(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 le.range ? (ve(), ke(Vm, {\n key: 0,\n ref_key: \"secondButton\",\n ref: d,\n \"model-value\": z(te),\n vertical: le.vertical,\n \"tooltip-class\": le.tooltipClass,\n placement: le.placement,\n role: \"slider\",\n \"aria-label\": z(F),\n \"aria-valuemin\": z(Y),\n \"aria-valuemax\": le.max,\n \"aria-valuenow\": z(te),\n \"aria-valuetext\": z(D),\n \"aria-orientation\": le.vertical ? \"vertical\" : \"horizontal\",\n \"aria-disabled\": z(h),\n \"onUpdate:modelValue\": z(R)\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\"])) : Ve(\"v-if\", !0),\n le.showStops ? (ve(), Le(\"div\", { key: 1 }, [\n (ve(!0), Le(Pt, null, Jn(z(L), (re, V) => (ve(), Le(\"div\", {\n key: V,\n class: Ee(z(r).e(\"stop\")),\n style: Rt(z(S)(re))\n }, null, 6))), 128))\n ])) : Ve(\"v-if\", !0),\n z(B).length > 0 ? (ve(), Le(Pt, { key: 2 }, [\n Ne(\"div\", null, [\n (ve(!0), Le(Pt, null, Jn(z(B), (re, V) => (ve(), Le(\"div\", {\n key: V,\n style: Rt(z(S)(re.position)),\n class: Ee([z(r).e(\"stop\"), z(r).e(\"marks-stop\")])\n }, null, 6))), 128))\n ]),\n Ne(\"div\", {\n class: Ee(z(r).e(\"marks\"))\n }, [\n (ve(!0), Le(Pt, null, Jn(z(B), (re, V) => (ve(), ke(z(KR), {\n key: V,\n mark: re.mark,\n style: Rt(z(S)(re.position)),\n onMousedown: Ut((H) => z(A)(re.position), [\"stop\"])\n }, null, 8, [\"mark\", \"style\", \"onMousedown\"]))), 128))\n ], 2)\n ], 64)) : Ve(\"v-if\", !0)\n ], 46, [\"onMousedown\", \"onTouchstartPassive\"]),\n le.showInput && !le.range ? (ve(), ke(z(dr), {\n key: 0,\n ref: \"input\",\n \"model-value\": z(Y),\n class: Ee(z(r).e(\"input\")),\n step: le.step,\n disabled: z(h),\n controls: le.showInputControls,\n min: le.min,\n max: le.max,\n precision: z(U),\n debounce: le.debounce,\n size: z(E),\n \"onUpdate:modelValue\": z(M),\n onChange: z(v)\n }, null, 8, [\"model-value\", \"class\", \"step\", \"disabled\", \"controls\", \"min\", \"max\", \"precision\", \"debounce\", \"size\", \"onUpdate:modelValue\", \"onChange\"])) : Ve(\"v-if\", !0)\n ], 10, [\"id\", \"role\", \"aria-label\", \"aria-labelledby\"]);\n };\n }\n});\nvar e3 = /* @__PURE__ */ st(QR, [[\"__file\", \"slider.vue\"]]);\nconst ti = on(e3), uu = Symbol(\"tabsRootContextKey\"), t3 = at({\n tabs: {\n type: Je(Array),\n default: () => Ki([])\n }\n}), gy = \"ElTabBar\", n3 = Pe({\n name: gy\n}), i3 = /* @__PURE__ */ Pe({\n ...n3,\n props: t3,\n setup(n, { expose: e }) {\n const t = n, i = dn(), r = pt(uu);\n r || Xo(gy, \"\");\n const s = nt(\"tabs\"), o = Te(), a = Te(), 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 x, w;\n const A = (w = (x = i.parent) == null ? void 0 : x.refs) == null ? void 0 : w[`tab-${m.uid}`];\n if (!A)\n return !1;\n if (!m.active)\n return !0;\n g = A[`offset${Rr(v)}`], p = A[`client${Rr(u)}`];\n const M = window.getComputedStyle(A);\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${Rr(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(Yn(y, l));\n }\n }\n };\n Qe(() => t.tabs, async () => {\n await bt(), l(), h();\n }, { immediate: !0 });\n const f = Yn(o, () => l());\n return ei(() => {\n d.forEach((g) => g.stop()), d.length = 0, f.stop();\n }), e({\n ref: o,\n update: l\n }), (g, p) => (ve(), Le(\"div\", {\n ref_key: \"barRef\",\n ref: o,\n class: Ee([z(s).e(\"active-bar\"), z(s).is(z(r).props.tabPosition)]),\n style: Rt(a.value)\n }, null, 6));\n }\n});\nvar r3 = /* @__PURE__ */ st(i3, [[\"__file\", \"tab-bar.vue\"]]);\nconst s3 = at({\n panes: {\n type: Je(Array),\n default: () => Ki([])\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}), o3 = {\n tabClick: (n, e, t) => t instanceof Event,\n tabRemove: (n, e) => e instanceof Event\n}, km = \"ElTabNav\", a3 = Pe({\n name: km,\n props: s3,\n emits: o3,\n setup(n, {\n expose: e,\n emit: t\n }) {\n const i = pt(uu);\n i || Xo(km, \"\");\n const r = nt(\"tabs\"), s = bw(), o = Pw(), a = Te(), c = Te(), l = Te(), d = Te(), h = Te(!1), f = Te(0), g = Te(!1), p = Te(!0), u = ue(() => [\"top\", \"bottom\"].includes(i.props.tabPosition) ? \"width\" : \"height\"), y = ue(() => ({\n transform: `translate${u.value === \"width\" ? \"X\" : \"Y\"}(-${f.value}px)`\n })), v = () => {\n if (!a.value)\n return;\n const L = a.value[`offset${Rr(u.value)}`], S = f.value;\n if (!S)\n return;\n const I = S > L ? S - L : 0;\n f.value = I;\n }, m = () => {\n if (!a.value || !c.value)\n return;\n const L = c.value[`offset${Rr(u.value)}`], S = a.value[`offset${Rr(u.value)}`], I = f.value;\n if (L - I <= S)\n return;\n const T = L - I > S * 2 ? I + S : L - S;\n f.value = T;\n }, x = async () => {\n const L = c.value;\n if (!h.value || !l.value || !a.value || !L)\n return;\n await bt();\n const S = l.value.querySelector(\".is-active\");\n if (!S)\n return;\n const I = a.value, T = [\"top\", \"bottom\"].includes(i.props.tabPosition), _ = S.getBoundingClientRect(), E = I.getBoundingClientRect(), C = T ? L.offsetWidth - E.width : L.offsetHeight - E.height, P = f.value;\n let b = P;\n T ? (_.left < E.left && (b = P - (E.left - _.left)), _.right > E.right && (b = P + _.right - E.right)) : (_.top < E.top && (b = P - (E.top - _.top)), _.bottom > E.bottom && (b = P + (_.bottom - E.bottom))), b = Math.max(b, 0), f.value = Math.min(b, C);\n }, w = () => {\n var L;\n if (!c.value || !a.value)\n return;\n n.stretch && ((L = d.value) == null || L.update());\n const S = c.value[`offset${Rr(u.value)}`], I = a.value[`offset${Rr(u.value)}`], T = f.value;\n I < S ? (h.value = h.value || {}, h.value.prev = T, h.value.next = T + I < S, S - T < I && (f.value = S - I)) : (h.value = !1, T > 0 && (f.value = 0));\n }, A = (L) => {\n const S = L.code, {\n up: I,\n down: T,\n left: _,\n right: E\n } = Li;\n if (![I, T, _, E].includes(S))\n return;\n const C = Array.from(L.currentTarget.querySelectorAll(\"[role=tab]:not(.is-disabled)\")), P = C.indexOf(L.target);\n let b;\n S === _ || S === I ? P === 0 ? b = C.length - 1 : b = P - 1 : P < C.length - 1 ? b = P + 1 : b = 0, C[b].focus({\n preventScroll: !0\n }), C[b].click(), M();\n }, M = () => {\n p.value && (g.value = !0);\n }, R = () => g.value = !1;\n return Qe(s, (L) => {\n L === \"hidden\" ? p.value = !1 : L === \"visible\" && setTimeout(() => p.value = !0, 50);\n }), Qe(o, (L) => {\n L ? setTimeout(() => p.value = !0, 50) : p.value = !1;\n }), Yn(l, w), Jt(() => setTimeout(() => x(), 0)), zd(() => w()), e({\n scrollToActiveTab: x,\n removeFocus: R\n }), () => {\n const L = h.value ? [oe(\"span\", {\n class: [r.e(\"nav-prev\"), r.is(\"disabled\", !h.value.prev)],\n onClick: v\n }, [oe(It, null, {\n default: () => [oe(zr, null, null)]\n })]), oe(\"span\", {\n class: [r.e(\"nav-next\"), r.is(\"disabled\", !h.value.next)],\n onClick: m\n }, [oe(It, null, {\n default: () => [oe(Vr, null, null)]\n })])] : null, S = n.panes.map((I, T) => {\n var _, E, C, P;\n const b = I.uid, F = I.props.disabled, D = (E = (_ = I.props.name) != null ? _ : I.index) != null ? E : `${T}`, N = !F && (I.isClosable || n.editable);\n I.index = `${T}`;\n const B = N ? oe(It, {\n class: \"is-icon-close\",\n onClick: (Y) => t(\"tabRemove\", I, Y)\n }, {\n default: () => [oe(Zh, null, null)]\n }) : null, U = ((P = (C = I.slots).label) == null ? void 0 : P.call(C)) || I.props.label, G = !F && I.active ? 0 : -1;\n return oe(\"div\", {\n ref: `tab-${b}`,\n class: [r.e(\"item\"), r.is(i.props.tabPosition), r.is(\"active\", I.active), r.is(\"disabled\", F), r.is(\"closable\", N), r.is(\"focus\", g.value)],\n id: `tab-${D}`,\n key: `tab-${b}`,\n \"aria-controls\": `pane-${D}`,\n role: \"tab\",\n \"aria-selected\": I.active,\n tabindex: G,\n onFocus: () => M(),\n onBlur: () => R(),\n onClick: (Y) => {\n R(), t(\"tabClick\", I, D, Y);\n },\n onKeydown: (Y) => {\n N && (Y.code === Li.delete || Y.code === Li.backspace) && t(\"tabRemove\", I, Y);\n }\n }, [U, B]);\n });\n return oe(\"div\", {\n ref: l,\n class: [r.e(\"nav-wrap\"), r.is(\"scrollable\", !!h.value), r.is(i.props.tabPosition)]\n }, [L, oe(\"div\", {\n class: r.e(\"nav-scroll\"),\n ref: a\n }, [oe(\"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: A\n }, [n.type ? null : oe(r3, {\n ref: d,\n tabs: [...n.panes]\n }, null), S])])]);\n };\n }\n}), l3 = at({\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}), ju = (n) => vn(n) || yt(n), c3 = {\n [At]: (n) => ju(n),\n tabClick: (n, e) => e instanceof Event,\n tabChange: (n) => ju(n),\n edit: (n, e) => [\"remove\", \"add\"].includes(e),\n tabRemove: (n) => ju(n),\n tabAdd: () => !0\n}, u3 = Pe({\n name: \"ElTabs\",\n props: l3,\n emits: c3,\n setup(n, {\n emit: e,\n slots: t,\n expose: i\n }) {\n var r;\n const s = nt(\"tabs\"), o = ue(() => [\"left\", \"right\"].includes(n.tabPosition)), {\n children: a,\n addChild: c,\n removeChild: l\n } = RE(dn(), \"ElTabPane\"), d = Te(), h = Te((r = n.modelValue) != null ? r : \"0\"), f = async (v, m = !1) => {\n var x, w, A;\n if (!(h.value === v || di(v)))\n try {\n await ((x = n.beforeLeave) == null ? void 0 : x.call(n, v, h.value)) !== !1 && (h.value = v, m && (e(At, v), e(\"tabChange\", v)), (A = (w = d.value) == null ? void 0 : w.removeFocus) == null || A.call(w));\n } catch {\n }\n }, g = (v, m, x) => {\n v.props.disabled || (f(m, !0), e(\"tabClick\", v, x));\n }, p = (v, m) => {\n v.props.disabled || di(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 bt(), (v = d.value) == null || v.scrollToActiveTab();\n }), sn(uu, {\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 ? oe(\"div\", {\n class: [s.e(\"new-tab\"), o.value && s.e(\"new-tab-vertical\")],\n tabindex: \"0\",\n onClick: u,\n onKeydown: (A) => {\n A.code === Li.enter && u();\n }\n }, [v ? je(t, \"add-icon\") : oe(It, {\n class: s.is(\"icon-plus\")\n }, {\n default: () => [oe(tu, null, null)]\n })]) : null, x = oe(\"div\", {\n class: [s.e(\"header\"), o.value && s.e(\"header-vertical\"), s.is(n.tabPosition)]\n }, [oe(y, {\n render: () => {\n const A = a.value.some((M) => M.slots.label);\n return oe(a3, {\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: !A\n });\n }\n }, null), m]), w = oe(\"div\", {\n class: s.e(\"content\")\n }, [je(t, \"default\")]);\n return oe(\"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, x]);\n };\n }\n}), h3 = at({\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}), vy = \"ElTabPane\", d3 = Pe({\n name: vy\n}), f3 = /* @__PURE__ */ Pe({\n ...d3,\n props: h3,\n setup(n) {\n const e = n, t = dn(), i = Xc(), r = pt(uu);\n r || Xo(vy, \"usage: \");\n const s = nt(\"tab-pane\"), o = Te(), a = ue(() => e.closable || r.props.closable), c = Mp(() => {\n var g;\n return r.currentName.value === ((g = e.name) != null ? g : o.value);\n }), l = Te(c.value), d = ue(() => {\n var g;\n return (g = e.name) != null ? g : o.value;\n }), h = Mp(() => !e.lazy || l.value || c.value);\n Qe(c, (g) => {\n g && (l.value = !0);\n });\n const f = Wn({\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), Jt(() => {\n r.sortPane(f);\n }), Uv(() => {\n r.unregisterPane(f.uid);\n }), (g, p) => z(h) ? Lt((ve(), Le(\"div\", {\n key: 0,\n id: `pane-${z(d)}`,\n class: Ee(z(s).b()),\n role: \"tabpanel\",\n \"aria-hidden\": !z(c),\n \"aria-labelledby\": `tab-${z(d)}`\n }, [\n je(g.$slots, \"default\")\n ], 10, [\"id\", \"aria-hidden\", \"aria-labelledby\"])), [\n [mn, z(c)]\n ]) : Ve(\"v-if\", !0);\n }\n});\nvar yy = /* @__PURE__ */ st(f3, [[\"__file\", \"tab-pane.vue\"]]);\nconst by = on(u3, {\n TabPane: yy\n}), xy = vi(yy);\nfunction p3(n) {\n let e;\n const t = Te(!1), i = Wn({\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()) : (Oc(f, g.bm(\"parent\", \"relative\")), f.removeAttribute(\"loading-number\")), Oc(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 = Pe({\n name: \"ElLoading\",\n setup(f, { expose: g }) {\n const { ns: p, zIndex: u } = UE(\"loading\");\n return g({\n ns: p,\n zIndex: u\n }), () => {\n const y = i.spinner || i.svg, v = ho(\"svg\", {\n class: \"circular\",\n viewBox: i.svgViewBox ? i.svgViewBox : \"0 0 50 50\",\n ...y ? { innerHTML: y } : {}\n }, [\n ho(\"circle\", {\n class: \"path\",\n cx: \"25\",\n cy: \"25\",\n r: \"20\",\n fill: \"none\"\n })\n ]), m = i.text ? ho(\"p\", { class: p.b(\"text\") }, [i.text]) : void 0;\n return ho(el, {\n name: p.b(\"fade\"),\n onAfterLeave: c\n }, {\n default: de(() => [\n Lt(oe(\"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 ho(\"div\", {\n class: p.b(\"spinner\")\n }, [v, m])\n ]), [[mn, i.visible]])\n ])\n });\n };\n }\n }), d = KM(l), h = d.mount(document.createElement(\"div\"));\n return {\n ...Br(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 Pl;\nconst ed = function(n = {}) {\n if (!en)\n return;\n const e = m3(n);\n if (e.fullscreen && Pl)\n return Pl;\n const t = p3({\n ...e,\n closed: () => {\n var r;\n (r = e.closed) == null || r.call(e), e.fullscreen && (Pl = void 0);\n }\n });\n g3(e, e.parent, t), Gm(e, e.parent, t), e.parent.vLoadingAddClassList = () => Gm(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), bt(() => t.visible.value = e.visible), e.fullscreen && (Pl = t), t;\n}, m3 = (n) => {\n var e, t, i, r;\n let s;\n return vn(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}, g3 = async (n, e, t) => {\n const { nextZIndex: i } = t.vm.zIndex || t.vm._.exposed.zIndex, r = {};\n if (n.fullscreen)\n t.originalPosition.value = ca(document.body, \"position\"), t.originalOverflow.value = ca(document.body, \"overflow\"), r.zIndex = i();\n else if (n.parent === document.body) {\n t.originalPosition.value = ca(document.body, \"position\"), await bt();\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(ca(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 = ca(e, \"position\");\n for (const [s, o] of Object.entries(r))\n t.$el.style[s] = o;\n}, Gm = (n, e, t) => {\n const i = t.vm.ns || t.vm._.exposed.ns;\n [\"absolute\", \"fixed\", \"sticky\"].includes(t.originalPosition.value) ? Oc(e, i.bm(\"parent\", \"relative\")) : sm(e, i.bm(\"parent\", \"relative\")), n.fullscreen && n.lock ? sm(e, i.bm(\"parent\", \"hidden\")) : Oc(e, i.bm(\"parent\", \"hidden\"));\n}, Ec = Symbol(\"ElLoading\"), Hm = (n, e) => {\n var t, i, r, s;\n const o = e.instance, a = (f) => Tn(e.value) ? e.value[f] : void 0, c = (f) => {\n const g = vn(f) && (o == null ? void 0 : o[f]) || f;\n return g && Te(g);\n }, l = (f) => c(a(f) || n.getAttribute(`element-loading-${Vw(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[Ec] = {\n options: h,\n instance: ed(h)\n };\n}, v3 = (n, e) => {\n for (const t of Object.keys(e))\n Zc(e[t]) && (e[t].value = n[t]);\n}, td = {\n mounted(n, e) {\n e.value && Hm(n, e);\n },\n updated(n, e) {\n const t = n[Ec];\n e.oldValue !== e.value && (e.value && !e.oldValue ? Hm(n, e) : e.value && e.oldValue ? Tn(e.value) && v3(e.value, t.options) : t == null || t.instance.close());\n },\n unmounted(n) {\n var e;\n (e = n[Ec]) == null || e.instance.close(), n[Ec] = null;\n }\n}, y3 = {\n install(n) {\n n.directive(\"loading\", td), n.config.globalProperties.$loading = ed;\n },\n directive: td,\n service: ed\n};\nvar My = { exports: {} }, Wm = {}, jm;\nfunction b3() {\n return jm || (jm = 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 Lr < \"u\" ? Lr : typeof window < \"u\" ? window : typeof self < \"u\" ? self : Lr\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 (x) {\n throw new Error(\"URL unable to set base \" + l + \" due to \" + x);\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(x) {\n var w = p[x];\n p[x] = function() {\n w.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 Lr < \"u\" ? Lr : typeof window < \"u\" ? window : typeof self < \"u\" ? self : Lr\n )), Wm;\n}\n/**\n * @license\n * Copyright 2010-2021 Three.js Authors\n * SPDX-License-Identifier: MIT\n */\nconst gf = \"130\", x3 = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, M3 = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, wy = 0, nd = 1, Ay = 2, w3 = 3, A3 = 0, vf = 1, Sy = 2, po = 3, Hr = 0, jt = 1, Wr = 2, yf = 1, S3 = 2, tr = 0, vo = 1, id = 2, rd = 3, sd = 4, _y = 5, ps = 100, Ty = 101, Ey = 102, od = 103, ad = 104, Cy = 200, Ly = 201, Ry = 202, Fy = 203, bf = 204, xf = 205, Py = 206, Iy = 207, Oy = 208, Dy = 209, Ny = 210, By = 0, Uy = 1, zy = 2, Vc = 3, Vy = 4, ky = 5, Gy = 6, Hy = 7, al = 0, Wy = 1, jy = 2, Ir = 0, $y = 1, Zy = 2, Xy = 3, Yy = 4, Jy = 5, hu = 300, ll = 301, cl = 302, kc = 303, Gc = 304, ea = 306, ul = 307, jr = 1e3, hn = 1001, Eo = 1002, $t = 1003, ka = 1004, _3 = 1004, Ga = 1005, T3 = 1005, zt = 1006, du = 1007, E3 = 1007, fr = 1008, C3 = 1008, Ts = 1009, Ky = 1010, qy = 1011, Ha = 1012, Qy = 1013, Ra = 1014, qi = 1015, Ms = 1016, eb = 1017, tb = 1018, nb = 1019, yo = 1020, ib = 1021, nr = 1022, Gn = 1023, rb = 1024, sb = 1025, ob = Gn, ws = 1026, Co = 1027, ab = 1028, lb = 1029, cb = 1030, ub = 1031, hb = 1032, db = 1033, ld = 33776, cd = 33777, ud = 33778, hd = 33779, dd = 35840, fd = 35841, pd = 35842, md = 35843, fb = 36196, gd = 37492, vd = 37496, pb = 37808, mb = 37809, gb = 37810, vb = 37811, yb = 37812, bb = 37813, xb = 37814, Mb = 37815, wb = 37816, Ab = 37817, Sb = 37818, _b = 37819, Tb = 37820, Eb = 37821, Cb = 36492, Lb = 37840, Rb = 37841, Fb = 37842, Pb = 37843, Ib = 37844, Ob = 37845, Db = 37846, Nb = 37847, Bb = 37848, Ub = 37849, zb = 37850, Vb = 37851, kb = 37852, Gb = 37853, Hb = 2200, Wb = 2201, jb = 2202, Lo = 2300, Es = 2301, Cc = 2302, gs = 2400, vs = 2401, Wa = 2402, fu = 2500, Mf = 2501, $b = 0, Zb = 1, wf = 2, Cn = 3e3, Cs = 3001, pu = 3007, mu = 3002, Xb = 3003, Af = 3004, Sf = 3005, _f = 3006, Yb = 3200, Jb = 3201, Jr = 0, Kb = 1, L3 = 0, Lc = 7680, R3 = 7681, F3 = 7682, P3 = 7683, I3 = 34055, O3 = 34056, D3 = 5386, N3 = 512, B3 = 513, U3 = 514, z3 = 515, V3 = 516, k3 = 517, G3 = 518, qb = 519, Ro = 35044, Fo = 35048, H3 = 35040, W3 = 35045, j3 = 35049, $3 = 35041, Z3 = 35046, X3 = 35050, Y3 = 35042, J3 = \"100\", yd = \"300 es\";\nclass Kr {\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 fn = [];\nfor (let n = 0; n < 256; n++)\n fn[n] = (n < 16 ? \"0\" : \"\") + n.toString(16);\nlet Il = 1234567;\nconst As = Math.PI / 180, ja = 180 / Math.PI;\nfunction Hn() {\n const n = Math.random() * 4294967295 | 0, e = Math.random() * 4294967295 | 0, t = Math.random() * 4294967295 | 0, i = Math.random() * 4294967295 | 0;\n return (fn[n & 255] + fn[n >> 8 & 255] + fn[n >> 16 & 255] + fn[n >> 24 & 255] + \"-\" + fn[e & 255] + fn[e >> 8 & 255] + \"-\" + fn[e >> 16 & 15 | 64] + fn[e >> 24 & 255] + \"-\" + fn[t & 63 | 128] + fn[t >> 8 & 255] + \"-\" + fn[t >> 16 & 255] + fn[t >> 24 & 255] + fn[i & 255] + fn[i >> 8 & 255] + fn[i >> 16 & 255] + fn[i >> 24 & 255]).toUpperCase();\n}\nfunction gn(n, e, t) {\n return Math.max(e, Math.min(t, n));\n}\nfunction Tf(n, e) {\n return (n % e + e) % e;\n}\nfunction K3(n, e, t, i, r) {\n return i + (n - e) * (r - i) / (t - e);\n}\nfunction q3(n, e, t) {\n return n !== e ? (t - n) / (e - n) : 0;\n}\nfunction Fa(n, e, t) {\n return (1 - t) * n + t * e;\n}\nfunction Q3(n, e, t, i) {\n return Fa(n, e, 1 - Math.exp(-t * i));\n}\nfunction eF(n, e = 1) {\n return e - Math.abs(Tf(n, e * 2) - e);\n}\nfunction tF(n, e, t) {\n return n <= e ? 0 : n >= t ? 1 : (n = (n - e) / (t - e), n * n * (3 - 2 * n));\n}\nfunction nF(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 iF(n, e) {\n return n + Math.floor(Math.random() * (e - n + 1));\n}\nfunction rF(n, e) {\n return n + Math.random() * (e - n);\n}\nfunction sF(n) {\n return n * (0.5 - Math.random());\n}\nfunction oF(n) {\n return n !== void 0 && (Il = n % 2147483647), Il = Il * 16807 % 2147483647, (Il - 1) / 2147483646;\n}\nfunction aF(n) {\n return n * As;\n}\nfunction lF(n) {\n return n * ja;\n}\nfunction bd(n) {\n return (n & n - 1) === 0 && n !== 0;\n}\nfunction Qb(n) {\n return Math.pow(2, Math.ceil(Math.log(n) / Math.LN2));\n}\nfunction ex(n) {\n return Math.pow(2, Math.floor(Math.log(n) / Math.LN2));\n}\nfunction cF(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 xd = /* @__PURE__ */ Object.freeze({\n __proto__: null,\n DEG2RAD: As,\n RAD2DEG: ja,\n generateUUID: Hn,\n clamp: gn,\n euclideanModulo: Tf,\n mapLinear: K3,\n inverseLerp: q3,\n lerp: Fa,\n damp: Q3,\n pingpong: eF,\n smoothstep: tF,\n smootherstep: nF,\n randInt: iF,\n randFloat: rF,\n randFloatSpread: sF,\n seededRandom: oF,\n degToRad: aF,\n radToDeg: lF,\n isPowerOfTwo: bd,\n ceilPowerOfTwo: Qb,\n floorPowerOfTwo: ex,\n setQuaternionFromProperEuler: cF\n});\nclass Re {\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}\nRe.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], x = r[4], w = r[7], A = r[2], M = r[5], R = r[8];\n return s[0] = o * u + a * m + c * A, s[3] = o * y + a * x + c * M, s[6] = o * v + a * w + c * R, s[1] = l * u + d * m + h * A, s[4] = l * y + d * x + h * M, s[7] = l * v + d * w + h * R, s[2] = f * u + g * m + p * A, s[5] = f * y + g * x + p * M, s[8] = f * v + g * w + p * R, 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 js;\nclass Bs {\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 js === void 0 && (js = document.createElementNS(\"http://www.w3.org/1999/xhtml\", \"canvas\")), js.width = e.width, js.height = e.height;\n const i = js.getContext(\"2d\");\n e instanceof ImageData ? i.putImageData(e, 0, 0) : i.drawImage(e, 0, 0, e.width, e.height), t = js;\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 uF = 0;\nclass Yt extends Kr {\n constructor(e = Yt.DEFAULT_IMAGE, t = Yt.DEFAULT_MAPPING, i = hn, r = hn, s = zt, o = fr, a = Gn, c = Ts, l = 1, d = Cn) {\n super(), Object.defineProperty(this, \"id\", { value: uF++ }), this.uuid = Hn(), 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 Re(0, 0), this.repeat = new Re(1, 1), this.center = new Re(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 = Hn()), !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($u(r[o].image)) : s.push($u(r[o]));\n } else\n s = $u(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 !== hu) return e;\n if (e.applyMatrix3(this.matrix), e.x < 0 || e.x > 1)\n switch (this.wrapS) {\n case jr:\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 Eo:\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 jr:\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 Eo:\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}\nYt.DEFAULT_IMAGE = void 0;\nYt.DEFAULT_MAPPING = hu;\nYt.prototype.isTexture = !0;\nfunction $u(n) {\n return typeof HTMLImageElement < \"u\" && n instanceof HTMLImageElement || typeof HTMLCanvasElement < \"u\" && n instanceof HTMLCanvasElement || typeof ImageBitmap < \"u\" && n instanceof ImageBitmap ? Bs.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 xt {\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 x = (l + 1) / 2, w = (g + 1) / 2, A = (v + 1) / 2, M = (d + f) / 4, R = (h + u) / 4, L = (p + y) / 4;\n return x > w && x > A ? x < 0.01 ? (i = 0, r = 0.707106781, s = 0.707106781) : (i = Math.sqrt(x), r = M / i, s = R / i) : w > A ? w < 0.01 ? (i = 0.707106781, r = 0, s = 0.707106781) : (r = Math.sqrt(w), i = M / r, s = L / r) : A < 0.01 ? (i = 0.707106781, r = 0.707106781, s = 0) : (s = Math.sqrt(A), i = R / s, r = L / 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}\nxt.prototype.isVector4 = !0;\nclass fi extends Kr {\n constructor(e, t, i = {}) {\n super(), this.width = e, this.height = t, this.depth = 1, this.scissor = new xt(0, 0, e, t), this.scissorTest = !1, this.viewport = new xt(0, 0, e, t), this.texture = new Yt(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 : zt, 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}\nfi.prototype.isWebGLRenderTarget = !0;\nclass tx extends fi {\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}\ntx.prototype.isWebGLMultipleRenderTargets = !0;\nclass Ef extends fi {\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}\nEf.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, x = 1 - v * v;\n if (x > Number.EPSILON) {\n const A = Math.sqrt(x), M = Math.atan2(A, v * m);\n y = Math.sin(y * M) / A, a = Math.sin(a * M) / A;\n }\n const w = a * m;\n if (c = c * y + f * w, l = l * y + g * w, d = d * y + p * w, h = h * y + u * w, y === 1 - a) {\n const A = 1 / Math.sqrt(c * c + l * l + d * d + h * h);\n c *= A, l *= A, d *= A, h *= A;\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(gn(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 q {\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($m.setFromEuler(e));\n }\n applyAxisAngle(e, t) {\n return this.applyQuaternion($m.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 Zu.copy(this).projectOnVector(e), this.sub(Zu);\n }\n reflect(e) {\n return this.sub(Zu.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(gn(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}\nq.prototype.isVector3 = !0;\nconst Zu = /* @__PURE__ */ new q(), $m = /* @__PURE__ */ new bn();\nclass Nn {\n constructor(e = new q(1 / 0, 1 / 0, 1 / 0), t = new q(-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 = ha.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(), Xu.copy(t.boundingBox), Xu.applyMatrix4(e.matrixWorld), this.union(Xu));\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, ha), ha.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(da), Ol.subVectors(this.max, da), $s.subVectors(e.a, da), Zs.subVectors(e.b, da), Xs.subVectors(e.c, da), vr.subVectors(Zs, $s), yr.subVectors(Xs, Zs), ss.subVectors($s, Xs);\n let t = [\n 0,\n -vr.z,\n vr.y,\n 0,\n -yr.z,\n yr.y,\n 0,\n -ss.z,\n ss.y,\n vr.z,\n 0,\n -vr.x,\n yr.z,\n 0,\n -yr.x,\n ss.z,\n 0,\n -ss.x,\n -vr.y,\n vr.x,\n 0,\n -yr.y,\n yr.x,\n 0,\n -ss.y,\n ss.x,\n 0\n ];\n return !Yu(t, $s, Zs, Xs, Ol) || (t = [1, 0, 0, 0, 1, 0, 0, 0, 1], !Yu(t, $s, Zs, Xs, Ol)) ? !1 : (Dl.crossVectors(vr, yr), t = [Dl.x, Dl.y, Dl.z], Yu(t, $s, Zs, Xs, Ol));\n }\n clampPoint(e, t) {\n return t.copy(e).clamp(this.min, this.max);\n }\n distanceToPoint(e) {\n return ha.copy(e).clamp(this.min, this.max).sub(e).length();\n }\n getBoundingSphere(e) {\n return this.getCenter(e.center), e.radius = this.getSize(ha).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 : (Hi[0].set(this.min.x, this.min.y, this.min.z).applyMatrix4(e), Hi[1].set(this.min.x, this.min.y, this.max.z).applyMatrix4(e), Hi[2].set(this.min.x, this.max.y, this.min.z).applyMatrix4(e), Hi[3].set(this.min.x, this.max.y, this.max.z).applyMatrix4(e), Hi[4].set(this.max.x, this.min.y, this.min.z).applyMatrix4(e), Hi[5].set(this.max.x, this.min.y, this.max.z).applyMatrix4(e), Hi[6].set(this.max.x, this.max.y, this.min.z).applyMatrix4(e), Hi[7].set(this.max.x, this.max.y, this.max.z).applyMatrix4(e), this.setFromPoints(Hi), 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}\nNn.prototype.isBox3 = !0;\nconst Hi = [\n /* @__PURE__ */ new q(),\n /* @__PURE__ */ new q(),\n /* @__PURE__ */ new q(),\n /* @__PURE__ */ new q(),\n /* @__PURE__ */ new q(),\n /* @__PURE__ */ new q(),\n /* @__PURE__ */ new q(),\n /* @__PURE__ */ new q()\n], ha = /* @__PURE__ */ new q(), Xu = /* @__PURE__ */ new Nn(), $s = /* @__PURE__ */ new q(), Zs = /* @__PURE__ */ new q(), Xs = /* @__PURE__ */ new q(), vr = /* @__PURE__ */ new q(), yr = /* @__PURE__ */ new q(), ss = /* @__PURE__ */ new q(), da = /* @__PURE__ */ new q(), Ol = /* @__PURE__ */ new q(), Dl = /* @__PURE__ */ new q(), os = /* @__PURE__ */ new q();\nfunction Yu(n, e, t, i, r) {\n for (let s = 0, o = n.length - 3; s <= o; s += 3) {\n os.fromArray(n, s);\n const a = r.x * Math.abs(os.x) + r.y * Math.abs(os.y) + r.z * Math.abs(os.z), c = e.dot(os), l = t.dot(os), d = i.dot(os);\n if (Math.max(-Math.max(c, l, d), Math.min(c, l, d)) > a)\n return !1;\n }\n return !0;\n}\nconst hF = /* @__PURE__ */ new Nn(), Zm = /* @__PURE__ */ new q(), Ju = /* @__PURE__ */ new q(), Ku = /* @__PURE__ */ new q();\nclass pr {\n constructor(e = new q(), 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) : hF.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 Ku.subVectors(e, this.center);\n const t = Ku.lengthSq();\n if (t > this.radius * this.radius) {\n const i = Math.sqrt(t), r = (i - this.radius) * 0.5;\n this.center.add(Ku.multiplyScalar(r / i)), this.radius += r;\n }\n return this;\n }\n union(e) {\n return Ju.subVectors(e.center, this.center).normalize().multiplyScalar(e.radius), this.expandByPoint(Zm.copy(e.center).add(Ju)), this.expandByPoint(Zm.copy(e.center).sub(Ju)), 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 Wi = /* @__PURE__ */ new q(), qu = /* @__PURE__ */ new q(), Nl = /* @__PURE__ */ new q(), br = /* @__PURE__ */ new q(), Qu = /* @__PURE__ */ new q(), Bl = /* @__PURE__ */ new q(), eh = /* @__PURE__ */ new q();\nclass qr {\n constructor(e = new q(), t = new q(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, Wi)), 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 = Wi.subVectors(e, this.origin).dot(this.direction);\n return t < 0 ? this.origin.distanceToSquared(e) : (Wi.copy(this.direction).multiplyScalar(t).add(this.origin), Wi.distanceToSquared(e));\n }\n distanceSqToSegment(e, t, i, r) {\n qu.copy(e).add(t).multiplyScalar(0.5), Nl.copy(t).sub(e).normalize(), br.copy(this.origin).sub(qu);\n const s = e.distanceTo(t) * 0.5, o = -this.direction.dot(Nl), a = br.dot(this.direction), c = -br.dot(Nl), l = br.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(Nl).multiplyScalar(f).add(qu), g;\n }\n intersectSphere(e, t) {\n Wi.subVectors(e.center, this.origin);\n const i = Wi.dot(this.direction), r = Wi.dot(Wi) - 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, Wi) !== null;\n }\n intersectTriangle(e, t, i, r, s) {\n Qu.subVectors(t, e), Bl.subVectors(i, e), eh.crossVectors(Qu, Bl);\n let o = this.direction.dot(eh), 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 br.subVectors(this.origin, e);\n const c = a * this.direction.dot(Bl.crossVectors(br, Bl));\n if (c < 0)\n return null;\n const l = a * this.direction.dot(Qu.cross(br));\n if (l < 0 || c + l > o)\n return null;\n const d = -a * br.dot(eh);\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 Xe {\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 Xe().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 / Ys.setFromMatrixColumn(e, 0).length(), s = 1 / Ys.setFromMatrixColumn(e, 1).length(), o = 1 / Ys.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(dF, e, fF);\n }\n lookAt(e, t, i) {\n const r = this.elements;\n return Bn.subVectors(e, t), Bn.lengthSq() === 0 && (Bn.z = 1), Bn.normalize(), xr.crossVectors(i, Bn), xr.lengthSq() === 0 && (Math.abs(i.z) === 1 ? Bn.x += 1e-4 : Bn.z += 1e-4, Bn.normalize(), xr.crossVectors(i, Bn)), xr.normalize(), Ul.crossVectors(Bn, xr), r[0] = xr.x, r[4] = Ul.x, r[8] = Bn.x, r[1] = xr.y, r[5] = Ul.y, r[9] = Bn.y, r[2] = xr.z, r[6] = Ul.z, r[10] = Bn.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], x = i[7], w = i[11], A = i[15], M = r[0], R = r[4], L = r[8], S = r[12], I = r[1], T = r[5], _ = r[9], E = r[13], C = r[2], P = r[6], b = r[10], F = r[14], D = r[3], N = r[7], B = r[11], U = r[15];\n return s[0] = o * M + a * I + c * C + l * D, s[4] = o * R + a * T + c * P + l * N, s[8] = o * L + a * _ + c * b + l * B, s[12] = o * S + a * E + c * F + l * U, s[1] = d * M + h * I + f * C + g * D, s[5] = d * R + h * T + f * P + g * N, s[9] = d * L + h * _ + f * b + g * B, s[13] = d * S + h * E + f * F + g * U, s[2] = p * M + u * I + y * C + v * D, s[6] = p * R + u * T + y * P + v * N, s[10] = p * L + u * _ + y * b + v * B, s[14] = p * S + u * E + y * F + v * U, s[3] = m * M + x * I + w * C + A * D, s[7] = m * R + x * T + w * P + A * N, s[11] = m * L + x * _ + w * b + A * B, s[15] = m * S + x * E + w * F + A * U, 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, x = p * f * l - d * y * l - p * c * g + o * y * g + d * c * v - o * f * v, w = d * u * l - p * h * l + p * a * g - o * u * g - d * a * v + o * h * v, A = p * h * c - d * u * c - p * a * f + o * u * f + d * a * y - o * h * y, M = t * m + i * x + r * w + s * A;\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 R = 1 / M;\n return e[0] = m * R, e[1] = (u * f * s - h * y * s - u * r * g + i * y * g + h * r * v - i * f * v) * R, e[2] = (a * y * s - u * c * s + u * r * l - i * y * l - a * r * v + i * c * v) * R, e[3] = (h * c * s - a * f * s - h * r * l + i * f * l + a * r * g - i * c * g) * R, e[4] = x * R, e[5] = (d * y * s - p * f * s + p * r * g - t * y * g - d * r * v + t * f * v) * R, e[6] = (p * c * s - o * y * s - p * r * l + t * y * l + o * r * v - t * c * v) * R, e[7] = (o * f * s - d * c * s + d * r * l - t * f * l - o * r * g + t * c * g) * R, e[8] = w * R, e[9] = (p * h * s - d * u * s - p * i * g + t * u * g + d * i * v - t * h * v) * R, e[10] = (o * u * s - p * a * s + p * i * l - t * u * l - o * i * v + t * a * v) * R, e[11] = (d * a * s - o * h * s - d * i * l + t * h * l + o * i * g - t * a * g) * R, e[12] = A * R, e[13] = (d * u * r - p * h * r + p * i * f - t * u * f - d * i * y + t * h * y) * R, e[14] = (p * a * r - o * u * r - p * i * c + t * u * c + o * i * y - t * a * y) * R, e[15] = (o * h * r - d * a * r + d * i * c - t * h * c - o * i * f + t * a * f) * R, 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, x = c * d, w = c * h, A = i.x, M = i.y, R = i.z;\n return r[0] = (1 - (u + v)) * A, r[1] = (g + w) * A, r[2] = (p - x) * A, r[3] = 0, r[4] = (g - w) * M, r[5] = (1 - (f + v)) * M, r[6] = (y + m) * M, r[7] = 0, r[8] = (p + x) * R, r[9] = (y - m) * R, r[10] = (1 - (f + u)) * R, 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 = Ys.set(r[0], r[1], r[2]).length();\n const o = Ys.set(r[4], r[5], r[6]).length(), a = Ys.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], ri.copy(this);\n const l = 1 / s, d = 1 / o, h = 1 / a;\n return ri.elements[0] *= l, ri.elements[1] *= l, ri.elements[2] *= l, ri.elements[4] *= d, ri.elements[5] *= d, ri.elements[6] *= d, ri.elements[8] *= h, ri.elements[9] *= h, ri.elements[10] *= h, t.setFromRotationMatrix(ri), 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}\nXe.prototype.isMatrix4 = !0;\nconst Ys = /* @__PURE__ */ new q(), ri = /* @__PURE__ */ new Xe(), dF = /* @__PURE__ */ new q(0, 0, 0), fF = /* @__PURE__ */ new q(1, 1, 1), xr = /* @__PURE__ */ new q(), Ul = /* @__PURE__ */ new q(), Bn = /* @__PURE__ */ new q(), Xm = /* @__PURE__ */ new Xe(), Ym = /* @__PURE__ */ new bn();\nclass Us {\n constructor(e = 0, t = 0, i = 0, r = Us.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(gn(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(-gn(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(gn(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(-gn(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(gn(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(-gn(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 Xm.makeRotationFromQuaternion(e), this.setFromRotationMatrix(Xm, 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 Ym.setFromEuler(this), this.setFromQuaternion(Ym, 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 q(this._x, this._y, this._z);\n }\n _onChange(e) {\n return this._onChangeCallback = e, this;\n }\n _onChangeCallback() {\n }\n}\nUs.prototype.isEuler = !0;\nUs.DefaultOrder = \"XYZ\";\nUs.RotationOrders = [\"XYZ\", \"YZX\", \"ZXY\", \"XZY\", \"YXZ\", \"ZYX\"];\nclass Cf {\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 pF = 0;\nconst Jm = /* @__PURE__ */ new q(), Js = /* @__PURE__ */ new bn(), ji = /* @__PURE__ */ new Xe(), zl = /* @__PURE__ */ new q(), fa = /* @__PURE__ */ new q(), mF = /* @__PURE__ */ new q(), gF = /* @__PURE__ */ new bn(), Km = /* @__PURE__ */ new q(1, 0, 0), qm = /* @__PURE__ */ new q(0, 1, 0), Qm = /* @__PURE__ */ new q(0, 0, 1), vF = { type: \"added\" }, eg = { type: \"removed\" };\nclass ut extends Kr {\n constructor() {\n super(), Object.defineProperty(this, \"id\", { value: pF++ }), this.uuid = Hn(), this.name = \"\", this.type = \"Object3D\", this.parent = null, this.children = [], this.up = ut.DefaultUp.clone();\n const e = new q(), t = new Us(), i = new bn(), r = new q(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 Xe()\n },\n normalMatrix: {\n value: new rn()\n }\n }), this.matrix = new Xe(), this.matrixWorld = new Xe(), this.matrixAutoUpdate = ut.DefaultMatrixAutoUpdate, this.matrixWorldNeedsUpdate = !1, this.layers = new Cf(), 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 Js.setFromAxisAngle(e, t), this.quaternion.multiply(Js), this;\n }\n rotateOnWorldAxis(e, t) {\n return Js.setFromAxisAngle(e, t), this.quaternion.premultiply(Js), this;\n }\n rotateX(e) {\n return this.rotateOnAxis(Km, e);\n }\n rotateY(e) {\n return this.rotateOnAxis(qm, e);\n }\n rotateZ(e) {\n return this.rotateOnAxis(Qm, e);\n }\n translateOnAxis(e, t) {\n return Jm.copy(e).applyQuaternion(this.quaternion), this.position.add(Jm.multiplyScalar(t)), this;\n }\n translateX(e) {\n return this.translateOnAxis(Km, e);\n }\n translateY(e) {\n return this.translateOnAxis(qm, e);\n }\n translateZ(e) {\n return this.translateOnAxis(Qm, e);\n }\n localToWorld(e) {\n return e.applyMatrix4(this.matrixWorld);\n }\n worldToLocal(e) {\n return e.applyMatrix4(ji.copy(this.matrixWorld).invert());\n }\n lookAt(e, t, i) {\n e.isVector3 ? zl.copy(e) : zl.set(e, t, i);\n const r = this.parent;\n this.updateWorldMatrix(!0, !1), fa.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? ji.lookAt(fa, zl, this.up) : ji.lookAt(zl, fa, this.up), this.quaternion.setFromRotationMatrix(ji), r && (ji.extractRotation(r.matrixWorld), Js.setFromRotationMatrix(ji), this.quaternion.premultiply(Js.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(vF)) : 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(eg)), 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(eg);\n }\n return this.children.length = 0, this;\n }\n attach(e) {\n return this.updateWorldMatrix(!0, !1), ji.copy(this.matrixWorld).invert(), e.parent !== null && (e.parent.updateWorldMatrix(!0, !1), ji.multiply(e.parent.matrixWorld)), e.applyMatrix4(ji), 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(fa, e, mF), e;\n }\n getWorldScale(e) {\n return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(fa, gF, 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}\nut.DefaultUp = new q(0, 1, 0);\nut.DefaultMatrixAutoUpdate = !0;\nut.prototype.isObject3D = !0;\nconst si = /* @__PURE__ */ new q(), $i = /* @__PURE__ */ new q(), th = /* @__PURE__ */ new q(), Zi = /* @__PURE__ */ new q(), Ks = /* @__PURE__ */ new q(), qs = /* @__PURE__ */ new q(), tg = /* @__PURE__ */ new q(), nh = /* @__PURE__ */ new q(), ih = /* @__PURE__ */ new q(), rh = /* @__PURE__ */ new q();\nclass Zt {\n constructor(e = new q(), t = new q(), i = new q()) {\n this.a = e, this.b = t, this.c = i;\n }\n static getNormal(e, t, i, r) {\n r.subVectors(i, t), si.subVectors(e, t), r.cross(si);\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 si.subVectors(r, t), $i.subVectors(i, t), th.subVectors(e, t);\n const o = si.dot(si), a = si.dot($i), c = si.dot(th), l = $i.dot($i), d = $i.dot(th), 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, Zi), Zi.x >= 0 && Zi.y >= 0 && Zi.x + Zi.y <= 1;\n }\n static getUV(e, t, i, r, s, o, a, c) {\n return this.getBarycoord(e, t, i, r, Zi), c.set(0, 0), c.addScaledVector(s, Zi.x), c.addScaledVector(o, Zi.y), c.addScaledVector(a, Zi.z), c;\n }\n static isFrontFacing(e, t, i, r) {\n return si.subVectors(i, t), $i.subVectors(e, t), si.cross($i).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 si.subVectors(this.c, this.b), $i.subVectors(this.a, this.b), si.cross($i).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 Zt.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 Zt.getBarycoord(e, this.a, this.b, this.c, t);\n }\n getUV(e, t, i, r, s) {\n return Zt.getUV(e, this.a, this.b, this.c, t, i, r, s);\n }\n containsPoint(e) {\n return Zt.containsPoint(e, this.a, this.b, this.c);\n }\n isFrontFacing(e) {\n return Zt.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 Ks.subVectors(r, i), qs.subVectors(s, i), nh.subVectors(e, i);\n const c = Ks.dot(nh), l = qs.dot(nh);\n if (c <= 0 && l <= 0)\n return t.copy(i);\n ih.subVectors(e, r);\n const d = Ks.dot(ih), h = qs.dot(ih);\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(Ks, o);\n rh.subVectors(e, s);\n const g = Ks.dot(rh), p = qs.dot(rh);\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(qs, a);\n const y = d * p - g * h;\n if (y <= 0 && h - d >= 0 && g - p >= 0)\n return tg.subVectors(s, r), a = (h - d) / (h - d + (g - p)), t.copy(r).addScaledVector(tg, a);\n const v = 1 / (y + u + f);\n return o = u * v, a = f * v, t.copy(i).addScaledVector(Ks, o).addScaledVector(qs, 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 yF = 0;\nclass tn extends Kr {\n constructor() {\n super(), Object.defineProperty(this, \"id\", { value: yF++ }), this.uuid = Hn(), this.name = \"\", this.type = \"Material\", this.fog = !0, this.blending = vo, this.side = Hr, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.blendSrc = bf, this.blendDst = xf, this.blendEquation = ps, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.depthFunc = Vc, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = qb, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = Lc, this.stencilZFail = Lc, this.stencilZPass = Lc, 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 === yf;\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 !== vo && (i.blending = this.blending), this.side !== Hr && (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}\ntn.prototype.isMaterial = !0;\nconst nx = {\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}, oi = { h: 0, s: 0, l: 0 }, Vl = { h: 0, s: 0, l: 0 };\nfunction sh(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 oh(n) {\n return n < 0.04045 ? n * 0.0773993808 : Math.pow(n * 0.9478672986 + 0.0521327014, 2.4);\n}\nfunction ah(n) {\n return n < 31308e-7 ? n * 12.92 : 1.055 * Math.pow(n, 0.41666) - 0.055;\n}\nclass Ue {\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 = Tf(e, 1), t = gn(t, 0, 1), i = gn(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 = sh(s, r, e + 1 / 3), this.g = sh(s, r, e), this.b = sh(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 = nx[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 = oh(e.r), this.g = oh(e.g), this.b = oh(e.b), this;\n }\n copyLinearToSRGB(e) {\n return this.r = ah(e.r), this.g = ah(e.g), this.b = ah(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(oi), oi.h += e, oi.s += t, oi.l += i, this.setHSL(oi.h, oi.s, oi.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(oi), e.getHSL(Vl);\n const i = Fa(oi.h, Vl.h, t), r = Fa(oi.s, Vl.s, t), s = Fa(oi.l, Vl.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}\nUe.NAMES = nx;\nUe.prototype.isColor = !0;\nUe.prototype.r = 1;\nUe.prototype.g = 1;\nUe.prototype.b = 1;\nclass In extends tn {\n constructor(e) {\n super(), this.type = \"MeshBasicMaterial\", this.color = new Ue(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 = al, 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}\nIn.prototype.isMeshBasicMaterial = !0;\nconst St = /* @__PURE__ */ new q(), kl = /* @__PURE__ */ new Re();\nclass ot {\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 = Ro, 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 Ue()), 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 Re()), 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 q()), 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 xt()), 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 St.fromBufferAttribute(this, t), St.applyMatrix3(e), this.setXYZ(t, St.x, St.y, St.z);\n return this;\n }\n applyMatrix4(e) {\n for (let t = 0, i = this.count; t < i; t++)\n St.x = this.getX(t), St.y = this.getY(t), St.z = this.getZ(t), St.applyMatrix4(e), this.setXYZ(t, St.x, St.y, St.z);\n return this;\n }\n applyNormalMatrix(e) {\n for (let t = 0, i = this.count; t < i; t++)\n St.x = this.getX(t), St.y = this.getY(t), St.z = this.getZ(t), St.applyNormalMatrix(e), this.setXYZ(t, St.x, St.y, St.z);\n return this;\n }\n transformDirection(e) {\n for (let t = 0, i = this.count; t < i; t++)\n St.x = this.getX(t), St.y = this.getY(t), St.z = this.getZ(t), St.transformDirection(e), this.setXYZ(t, St.x, St.y, St.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 !== Ro && (e.usage = this.usage), (this.updateRange.offset !== 0 || this.updateRange.count !== -1) && (e.updateRange = this.updateRange), e;\n }\n}\not.prototype.isBufferAttribute = !0;\nclass ix extends ot {\n constructor(e, t, i) {\n super(new Int8Array(e), t, i);\n }\n}\nclass rx extends ot {\n constructor(e, t, i) {\n super(new Uint8Array(e), t, i);\n }\n}\nclass sx extends ot {\n constructor(e, t, i) {\n super(new Uint8ClampedArray(e), t, i);\n }\n}\nclass ox extends ot {\n constructor(e, t, i) {\n super(new Int16Array(e), t, i);\n }\n}\nclass gu extends ot {\n constructor(e, t, i) {\n super(new Uint16Array(e), t, i);\n }\n}\nclass ax extends ot {\n constructor(e, t, i) {\n super(new Int32Array(e), t, i);\n }\n}\nclass vu extends ot {\n constructor(e, t, i) {\n super(new Uint32Array(e), t, i);\n }\n}\nclass lx extends ot {\n constructor(e, t, i) {\n super(new Uint16Array(e), t, i);\n }\n}\nlx.prototype.isFloat16BufferAttribute = !0;\nclass He extends ot {\n constructor(e, t, i) {\n super(new Float32Array(e), t, i);\n }\n}\nclass cx extends ot {\n constructor(e, t, i) {\n super(new Float64Array(e), t, i);\n }\n}\nfunction ux(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 bF = {\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 bF[n](e);\n}\nlet xF = 0;\nconst Xn = /* @__PURE__ */ new Xe(), lh = /* @__PURE__ */ new ut(), Qs = /* @__PURE__ */ new q(), Un = /* @__PURE__ */ new Nn(), pa = /* @__PURE__ */ new Nn(), cn = /* @__PURE__ */ new q();\nclass Ke extends Kr {\n constructor() {\n super(), Object.defineProperty(this, \"id\", { value: xF++ }), this.uuid = Hn(), 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 (ux(e) > 65535 ? vu : gu)(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 Xn.makeRotationFromQuaternion(e), this.applyMatrix4(Xn), this;\n }\n rotateX(e) {\n return Xn.makeRotationX(e), this.applyMatrix4(Xn), this;\n }\n rotateY(e) {\n return Xn.makeRotationY(e), this.applyMatrix4(Xn), this;\n }\n rotateZ(e) {\n return Xn.makeRotationZ(e), this.applyMatrix4(Xn), this;\n }\n translate(e, t, i) {\n return Xn.makeTranslation(e, t, i), this.applyMatrix4(Xn), this;\n }\n scale(e, t, i) {\n return Xn.makeScale(e, t, i), this.applyMatrix4(Xn), this;\n }\n lookAt(e) {\n return lh.lookAt(e), lh.updateMatrix(), this.applyMatrix4(lh.matrix), this;\n }\n center() {\n return this.computeBoundingBox(), this.boundingBox.getCenter(Qs).negate(), this.translate(Qs.x, Qs.y, Qs.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 He(t, 3)), this;\n }\n computeBoundingBox() {\n this.boundingBox === null && (this.boundingBox = new Nn());\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 q(-1 / 0, -1 / 0, -1 / 0),\n new q(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 Un.setFromBufferAttribute(s), this.morphTargetsRelative ? (cn.addVectors(this.boundingBox.min, Un.min), this.boundingBox.expandByPoint(cn), cn.addVectors(this.boundingBox.max, Un.max), this.boundingBox.expandByPoint(cn)) : (this.boundingBox.expandByPoint(Un.min), this.boundingBox.expandByPoint(Un.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 pr());\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 q(), 1 / 0);\n return;\n }\n if (e) {\n const i = this.boundingSphere.center;\n if (Un.setFromBufferAttribute(e), t)\n for (let s = 0, o = t.length; s < o; s++) {\n const a = t[s];\n pa.setFromBufferAttribute(a), this.morphTargetsRelative ? (cn.addVectors(Un.min, pa.min), Un.expandByPoint(cn), cn.addVectors(Un.max, pa.max), Un.expandByPoint(cn)) : (Un.expandByPoint(pa.min), Un.expandByPoint(pa.max));\n }\n Un.getCenter(i);\n let r = 0;\n for (let s = 0, o = e.count; s < o; s++)\n cn.fromBufferAttribute(e, s), r = Math.max(r, i.distanceToSquared(cn));\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 cn.fromBufferAttribute(a, l), c && (Qs.fromBufferAttribute(e, l), cn.add(Qs)), r = Math.max(r, i.distanceToSquared(cn));\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 ot(new Float32Array(4 * a), 4));\n const c = t.tangent.array, l = [], d = [];\n for (let I = 0; I < a; I++)\n l[I] = new q(), d[I] = new q();\n const h = new q(), f = new q(), g = new q(), p = new Re(), u = new Re(), y = new Re(), v = new q(), m = new q();\n function x(I, T, _) {\n h.fromArray(r, I * 3), f.fromArray(r, T * 3), g.fromArray(r, _ * 3), p.fromArray(o, I * 2), u.fromArray(o, T * 2), y.fromArray(o, _ * 2), f.sub(h), g.sub(h), u.sub(p), y.sub(p);\n const E = 1 / (u.x * y.y - y.x * u.y);\n isFinite(E) && (v.copy(f).multiplyScalar(y.y).addScaledVector(g, -u.y).multiplyScalar(E), m.copy(g).multiplyScalar(u.x).addScaledVector(f, -y.x).multiplyScalar(E), l[I].add(v), l[T].add(v), l[_].add(v), d[I].add(m), d[T].add(m), d[_].add(m));\n }\n let w = this.groups;\n w.length === 0 && (w = [{\n start: 0,\n count: i.length\n }]);\n for (let I = 0, T = w.length; I < T; ++I) {\n const _ = w[I], E = _.start, C = _.count;\n for (let P = E, b = E + C; P < b; P += 3)\n x(\n i[P + 0],\n i[P + 1],\n i[P + 2]\n );\n }\n const A = new q(), M = new q(), R = new q(), L = new q();\n function S(I) {\n R.fromArray(s, I * 3), L.copy(R);\n const T = l[I];\n A.copy(T), A.sub(R.multiplyScalar(R.dot(T))).normalize(), M.crossVectors(L, T);\n const E = M.dot(d[I]) < 0 ? -1 : 1;\n c[I * 4] = A.x, c[I * 4 + 1] = A.y, c[I * 4 + 2] = A.z, c[I * 4 + 3] = E;\n }\n for (let I = 0, T = w.length; I < T; ++I) {\n const _ = w[I], E = _.start, C = _.count;\n for (let P = E, b = E + C; P < b; P += 3)\n S(i[P + 0]), S(i[P + 1]), S(i[P + 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 ot(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 q(), s = new q(), o = new q(), a = new q(), c = new q(), l = new q(), d = new q(), h = new q();\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 cn.fromBufferAttribute(e, t), cn.normalize(), e.setXYZ(t, cn.x, cn.y, cn.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 ot(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 ng = /* @__PURE__ */ new Xe(), eo = /* @__PURE__ */ new qr(), ch = /* @__PURE__ */ new pr(), Mr = /* @__PURE__ */ new q(), wr = /* @__PURE__ */ new q(), Ar = /* @__PURE__ */ new q(), uh = /* @__PURE__ */ new q(), hh = /* @__PURE__ */ new q(), dh = /* @__PURE__ */ new q(), Gl = /* @__PURE__ */ new q(), Hl = /* @__PURE__ */ new q(), Wl = /* @__PURE__ */ new q(), jl = /* @__PURE__ */ new Re(), $l = /* @__PURE__ */ new Re(), Zl = /* @__PURE__ */ new Re(), fh = /* @__PURE__ */ new q(), Xl = /* @__PURE__ */ new q();\nclass Xt extends ut {\n constructor(e = new Ke(), t = new In()) {\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(), ch.copy(i.boundingSphere), ch.applyMatrix4(s), e.ray.intersectsSphere(ch) === !1) || (ng.copy(s).invert(), eo.copy(e.ray).applyMatrix4(ng), i.boundingBox !== null && eo.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], x = Math.max(v.start, p.start), w = Math.min(v.start + v.count, p.start + p.count);\n for (let A = x, M = w; A < M; A += 3) {\n const R = a.getX(A), L = a.getX(A + 1), S = a.getX(A + 2);\n o = Yl(this, m, e, eo, c, l, d, h, f, R, L, S), o && (o.faceIndex = Math.floor(A / 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 x = a.getX(v), w = a.getX(v + 1), A = a.getX(v + 2);\n o = Yl(this, r, e, eo, c, l, d, h, f, x, w, A), 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], x = Math.max(v.start, p.start), w = Math.min(v.start + v.count, p.start + p.count);\n for (let A = x, M = w; A < M; A += 3) {\n const R = A, L = A + 1, S = A + 2;\n o = Yl(this, m, e, eo, c, l, d, h, f, R, L, S), o && (o.faceIndex = Math.floor(A / 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 x = v, w = v + 1, A = v + 2;\n o = Yl(this, r, e, eo, c, l, d, h, f, x, w, A), 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}\nXt.prototype.isMesh = !0;\nfunction MF(n, e, t, i, r, s, o, a) {\n let c;\n if (e.side === jt ? c = i.intersectTriangle(o, s, r, !0, a) : c = i.intersectTriangle(r, s, o, e.side !== Wr, a), c === null) return null;\n Xl.copy(a), Xl.applyMatrix4(n.matrixWorld);\n const l = t.ray.origin.distanceTo(Xl);\n return l < t.near || l > t.far ? null : {\n distance: l,\n point: Xl.clone(),\n object: n\n };\n}\nfunction Yl(n, e, t, i, r, s, o, a, c, l, d, h) {\n Mr.fromBufferAttribute(r, l), wr.fromBufferAttribute(r, d), Ar.fromBufferAttribute(r, h);\n const f = n.morphTargetInfluences;\n if (e.morphTargets && s && f) {\n Gl.set(0, 0, 0), Hl.set(0, 0, 0), Wl.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 && (uh.fromBufferAttribute(v, l), hh.fromBufferAttribute(v, d), dh.fromBufferAttribute(v, h), o ? (Gl.addScaledVector(uh, y), Hl.addScaledVector(hh, y), Wl.addScaledVector(dh, y)) : (Gl.addScaledVector(uh.sub(Mr), y), Hl.addScaledVector(hh.sub(wr), y), Wl.addScaledVector(dh.sub(Ar), y)));\n }\n Mr.add(Gl), wr.add(Hl), Ar.add(Wl);\n }\n n.isSkinnedMesh && (n.boneTransform(l, Mr), n.boneTransform(d, wr), n.boneTransform(h, Ar));\n const g = MF(n, e, t, i, Mr, wr, Ar, fh);\n if (g) {\n a && (jl.fromBufferAttribute(a, l), $l.fromBufferAttribute(a, d), Zl.fromBufferAttribute(a, h), g.uv = Zt.getUV(fh, Mr, wr, Ar, jl, $l, Zl, new Re())), c && (jl.fromBufferAttribute(c, l), $l.fromBufferAttribute(c, d), Zl.fromBufferAttribute(c, h), g.uv2 = Zt.getUV(fh, Mr, wr, Ar, jl, $l, Zl, new Re()));\n const p = {\n a: l,\n b: d,\n c: h,\n normal: new q(),\n materialIndex: 0\n };\n Zt.getNormal(Mr, wr, Ar, p.normal), g.face = p;\n }\n return g;\n}\nclass sr 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 He(l, 3)), this.setAttribute(\"normal\", new He(d, 3)), this.setAttribute(\"uv\", new He(h, 2));\n function p(u, y, v, m, x, w, A, M, R, L, S) {\n const I = w / R, T = A / L, _ = w / 2, E = A / 2, C = M / 2, P = R + 1, b = L + 1;\n let F = 0, D = 0;\n const N = new q();\n for (let B = 0; B < b; B++) {\n const U = B * T - E;\n for (let G = 0; G < P; G++) {\n const Y = G * I - _;\n N[u] = Y * m, N[y] = U * x, N[v] = C, l.push(N.x, N.y, N.z), N[u] = 0, N[y] = 0, N[v] = M > 0 ? 1 : -1, d.push(N.x, N.y, N.z), h.push(G / R), h.push(1 - B / L), F += 1;\n }\n }\n for (let B = 0; B < L; B++)\n for (let U = 0; U < R; U++) {\n const G = f + U + P * B, Y = f + U + P * (B + 1), te = f + (U + 1) + P * (B + 1), ae = f + (U + 1) + P * B;\n c.push(G, Y, ae), c.push(Y, te, ae), D += 6;\n }\n a.addGroup(g, D, S), g += D, f += F;\n }\n }\n static fromJSON(e) {\n return new sr(e.width, e.height, e.depth, e.widthSegments, e.heightSegments, e.depthSegments);\n }\n}\nfunction Po(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 wn(n) {\n const e = {};\n for (let t = 0; t < n.length; t++) {\n const i = Po(n[t]);\n for (const r in i)\n e[r] = i[r];\n }\n return e;\n}\nconst hx = { clone: Po, merge: wn };\nvar wF = `void main() {\n\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}`, AF = `void main() {\n\tgl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );\n}`;\nclass or extends tn {\n constructor(e) {\n super(), this.type = \"ShaderMaterial\", this.defines = {}, this.uniforms = {}, this.vertexShader = wF, this.fragmentShader = AF, 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 = Po(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}\nor.prototype.isShaderMaterial = !0;\nclass hl extends ut {\n constructor() {\n super(), this.type = \"Camera\", this.matrixWorldInverse = new Xe(), this.projectionMatrix = new Xe(), this.projectionMatrixInverse = new Xe();\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}\nhl.prototype.isCamera = !0;\nclass nn extends hl {\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 = ja * 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 ja * 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 to = 90, no = 1;\nclass yu extends ut {\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(to, no, e, t);\n r.layers = this.layers, r.up.set(0, -1, 0), r.lookAt(new q(1, 0, 0)), this.add(r);\n const s = new nn(to, no, e, t);\n s.layers = this.layers, s.up.set(0, -1, 0), s.lookAt(new q(-1, 0, 0)), this.add(s);\n const o = new nn(to, no, e, t);\n o.layers = this.layers, o.up.set(0, 0, 1), o.lookAt(new q(0, 1, 0)), this.add(o);\n const a = new nn(to, no, e, t);\n a.layers = this.layers, a.up.set(0, 0, -1), a.lookAt(new q(0, -1, 0)), this.add(a);\n const c = new nn(to, no, e, t);\n c.layers = this.layers, c.up.set(0, -1, 0), c.lookAt(new q(0, 0, 1)), this.add(c);\n const l = new nn(to, no, e, t);\n l.layers = this.layers, l.up.set(0, -1, 0), l.lookAt(new q(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 ta extends Yt {\n constructor(e, t, i, r, s, o, a, c, l, d) {\n e = e !== void 0 ? e : [], t = t !== void 0 ? t : ll, a = a !== void 0 ? a : nr, 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}\nta.prototype.isCubeTexture = !0;\nclass bu extends fi {\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 ta(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 : zt, this.texture._needsFlipEnvMap = !1;\n }\n fromEquirectangularTexture(e, t) {\n this.texture.type = t.type, this.texture.format = Gn, 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 sr(5, 5, 5), s = new or({\n name: \"CubemapFromEquirect\",\n uniforms: Po(i.uniforms),\n vertexShader: i.vertexShader,\n fragmentShader: i.fragmentShader,\n side: jt,\n blending: tr\n });\n s.uniforms.tEquirect.value = t;\n const o = new Xt(r, s), a = t.minFilter;\n return t.minFilter === fr && (t.minFilter = zt), new yu(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}\nbu.prototype.isWebGLCubeRenderTarget = !0;\nconst ph = /* @__PURE__ */ new q(), SF = /* @__PURE__ */ new q(), _F = /* @__PURE__ */ new rn();\nclass wi {\n constructor(e = new q(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 = ph.subVectors(i, t).cross(SF.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(ph), 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 || _F.getNormalMatrix(e), r = this.coplanarPoint(ph).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}\nwi.prototype.isPlane = !0;\nconst io = /* @__PURE__ */ new pr(), Jl = /* @__PURE__ */ new q();\nclass dl {\n constructor(e = new wi(), t = new wi(), i = new wi(), r = new wi(), s = new wi(), o = new wi()) {\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], x = i[15];\n return t[0].setComponents(a - r, h - c, u - f, x - y).normalize(), t[1].setComponents(a + r, h + c, u + f, x + y).normalize(), t[2].setComponents(a + s, h + l, u + g, x + v).normalize(), t[3].setComponents(a - s, h - l, u - g, x - v).normalize(), t[4].setComponents(a - o, h - d, u - p, x - m).normalize(), t[5].setComponents(a + o, h + d, u + p, x + m).normalize(), this;\n }\n intersectsObject(e) {\n const t = e.geometry;\n return t.boundingSphere === null && t.computeBoundingSphere(), io.copy(t.boundingSphere).applyMatrix4(e.matrixWorld), this.intersectsSphere(io);\n }\n intersectsSprite(e) {\n return io.center.set(0, 0, 0), io.radius = 0.7071067811865476, io.applyMatrix4(e.matrixWorld), this.intersectsSphere(io);\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 (Jl.x = r.normal.x > 0 ? e.max.x : e.min.x, Jl.y = r.normal.y > 0 ? e.max.y : e.min.y, Jl.z = r.normal.z > 0 ? e.max.z : e.min.z, r.distanceToPoint(Jl) < 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 dx() {\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 TF(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 Ls 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 x = 0; x < l; x++) {\n const w = x * h - s;\n p.push(w, -m, 0), u.push(0, 0, 1), y.push(x / 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 x = m + l * v, w = m + l * (v + 1), A = m + 1 + l * (v + 1), M = m + 1 + l * v;\n g.push(x, w, M), g.push(w, A, M);\n }\n this.setIndex(g), this.setAttribute(\"position\", new He(p, 3)), this.setAttribute(\"normal\", new He(u, 3)), this.setAttribute(\"uv\", new He(y, 2));\n }\n static fromJSON(e) {\n return new Ls(e.width, e.height, e.widthSegments, e.heightSegments);\n }\n}\nvar EF = `#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, vUv ).g;\n#endif`, CF = `#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif`, LF = `#ifdef ALPHATEST\n\tif ( diffuseColor.a < ALPHATEST ) discard;\n#endif`, RF = `#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`, FF = `#ifdef USE_AOMAP\n\tuniform sampler2D aoMap;\n\tuniform float aoMapIntensity;\n#endif`, PF = \"vec3 transformed = vec3( position );\", IF = `vec3 objectNormal = vec3( normal );\n#ifdef USE_TANGENT\n\tvec3 objectTangent = vec3( tangent.xyz );\n#endif`, OF = `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`, DF = `#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`, NF = `#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`, BF = `#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif`, UF = `#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n#endif`, zF = `#if NUM_CLIPPING_PLANES > 0\n\tvClipPosition = - mvPosition.xyz;\n#endif`, VF = `#if defined( USE_COLOR_ALPHA )\n\tdiffuseColor *= vColor;\n#elif defined( USE_COLOR )\n\tdiffuseColor.rgb *= vColor;\n#endif`, kF = `#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR )\n\tvarying vec3 vColor;\n#endif`, GF = `#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvarying vec3 vColor;\n#endif`, HF = `#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`, WF = `#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}`, jF = `#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`, $F = `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`, ZF = `#ifdef USE_DISPLACEMENTMAP\n\tuniform sampler2D displacementMap;\n\tuniform float displacementScale;\n\tuniform float displacementBias;\n#endif`, XF = `#ifdef USE_DISPLACEMENTMAP\n\ttransformed += normalize( objectNormal ) * ( texture2D( displacementMap, vUv ).x * displacementScale + displacementBias );\n#endif`, YF = `#ifdef USE_EMISSIVEMAP\n\tvec4 emissiveColor = texture2D( emissiveMap, vUv );\n\temissiveColor.rgb = emissiveMapTexelToLinear( emissiveColor ).rgb;\n\ttotalEmissiveRadiance *= emissiveColor.rgb;\n#endif`, JF = `#ifdef USE_EMISSIVEMAP\n\tuniform sampler2D emissiveMap;\n#endif`, KF = \"gl_FragColor = linearToOutputTexel( gl_FragColor );\", qF = `\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}`, QF = `#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`, eP = `#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`, tP = `#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`, nP = `#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`, iP = `#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`, rP = `#ifdef USE_FOG\n\tfogDepth = - mvPosition.z;\n#endif`, sP = `#ifdef USE_FOG\n\tvarying float fogDepth;\n#endif`, oP = `#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`, aP = `#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`, lP = `#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}`, cP = `#ifdef USE_LIGHTMAP\n\tvec4 lightMapTexel= texture2D( lightMap, vUv2 );\n\treflectedLight.indirectDiffuse += PI * lightMapTexelToLinear( lightMapTexel ).rgb * lightMapIntensity;\n#endif`, uP = `#ifdef USE_LIGHTMAP\n\tuniform sampler2D lightMap;\n\tuniform float lightMapIntensity;\n#endif`, hP = `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`, dP = `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`, fP = `#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`, pP = `ToonMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;`, mP = `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)`, gP = `BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;`, vP = `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)`, yP = `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`, bP = `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}`, xP = `\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`, MP = `#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`, wP = `#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`, AP = `#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tgl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif`, SP = `#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tuniform float logDepthBufFC;\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif`, _P = `#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`, TP = `#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`, EP = `#ifdef USE_MAP\n\tvec4 texelColor = texture2D( map, vUv );\n\ttexelColor = mapTexelToLinear( texelColor );\n\tdiffuseColor *= texelColor;\n#endif`, CP = `#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif`, LP = `#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`, RP = `#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`, FP = `float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n\tvec4 texelMetalness = texture2D( metalnessMap, vUv );\n\tmetalnessFactor *= texelMetalness.b;\n#endif`, PP = `#ifdef USE_METALNESSMAP\n\tuniform sampler2D metalnessMap;\n#endif`, IP = `#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`, OP = `#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`, DP = `#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`, NP = `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;`, BP = `#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`, UP = `#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`, zP = `#ifdef CLEARCOAT\n\tvec3 clearcoatNormal = geometryNormal;\n#endif`, VP = `#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`, kP = `#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`, GP = `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}`, HP = `#ifdef PREMULTIPLIED_ALPHA\n\tgl_FragColor.rgb *= gl_FragColor.a;\n#endif`, WP = `vec4 mvPosition = vec4( transformed, 1.0 );\n#ifdef USE_INSTANCING\n\tmvPosition = instanceMatrix * mvPosition;\n#endif\nmvPosition = modelViewMatrix * mvPosition;\ngl_Position = projectionMatrix * mvPosition;`, jP = `#ifdef DITHERING\n\tgl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif`, $P = `#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`, ZP = `float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n\tvec4 texelRoughness = texture2D( roughnessMap, vUv );\n\troughnessFactor *= texelRoughness.g;\n#endif`, XP = `#ifdef USE_ROUGHNESSMAP\n\tuniform sampler2D roughnessMap;\n#endif`, YP = `#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`, JP = `#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`, KP = `#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`, qP = `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}`, QP = `#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`, eI = `#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`, tI = `#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`, nI = `#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`, iI = `float specularStrength;\n#ifdef USE_SPECULARMAP\n\tvec4 texelSpecular = texture2D( specularMap, vUv );\n\tspecularStrength = texelSpecular.r;\n#else\n\tspecularStrength = 1.0;\n#endif`, rI = `#ifdef USE_SPECULARMAP\n\tuniform sampler2D specularMap;\n#endif`, sI = `#if defined( TONE_MAPPING )\n\tgl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif`, oI = `#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; }`, aI = `#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`, lI = `#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`, cI = `#if ( defined( USE_UV ) && ! defined( UVS_VERTEX_ONLY ) )\n\tvarying vec2 vUv;\n#endif`, uI = `#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`, hI = `#ifdef USE_UV\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n#endif`, dI = `#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tvarying vec2 vUv2;\n#endif`, fI = `#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tattribute vec2 uv2;\n\tvarying vec2 vUv2;\n\tuniform mat3 uv2Transform;\n#endif`, pI = `#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tvUv2 = ( uv2Transform * vec3( uv2, 1 ) ).xy;\n#endif`, mI = `#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`, gI = `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}`, vI = `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}`, yI = `#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}`, bI = `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}`, xI = `#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}`, MI = `#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}`, wI = `#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}`, AI = `#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}`, SI = `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}`, _I = `varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n}`, TI = `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}`, EI = `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}`, CI = `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}`, LI = `#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}`, RI = `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}`, FI = `#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}`, PI = `#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}`, II = `#define MATCAP\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include