From f98958240cedc58003f98c4574c251b896356306 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8A=B3=E8=B5=84=E8=9C=80=E9=81=93=E5=B1=B1?= <1493170339@qq.com> Date: Sat, 20 Dec 2025 16:58:59 +0800 Subject: [PATCH 1/9] feat: enhance error handling for unauthorized access and improve toast messages --- ui-vue3/src/base/http/request.ts | 29 +++++++++++++++++++++++------ ui-vue3/src/main.ts | 7 +++---- 2 files changed, 26 insertions(+), 10 deletions(-) diff --git a/ui-vue3/src/base/http/request.ts b/ui-vue3/src/base/http/request.ts index 93e902d7..8833e140 100644 --- a/ui-vue3/src/base/http/request.ts +++ b/ui-vue3/src/base/http/request.ts @@ -25,7 +25,9 @@ import type { import axios from 'axios' import NProgress from 'nprogress' import { removeAuthState } from '@/utils/AuthUtil' +import router from '@/router' import { useMeshStore } from '@/stores/mesh' +import { message } from 'ant-design-vue' const service: AxiosInstance = axios.create({ // change this to decide where to go @@ -69,10 +71,7 @@ response.use( if (response.status === 200 && response.data.code === 'Success') { return Promise.resolve(response.data) } - // Handle 401 unauthorized - if (response.status === 401) { - removeAuthState() - } + // Show error toast message const errorMsg = `${response.data.code}:${response.data.message}` message.error(errorMsg) @@ -82,8 +81,26 @@ response.use( (error) => { NProgress.done() // Handle error response with data - if (error.response?.data) { - const errorMsg = `${error.response.data.code}:${error.response.data.message}` + const response = error.response + + // Handle 401 unauthorized + if (response?.status === 401) { + removeAuthState() + try { + const current = router.currentRoute?.value + const redirectPath = current?.fullPath || current?.path || '/' + + if (!redirectPath.startsWith('/login')) { + router.push({ path: `/login?redirect=${encodeURIComponent(redirectPath)}` }) + } + } catch (e) { + if (!window.location.pathname.startsWith('/login')) { { + window.location.href = `/login?redirect=${encodeURIComponent(window.location.pathname)}` + } + } + } + if (response?.data) { + const errorMsg = `${response.data?.code}:${response.data?.message}` message.error(errorMsg) console.error(errorMsg) } else { diff --git a/ui-vue3/src/main.ts b/ui-vue3/src/main.ts index e203e59f..aca5f2d4 100644 --- a/ui-vue3/src/main.ts +++ b/ui-vue3/src/main.ts @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import { createApp, ref } from 'vue' +import { createApp } from 'vue' import Antd from 'ant-design-vue' import router from './router' @@ -31,7 +31,6 @@ import piniaPluginPersistedstate from 'pinia-plugin-persistedstate' import { getAuthState } from '@/utils/AuthUtil' import { createPinia } from 'pinia' -import { useRoute } from 'vue-router' const app = createApp(App) @@ -41,9 +40,9 @@ pinia.use(piniaPluginPersistedstate) app.use(Antd).use(Vue3ColorPicker).use(pinia).use(i18n).use(router).mount('#app') -router.beforeEach((from, to, next) => { +router.beforeEach((to, from, next) => { const authState = getAuthState() - if (authState?.state || from.path.startsWith('/login')) { + if (authState?.state || to.path.startsWith('/login')) { next() } else { next({ path: `/login?redirect=${to.path}` }) From d6c4fea448d7d9687fe8cc3e96ea07061943dc61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8A=B3=E8=B5=84=E8=9C=80=E9=81=93=E5=B1=B1?= <1493170339@qq.com> Date: Sat, 20 Dec 2025 17:05:46 +0800 Subject: [PATCH 2/9] feat: enhance error handling for unauthorized access and improve toast messages --- ui-vue3/src/base/http/request.ts | 29 +++++++++++++++++++++++------ ui-vue3/src/main.ts | 7 +++---- 2 files changed, 26 insertions(+), 10 deletions(-) diff --git a/ui-vue3/src/base/http/request.ts b/ui-vue3/src/base/http/request.ts index 93e902d7..e2302781 100644 --- a/ui-vue3/src/base/http/request.ts +++ b/ui-vue3/src/base/http/request.ts @@ -25,7 +25,9 @@ import type { import axios from 'axios' import NProgress from 'nprogress' import { removeAuthState } from '@/utils/AuthUtil' +import router from '@/router' import { useMeshStore } from '@/stores/mesh' +import { message } from 'ant-design-vue' const service: AxiosInstance = axios.create({ // change this to decide where to go @@ -69,10 +71,7 @@ response.use( if (response.status === 200 && response.data.code === 'Success') { return Promise.resolve(response.data) } - // Handle 401 unauthorized - if (response.status === 401) { - removeAuthState() - } + // Show error toast message const errorMsg = `${response.data.code}:${response.data.message}` message.error(errorMsg) @@ -82,8 +81,26 @@ response.use( (error) => { NProgress.done() // Handle error response with data - if (error.response?.data) { - const errorMsg = `${error.response.data.code}:${error.response.data.message}` + const response = error.response + + // Handle 401 unauthorized + if (response?.status === 401) { + removeAuthState() + try { + const current = router.currentRoute?.value + const redirectPath = current?.fullPath || current?.path || '/' + + if (!redirectPath.startsWith('/login')) { + router.push({ path: `/login?redirect=${encodeURIComponent(redirectPath)}` }) + } + } catch (e) { + if (!window.location.pathname.startsWith('/login')) { + window.location.href = `/login?redirect=${encodeURIComponent(window.location.pathname)}` + } + } + } + if (response?.data) { + const errorMsg = `${response.data?.code}:${response.data?.message}` message.error(errorMsg) console.error(errorMsg) } else { diff --git a/ui-vue3/src/main.ts b/ui-vue3/src/main.ts index e203e59f..aca5f2d4 100644 --- a/ui-vue3/src/main.ts +++ b/ui-vue3/src/main.ts @@ -14,7 +14,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import { createApp, ref } from 'vue' +import { createApp } from 'vue' import Antd from 'ant-design-vue' import router from './router' @@ -31,7 +31,6 @@ import piniaPluginPersistedstate from 'pinia-plugin-persistedstate' import { getAuthState } from '@/utils/AuthUtil' import { createPinia } from 'pinia' -import { useRoute } from 'vue-router' const app = createApp(App) @@ -41,9 +40,9 @@ pinia.use(piniaPluginPersistedstate) app.use(Antd).use(Vue3ColorPicker).use(pinia).use(i18n).use(router).mount('#app') -router.beforeEach((from, to, next) => { +router.beforeEach((to, from, next) => { const authState = getAuthState() - if (authState?.state || from.path.startsWith('/login')) { + if (authState?.state || to.path.startsWith('/login')) { next() } else { next({ path: `/login?redirect=${to.path}` }) From 9d6e85e59afa92e9b26445915c67ed369c89eb29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8A=B3=E8=B5=84=E8=9C=80=E9=81=93=E5=B1=B1?= <1493170339@qq.com> Date: Sat, 20 Dec 2025 17:10:58 +0800 Subject: [PATCH 3/9] fix: correct syntax error in response interceptor for redirect handling --- ui-vue3/src/base/http/request.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui-vue3/src/base/http/request.ts b/ui-vue3/src/base/http/request.ts index 8833e140..e2302781 100644 --- a/ui-vue3/src/base/http/request.ts +++ b/ui-vue3/src/base/http/request.ts @@ -94,8 +94,8 @@ response.use( router.push({ path: `/login?redirect=${encodeURIComponent(redirectPath)}` }) } } catch (e) { - if (!window.location.pathname.startsWith('/login')) { { - window.location.href = `/login?redirect=${encodeURIComponent(window.location.pathname)}` + if (!window.location.pathname.startsWith('/login')) { + window.location.href = `/login?redirect=${encodeURIComponent(window.location.pathname)}` } } } From 0f0edbcf190e3a6536a1a1669eff5ec1ff31169d Mon Sep 17 00:00:00 2001 From: LGgbond <1493170339@qq.com> Date: Sat, 20 Dec 2025 21:30:16 +0800 Subject: [PATCH 4/9] Update ui-vue3/src/base/http/request.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- ui-vue3/src/base/http/request.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui-vue3/src/base/http/request.ts b/ui-vue3/src/base/http/request.ts index e2302781..a6b25709 100644 --- a/ui-vue3/src/base/http/request.ts +++ b/ui-vue3/src/base/http/request.ts @@ -99,6 +99,9 @@ response.use( } } } + if (response?.status === 401) { + return Promise.reject(error.response?.data) + } if (response?.data) { const errorMsg = `${response.data?.code}:${response.data?.message}` message.error(errorMsg) From d209632324053dd0fc2cca0525cc088bcafdff83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8A=B3=E8=B5=84=E8=9C=80=E9=81=93=E5=B1=B1?= <1493170339@qq.com> Date: Sat, 20 Dec 2025 21:36:43 +0800 Subject: [PATCH 5/9] feat: add YAML and XML editor components, update index references, and enhance error logging - Introduced new JavaScript files for YAML and XML syntax highlighting and editing capabilities. - Added a new component for updating YAML configurations with a structured editor interface. - Updated the index.html to reference the new JavaScript bundle for improved functionality. - Enhanced the HTTP request module to log errors during redirection on 401 responses for better debugging. --- ...igModel-IgPiU3B2.js => ConfigModel-28QrmMMG.js} | 2 +- ...nfigPage-Onvd_SY6.js => ConfigPage-Uqug3gMA.js} | 2 +- .../dist/admin/assets/DateUtil-Hh_Zud1i.js | 1 + .../dist/admin/assets/DateUtil-QXt7LnE3.js | 1 - ...anaPage-tT3NMW70.js => GrafanaPage-emfN7XhQ.js} | 2 +- .../{Login-QsM7tdlI.js => Login-apvEdPeM.js} | 2 +- ...yUtil-4K1j3sa5.js => PromQueryUtil-wquMeYdL.js} | 2 +- ...archUtil-bfid3zNl.js => SearchUtil-ETsp-Y5a.js} | 2 +- .../{YAMLView-TcLqiDOf.js => YAMLView--IIYIIAz.js} | 2 +- .../{YAMLView-s3WMf-Uo.js => YAMLView-j-cMdOnQ.js} | 2 +- .../{YAMLView-mXrxtewG.js => YAMLView-vlB4A6zH.js} | 2 +- ...mView-suZAGsdv.js => addByFormView-34FuqdBQ.js} | 2 +- ...mView-Ia4T74MU.js => addByFormView-9BUfLGgu.js} | 2 +- ...LView-fC-hqbkM.js => addByYAMLView-2m0Rtfoo.js} | 2 +- ...LView--WjgktlZ.js => addByYAMLView-vqAGps1J.js} | 2 +- .../assets/{app-mdoSebGq.js => app-tPR0CJiV.js} | 2 +- .../{config-iPQQ4Osw.js => config-K0lc03RB.js} | 2 +- ...ation-um3mt9hU.js => configuration-wTm-Omst.js} | 2 +- .../{cssMode-RYNyR8Bq.js => cssMode-fVQptnrp.js} | 2 +- .../{detail-IPVQRAO3.js => detail-IBCpA_Em.js} | 2 +- .../{detail-NWi5D_Jp.js => detail-hHkagtGn.js} | 2 +- ...bution-WSPxFnjE.js => distribution-F7A0tJhh.js} | 2 +- .../{event-IjH1CTVp.js => event-QUEx89TK.js} | 2 +- .../{event-ZoLBaQpy.js => event-l9CyPMBv.js} | 2 +- .../{event-Di8PmXwq.js => event-sMTqQXIA.js} | 2 +- .../{formView-vzcbtWy_.js => formView-E0GrG_45.js} | 2 +- .../{formView-RlUvRzIB.js => formView-VeEGspOH.js} | 2 +- .../{formView-2KzX11dd.js => formView-pYzBQ4Sn.js} | 2 +- ...marker2-UxhOxt-M.js => freemarker2-CvjbrvE7.js} | 2 +- ...Search--VMQnq3S.js => globalSearch-6GNf4A56.js} | 2 +- ...ndlebars-feyIBGtU.js => handlebars-fU1X2nVM.js} | 2 +- .../assets/{html-XW1o38ac.js => html-6FTFGpD-.js} | 2 +- .../{htmlMode-GNYYzuyz.js => htmlMode-hY3gUkwW.js} | 2 +- .../{index-PuhA8qFJ.js => index-7eDR2syK.js} | 2 +- .../{index-jbm-YZ4W.js => index-A0xyoYIe.js} | 2 +- .../{index-gNarHmYQ.js => index-ISYayNem.js} | 2 +- .../{index-ytKGiqRq.js => index-JzQrTLUW.js} | 2 +- .../{index-tIlk8-2z.js => index-TH_CWM0S.js} | 2 +- .../{index-3zDsduUv.js => index-VXjVsiiO.js} | 6 +++--- .../{index-HdnVQEsT.js => index-Y8bti_iA.js} | 2 +- .../{index-9Tpk6WxM.js => index-pwExdCno.js} | 2 +- .../{index-VDeT_deC.js => index-r9WGZhl7.js} | 2 +- .../{index-fU57L0AQ.js => index-tUWFIllr.js} | 2 +- .../{index-ECEQf-Fc.js => index-zWoOz8p-.js} | 2 +- .../{instance-u5IY96cv.js => instance-ELqpziUu.js} | 2 +- .../{instance-qriYfOrq.js => instance-dqyT8xOu.js} | 2 +- ...vascript-aILp5GNb.js => javascript-H-1KqBOf.js} | 2 +- .../{js-yaml-eElisXzH.js => js-yaml-EQlPfOK8.js} | 14 +++++++------- .../{jsonMode-KjD1007i.js => jsonMode-gXXED22T.js} | 2 +- .../dist/admin/assets/linkTracking-dZ2NlVl4.js | 1 + .../dist/admin/assets/linkTracking-gLhWXj25.js | 1 - .../{liquid-Xdf0sURN.js => liquid-7P5gg0U5.js} | 2 +- .../assets/{mdx-gQ43aWZ0.js => mdx-L3CEyB0p.js} | 2 +- app/dubbo-ui/dist/admin/assets/monitor-JE2IXQk_.js | 1 - app/dubbo-ui/dist/admin/assets/monitor-Yx9RU22f.js | 1 - app/dubbo-ui/dist/admin/assets/monitor-_tgN0LKd.js | 1 + app/dubbo-ui/dist/admin/assets/monitor-f6PTaT1D.js | 1 + app/dubbo-ui/dist/admin/assets/monitor-kZ_wOjob.js | 1 - app/dubbo-ui/dist/admin/assets/monitor-m-tZutaB.js | 1 + .../{notFound-hYD9Tscu.js => notFound-IlnBM5cq.js} | 2 +- .../{python-1HHjXB9h.js => python-lzE2PGTj.js} | 2 +- .../{razor-TyEeYTJH.js => razor-RxeYPRMK.js} | 2 +- app/dubbo-ui/dist/admin/assets/request-3an337VF.js | 7 ------- app/dubbo-ui/dist/admin/assets/request-Cs8TyifY.js | 7 +++++++ ...eConfig-wKVgfCMN.js => sceneConfig-a1lGx6QL.js} | 2 +- .../{search-c0Szb99-.js => search-s6dK7Hvb.js} | 2 +- ...rverInfo-F5PlCBPJ.js => serverInfo-UzRr_R0Z.js} | 2 +- .../{service-Hb3ldtV6.js => service-146hGzKC.js} | 2 +- .../{service-LECfslfz.js => service-BVuTRmeo.js} | 2 +- .../assets/{tab1-Erm3qhoK.js => tab1-RXoFVKwY.js} | 2 +- .../assets/{tab2-gYKBqlWv.js => tab2-ecRDfL1A.js} | 2 +- app/dubbo-ui/dist/admin/assets/tracing-DAAA17XP.js | 1 - app/dubbo-ui/dist/admin/assets/tracing-RzrHmcJX.js | 1 + app/dubbo-ui/dist/admin/assets/tracing-anN8lSRs.js | 1 + app/dubbo-ui/dist/admin/assets/tracing-egUve7nj.js | 1 - .../{traffic-dHGZ6qwp.js => traffic-W0fp5Gf-.js} | 2 +- .../{tsMode-uoK2x2Py.js => tsMode-tH5gnU9G.js} | 2 +- ...pescript-jSqLomXD.js => typescript-q9CUqdgD.js} | 2 +- ...ew-mbEXmvrc.js => updateByFormView-A6KtnX7-.js} | 2 +- ...ew-ySWJqpjX.js => updateByFormView-uGRMm5vo.js} | 2 +- ...ew-X3vjkbCV.js => updateByYAMLView-7gcgx026.js} | 2 +- ...ew--nyJvxZJ.js => updateByYAMLView-zhO2idIo.js} | 2 +- .../assets/{xml-PQ1W1vQC.js => xml-wTy26N4g.js} | 2 +- .../assets/{yaml-QORSracL.js => yaml-erqTPgu9.js} | 2 +- app/dubbo-ui/dist/admin/index.html | 2 +- ui-vue3/src/base/http/request.ts | 1 + 86 files changed, 92 insertions(+), 91 deletions(-) rename app/dubbo-ui/dist/admin/assets/{ConfigModel-IgPiU3B2.js => ConfigModel-28QrmMMG.js} (98%) rename app/dubbo-ui/dist/admin/assets/{ConfigPage-Onvd_SY6.js => ConfigPage-Uqug3gMA.js} (98%) create mode 100644 app/dubbo-ui/dist/admin/assets/DateUtil-Hh_Zud1i.js delete mode 100644 app/dubbo-ui/dist/admin/assets/DateUtil-QXt7LnE3.js rename app/dubbo-ui/dist/admin/assets/{GrafanaPage-tT3NMW70.js => GrafanaPage-emfN7XhQ.js} (95%) rename app/dubbo-ui/dist/admin/assets/{Login-QsM7tdlI.js => Login-apvEdPeM.js} (92%) rename app/dubbo-ui/dist/admin/assets/{PromQueryUtil-4K1j3sa5.js => PromQueryUtil-wquMeYdL.js} (81%) rename app/dubbo-ui/dist/admin/assets/{SearchUtil-bfid3zNl.js => SearchUtil-ETsp-Y5a.js} (98%) rename app/dubbo-ui/dist/admin/assets/{YAMLView-TcLqiDOf.js => YAMLView--IIYIIAz.js} (90%) rename app/dubbo-ui/dist/admin/assets/{YAMLView-s3WMf-Uo.js => YAMLView-j-cMdOnQ.js} (90%) rename app/dubbo-ui/dist/admin/assets/{YAMLView-mXrxtewG.js => YAMLView-vlB4A6zH.js} (91%) rename app/dubbo-ui/dist/admin/assets/{addByFormView-suZAGsdv.js => addByFormView-34FuqdBQ.js} (99%) rename app/dubbo-ui/dist/admin/assets/{addByFormView-Ia4T74MU.js => addByFormView-9BUfLGgu.js} (98%) rename app/dubbo-ui/dist/admin/assets/{addByYAMLView-fC-hqbkM.js => addByYAMLView-2m0Rtfoo.js} (95%) rename app/dubbo-ui/dist/admin/assets/{addByYAMLView--WjgktlZ.js => addByYAMLView-vqAGps1J.js} (94%) rename app/dubbo-ui/dist/admin/assets/{app-mdoSebGq.js => app-tPR0CJiV.js} (94%) rename app/dubbo-ui/dist/admin/assets/{config-iPQQ4Osw.js => config-K0lc03RB.js} (96%) rename app/dubbo-ui/dist/admin/assets/{configuration-um3mt9hU.js => configuration-wTm-Omst.js} (91%) rename app/dubbo-ui/dist/admin/assets/{cssMode-RYNyR8Bq.js => cssMode-fVQptnrp.js} (99%) rename app/dubbo-ui/dist/admin/assets/{detail-IPVQRAO3.js => detail-IBCpA_Em.js} (96%) rename app/dubbo-ui/dist/admin/assets/{detail-NWi5D_Jp.js => detail-hHkagtGn.js} (93%) rename app/dubbo-ui/dist/admin/assets/{distribution-WSPxFnjE.js => distribution-F7A0tJhh.js} (94%) rename app/dubbo-ui/dist/admin/assets/{event-IjH1CTVp.js => event-QUEx89TK.js} (97%) rename app/dubbo-ui/dist/admin/assets/{event-ZoLBaQpy.js => event-l9CyPMBv.js} (88%) rename app/dubbo-ui/dist/admin/assets/{event-Di8PmXwq.js => event-sMTqQXIA.js} (60%) rename app/dubbo-ui/dist/admin/assets/{formView-vzcbtWy_.js => formView-E0GrG_45.js} (99%) rename app/dubbo-ui/dist/admin/assets/{formView-RlUvRzIB.js => formView-VeEGspOH.js} (95%) rename app/dubbo-ui/dist/admin/assets/{formView-2KzX11dd.js => formView-pYzBQ4Sn.js} (93%) rename app/dubbo-ui/dist/admin/assets/{freemarker2-UxhOxt-M.js => freemarker2-CvjbrvE7.js} (99%) rename app/dubbo-ui/dist/admin/assets/{globalSearch--VMQnq3S.js => globalSearch-6GNf4A56.js} (75%) rename app/dubbo-ui/dist/admin/assets/{handlebars-feyIBGtU.js => handlebars-fU1X2nVM.js} (98%) rename app/dubbo-ui/dist/admin/assets/{html-XW1o38ac.js => html-6FTFGpD-.js} (97%) rename app/dubbo-ui/dist/admin/assets/{htmlMode-GNYYzuyz.js => htmlMode-hY3gUkwW.js} (99%) rename app/dubbo-ui/dist/admin/assets/{index-PuhA8qFJ.js => index-7eDR2syK.js} (99%) rename app/dubbo-ui/dist/admin/assets/{index-jbm-YZ4W.js => index-A0xyoYIe.js} (86%) rename app/dubbo-ui/dist/admin/assets/{index-gNarHmYQ.js => index-ISYayNem.js} (67%) rename app/dubbo-ui/dist/admin/assets/{index-ytKGiqRq.js => index-JzQrTLUW.js} (93%) rename app/dubbo-ui/dist/admin/assets/{index-tIlk8-2z.js => index-TH_CWM0S.js} (91%) rename app/dubbo-ui/dist/admin/assets/{index-3zDsduUv.js => index-VXjVsiiO.js} (99%) rename app/dubbo-ui/dist/admin/assets/{index-HdnVQEsT.js => index-Y8bti_iA.js} (99%) rename app/dubbo-ui/dist/admin/assets/{index-9Tpk6WxM.js => index-pwExdCno.js} (91%) rename app/dubbo-ui/dist/admin/assets/{index-VDeT_deC.js => index-r9WGZhl7.js} (90%) rename app/dubbo-ui/dist/admin/assets/{index-fU57L0AQ.js => index-tUWFIllr.js} (90%) rename app/dubbo-ui/dist/admin/assets/{index-ECEQf-Fc.js => index-zWoOz8p-.js} (98%) rename app/dubbo-ui/dist/admin/assets/{instance-u5IY96cv.js => instance-ELqpziUu.js} (92%) rename app/dubbo-ui/dist/admin/assets/{instance-qriYfOrq.js => instance-dqyT8xOu.js} (91%) rename app/dubbo-ui/dist/admin/assets/{javascript-aILp5GNb.js => javascript-H-1KqBOf.js} (89%) rename app/dubbo-ui/dist/admin/assets/{js-yaml-eElisXzH.js => js-yaml-EQlPfOK8.js} (99%) rename app/dubbo-ui/dist/admin/assets/{jsonMode-KjD1007i.js => jsonMode-gXXED22T.js} (99%) create mode 100644 app/dubbo-ui/dist/admin/assets/linkTracking-dZ2NlVl4.js delete mode 100644 app/dubbo-ui/dist/admin/assets/linkTracking-gLhWXj25.js rename app/dubbo-ui/dist/admin/assets/{liquid-Xdf0sURN.js => liquid-7P5gg0U5.js} (96%) rename app/dubbo-ui/dist/admin/assets/{mdx-gQ43aWZ0.js => mdx-L3CEyB0p.js} (97%) delete mode 100644 app/dubbo-ui/dist/admin/assets/monitor-JE2IXQk_.js delete mode 100644 app/dubbo-ui/dist/admin/assets/monitor-Yx9RU22f.js create mode 100644 app/dubbo-ui/dist/admin/assets/monitor-_tgN0LKd.js create mode 100644 app/dubbo-ui/dist/admin/assets/monitor-f6PTaT1D.js delete mode 100644 app/dubbo-ui/dist/admin/assets/monitor-kZ_wOjob.js create mode 100644 app/dubbo-ui/dist/admin/assets/monitor-m-tZutaB.js rename app/dubbo-ui/dist/admin/assets/{notFound-hYD9Tscu.js => notFound-IlnBM5cq.js} (98%) rename app/dubbo-ui/dist/admin/assets/{python-1HHjXB9h.js => python-lzE2PGTj.js} (97%) rename app/dubbo-ui/dist/admin/assets/{razor-TyEeYTJH.js => razor-RxeYPRMK.js} (98%) delete mode 100644 app/dubbo-ui/dist/admin/assets/request-3an337VF.js create mode 100644 app/dubbo-ui/dist/admin/assets/request-Cs8TyifY.js rename app/dubbo-ui/dist/admin/assets/{sceneConfig-wKVgfCMN.js => sceneConfig-a1lGx6QL.js} (97%) rename app/dubbo-ui/dist/admin/assets/{search-c0Szb99-.js => search-s6dK7Hvb.js} (94%) rename app/dubbo-ui/dist/admin/assets/{serverInfo-F5PlCBPJ.js => serverInfo-UzRr_R0Z.js} (61%) rename app/dubbo-ui/dist/admin/assets/{service-Hb3ldtV6.js => service-146hGzKC.js} (92%) rename app/dubbo-ui/dist/admin/assets/{service-LECfslfz.js => service-BVuTRmeo.js} (89%) rename app/dubbo-ui/dist/admin/assets/{tab1-Erm3qhoK.js => tab1-RXoFVKwY.js} (66%) rename app/dubbo-ui/dist/admin/assets/{tab2-gYKBqlWv.js => tab2-ecRDfL1A.js} (66%) delete mode 100644 app/dubbo-ui/dist/admin/assets/tracing-DAAA17XP.js create mode 100644 app/dubbo-ui/dist/admin/assets/tracing-RzrHmcJX.js create mode 100644 app/dubbo-ui/dist/admin/assets/tracing-anN8lSRs.js delete mode 100644 app/dubbo-ui/dist/admin/assets/tracing-egUve7nj.js rename app/dubbo-ui/dist/admin/assets/{traffic-dHGZ6qwp.js => traffic-W0fp5Gf-.js} (94%) rename app/dubbo-ui/dist/admin/assets/{tsMode-uoK2x2Py.js => tsMode-tH5gnU9G.js} (99%) rename app/dubbo-ui/dist/admin/assets/{typescript-jSqLomXD.js => typescript-q9CUqdgD.js} (97%) rename app/dubbo-ui/dist/admin/assets/{updateByFormView-mbEXmvrc.js => updateByFormView-A6KtnX7-.js} (97%) rename app/dubbo-ui/dist/admin/assets/{updateByFormView-ySWJqpjX.js => updateByFormView-uGRMm5vo.js} (99%) rename app/dubbo-ui/dist/admin/assets/{updateByYAMLView-X3vjkbCV.js => updateByYAMLView-7gcgx026.js} (94%) rename app/dubbo-ui/dist/admin/assets/{updateByYAMLView--nyJvxZJ.js => updateByYAMLView-zhO2idIo.js} (95%) rename app/dubbo-ui/dist/admin/assets/{xml-PQ1W1vQC.js => xml-wTy26N4g.js} (97%) rename app/dubbo-ui/dist/admin/assets/{yaml-QORSracL.js => yaml-erqTPgu9.js} (97%) diff --git a/app/dubbo-ui/dist/admin/assets/ConfigModel-IgPiU3B2.js b/app/dubbo-ui/dist/admin/assets/ConfigModel-28QrmMMG.js similarity index 98% rename from app/dubbo-ui/dist/admin/assets/ConfigModel-IgPiU3B2.js rename to app/dubbo-ui/dist/admin/assets/ConfigModel-28QrmMMG.js index b99de2da..47050a98 100644 --- a/app/dubbo-ui/dist/admin/assets/ConfigModel-IgPiU3B2.js +++ b/app/dubbo-ui/dist/admin/assets/ConfigModel-28QrmMMG.js @@ -1 +1 @@ -var h=Object.defineProperty;var p=(u,e,t)=>e in u?h(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t;var o=(u,e,t)=>(p(u,typeof e!="symbol"?e+"":e,t),t);import{i as c}from"./index-3zDsduUv.js";class m{constructor(e){o(this,"enabled",!0);o(this,"hasMatch",!1);o(this,"side","provider");o(this,"matches",[]);o(this,"parameters",[]);o(this,"matchesKeys",[]);o(this,"parametersKeys",[]);o(this,"parametersValue",{retries:{type:"obj",relation:"=",value:""},timeout:{type:"obj",relation:"=",value:""},accesslog:{type:"obj",relation:"=",value:""},weight:{type:"obj",relation:"=",value:""},other:{type:"free",arr:[{key:"",relation:"=",value:""}]}});o(this,"matchesValue",{address:{type:"obj",relation:"",value:""},providerAddress:{type:"obj",relation:"",value:""},service:{type:"arr",arr:[{key:"oneof",relation:"",value:""}]},application:{type:"arr",arr:[{key:"oneof",relation:"",value:""}]},param:{type:"free",arr:[{key:"",relation:"",value:""}]}});if(e){for(let t of Object.keys(this))e[t]&&(this[t]=e[t]);this.hasMatch=this.matchesKeys.length>0}}descMatches(){let e=[];for(let t in this.matchesValue){let a=this.matchesValue[t];if(this.matchesKeys.includes(t))if(a.type==="obj")e.push(`${t} ${a.relation} ${a.value}`);else if(a.type==="arr"){let s=a.arr.map(r=>`${r.relation} ${r.value}`).join(", ");e.push(`${t} oneof [${s}]`)}else{let s=a.arr.map(r=>`${r.key} ${r.relation} ${r.value}`).join(", ");e.push(`${t} allof [${s}]`)}}return e}descParameters(){let e=[];for(let t in this.parametersValue){let a=this.parametersValue[t];this.parametersKeys.includes(t)&&(a.type==="obj"?e.push(`${t} = ${a.value}`):e.push(...a.arr.map(s=>`${s.key} ${s.relation} ${s.value}`)))}return e}delArrConfig(e,t,a){e[t].arr.splice(a,1)}addArrConfig(e,t,a,s){e[t].arr.splice(a+1,0,{key:"",relation:(s==null?void 0:s.relation)||"",value:""})}parseMatches(e){let t=this.matchesValue;for(let a in e){this.matchesKeys.push(a),this.hasMatch=!0;let s=e[a];if(t[a])if(t[a].type==="obj")for(let r in s)t[a].relation=r,t[a].value=s[r];else if(t[a].type==="arr"){t[a].arr=[];for(let r in s)for(let i of s[r])for(let l in i)t[a].arr.push({key:r,relation:l,value:i[l]})}else{t[a].arr=[];for(let r of s)for(let i in r.value)t[a].arr.push({key:r.key,relation:i,value:r.value[i]})}}}parseParameters(e){let t=this.parametersValue;for(let a in e){let s=e[a];if(this.parametersValue[a])this.parametersKeys.push(a),t[a].relation="=",t[a].value=s;else{let r="other";this.parametersKeys.push(r),t[r].arr=[],t[r].arr.push({key:a,relation:"=",value:s})}}}checkArrConfig(e,t,a,s){for(let r of t){let i=a[r];if(i.type==="obj"){if(i.relation===null||i.relation==="")return s.push(`${e}: ${r} 条件为空`),console.log(`${e}: ${r} 条件为空`),!1;if(i.value===null)return s.push(`${e}: ${r} 值为空`),console.log(`${e}: ${r} 值为空`),!1}if(i.type==="arr")for(let l of i.arr){if(l.relation===null||l.relation==="")return s.push(`${e}: ${r} 条件为空`),console.log(`${e}: ${r} 条件为空`),!1;if(l.value===null)return s.push(`${e}: ${r} 值为空`),console.log(`${e}: ${r} 值为空`),!1}else{let l=1;if(!i.arr)continue;for(let n of i.arr){if(n.relation===null||n.relation==="")return s.push(`${e}: ${r} 下第${l}条记录key为空`),console.log(`${e}: ${r} 下第${l}条记录key为空`),!1;if(n.relation===null||n.relation==="")return s.push(`${e}: ${r} 下第${l}条记录条件为空`),console.log(`${e}: ${r} 下第${l}条记录条件为空`),!1;if(n.value===null)return s.push(`${e}: ${r} 第${l}条记录值为空`),console.log(`${e}: ${r} 第${l}条记录值为空`),!1;l++}}}return!0}}class y{constructor(){o(this,"ruleName");o(this,"scope");o(this,"configVersion");o(this,"key");o(this,"effectTime");o(this,"enabled")}}class g{constructor(){o(this,"basicInfo",new y);o(this,"config",[]);o(this,"errorMsg",[]);o(this,"isAdd",!1)}fromData(e){this.basicInfo=e.basicInfo,this.config=e.config,this.isAdd=e.isAdd}fromApiOutput(e){this.basicInfo.configVerison=e.configVerison||"v3.0",this.basicInfo.scope=e.scope,this.basicInfo.key=e.key,this.basicInfo.enabled=e.enabled||!1,this.config=e.configs.map(t=>{let a=new m({enabled:t.enabled,side:t.side});return a.parseMatches(t.match),a.parseParameters(t.parameters),a})}toApiInput(e=!1){return this.errorMsg=[],{ruleName:this.basicInfo.ruleName==="_tmp"?this.basicInfo.key+".configurators":this.basicInfo.ruleName,scope:this.basicInfo.scope,key:this.basicInfo.key,enabled:this.basicInfo.enabled,configVersion:this.basicInfo.configVerison||"v3.0",configs:this.config.map((a,s)=>{const r={},i={};if(e){if(a.parametersKeys.length===0)throw this.errorMsg.push(`配置 ${s+1}${c.global.t("dynamicConfigDomain.configType")} 不能为空`),loading.value=!1,new Error("数据检查失败");if(!(a.checkArrConfig(`配置 ${s+1}${c.global.t("dynamicConfigDomain.matchType")} 检查失败`,a.matchesKeys,a.matchesValue,this.errorMsg)&&a.checkArrConfig(`配置 ${s+1}${c.global.t("dynamicConfigDomain.configType")} 检查失败`,a.parametersKeys,a.parametersValue,this.errorMsg)))throw new Error("数据检查失败")}for(let l of a.matchesKeys){let n=a.matchesValue[l];if(n.type==="obj")r[l]={[n.relation]:n.value};else if(n.type==="arr")r[l]={oneof:n.arr.map(f=>({[f.relation]:f.value}))};else{r[l]=[];for(let f of n.arr)r[l].push({key:f.key,value:{[f.relation]:f.value}})}}for(let l of a.parametersKeys){let n=a.parametersValue[l];if(n.type==="obj")i[l]=n.value;else{r[l]={};for(let f of n.arr)i[f.key]=f.value}}return{match:r,parameters:i,enabled:a.enabled,side:a.side}})}}}export{m as C,g as V}; +var h=Object.defineProperty;var p=(u,e,t)=>e in u?h(u,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):u[e]=t;var o=(u,e,t)=>(p(u,typeof e!="symbol"?e+"":e,t),t);import{i as c}from"./index-VXjVsiiO.js";class m{constructor(e){o(this,"enabled",!0);o(this,"hasMatch",!1);o(this,"side","provider");o(this,"matches",[]);o(this,"parameters",[]);o(this,"matchesKeys",[]);o(this,"parametersKeys",[]);o(this,"parametersValue",{retries:{type:"obj",relation:"=",value:""},timeout:{type:"obj",relation:"=",value:""},accesslog:{type:"obj",relation:"=",value:""},weight:{type:"obj",relation:"=",value:""},other:{type:"free",arr:[{key:"",relation:"=",value:""}]}});o(this,"matchesValue",{address:{type:"obj",relation:"",value:""},providerAddress:{type:"obj",relation:"",value:""},service:{type:"arr",arr:[{key:"oneof",relation:"",value:""}]},application:{type:"arr",arr:[{key:"oneof",relation:"",value:""}]},param:{type:"free",arr:[{key:"",relation:"",value:""}]}});if(e){for(let t of Object.keys(this))e[t]&&(this[t]=e[t]);this.hasMatch=this.matchesKeys.length>0}}descMatches(){let e=[];for(let t in this.matchesValue){let a=this.matchesValue[t];if(this.matchesKeys.includes(t))if(a.type==="obj")e.push(`${t} ${a.relation} ${a.value}`);else if(a.type==="arr"){let s=a.arr.map(r=>`${r.relation} ${r.value}`).join(", ");e.push(`${t} oneof [${s}]`)}else{let s=a.arr.map(r=>`${r.key} ${r.relation} ${r.value}`).join(", ");e.push(`${t} allof [${s}]`)}}return e}descParameters(){let e=[];for(let t in this.parametersValue){let a=this.parametersValue[t];this.parametersKeys.includes(t)&&(a.type==="obj"?e.push(`${t} = ${a.value}`):e.push(...a.arr.map(s=>`${s.key} ${s.relation} ${s.value}`)))}return e}delArrConfig(e,t,a){e[t].arr.splice(a,1)}addArrConfig(e,t,a,s){e[t].arr.splice(a+1,0,{key:"",relation:(s==null?void 0:s.relation)||"",value:""})}parseMatches(e){let t=this.matchesValue;for(let a in e){this.matchesKeys.push(a),this.hasMatch=!0;let s=e[a];if(t[a])if(t[a].type==="obj")for(let r in s)t[a].relation=r,t[a].value=s[r];else if(t[a].type==="arr"){t[a].arr=[];for(let r in s)for(let i of s[r])for(let l in i)t[a].arr.push({key:r,relation:l,value:i[l]})}else{t[a].arr=[];for(let r of s)for(let i in r.value)t[a].arr.push({key:r.key,relation:i,value:r.value[i]})}}}parseParameters(e){let t=this.parametersValue;for(let a in e){let s=e[a];if(this.parametersValue[a])this.parametersKeys.push(a),t[a].relation="=",t[a].value=s;else{let r="other";this.parametersKeys.push(r),t[r].arr=[],t[r].arr.push({key:a,relation:"=",value:s})}}}checkArrConfig(e,t,a,s){for(let r of t){let i=a[r];if(i.type==="obj"){if(i.relation===null||i.relation==="")return s.push(`${e}: ${r} 条件为空`),console.log(`${e}: ${r} 条件为空`),!1;if(i.value===null)return s.push(`${e}: ${r} 值为空`),console.log(`${e}: ${r} 值为空`),!1}if(i.type==="arr")for(let l of i.arr){if(l.relation===null||l.relation==="")return s.push(`${e}: ${r} 条件为空`),console.log(`${e}: ${r} 条件为空`),!1;if(l.value===null)return s.push(`${e}: ${r} 值为空`),console.log(`${e}: ${r} 值为空`),!1}else{let l=1;if(!i.arr)continue;for(let n of i.arr){if(n.relation===null||n.relation==="")return s.push(`${e}: ${r} 下第${l}条记录key为空`),console.log(`${e}: ${r} 下第${l}条记录key为空`),!1;if(n.relation===null||n.relation==="")return s.push(`${e}: ${r} 下第${l}条记录条件为空`),console.log(`${e}: ${r} 下第${l}条记录条件为空`),!1;if(n.value===null)return s.push(`${e}: ${r} 第${l}条记录值为空`),console.log(`${e}: ${r} 第${l}条记录值为空`),!1;l++}}}return!0}}class y{constructor(){o(this,"ruleName");o(this,"scope");o(this,"configVersion");o(this,"key");o(this,"effectTime");o(this,"enabled")}}class g{constructor(){o(this,"basicInfo",new y);o(this,"config",[]);o(this,"errorMsg",[]);o(this,"isAdd",!1)}fromData(e){this.basicInfo=e.basicInfo,this.config=e.config,this.isAdd=e.isAdd}fromApiOutput(e){this.basicInfo.configVerison=e.configVerison||"v3.0",this.basicInfo.scope=e.scope,this.basicInfo.key=e.key,this.basicInfo.enabled=e.enabled||!1,this.config=e.configs.map(t=>{let a=new m({enabled:t.enabled,side:t.side});return a.parseMatches(t.match),a.parseParameters(t.parameters),a})}toApiInput(e=!1){return this.errorMsg=[],{ruleName:this.basicInfo.ruleName==="_tmp"?this.basicInfo.key+".configurators":this.basicInfo.ruleName,scope:this.basicInfo.scope,key:this.basicInfo.key,enabled:this.basicInfo.enabled,configVersion:this.basicInfo.configVerison||"v3.0",configs:this.config.map((a,s)=>{const r={},i={};if(e){if(a.parametersKeys.length===0)throw this.errorMsg.push(`配置 ${s+1}${c.global.t("dynamicConfigDomain.configType")} 不能为空`),loading.value=!1,new Error("数据检查失败");if(!(a.checkArrConfig(`配置 ${s+1}${c.global.t("dynamicConfigDomain.matchType")} 检查失败`,a.matchesKeys,a.matchesValue,this.errorMsg)&&a.checkArrConfig(`配置 ${s+1}${c.global.t("dynamicConfigDomain.configType")} 检查失败`,a.parametersKeys,a.parametersValue,this.errorMsg)))throw new Error("数据检查失败")}for(let l of a.matchesKeys){let n=a.matchesValue[l];if(n.type==="obj")r[l]={[n.relation]:n.value};else if(n.type==="arr")r[l]={oneof:n.arr.map(f=>({[f.relation]:f.value}))};else{r[l]=[];for(let f of n.arr)r[l].push({key:f.key,value:{[f.relation]:f.value}})}}for(let l of a.parametersKeys){let n=a.parametersValue[l];if(n.type==="obj")i[l]=n.value;else{r[l]={};for(let f of n.arr)i[f.key]=f.value}}return{match:r,parameters:i,enabled:a.enabled,side:a.side}})}}}export{m as C,g as V}; diff --git a/app/dubbo-ui/dist/admin/assets/ConfigPage-Onvd_SY6.js b/app/dubbo-ui/dist/admin/assets/ConfigPage-Uqug3gMA.js similarity index 98% rename from app/dubbo-ui/dist/admin/assets/ConfigPage-Onvd_SY6.js rename to app/dubbo-ui/dist/admin/assets/ConfigPage-Uqug3gMA.js index cfd0a002..6669d462 100644 --- a/app/dubbo-ui/dist/admin/assets/ConfigPage-Onvd_SY6.js +++ b/app/dubbo-ui/dist/admin/assets/ConfigPage-Uqug3gMA.js @@ -1 +1 @@ -import{d as F,l as J,B as V,a as M,c as k,b as a,w as t,e as r,o as l,j as C,n as e,I as h,f as _,t as u,L as O,M as U,J as m,T as b,a9 as q,m as w,p as A,h as G,_ as H}from"./index-3zDsduUv.js";const Q=d=>(A("data-v-4c314c51"),d=d(),G(),d),W={class:"__container_common_config"},X={class:"title"},Y=Q(()=>C("div",{class:"bg"},null,-1)),Z={class:"truncate-text"},ee={key:0,style:{float:"right"}},te=F({__name:"ConfigPage",props:{options:{}},setup(d){let y=d,s=J(()=>y.options.list[y.options.current[0]]),x=V(null),g=V(!1),I=M();async function z(){g.value=!0,await x.value.validate().catch(c=>{w.error("submit failed [form check]: "+c),g.value=!1});let n=y.options.list[y.options.current[0]];await n.submit(n.form).catch(c=>{w.error("submit failed [server error]: "+c)}),g.value=!1,w.success("submit success")}function K(){s.value.reset(s.value.form)}return(n,c)=>{const L=r("a-tooltip"),P=r("a-menu-item"),R=r("a-menu"),$=r("a-card"),B=r("a-col"),v=r("a-button"),T=r("a-form"),j=r("a-form-item"),D=r("a-spin"),E=r("a-row");return l(),k("div",W,[a(E,{gutter:20},{default:t(()=>[a(B,{span:6},{default:t(()=>[a($,{class:"__opt"},{title:t(()=>[C("div",X,[Y,a(e(h),{class:"title-icon",icon:"icon-park-twotone:application-one"}),a(L,{placement:"topLeft"},{title:t(()=>{var o;return[_(u((o=e(I).params)==null?void 0:o.pathId),1)]}),default:t(()=>{var o;return[C("span",Z,u((o=e(I).params)==null?void 0:o.pathId),1)]}),_:1})])]),default:t(()=>[a(R,{selectedKeys:n.options.current,"onUpdate:selectedKeys":c[0]||(c[0]=o=>n.options.current=o)},{default:t(()=>[(l(!0),k(O,null,U(n.options.list,(o,i)=>(l(),m(P,{key:i},{default:t(()=>[i===n.options.current[0]?(l(),m(e(h),{key:0,style:{"margin-bottom":"-5px","font-size":"20px"},icon:"material-symbols:settings-b-roll-rounded"})):(l(),m(e(h),{key:1,style:{"margin-bottom":"-5px","font-size":"20px",color:"grey"},icon:"material-symbols:settings-b-roll-outline-rounded"})),_(" "+u(n.$t(o.title)),1)]),_:2},1024))),128))]),_:1},8,["selectedKeys"])]),_:1})]),_:1}),a(B,{span:18},{default:t(()=>[a($,null,{title:t(()=>{var o;return[_(u(n.$t(e(s).title))+" ",1),(o=e(s))!=null&&o.ext?(l(),k("div",ee,[a(v,{type:"primary",onClick:c[1]||(c[1]=i=>{var p,f,S,N;return(N=(p=e(s))==null?void 0:p.ext)==null?void 0:N.fun((S=(f=e(s))==null?void 0:f.form)==null?void 0:S.rules)})},{default:t(()=>{var i,p;return[_(u((p=(i=e(s))==null?void 0:i.ext)==null?void 0:p.title),1)]}),_:1})])):b("",!0)]}),default:t(()=>[a(D,{spinning:e(g)},{default:t(()=>{var o,i;return[(l(),m(T,{style:{overflow:"auto","max-height":"calc(100vh - 450px)"},ref_key:"__config_form",ref:x,key:n.options.current,"wrapper-col":{span:14},model:e(s).form,"label-col":{style:{width:"100px"}},layout:"horizontal"},{default:t(()=>[q(n.$slots,"form_"+e(s).key,{current:e(s)},void 0,!0)]),_:3},8,["model"])),(o=e(s))!=null&&o.submit||(i=e(s))!=null&&i.reset?(l(),m(j,{key:0,style:{margin:"20px 0 0 100px"}},{default:t(()=>{var p,f;return[(p=e(s))!=null&&p.submit?(l(),m(v,{key:0,type:"primary",onClick:z},{default:t(()=>[_(u(n.$t("submit")),1)]),_:1})):b("",!0),(f=e(s))!=null&&f.reset?(l(),m(v,{key:1,style:{"margin-left":"10px"},onClick:K},{default:t(()=>[_(u(n.$t("reset")),1)]),_:1})):b("",!0)]}),_:1})):b("",!0)]}),_:3},8,["spinning"])]),_:3})]),_:3})]),_:3})])}}}),se=H(te,[["__scopeId","data-v-4c314c51"]]);export{se as C}; +import{d as F,l as J,B as V,a as M,c as k,b as a,w as t,e as r,o as l,j as C,n as e,I as h,f as _,t as u,L as O,M as U,J as m,T as b,a9 as q,m as w,p as A,h as G,_ as H}from"./index-VXjVsiiO.js";const Q=d=>(A("data-v-4c314c51"),d=d(),G(),d),W={class:"__container_common_config"},X={class:"title"},Y=Q(()=>C("div",{class:"bg"},null,-1)),Z={class:"truncate-text"},ee={key:0,style:{float:"right"}},te=F({__name:"ConfigPage",props:{options:{}},setup(d){let y=d,s=J(()=>y.options.list[y.options.current[0]]),x=V(null),g=V(!1),I=M();async function z(){g.value=!0,await x.value.validate().catch(c=>{w.error("submit failed [form check]: "+c),g.value=!1});let n=y.options.list[y.options.current[0]];await n.submit(n.form).catch(c=>{w.error("submit failed [server error]: "+c)}),g.value=!1,w.success("submit success")}function K(){s.value.reset(s.value.form)}return(n,c)=>{const L=r("a-tooltip"),P=r("a-menu-item"),R=r("a-menu"),$=r("a-card"),B=r("a-col"),v=r("a-button"),T=r("a-form"),j=r("a-form-item"),D=r("a-spin"),E=r("a-row");return l(),k("div",W,[a(E,{gutter:20},{default:t(()=>[a(B,{span:6},{default:t(()=>[a($,{class:"__opt"},{title:t(()=>[C("div",X,[Y,a(e(h),{class:"title-icon",icon:"icon-park-twotone:application-one"}),a(L,{placement:"topLeft"},{title:t(()=>{var o;return[_(u((o=e(I).params)==null?void 0:o.pathId),1)]}),default:t(()=>{var o;return[C("span",Z,u((o=e(I).params)==null?void 0:o.pathId),1)]}),_:1})])]),default:t(()=>[a(R,{selectedKeys:n.options.current,"onUpdate:selectedKeys":c[0]||(c[0]=o=>n.options.current=o)},{default:t(()=>[(l(!0),k(O,null,U(n.options.list,(o,i)=>(l(),m(P,{key:i},{default:t(()=>[i===n.options.current[0]?(l(),m(e(h),{key:0,style:{"margin-bottom":"-5px","font-size":"20px"},icon:"material-symbols:settings-b-roll-rounded"})):(l(),m(e(h),{key:1,style:{"margin-bottom":"-5px","font-size":"20px",color:"grey"},icon:"material-symbols:settings-b-roll-outline-rounded"})),_(" "+u(n.$t(o.title)),1)]),_:2},1024))),128))]),_:1},8,["selectedKeys"])]),_:1})]),_:1}),a(B,{span:18},{default:t(()=>[a($,null,{title:t(()=>{var o;return[_(u(n.$t(e(s).title))+" ",1),(o=e(s))!=null&&o.ext?(l(),k("div",ee,[a(v,{type:"primary",onClick:c[1]||(c[1]=i=>{var p,f,S,N;return(N=(p=e(s))==null?void 0:p.ext)==null?void 0:N.fun((S=(f=e(s))==null?void 0:f.form)==null?void 0:S.rules)})},{default:t(()=>{var i,p;return[_(u((p=(i=e(s))==null?void 0:i.ext)==null?void 0:p.title),1)]}),_:1})])):b("",!0)]}),default:t(()=>[a(D,{spinning:e(g)},{default:t(()=>{var o,i;return[(l(),m(T,{style:{overflow:"auto","max-height":"calc(100vh - 450px)"},ref_key:"__config_form",ref:x,key:n.options.current,"wrapper-col":{span:14},model:e(s).form,"label-col":{style:{width:"100px"}},layout:"horizontal"},{default:t(()=>[q(n.$slots,"form_"+e(s).key,{current:e(s)},void 0,!0)]),_:3},8,["model"])),(o=e(s))!=null&&o.submit||(i=e(s))!=null&&i.reset?(l(),m(j,{key:0,style:{margin:"20px 0 0 100px"}},{default:t(()=>{var p,f;return[(p=e(s))!=null&&p.submit?(l(),m(v,{key:0,type:"primary",onClick:z},{default:t(()=>[_(u(n.$t("submit")),1)]),_:1})):b("",!0),(f=e(s))!=null&&f.reset?(l(),m(v,{key:1,style:{"margin-left":"10px"},onClick:K},{default:t(()=>[_(u(n.$t("reset")),1)]),_:1})):b("",!0)]}),_:1})):b("",!0)]}),_:3},8,["spinning"])]),_:3})]),_:3})]),_:3})])}}}),se=H(te,[["__scopeId","data-v-4c314c51"]]);export{se as C}; diff --git a/app/dubbo-ui/dist/admin/assets/DateUtil-Hh_Zud1i.js b/app/dubbo-ui/dist/admin/assets/DateUtil-Hh_Zud1i.js new file mode 100644 index 00000000..0ea2d2f8 --- /dev/null +++ b/app/dubbo-ui/dist/admin/assets/DateUtil-Hh_Zud1i.js @@ -0,0 +1 @@ +import{ac as t}from"./index-VXjVsiiO.js";const m=r=>r&&t(r).format("YYYY-MM-DD HH:mm:ss");export{m as f}; diff --git a/app/dubbo-ui/dist/admin/assets/DateUtil-QXt7LnE3.js b/app/dubbo-ui/dist/admin/assets/DateUtil-QXt7LnE3.js deleted file mode 100644 index 776b9ebb..00000000 --- a/app/dubbo-ui/dist/admin/assets/DateUtil-QXt7LnE3.js +++ /dev/null @@ -1 +0,0 @@ -import{ac as t}from"./index-3zDsduUv.js";const m=r=>r&&t(r).format("YYYY-MM-DD HH:mm:ss");export{m as f}; diff --git a/app/dubbo-ui/dist/admin/assets/GrafanaPage-tT3NMW70.js b/app/dubbo-ui/dist/admin/assets/GrafanaPage-emfN7XhQ.js similarity index 95% rename from app/dubbo-ui/dist/admin/assets/GrafanaPage-tT3NMW70.js rename to app/dubbo-ui/dist/admin/assets/GrafanaPage-emfN7XhQ.js index adc160de..5623d724 100644 --- a/app/dubbo-ui/dist/admin/assets/GrafanaPage-tT3NMW70.js +++ b/app/dubbo-ui/dist/admin/assets/GrafanaPage-emfN7XhQ.js @@ -1 +1 @@ -import{d as l,y as m,z as d,B as _,a as f,D as u,e as p,o as r,c as s,b as g,w as h,j as y,n,T as v,_ as I}from"./index-3zDsduUv.js";const w={class:"__container_tabDemo3"},b={class:"__container_iframe_container"},q=["src"],D=l({__name:"GrafanaPage",setup(S){const a=m(d.GRAFANA);_(""),f(),u(async()=>{var t;let e=await a.api({});a.url=`${window.location.origin}/grafana/d/${(t=e.data)==null?void 0:t.baseURL.split("/d/")[1].split("?")[0]}?var-${a.type}=${a.name}&kiosk=tv`,a.showIframe=!0});function o(e){try{e()}catch(t){console.log(t)}}function c(){console.log("The iframe has been loaded."),setTimeout(()=>{try{let e=document.querySelector("#grafanaIframe").contentDocument;o(()=>{e.querySelector("header").remove()}),o(()=>{e.querySelector("[data-testid*='controls']").remove()}),setTimeout(()=>{o(()=>{e.querySelector("[data-testid*='navigation mega-menu']").remove()}),o(()=>{for(let t of e.querySelectorAll("[data-testid*='Panel menu']"))t.remove()})},2e3)}catch{}a.showIframe=!0},1e3)}return(e,t)=>{const i=p("a-spin");return r(),s("div",w,[g(i,{class:"spin",spinning:!n(a).showIframe},{default:h(()=>[y("div",b,[n(a).showIframe?(r(),s("iframe",{key:0,onload:c,id:"grafanaIframe",style:{"padding-top":"60px"},src:n(a).url,frameborder:"0"},null,8,q)):v("",!0)])]),_:1},8,["spinning"])])}}}),x=I(D,[["__scopeId","data-v-c6fbb32b"]]);export{x as G}; +import{d as l,y as m,z as d,B as _,a as f,D as u,e as p,o as r,c as s,b as g,w as h,j as y,n,T as v,_ as I}from"./index-VXjVsiiO.js";const w={class:"__container_tabDemo3"},b={class:"__container_iframe_container"},q=["src"],D=l({__name:"GrafanaPage",setup(S){const a=m(d.GRAFANA);_(""),f(),u(async()=>{var t;let e=await a.api({});a.url=`${window.location.origin}/grafana/d/${(t=e.data)==null?void 0:t.baseURL.split("/d/")[1].split("?")[0]}?var-${a.type}=${a.name}&kiosk=tv`,a.showIframe=!0});function o(e){try{e()}catch(t){console.log(t)}}function c(){console.log("The iframe has been loaded."),setTimeout(()=>{try{let e=document.querySelector("#grafanaIframe").contentDocument;o(()=>{e.querySelector("header").remove()}),o(()=>{e.querySelector("[data-testid*='controls']").remove()}),setTimeout(()=>{o(()=>{e.querySelector("[data-testid*='navigation mega-menu']").remove()}),o(()=>{for(let t of e.querySelectorAll("[data-testid*='Panel menu']"))t.remove()})},2e3)}catch{}a.showIframe=!0},1e3)}return(e,t)=>{const i=p("a-spin");return r(),s("div",w,[g(i,{class:"spin",spinning:!n(a).showIframe},{default:h(()=>[y("div",b,[n(a).showIframe?(r(),s("iframe",{key:0,onload:c,id:"grafanaIframe",style:{"padding-top":"60px"},src:n(a).url,frameborder:"0"},null,8,q)):v("",!0)])]),_:1},8,["spinning"])])}}}),x=I(D,[["__scopeId","data-v-c6fbb32b"]]);export{x as G}; diff --git a/app/dubbo-ui/dist/admin/assets/Login-QsM7tdlI.js b/app/dubbo-ui/dist/admin/assets/Login-apvEdPeM.js similarity index 92% rename from app/dubbo-ui/dist/admin/assets/Login-QsM7tdlI.js rename to app/dubbo-ui/dist/admin/assets/Login-apvEdPeM.js index 3dd112d7..2b9fbb21 100644 --- a/app/dubbo-ui/dist/admin/assets/Login-QsM7tdlI.js +++ b/app/dubbo-ui/dist/admin/assets/Login-apvEdPeM.js @@ -1 +1 @@ -import{l as h,m as b}from"./globalSearch--VMQnq3S.js";import{d as v,r as y,u as S,a as D,c as k,b as e,w as t,e as n,o as C,f as I,t as q,g as B,m as N,i as V,p as $,h as x,j as F,_ as L}from"./index-3zDsduUv.js";import{u as R}from"./request-3an337VF.js";const U=l=>($("data-v-790dbd2e"),l=l(),x(),l),j={class:"background"},z=U(()=>F("div",null,"用户登录",-1)),A=v({__name:"Login",setup(l){const a=y({username:"",password:""}),c=S(),p=D().query.redirect||"/",m=R();function _(){let s=new FormData;s.append("user",a.username),s.append("password",a.password),h(s).then(async()=>{var r;B(!0,a.username);const{data:o}=await b();(!m.mesh||!o.some(u=>u.name===m.mesh))&&(m.mesh=(r=o[0])==null?void 0:r.name),c.replace(p)}).catch(o=>{N.error(V.global.t("loginDomain.authFail"))})}return(s,o)=>{const r=n("a-row"),u=n("a-input"),i=n("a-form-item"),f=n("a-button"),g=n("a-form"),w=n("a-card");return C(),k("div",j,[e(w,{class:"login"},{default:t(()=>[e(r,{class:"title"},{default:t(()=>[z]),_:1}),e(r,null,{default:t(()=>[e(g,{layout:"vertical",model:a,ref:"login-form-ref"},{default:t(()=>[e(i,{class:"item",label:s.$t("loginDomain.username"),name:"username",rules:[{required:!0}]},{default:t(()=>[e(u,{type:"",value:a.username,"onUpdate:value":o[0]||(o[0]=d=>a.username=d)},null,8,["value"])]),_:1},8,["label"]),e(i,{class:"item",label:s.$t("loginDomain.password"),name:"password",rules:[{required:!0}]},{default:t(()=>[e(u,{type:"password",value:a.password,"onUpdate:value":o[1]||(o[1]=d=>a.password=d)},null,8,["value"])]),_:1},8,["label"]),e(i,{class:"item",label:""},{default:t(()=>[e(f,{onClick:_,size:"large",type:"primary",class:"login-btn"},{default:t(()=>[I(q(s.$t("loginDomain.login")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})]),_:1})])}}}),G=L(A,[["__scopeId","data-v-790dbd2e"]]);export{G as default}; +import{l as h,m as b}from"./globalSearch-6GNf4A56.js";import{d as v,r as y,u as S,a as D,c as k,b as e,w as t,e as n,o as C,f as I,t as q,g as B,m as N,i as V,p as $,h as x,j as F,_ as L}from"./index-VXjVsiiO.js";import{u as R}from"./request-Cs8TyifY.js";const U=l=>($("data-v-790dbd2e"),l=l(),x(),l),j={class:"background"},z=U(()=>F("div",null,"用户登录",-1)),A=v({__name:"Login",setup(l){const a=y({username:"",password:""}),c=S(),p=D().query.redirect||"/",m=R();function _(){let s=new FormData;s.append("user",a.username),s.append("password",a.password),h(s).then(async()=>{var r;B(!0,a.username);const{data:o}=await b();(!m.mesh||!o.some(u=>u.name===m.mesh))&&(m.mesh=(r=o[0])==null?void 0:r.name),c.replace(p)}).catch(o=>{N.error(V.global.t("loginDomain.authFail"))})}return(s,o)=>{const r=n("a-row"),u=n("a-input"),i=n("a-form-item"),f=n("a-button"),g=n("a-form"),w=n("a-card");return C(),k("div",j,[e(w,{class:"login"},{default:t(()=>[e(r,{class:"title"},{default:t(()=>[z]),_:1}),e(r,null,{default:t(()=>[e(g,{layout:"vertical",model:a,ref:"login-form-ref"},{default:t(()=>[e(i,{class:"item",label:s.$t("loginDomain.username"),name:"username",rules:[{required:!0}]},{default:t(()=>[e(u,{type:"",value:a.username,"onUpdate:value":o[0]||(o[0]=d=>a.username=d)},null,8,["value"])]),_:1},8,["label"]),e(i,{class:"item",label:s.$t("loginDomain.password"),name:"password",rules:[{required:!0}]},{default:t(()=>[e(u,{type:"password",value:a.password,"onUpdate:value":o[1]||(o[1]=d=>a.password=d)},null,8,["value"])]),_:1},8,["label"]),e(i,{class:"item",label:""},{default:t(()=>[e(f,{onClick:_,size:"large",type:"primary",class:"login-btn"},{default:t(()=>[I(q(s.$t("loginDomain.login")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1})]),_:1})])}}}),G=L(A,[["__scopeId","data-v-790dbd2e"]]);export{G as default}; diff --git a/app/dubbo-ui/dist/admin/assets/PromQueryUtil-4K1j3sa5.js b/app/dubbo-ui/dist/admin/assets/PromQueryUtil-wquMeYdL.js similarity index 81% rename from app/dubbo-ui/dist/admin/assets/PromQueryUtil-4K1j3sa5.js rename to app/dubbo-ui/dist/admin/assets/PromQueryUtil-wquMeYdL.js index 13a0309e..06864983 100644 --- a/app/dubbo-ui/dist/admin/assets/PromQueryUtil-4K1j3sa5.js +++ b/app/dubbo-ui/dist/admin/assets/PromQueryUtil-wquMeYdL.js @@ -1 +1 @@ -import{r as c}from"./request-3an337VF.js";import{r as i,a4 as s}from"./index-3zDsduUv.js";const f=async t=>c({url:"promQL/query",method:"get",params:t});async function q(t){var o,a;try{let r=(a=(o=await f({query:t}))==null?void 0:o.data)==null?void 0:a.result[0];return r!=null&&r.value&&r.value.length>0?Number(r.value[1]):"NA"}catch(r){console.error("fetch from prom error: ",r)}return"NA"}function p(t,o,a){var u;const r=i(t);for(let l of o){let e=(u=t==null?void 0:t.data)==null?void 0:u.list;for(let n of e)n[l]="skeleton-loading"}return s(async()=>{var l;try{let e=((l=r==null?void 0:r.data)==null?void 0:l.list)||[];for(let n of e)a(n)}catch(e){console.error(e)}}),r}export{p,q}; +import{r as c}from"./request-Cs8TyifY.js";import{r as i,a4 as s}from"./index-VXjVsiiO.js";const f=async t=>c({url:"promQL/query",method:"get",params:t});async function q(t){var o,a;try{let r=(a=(o=await f({query:t}))==null?void 0:o.data)==null?void 0:a.result[0];return r!=null&&r.value&&r.value.length>0?Number(r.value[1]):"NA"}catch(r){console.error("fetch from prom error: ",r)}return"NA"}function p(t,o,a){var u;const r=i(t);for(let l of o){let e=(u=t==null?void 0:t.data)==null?void 0:u.list;for(let n of e)n[l]="skeleton-loading"}return s(async()=>{var l;try{let e=((l=r==null?void 0:r.data)==null?void 0:l.list)||[];for(let n of e)a(n)}catch(e){console.error(e)}}),r}export{p,q}; diff --git a/app/dubbo-ui/dist/admin/assets/SearchUtil-bfid3zNl.js b/app/dubbo-ui/dist/admin/assets/SearchUtil-ETsp-Y5a.js similarity index 98% rename from app/dubbo-ui/dist/admin/assets/SearchUtil-bfid3zNl.js rename to app/dubbo-ui/dist/admin/assets/SearchUtil-ETsp-Y5a.js index b7385e30..c83e34dc 100644 --- a/app/dubbo-ui/dist/admin/assets/SearchUtil-bfid3zNl.js +++ b/app/dubbo-ui/dist/admin/assets/SearchUtil-ETsp-Y5a.js @@ -1 +1 @@ -var G=Object.defineProperty;var Q=(d,o,u)=>o in d?G(d,o,{enumerable:!0,configurable:!0,writable:!0,value:u}):d[o]=u;var _=(d,o,u)=>(Q(d,typeof o!="symbol"?o+"":o,u),u);import{d as W,v as Z,r as A,k as q,y as ee,z as te,l as D,c as m,j as g,b as i,w as n,n as s,e as c,P as ae,o as r,K as oe,L as b,M as C,J as y,f as P,t as S,af as I,I as T,a9 as U,$ as se,a1 as le,ag as ne,T as re,m as ie,_ as ce}from"./index-3zDsduUv.js";const ue={class:"__container_search_table"},de={class:"search-query-container"},pe={class:"custom-column button"},_e={class:"dropdown"},me={class:"body"},he=["onClick"],fe={class:"search-table-container"},ge={key:0},ye={key:1},be=W({__name:"SearchTable",setup(d){Z(a=>({"3d09cf76":s(ae)}));const o=A({customColumns:!1}),{appContext:{config:{globalProperties:u}}}=q(),e=ee(te.SEARCH_DOMAIN);e.table.columns.forEach(a=>{if(a.title){const p=a.title;a.title=D(()=>u.$t(p))}});const h=D(()=>e.noPaged?!1:{pageSize:e.paged.pageSize,current:e.paged.curPage,total:e.paged.total,showTotal:a=>u.$t("searchDomain.total")+": "+a+" "+u.$t("searchDomain.unit")}),f=(a,p,v)=>{e.paged.pageSize=a.pageSize,e.paged.curPage=a.current,e.onSearch()};function k(a){let p=e==null?void 0:e.table.columns.filter(v=>!v.__hide);if(!a.__hide&&p.length<=1){ie.warn("must show at least one column");return}a.__hide=!a.__hide}return(a,p)=>{var N,O,E,V;const v=c("a-radio-button"),R=c("a-radio-group"),B=c("a-select-option"),K=c("a-select"),M=c("a-input"),$=c("a-form-item"),j=c("a-button"),F=c("a-flex"),L=c("a-form"),x=c("a-col"),Y=c("a-card"),J=c("a-row"),H=c("a-skeleton-button"),X=c("a-table");return r(),m("div",ue,[g("div",de,[i(J,null,{default:n(()=>[i(x,{span:18},{default:n(()=>[i(L,{onKeyup:p[1]||(p[1]=oe(t=>s(e).onSearch(),["enter"]))},{default:n(()=>[i(F,{wrap:"wrap",gap:"large"},{default:n(()=>[(r(!0),m(b,null,C(s(e).params,t=>(r(),y($,{label:a.$t(t.label)},{default:n(()=>[t.dict&&t.dict.length>0?(r(),m(b,{key:0},[t.dictType==="BUTTON"?(r(),y(R,{key:0,"button-style":"solid",value:s(e).queryForm[t.param],"onUpdate:value":l=>s(e).queryForm[t.param]=l},{default:n(()=>[(r(!0),m(b,null,C(t.dict,l=>(r(),y(v,{value:l.value},{default:n(()=>[P(S(a.$t(l.label)),1)]),_:2},1032,["value"]))),256))]),_:2},1032,["value","onUpdate:value"])):(r(),y(K,{key:1,class:"select-type",style:I(t.style),value:s(e).queryForm[t.param],"onUpdate:value":l=>s(e).queryForm[t.param]=l},{default:n(()=>[(r(!0),m(b,null,C([...t.dict,{label:"none",value:""}],l=>(r(),y(B,{value:l.value},{default:n(()=>[P(S(a.$t(l.label)),1)]),_:2},1032,["value"]))),256))]),_:2},1032,["style","value","onUpdate:value"]))],64)):(r(),y(M,{key:1,style:I(t.style),placeholder:a.$t("placeholder."+(t.placeholder||"typeDefault")),value:s(e).queryForm[t.param],"onUpdate:value":l=>s(e).queryForm[t.param]=l},null,8,["style","placeholder","value","onUpdate:value"]))]),_:2},1032,["label"]))),256)),i($,{label:""},{default:n(()=>[i(j,{type:"primary",onClick:p[0]||(p[0]=t=>s(e).onSearch())},{default:n(()=>[i(s(T),{style:{"margin-bottom":"-2px","font-size":"1.3rem"},icon:"ic:outline-manage-search"})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),i(x,{span:6},{default:n(()=>[i(F,{style:{"justify-content":"flex-end"}},{default:n(()=>[U(a.$slots,"customOperation",{},void 0,!0),g("div",{class:"common-tool",onClick:p[2]||(p[2]=t=>o.customColumns=!o.customColumns)},[g("div",pe,[i(s(T),{icon:"material-symbols-light:format-list-bulleted-rounded"})]),se(g("div",_e,[i(Y,{style:{"max-width":"300px"},title:"Custom Column"},{default:n(()=>{var t;return[g("div",me,[(r(!0),m(b,null,C((t=s(e))==null?void 0:t.table.columns,(l,w)=>(r(),m("div",{class:"item",onClick:ne(z=>k(l),["stop"])},[i(s(T),{style:{"margin-bottom":"-4px","font-size":"1rem","margin-right":"2px"},icon:l.__hide?"zondicons:view-hide":"zondicons:view-show"},null,8,["icon"]),P(" "+S(l.title),1)],8,he))),256))])]}),_:1})],512),[[le,o.customColumns]])])]),_:3})]),_:3})]),_:3})]),g("div",fe,[i(X,{loading:s(e).table.loading,pagination:h.value,scroll:{scrollToFirstRowOnChange:!0,y:((N=s(e).tableStyle)==null?void 0:N.scrollY)||"",x:((O=s(e).tableStyle)==null?void 0:O.scrollX)||""},columns:(E=s(e))==null?void 0:E.table.columns.filter(t=>!t.__hide),"data-source":(V=s(e))==null?void 0:V.result,onChange:f},{bodyCell:n(({text:t,record:l,index:w,column:z})=>[z.key==="idx"?(r(),m("span",ge,S(w+1),1)):re("",!0),t==="skeleton-loading"?(r(),m("span",ye,[i(H,{active:"",size:"small"})])):U(a.$slots,"bodyCell",{key:2,text:t,record:l,index:w,column:z},void 0,!0)]),_:3},8,["loading","pagination","scroll","columns","data-source"])])])}}}),Se=ce(be,[["__scopeId","data-v-e2b01919"]]);class ke{constructor(o,u,e,h,f,k){_(this,"noPaged");_(this,"queryForm");_(this,"params");_(this,"searchApi");_(this,"result");_(this,"handleResult");_(this,"tableStyle");_(this,"table",{columns:[]});_(this,"paged",{curPage:1,pageOffset:"0",total:0,pageSize:10});this.params=o,this.noPaged=f,this.queryForm=A({}),this.table.columns=e,o.forEach(a=>{a.defaultValue&&(this.queryForm[a.param]=a.defaultValue)}),h&&(this.paged={...this.paged,...h}),this.searchApi=u,this.handleResult=k}async onSearch(o){o&&(this.handleResult=o),this.table.loading=!0,setTimeout(()=>{this.table.loading=!1},1e4);const u={...this.queryForm,...this.noPaged?{}:{pageSize:this.paged.pageSize,pageOffset:(this.paged.curPage-1)*this.paged.pageSize}};this.searchApi(u).then(e=>{const{data:{list:h,pageInfo:f}}=e;this.result=o?o(h):h,this.noPaged||(this.paged.total=(f==null?void 0:f.Total)||0)}).catch(e=>{console.error("Error fetching data:",e)}).finally(()=>{this.table.loading=!1})}}function we(d,o){return isNaN(d-o)?d.localeCompare(o):d-o}export{ke as S,Se as a,we as s}; +var G=Object.defineProperty;var Q=(d,o,u)=>o in d?G(d,o,{enumerable:!0,configurable:!0,writable:!0,value:u}):d[o]=u;var _=(d,o,u)=>(Q(d,typeof o!="symbol"?o+"":o,u),u);import{d as W,v as Z,r as A,k as q,y as ee,z as te,l as D,c as m,j as g,b as i,w as n,n as s,e as c,P as ae,o as r,K as oe,L as b,M as C,J as y,f as P,t as S,af as I,I as T,a9 as U,$ as se,a1 as le,ag as ne,T as re,m as ie,_ as ce}from"./index-VXjVsiiO.js";const ue={class:"__container_search_table"},de={class:"search-query-container"},pe={class:"custom-column button"},_e={class:"dropdown"},me={class:"body"},he=["onClick"],fe={class:"search-table-container"},ge={key:0},ye={key:1},be=W({__name:"SearchTable",setup(d){Z(a=>({"3d09cf76":s(ae)}));const o=A({customColumns:!1}),{appContext:{config:{globalProperties:u}}}=q(),e=ee(te.SEARCH_DOMAIN);e.table.columns.forEach(a=>{if(a.title){const p=a.title;a.title=D(()=>u.$t(p))}});const h=D(()=>e.noPaged?!1:{pageSize:e.paged.pageSize,current:e.paged.curPage,total:e.paged.total,showTotal:a=>u.$t("searchDomain.total")+": "+a+" "+u.$t("searchDomain.unit")}),f=(a,p,v)=>{e.paged.pageSize=a.pageSize,e.paged.curPage=a.current,e.onSearch()};function k(a){let p=e==null?void 0:e.table.columns.filter(v=>!v.__hide);if(!a.__hide&&p.length<=1){ie.warn("must show at least one column");return}a.__hide=!a.__hide}return(a,p)=>{var N,O,E,V;const v=c("a-radio-button"),R=c("a-radio-group"),B=c("a-select-option"),K=c("a-select"),M=c("a-input"),$=c("a-form-item"),j=c("a-button"),F=c("a-flex"),L=c("a-form"),x=c("a-col"),Y=c("a-card"),J=c("a-row"),H=c("a-skeleton-button"),X=c("a-table");return r(),m("div",ue,[g("div",de,[i(J,null,{default:n(()=>[i(x,{span:18},{default:n(()=>[i(L,{onKeyup:p[1]||(p[1]=oe(t=>s(e).onSearch(),["enter"]))},{default:n(()=>[i(F,{wrap:"wrap",gap:"large"},{default:n(()=>[(r(!0),m(b,null,C(s(e).params,t=>(r(),y($,{label:a.$t(t.label)},{default:n(()=>[t.dict&&t.dict.length>0?(r(),m(b,{key:0},[t.dictType==="BUTTON"?(r(),y(R,{key:0,"button-style":"solid",value:s(e).queryForm[t.param],"onUpdate:value":l=>s(e).queryForm[t.param]=l},{default:n(()=>[(r(!0),m(b,null,C(t.dict,l=>(r(),y(v,{value:l.value},{default:n(()=>[P(S(a.$t(l.label)),1)]),_:2},1032,["value"]))),256))]),_:2},1032,["value","onUpdate:value"])):(r(),y(K,{key:1,class:"select-type",style:I(t.style),value:s(e).queryForm[t.param],"onUpdate:value":l=>s(e).queryForm[t.param]=l},{default:n(()=>[(r(!0),m(b,null,C([...t.dict,{label:"none",value:""}],l=>(r(),y(B,{value:l.value},{default:n(()=>[P(S(a.$t(l.label)),1)]),_:2},1032,["value"]))),256))]),_:2},1032,["style","value","onUpdate:value"]))],64)):(r(),y(M,{key:1,style:I(t.style),placeholder:a.$t("placeholder."+(t.placeholder||"typeDefault")),value:s(e).queryForm[t.param],"onUpdate:value":l=>s(e).queryForm[t.param]=l},null,8,["style","placeholder","value","onUpdate:value"]))]),_:2},1032,["label"]))),256)),i($,{label:""},{default:n(()=>[i(j,{type:"primary",onClick:p[0]||(p[0]=t=>s(e).onSearch())},{default:n(()=>[i(s(T),{style:{"margin-bottom":"-2px","font-size":"1.3rem"},icon:"ic:outline-manage-search"})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),i(x,{span:6},{default:n(()=>[i(F,{style:{"justify-content":"flex-end"}},{default:n(()=>[U(a.$slots,"customOperation",{},void 0,!0),g("div",{class:"common-tool",onClick:p[2]||(p[2]=t=>o.customColumns=!o.customColumns)},[g("div",pe,[i(s(T),{icon:"material-symbols-light:format-list-bulleted-rounded"})]),se(g("div",_e,[i(Y,{style:{"max-width":"300px"},title:"Custom Column"},{default:n(()=>{var t;return[g("div",me,[(r(!0),m(b,null,C((t=s(e))==null?void 0:t.table.columns,(l,w)=>(r(),m("div",{class:"item",onClick:ne(z=>k(l),["stop"])},[i(s(T),{style:{"margin-bottom":"-4px","font-size":"1rem","margin-right":"2px"},icon:l.__hide?"zondicons:view-hide":"zondicons:view-show"},null,8,["icon"]),P(" "+S(l.title),1)],8,he))),256))])]}),_:1})],512),[[le,o.customColumns]])])]),_:3})]),_:3})]),_:3})]),g("div",fe,[i(X,{loading:s(e).table.loading,pagination:h.value,scroll:{scrollToFirstRowOnChange:!0,y:((N=s(e).tableStyle)==null?void 0:N.scrollY)||"",x:((O=s(e).tableStyle)==null?void 0:O.scrollX)||""},columns:(E=s(e))==null?void 0:E.table.columns.filter(t=>!t.__hide),"data-source":(V=s(e))==null?void 0:V.result,onChange:f},{bodyCell:n(({text:t,record:l,index:w,column:z})=>[z.key==="idx"?(r(),m("span",ge,S(w+1),1)):re("",!0),t==="skeleton-loading"?(r(),m("span",ye,[i(H,{active:"",size:"small"})])):U(a.$slots,"bodyCell",{key:2,text:t,record:l,index:w,column:z},void 0,!0)]),_:3},8,["loading","pagination","scroll","columns","data-source"])])])}}}),Se=ce(be,[["__scopeId","data-v-e2b01919"]]);class ke{constructor(o,u,e,h,f,k){_(this,"noPaged");_(this,"queryForm");_(this,"params");_(this,"searchApi");_(this,"result");_(this,"handleResult");_(this,"tableStyle");_(this,"table",{columns:[]});_(this,"paged",{curPage:1,pageOffset:"0",total:0,pageSize:10});this.params=o,this.noPaged=f,this.queryForm=A({}),this.table.columns=e,o.forEach(a=>{a.defaultValue&&(this.queryForm[a.param]=a.defaultValue)}),h&&(this.paged={...this.paged,...h}),this.searchApi=u,this.handleResult=k}async onSearch(o){o&&(this.handleResult=o),this.table.loading=!0,setTimeout(()=>{this.table.loading=!1},1e4);const u={...this.queryForm,...this.noPaged?{}:{pageSize:this.paged.pageSize,pageOffset:(this.paged.curPage-1)*this.paged.pageSize}};this.searchApi(u).then(e=>{const{data:{list:h,pageInfo:f}}=e;this.result=o?o(h):h,this.noPaged||(this.paged.total=(f==null?void 0:f.Total)||0)}).catch(e=>{console.error("Error fetching data:",e)}).finally(()=>{this.table.loading=!1})}}function we(d,o){return isNaN(d-o)?d.localeCompare(o):d-o}export{ke as S,Se as a,we as s}; diff --git a/app/dubbo-ui/dist/admin/assets/YAMLView-TcLqiDOf.js b/app/dubbo-ui/dist/admin/assets/YAMLView--IIYIIAz.js similarity index 90% rename from app/dubbo-ui/dist/admin/assets/YAMLView-TcLqiDOf.js rename to app/dubbo-ui/dist/admin/assets/YAMLView--IIYIIAz.js index 9c986363..f632d9d2 100644 --- a/app/dubbo-ui/dist/admin/assets/YAMLView-TcLqiDOf.js +++ b/app/dubbo-ui/dist/admin/assets/YAMLView--IIYIIAz.js @@ -1 +1 @@ -import{y as V,_ as Y}from"./js-yaml-eElisXzH.js";import{d as R,a as K,B as r,y as P,z as q,D as z,l as U,r as N,u as $,c as D,b as a,w as e,J as B,T as O,L as T,e as d,o as y,j as I,M as G,f as v,m as g,a4 as H,p as Q,h as W,_ as X}from"./index-3zDsduUv.js";import{k as Z,l as aa,m as ea}from"./traffic-dHGZ6qwp.js";import{V as ta}from"./ConfigModel-IgPiU3B2.js";import"./request-3an337VF.js";const b=m=>(Q("data-v-68fde8b4"),m=m(),W(),m),sa={class:"editorBox"},na=b(()=>I("p",null,"修改时间: 2024/3/20 15:20:31",-1)),oa=b(()=>I("p",null,"版本号: xo842xqpx834",-1)),la=R({__name:"YAMLView",setup(m){const _=K(),C=r(_.params.isEdit==="1"),h=r(!1),f=r(!1),A=r(8),p=P(q.PROVIDE_INJECT_KEY),u=r(),k=r(),S=r("");z(async()=>{await E()}),U(()=>k.value!==JSON.stringify(u.value));const t=N(new ta);async function E(){var s,l,i;if((s=p.dynamicConfigForm)!=null&&s.data)t.fromData(p.dynamicConfigForm.data);else{if(((l=_.params)==null?void 0:l.pathId)==="_tmp")C.value=!0,t.isAdd=!0;else{t.isAdd=!1;const c=await Z({name:(i=_.params)==null?void 0:i.pathId});t.fromApiOutput(c.data)}p.dynamicConfigForm=N({data:t})}const n=t.toApiInput();S.value=n.ruleName,n.ruleName=void 0;const o=V.dump(n);k.value=JSON.stringify(o),u.value=o}async function F(){f.value=!0;try{p.dynamicConfigForm.data=null,await E(),g.success("config reset success")}finally{f.value=!1}}const M=$();async function j(){var o;f.value=!0;let n=V.load(u.value);try{if(t.isAdd===!0){aa({name:t.basicInfo.key+".configurators"},n).then(l=>{p.dynamicConfigForm.data=null,H(()=>{M.replace("/traffic/dynamicConfig"),g.success("config add success")})}).catch(l=>{g.error("添加失败: "+l.msg)});return}let s=await ea({name:(o=_.params)==null?void 0:o.pathId},n);t.fromApiOutput(s.data),g.success("config save success")}finally{f.value=!1}}function J(n){t.fromApiOutput(V.load(u.value))}return(n,o)=>{const s=d("a-col"),l=d("a-row"),i=d("a-flex"),c=d("a-button"),x=d("a-card"),L=d("a-spin");return y(),D(T,null,[a(x,null,{default:e(()=>[a(L,{spinning:f.value},{default:e(()=>[a(i,{style:{width:"100%"}},{default:e(()=>[a(s,{span:h.value?24-A.value:24,class:"left"},{default:e(()=>[a(i,{vertical:"",align:"end"},{default:e(()=>[a(l,{style:{width:"100%"},justify:"space-between"},{default:e(()=>[a(s,{span:12}),a(s,{span:12})]),_:1}),I("div",sa,[a(Y,{modelValue:u.value,"onUpdate:modelValue":o[0]||(o[0]=w=>u.value=w),onChange:J,theme:"vs-dark",height:"calc(100vh - 450px)",language:"yaml",readonly:!C.value},null,8,["modelValue","readonly"])])]),_:1})]),_:1},8,["span"]),a(s,{span:h.value?A.value:0,class:"right"},{default:e(()=>[h.value?(y(),B(x,{key:0,class:"sliderBox"},{default:e(()=>[(y(),D(T,null,G(2,w=>a(x,{key:w},{default:e(()=>[na,oa,a(i,{justify:"flex-end"},{default:e(()=>[a(c,{type:"text",style:{color:"#0a90d5"}},{default:e(()=>[v("查看")]),_:1}),a(c,{type:"text",style:{color:"#0a90d5"}},{default:e(()=>[v("回滚")]),_:1})]),_:1})]),_:2},1024)),64))]),_:1})):O("",!0)]),_:1},8,["span"])]),_:1})]),_:1},8,["spinning"])]),_:1}),C.value?(y(),B(i,{key:0,style:{"margin-top":"30px"}},{default:e(()=>[a(c,{type:"primary",onClick:j},{default:e(()=>[v("保存")]),_:1}),a(c,{style:{"margin-left":"30px"},onClick:F},{default:e(()=>[v("重置")]),_:1})]),_:1})):O("",!0)],64)}}}),fa=X(la,[["__scopeId","data-v-68fde8b4"]]);export{fa as default}; +import{y as V,_ as Y}from"./js-yaml-EQlPfOK8.js";import{d as R,a as K,B as r,y as P,z as q,D as z,l as U,r as N,u as $,c as D,b as a,w as e,J as B,T as O,L as T,e as d,o as y,j as I,M as G,f as v,m as g,a4 as H,p as Q,h as W,_ as X}from"./index-VXjVsiiO.js";import{k as Z,l as aa,m as ea}from"./traffic-W0fp5Gf-.js";import{V as ta}from"./ConfigModel-28QrmMMG.js";import"./request-Cs8TyifY.js";const b=m=>(Q("data-v-68fde8b4"),m=m(),W(),m),sa={class:"editorBox"},na=b(()=>I("p",null,"修改时间: 2024/3/20 15:20:31",-1)),oa=b(()=>I("p",null,"版本号: xo842xqpx834",-1)),la=R({__name:"YAMLView",setup(m){const _=K(),C=r(_.params.isEdit==="1"),h=r(!1),f=r(!1),A=r(8),p=P(q.PROVIDE_INJECT_KEY),u=r(),k=r(),S=r("");z(async()=>{await E()}),U(()=>k.value!==JSON.stringify(u.value));const t=N(new ta);async function E(){var s,l,i;if((s=p.dynamicConfigForm)!=null&&s.data)t.fromData(p.dynamicConfigForm.data);else{if(((l=_.params)==null?void 0:l.pathId)==="_tmp")C.value=!0,t.isAdd=!0;else{t.isAdd=!1;const c=await Z({name:(i=_.params)==null?void 0:i.pathId});t.fromApiOutput(c.data)}p.dynamicConfigForm=N({data:t})}const n=t.toApiInput();S.value=n.ruleName,n.ruleName=void 0;const o=V.dump(n);k.value=JSON.stringify(o),u.value=o}async function F(){f.value=!0;try{p.dynamicConfigForm.data=null,await E(),g.success("config reset success")}finally{f.value=!1}}const M=$();async function j(){var o;f.value=!0;let n=V.load(u.value);try{if(t.isAdd===!0){aa({name:t.basicInfo.key+".configurators"},n).then(l=>{p.dynamicConfigForm.data=null,H(()=>{M.replace("/traffic/dynamicConfig"),g.success("config add success")})}).catch(l=>{g.error("添加失败: "+l.msg)});return}let s=await ea({name:(o=_.params)==null?void 0:o.pathId},n);t.fromApiOutput(s.data),g.success("config save success")}finally{f.value=!1}}function J(n){t.fromApiOutput(V.load(u.value))}return(n,o)=>{const s=d("a-col"),l=d("a-row"),i=d("a-flex"),c=d("a-button"),x=d("a-card"),L=d("a-spin");return y(),D(T,null,[a(x,null,{default:e(()=>[a(L,{spinning:f.value},{default:e(()=>[a(i,{style:{width:"100%"}},{default:e(()=>[a(s,{span:h.value?24-A.value:24,class:"left"},{default:e(()=>[a(i,{vertical:"",align:"end"},{default:e(()=>[a(l,{style:{width:"100%"},justify:"space-between"},{default:e(()=>[a(s,{span:12}),a(s,{span:12})]),_:1}),I("div",sa,[a(Y,{modelValue:u.value,"onUpdate:modelValue":o[0]||(o[0]=w=>u.value=w),onChange:J,theme:"vs-dark",height:"calc(100vh - 450px)",language:"yaml",readonly:!C.value},null,8,["modelValue","readonly"])])]),_:1})]),_:1},8,["span"]),a(s,{span:h.value?A.value:0,class:"right"},{default:e(()=>[h.value?(y(),B(x,{key:0,class:"sliderBox"},{default:e(()=>[(y(),D(T,null,G(2,w=>a(x,{key:w},{default:e(()=>[na,oa,a(i,{justify:"flex-end"},{default:e(()=>[a(c,{type:"text",style:{color:"#0a90d5"}},{default:e(()=>[v("查看")]),_:1}),a(c,{type:"text",style:{color:"#0a90d5"}},{default:e(()=>[v("回滚")]),_:1})]),_:1})]),_:2},1024)),64))]),_:1})):O("",!0)]),_:1},8,["span"])]),_:1})]),_:1},8,["spinning"])]),_:1}),C.value?(y(),B(i,{key:0,style:{"margin-top":"30px"}},{default:e(()=>[a(c,{type:"primary",onClick:j},{default:e(()=>[v("保存")]),_:1}),a(c,{style:{"margin-left":"30px"},onClick:F},{default:e(()=>[v("重置")]),_:1})]),_:1})):O("",!0)],64)}}}),fa=X(la,[["__scopeId","data-v-68fde8b4"]]);export{fa as default}; diff --git a/app/dubbo-ui/dist/admin/assets/YAMLView-s3WMf-Uo.js b/app/dubbo-ui/dist/admin/assets/YAMLView-j-cMdOnQ.js similarity index 90% rename from app/dubbo-ui/dist/admin/assets/YAMLView-s3WMf-Uo.js rename to app/dubbo-ui/dist/admin/assets/YAMLView-j-cMdOnQ.js index 0d3bc388..e158ae12 100644 --- a/app/dubbo-ui/dist/admin/assets/YAMLView-s3WMf-Uo.js +++ b/app/dubbo-ui/dist/admin/assets/YAMLView-j-cMdOnQ.js @@ -1,4 +1,4 @@ -import{y as D,_ as b}from"./js-yaml-eElisXzH.js";import{e as B}from"./traffic-dHGZ6qwp.js";import{d as C,a as L,B as u,D as R,J as r,w as e,e as c,o as s,b as a,f as p,t as I,n as x,aa as M,ab as N,j as f,c as S,M as A,L as T,T as O,p as Y,h as $,_ as j}from"./index-3zDsduUv.js";import"./request-3an337VF.js";const h=n=>(Y("data-v-4f1417af"),n=n(),$(),n),q={class:"editorBox"},E=h(()=>f("p",null,"修改时间: 2024/3/20 15:20:31",-1)),F=h(()=>f("p",null,"版本号: xo842xqpx834",-1)),J=C({__name:"YAMLView",setup(n){const k=L(),V=u(!0),t=u(!1),m=u(8),y=u(`configVersion: v3.0 +import{y as D,_ as b}from"./js-yaml-EQlPfOK8.js";import{e as B}from"./traffic-W0fp5Gf-.js";import{d as C,a as L,B as u,D as R,J as r,w as e,e as c,o as s,b as a,f as p,t as I,n as x,aa as M,ab as N,j as f,c as S,M as A,L as T,T as O,p as Y,h as $,_ as j}from"./index-VXjVsiiO.js";import"./request-Cs8TyifY.js";const h=n=>(Y("data-v-4f1417af"),n=n(),$(),n),q={class:"editorBox"},E=h(()=>f("p",null,"修改时间: 2024/3/20 15:20:31",-1)),F=h(()=>f("p",null,"版本号: xo842xqpx834",-1)),J=C({__name:"YAMLView",setup(n){const k=L(),V=u(!0),t=u(!1),m=u(8),y=u(`configVersion: v3.0 force: true enabled: true key: shop-detail diff --git a/app/dubbo-ui/dist/admin/assets/YAMLView-mXrxtewG.js b/app/dubbo-ui/dist/admin/assets/YAMLView-vlB4A6zH.js similarity index 91% rename from app/dubbo-ui/dist/admin/assets/YAMLView-mXrxtewG.js rename to app/dubbo-ui/dist/admin/assets/YAMLView-vlB4A6zH.js index d0128dea..9f961d83 100644 --- a/app/dubbo-ui/dist/admin/assets/YAMLView-mXrxtewG.js +++ b/app/dubbo-ui/dist/admin/assets/YAMLView-vlB4A6zH.js @@ -1 +1 @@ -import{y as b,_ as B}from"./js-yaml-eElisXzH.js";import{g as C}from"./traffic-dHGZ6qwp.js";import{d as R,a as $,B as _,D as A,J as m,w as a,e as f,o as c,b as t,f as y,t as L,n as k,aa as I,ab as M,j as g,c as S,M as O,L as Y,T as j,p as T,h as q,_ as E}from"./index-3zDsduUv.js";import"./request-3an337VF.js";const w=i=>(T("data-v-76e6a408"),i=i(),q(),i),F={class:"editorBox"},J=w(()=>g("p",null,"修改时间: 2024/3/20 15:20:31",-1)),P=w(()=>g("p",null,"版本号: xo842xqpx834",-1)),U=R({__name:"YAMLView",setup(i){const h=$(),D=_(!0),l=_(!1),V=_(8),v=_("");async function N(){var o,n;let e=await C((o=h.params)==null?void 0:o.ruleName);console.log(e),(e==null?void 0:e.code)===200&&e.data&&((n=h.params)!=null&&n.ruleName)&&e.data.scope==="service"&&(Array.isArray(e.data.conditions)&&(e.data.conditions=e.data.conditions.map(d=>{const s=d.split("=>");if(s.length===2){const r=s[0].trim();let x=s[1].trim();const u=x.match(/other\[(.*?)\]=(.*)/);return u&&u[1]&&u[2]&&(x=`${u[1]}=${u[2]}`),`${r} => ${x}`}return d})),v.value=b.dump(e.data))}return A(()=>{N()}),(e,o)=>{const n=f("a-button"),p=f("a-flex"),d=f("a-col"),s=f("a-card");return c(),m(s,null,{default:a(()=>[t(p,{style:{width:"100%"}},{default:a(()=>[t(d,{span:l.value?24-V.value:24,class:"left"},{default:a(()=>[t(p,{vertical:"",align:"end"},{default:a(()=>[t(n,{type:"text",style:{color:"#0a90d5"},onClick:o[0]||(o[0]=r=>l.value=!l.value)},{default:a(()=>[y(L(e.$t("flowControlDomain.versionRecords"))+" ",1),l.value?(c(),m(k(M),{key:1})):(c(),m(k(I),{key:0}))]),_:1}),g("div",F,[t(B,{modelValue:v.value,"onUpdate:modelValue":o[1]||(o[1]=r=>v.value=r),theme:"vs-dark",height:500,language:"yaml",readonly:D.value},null,8,["modelValue","readonly"])])]),_:1})]),_:1},8,["span"]),y(" Ï "),t(d,{span:l.value?V.value:0,class:"right"},{default:a(()=>[l.value?(c(),m(s,{key:0,class:"sliderBox"},{default:a(()=>[(c(),S(Y,null,O(2,r=>t(s,{key:r},{default:a(()=>[J,P,t(p,{justify:"flex-end"},{default:a(()=>[t(n,{type:"text",style:{color:"#0a90d5"}},{default:a(()=>[y("查看")]),_:1}),t(n,{type:"text",style:{color:"#0a90d5"}},{default:a(()=>[y("回滚")]),_:1})]),_:1})]),_:2},1024)),64))]),_:1})):j("",!0)]),_:1},8,["span"])]),_:1})]),_:1})}}}),Q=E(U,[["__scopeId","data-v-76e6a408"]]);export{Q as default}; +import{y as b,_ as B}from"./js-yaml-EQlPfOK8.js";import{g as C}from"./traffic-W0fp5Gf-.js";import{d as R,a as $,B as _,D as A,J as m,w as a,e as f,o as c,b as t,f as y,t as L,n as k,aa as I,ab as M,j as g,c as S,M as O,L as Y,T as j,p as T,h as q,_ as E}from"./index-VXjVsiiO.js";import"./request-Cs8TyifY.js";const w=i=>(T("data-v-76e6a408"),i=i(),q(),i),F={class:"editorBox"},J=w(()=>g("p",null,"修改时间: 2024/3/20 15:20:31",-1)),P=w(()=>g("p",null,"版本号: xo842xqpx834",-1)),U=R({__name:"YAMLView",setup(i){const h=$(),D=_(!0),l=_(!1),V=_(8),v=_("");async function N(){var o,n;let e=await C((o=h.params)==null?void 0:o.ruleName);console.log(e),(e==null?void 0:e.code)===200&&e.data&&((n=h.params)!=null&&n.ruleName)&&e.data.scope==="service"&&(Array.isArray(e.data.conditions)&&(e.data.conditions=e.data.conditions.map(d=>{const s=d.split("=>");if(s.length===2){const r=s[0].trim();let x=s[1].trim();const u=x.match(/other\[(.*?)\]=(.*)/);return u&&u[1]&&u[2]&&(x=`${u[1]}=${u[2]}`),`${r} => ${x}`}return d})),v.value=b.dump(e.data))}return A(()=>{N()}),(e,o)=>{const n=f("a-button"),p=f("a-flex"),d=f("a-col"),s=f("a-card");return c(),m(s,null,{default:a(()=>[t(p,{style:{width:"100%"}},{default:a(()=>[t(d,{span:l.value?24-V.value:24,class:"left"},{default:a(()=>[t(p,{vertical:"",align:"end"},{default:a(()=>[t(n,{type:"text",style:{color:"#0a90d5"},onClick:o[0]||(o[0]=r=>l.value=!l.value)},{default:a(()=>[y(L(e.$t("flowControlDomain.versionRecords"))+" ",1),l.value?(c(),m(k(M),{key:1})):(c(),m(k(I),{key:0}))]),_:1}),g("div",F,[t(B,{modelValue:v.value,"onUpdate:modelValue":o[1]||(o[1]=r=>v.value=r),theme:"vs-dark",height:500,language:"yaml",readonly:D.value},null,8,["modelValue","readonly"])])]),_:1})]),_:1},8,["span"]),y(" Ï "),t(d,{span:l.value?V.value:0,class:"right"},{default:a(()=>[l.value?(c(),m(s,{key:0,class:"sliderBox"},{default:a(()=>[(c(),S(Y,null,O(2,r=>t(s,{key:r},{default:a(()=>[J,P,t(p,{justify:"flex-end"},{default:a(()=>[t(n,{type:"text",style:{color:"#0a90d5"}},{default:a(()=>[y("查看")]),_:1}),t(n,{type:"text",style:{color:"#0a90d5"}},{default:a(()=>[y("回滚")]),_:1})]),_:1})]),_:2},1024)),64))]),_:1})):j("",!0)]),_:1},8,["span"])]),_:1})]),_:1})}}}),Q=E(U,[["__scopeId","data-v-76e6a408"]]);export{Q as default}; diff --git a/app/dubbo-ui/dist/admin/assets/addByFormView-suZAGsdv.js b/app/dubbo-ui/dist/admin/assets/addByFormView-34FuqdBQ.js similarity index 99% rename from app/dubbo-ui/dist/admin/assets/addByFormView-suZAGsdv.js rename to app/dubbo-ui/dist/admin/assets/addByFormView-34FuqdBQ.js index b50ef01e..e0b7f4ac 100644 --- a/app/dubbo-ui/dist/admin/assets/addByFormView-suZAGsdv.js +++ b/app/dubbo-ui/dist/admin/assets/addByFormView-34FuqdBQ.js @@ -1 +1 @@ -import{u as Ue}from"./index-HdnVQEsT.js";import{d as we,y as Re,z as De,D as Ke,H,k as Se,u as qe,B as W,r as Oe,F as le,c as F,b as e,w as l,e as K,o as v,f as C,J as _,n as j,aa as je,ab as Ee,T as q,L as J,M as X,j as G,t as A,I as z,p as Ae,h as ze,_ as Be}from"./index-3zDsduUv.js";import{a as Ve}from"./traffic-dHGZ6qwp.js";import"./request-3an337VF.js";const L=Y=>(Ae("data-v-d3c6be66"),Y=Y(),ze(),Y),Ne={class:"__container_routingRule_detail"},Ge={style:{"max-width":"400px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},me=L(()=>G("br",null,null,-1)),Pe=L(()=>G("br",null,null,-1)),We=L(()=>G("br",null,null,-1)),xe=L(()=>G("br",null,null,-1)),Fe=L(()=>G("br",null,null,-1)),Le=L(()=>G("br",null,null,-1)),Je=we({__name:"addByFormView",setup(Y){const E=Re(De.PROVIDE_INJECT_KEY);Ke(()=>{if(!H.isNil(E.conditionRule)){const{enabled:s=!0,key:t,scope:i,runtime:h=!0,conditions:$}=E.conditionRule;g.enable=s,g.objectOfAction=t,g.ruleGranularity=i,g.runtime=h,$&&$.length&&$.forEach((r,n)=>{var f,S;const k=r.split("=>"),o=(f=k[0])==null?void 0:f.trim(),M=(S=k[1])==null?void 0:S.trim();d.value[n].requestMatch=$e(o,n),d.value[n].routeDistribute=Te(M,n)})}if(!H.isNil(E.addConditionRuleSate)){const{version:s,group:t}=E.addConditionRuleSate;g.version=s,g.group=t}}),Se();const ae=qe(),x=W(!1),Z=W(8);Ue().toClipboard;const g=Oe({version:"",ruleGranularity:"",objectOfAction:"",enable:!0,faultTolerantProtection:!1,runtime:!0,priority:null,group:""});le(g,s=>{const{ruleGranularity:t,enable:i=!0,runtime:h=!0,objectOfAction:$}=s;E.conditionRule={...E.conditionRule,enabled:i,key:$,runtime:h,scope:t},E.addConditionRuleSate={version:s.version,group:s.group}},{immediate:!!H.isNil(E.conditionRule)});const ne=W([{label:"host",value:"host"},{label:"application",value:"application"},{label:"method",value:"method"},{label:"arguments",value:"arguments"},{label:"attachments",value:"attachments"},{label:"其他",value:"other"}]),se=W([{label:"host",value:"host"},{label:"其他",value:"other"}]),m=W([{label:"=",value:"="},{label:"!=",value:"!="}]),oe=W([{label:"应用",value:"application"},{label:"服务",value:"service"}]),d=W([{selectedMatchConditionTypes:[],requestMatch:[],selectedRouteDistributeMatchTypes:[],routeDistribute:[{type:"host",condition:"",value:""},{type:"other",list:[{myKey:"",condition:"",value:""}]}]}]);le(d,s=>{E.conditionRule={...E.conditionRule,conditions:te()}},{deep:!0,immediate:!!H.isNil(E.conditionRule)});const ie=()=>{d.value.push({selectedMatchConditionTypes:[],requestMatch:[],selectedRouteDistributeMatchTypes:[],routeDistribute:[{type:"host",condition:"=",value:"127.0.0.1"},{type:"other",list:[{myKey:"key",condition:"=",value:"value"}]}]})},ue=s=>{d.value.splice(s,1)},ce=s=>{d.value[s].requestMatch=[],d.value[s].selectedMatchConditionTypes=[]},de=s=>{d.value[s].requestMatch=[{type:"host",condition:"",value:""},{type:"application",condition:"",value:""},{type:"method",condition:"",value:""},{type:"arguments",list:[{index:0,condition:"",value:""}]},{type:"attachments",list:[{myKey:"key",condition:"",value:""}]},{type:"other",list:[{myKey:"key",condition:"",value:""}]}]},Q=(s,t)=>{d.value[t].selectedMatchConditionTypes=d.value[t].selectedMatchConditionTypes.filter(i=>i!==s)},re=(s,t)=>{d.value[t].selectedRouteDistributeMatchTypes=d.value[t].selectedRouteDistributeMatchTypes.filter(i=>i!==s)},pe=[{dataIndex:"index",key:"index",title:"参数索引"},{dataIndex:"condition",key:"condition",title:"关系"},{dataIndex:"value",key:"value",title:"值"},{dataIndex:"operation",key:"operation",title:"操作"}],ve=(s,t)=>{d.value[s].requestMatch[t].list.push({index:0,condition:"=",value:""})},ye=(s,t,i)=>{d.value[s].requestMatch[t].list.length===1&&(d.value[s].selectedMatchConditionTypes=d.value[s].selectedMatchConditionTypes.filter(h=>h!=="arguments")),d.value[s].requestMatch[t].list.splice(i,1)},he=[{dataIndex:"myKey",key:"myKey",title:"键"},{dataIndex:"condition",key:"condition",title:"关系"},{dataIndex:"value",key:"value",title:"值"},{dataIndex:"operation",key:"operation",title:"操作"}],fe=(s,t)=>{d.value[s].requestMatch[t].list.push({key:"key",condition:"=",value:""})},_e=(s,t,i)=>{d.value[s].requestMatch[t].list.length===1&&(d.value[s].selectedMatchConditionTypes=d.value[s].selectedMatchConditionTypes.filter(h=>h!=="attachments")),d.value[s].requestMatch[t].list.splice(i,1)},I=[{dataIndex:"myKey",key:"myKey",title:"键"},{dataIndex:"condition",key:"condition",title:"关系"},{dataIndex:"value",key:"value",title:"值"},{dataIndex:"operation",key:"operation",title:"操作"}],ke=(s,t)=>{d.value[s].requestMatch[t].list.push({myKey:"",condition:"=",value:""})},be=(s,t,i)=>{if(d.value[s].requestMatch[t].list.length===1){d.value[s].selectedMatchConditionTypes=d.value[s].selectedMatchConditionTypes.filter(h=>h!=="other");return}d.value[s].requestMatch[t].list.splice(i,1)},ge=(s,t)=>{d.value[s].routeDistribute[t].list.push({myKey:"",condition:"=",value:""})},Ce=(s,t,i)=>{if(d.value[s].routeDistribute[t].list.length===1){d.value[s].selectedRouteDistributeMatchTypes=d.value[s].selectedRouteDistributeMatchTypes.filter(h=>h!=="other");return}d.value[s].routeDistribute[t].list.splice(i,1)};function ee(s){var f,S;const t=d.value[s],{ruleGranularity:i,objectOfAction:h}=g;let r=`对于${i==="service"?"服务":"应用"}【${h||"未指定"}】`,n=[];(f=t.selectedMatchConditionTypes)==null||f.forEach(U=>{var V,P,p,b;const R=(V=t.requestMatch)==null?void 0:V.find(a=>a.type===U);if(!R)return;let y="";const O=R.condition==="="?"等于":R.condition==="!="?"不等于":R.condition||"",B=R.value||"未指定";switch(U){case"host":y=`请求来源主机 ${O} ${B}`;break;case"application":y=`请求来源应用 ${O} ${B}`;break;case"method":y=`请求方法 ${O} ${B}`;break;case"arguments":const a=(P=R.list)==null?void 0:P.map(u=>{const N=u.condition==="="?"等于":u.condition==="!="?"不等于":u.condition||"",D=u.value!==void 0&&u.value!==""?u.value:"未指定";return`参数[${u.index}] ${N} ${D}`}).filter(Boolean);(a==null?void 0:a.length)>0&&(y=a.join(" 且 "));break;case"attachments":const T=(p=R.list)==null?void 0:p.map(u=>{const N=u.condition==="="?"等于":u.condition==="!="?"不等于":u.condition||"",D=u.value!==void 0&&u.value!==""?u.value:"未指定";return`附件[${u.myKey||"未指定"}] ${N} ${D}`}).filter(Boolean);(T==null?void 0:T.length)>0&&(y=T.join(" 且 "));break;case"other":const c=(b=R.list)==null?void 0:b.map(u=>{const N=u.condition==="="?"等于":u.condition==="!="?"不等于":u.condition||"",D=u.value!==void 0&&u.value!==""?u.value:"未指定";return`自定义匹配[${u.myKey||"未指定"}] ${N} ${D}`}).filter(Boolean);(c==null?void 0:c.length)>0&&(y=c.join(" 且 "));break}y&&((U==="host"||U==="application"||U==="method")&&!R.value?n.push(`${U==="host"?"请求来源主机":U==="application"?"请求来源应用":"请求方法"} 未填写`):n.push(y))});const k=n.length>0?n.join(" 且 "):"任意请求";let o=[];(S=t.selectedRouteDistributeMatchTypes)==null||S.forEach(U=>{var V,P;const R=(V=t.routeDistribute)==null?void 0:V.find(p=>p.type===U);if(!R)return;let y="";const O=R.condition==="="?"等于":R.condition==="!="?"不等于":R.condition||"",B=R.value||"未指定";switch(U){case"host":y=`目标主机 ${O} ${B}`;break;case"other":const p=(P=R.list)==null?void 0:P.map(b=>{const a=b.condition==="="?"等于":b.condition==="!="?"不等于":b.condition||"",T=b.value!==void 0&&b.value!==""?b.value:"未指定";return`目标标签[${b.myKey||"未指定"}] ${a} ${T}`}).filter(Boolean);(p==null?void 0:p.length)>0&&(y=p.join(" 且 "));break}y&&(U==="host"&&!R.value?o.push("目标主机 未填写"):o.push(y))});const M=o.length>0?`满足 【${o.join(" 且 ")}】`:"默认路由规则";return`${r},将满足 【${k}】 条件的请求,转发到 ${M} 的实例。`}function te(){let s=[],t="",i="";return d.value.forEach((h,$)=>{h.selectedMatchConditionTypes.forEach((n,k)=>{h.requestMatch.forEach((o,M)=>{if(n==(o==null?void 0:o.type))switch(o==null?void 0:o.type){case"arguments":o.list.forEach((f,S)=>{t.length>0&&(t+=" & "),t+=`${n}[${f.index}]${f.condition}${f.value}`});break;case"attachments":o.list.forEach((f,S)=>{t.length>0&&(t+=" & "),t+=`${n}[${f.myKey}]${f.condition}${f.value}`});break;case"other":o.list.forEach((f,S)=>{t.length>0&&(t+=" & "),t+=`${f.myKey}${f.condition}${f.value}`});break;default:t.length>0&&(t+=" & "),t+=`${o.type}${o.condition}${o.value}`}})}),h.selectedRouteDistributeMatchTypes.forEach((n,k)=>{h.routeDistribute.forEach((o,M)=>{if(n==(o==null?void 0:o.type))switch(o==null?void 0:o.type){case"other":o==null||o.list.forEach((f,S)=>{i.length>0&&(i+=" & "),i+=`${f.myKey}${f.condition}${f.value}`});break;default:i.length>0&&(i+=" & "),i+=`${o.type}${o.condition}${o.value}`}})});let r="";t.length>0&&i.length>0?r=`${t} => ${i}`:t.length>0&&i.length==0&&(r=`${t}`),s.push(r)}),s}const Me=async()=>{const{version:s,ruleGranularity:t,objectOfAction:i,enable:h,faultTolerantProtection:$,runtime:r,group:n}=g,k={configVersion:"v3.0",scope:t,key:i,enabled:h,force:$,runtime:r,conditions:te()};let o="";t=="application"?o=`${i}.condition-router`:o=`${i}:${s||""}:${n||""}.condition-router`,(await Ve(o,k)).code===200&&ae.push("/traffic/routingRule")};function $e(s,t){const i=[],h=s.split(" & ");return[{type:"host",condition:"",value:""},{type:"application",condition:"",value:""},{type:"method",condition:"",value:""},{type:"arguments",list:[]},{type:"attachments",list:[]},{type:"other",list:[]}].forEach(r=>i.push({...r})),h.forEach(r=>{if(r=r.trim(),r.startsWith("host")){d.value[t].selectedMatchConditionTypes.push("host");const n=r.match(/^host(!=|=)(.+)/);if(n){const k=n[1],o=n[2].trim(),M=i.find(f=>f.type==="host");M.condition=k,M.value=o}}else if(r.startsWith("application")){d.value[t].selectedMatchConditionTypes.push("application");const n=r.match(/^application(!=|=)(.+)/);if(n){const k=n[1],o=n[2].trim(),M=i.find(f=>f.type==="application");M.condition=k,M.value=o}}else if(r.startsWith("method")){d.value[t].selectedMatchConditionTypes.push("method");const n=r.match(/^method(!=|=)(.+)/);if(n){const k=n[1],o=n[2].trim(),M=i.find(f=>f.type==="method");M.condition=k,M.value=o}}else if(r.startsWith("arguments")){!d.value[t].selectedMatchConditionTypes.includes("arguments")&&d.value[t].selectedMatchConditionTypes.push("arguments");const n=r.match(/^arguments\[(\d+)\](!=|=)(.+)/);if(n){const k=parseInt(n[1],10),o=n[2],M=n[3].trim();i.find(S=>S.type==="arguments").list.push({index:k,condition:o,value:M})}}else if(r.startsWith("attachments")){!d.value[t].selectedMatchConditionTypes.includes("attachments")&&d.value[t].selectedMatchConditionTypes.push("attachments");const n=r.match(/^attachments\[(.+)\](!=|=)(.+)/);if(n){const k=n[1].trim(),o=n[2],M=n[3].trim();i.find(S=>S.type==="attachments").list.push({myKey:k,condition:o,value:M})}}else{const n=r.match(/^([^!=]+)(!?=)(.+)$/);if(n){!d.value[t].selectedMatchConditionTypes.includes("other")&&d.value[t].selectedMatchConditionTypes.push("other");const k=i.find(o=>o.type==="other");k&&k.list.push({myKey:n[1].trim(),condition:n[2],value:n[3].trim()})}}}),i}function Te(s,t){const i=[],h=s==null?void 0:s.split(" & ");return[{type:"host",condition:"",value:""},{type:"other",list:[]}].forEach(r=>i.push({...r})),h!=null&&h.length&&h.forEach(r=>{if(r=r.trim(),r.startsWith("host")){d.value[t].selectedRouteDistributeMatchTypes.push("host");const n=r.match(/^host(!=|=)(.+)/);if(n){const k=n[1],o=n[2].trim(),M=i.find(f=>f.type==="host");M.condition=k,M.value=o}}else{const n=r.match(/^([^!=]+)(!?=)(.+)$/);if(n){!d.value[t].selectedRouteDistributeMatchTypes.includes("other")&&d.value[t].selectedRouteDistributeMatchTypes.push("other");const k=i.find(o=>o.type==="other");k&&k.list.push({myKey:n[1].trim(),condition:n[2],value:n[3].trim()})}}}),i}return(s,t)=>{const i=K("a-button"),h=K("a-flex"),$=K("a-select"),r=K("a-form-item"),n=K("a-input"),k=K("a-switch"),o=K("a-col"),M=K("a-input-number"),f=K("a-row"),S=K("a-form"),U=K("a-card"),R=K("a-tooltip"),y=K("a-space"),O=K("a-tag"),B=K("a-table"),V=K("a-descriptions-item"),P=K("a-descriptions");return v(),F("div",Ne,[e(h,{style:{width:"100%"}},{default:l(()=>[e(o,{span:x.value?24-Z.value:24,class:"left"},{default:l(()=>[e(U,null,{default:l(()=>[e(y,{style:{width:"100%"},direction:"vertical",size:"middle"},{default:l(()=>[e(f,null,{default:l(()=>[e(h,{justify:"end",style:{width:"100%"}},{default:l(()=>[e(i,{type:"text",style:{color:"#0a90d5"},onClick:t[0]||(t[0]=p=>x.value=!x.value)},{default:l(()=>[C(" 字段说明 "),x.value?(v(),_(j(Ee),{key:1})):(v(),_(j(je),{key:0}))]),_:1})]),_:1}),e(U,{title:"基础信息",style:{width:"100%"},class:"_detail"},{default:l(()=>[e(S,{layout:"horizontal"},{default:l(()=>[e(f,{style:{width:"100%"}},{default:l(()=>[e(o,{span:12},{default:l(()=>[e(r,{label:"规则粒度",required:""},{default:l(()=>[e($,{value:g.ruleGranularity,"onUpdate:value":t[1]||(t[1]=p=>g.ruleGranularity=p),style:{width:"120px"},options:oe.value},null,8,["value","options"])]),_:1}),g.ruleGranularity==="service"?(v(),_(r,{key:0,label:"版本",required:""},{default:l(()=>[e(n,{value:g.version,"onUpdate:value":t[2]||(t[2]=p=>g.version=p),style:{width:"300px"}},null,8,["value"])]),_:1})):q("",!0),e(r,{label:"容错保护"},{default:l(()=>[e(k,{checked:g.faultTolerantProtection,"onUpdate:checked":t[3]||(t[3]=p=>g.faultTolerantProtection=p),"checked-children":"开","un-checked-children":"关"},null,8,["checked"])]),_:1}),e(r,{label:"运行时生效"},{default:l(()=>[e(k,{checked:g.runtime,"onUpdate:checked":t[4]||(t[4]=p=>g.runtime=p),"checked-children":"开","un-checked-children":"关"},null,8,["checked"])]),_:1})]),_:1}),e(o,{span:12},{default:l(()=>[e(r,{label:"作用对象",required:""},{default:l(()=>[e(n,{value:g.objectOfAction,"onUpdate:value":t[5]||(t[5]=p=>g.objectOfAction=p),style:{width:"300px"}},null,8,["value"])]),_:1}),g.ruleGranularity==="service"?(v(),_(r,{key:0,label:"分组",required:""},{default:l(()=>[e(n,{value:g.group,"onUpdate:value":t[6]||(t[6]=p=>g.group=p),style:{width:"300px"}},null,8,["value"])]),_:1})):q("",!0),e(r,{label:"立即启用"},{default:l(()=>[e(k,{checked:g.enable,"onUpdate:checked":t[7]||(t[7]=p=>g.enable=p),"checked-children":"开","un-checked-children":"关"},null,8,["checked"])]),_:1}),e(r,{label:"优先级"},{default:l(()=>[e(M,{value:g.priority,"onUpdate:value":t[8]||(t[8]=p=>g.priority=p),min:"1"},null,8,["value"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),e(U,{title:"路由列表",style:{width:"100%"},class:"_detail"},{default:l(()=>[(v(!0),F(J,null,X(d.value,(p,b)=>(v(),_(U,null,{title:l(()=>[e(h,{justify:"space-between"},{default:l(()=>[e(y,{align:"center"},{default:l(()=>[G("div",null,"路由【"+A(b+1)+"】",1),e(R,null,{title:l(()=>[C(A(ee(b)),1)]),default:l(()=>[G("div",Ge,A(ee(b)),1)]),_:2},1024)]),_:2},1024),e(j(z),{onClick:a=>ue(b),class:"action-icon",icon:"tdesign:delete"},null,8,["onClick"])]),_:2},1024)]),default:l(()=>[e(S,{layout:"horizontal"},{default:l(()=>[e(y,{style:{width:"100%"},direction:"vertical",size:"large"},{default:l(()=>[e(r,{label:"请求匹配"},{default:l(()=>[p.requestMatch.length>0?(v(),_(U,{key:0},{default:l(()=>[e(y,{style:{width:"100%"},direction:"vertical",size:"small"},{default:l(()=>[e(h,{align:"center",justify:"space-between"},{default:l(()=>[e(r,{label:"匹配条件类型"},{default:l(()=>[e($,{value:p.selectedMatchConditionTypes,"onUpdate:value":a=>p.selectedMatchConditionTypes=a,options:ne.value,mode:"multiple",style:{"min-width":"200px"}},null,8,["value","onUpdate:value","options"])]),_:2},1024),e(j(z),{onClick:a=>ce(b),class:"action-icon",icon:"tdesign:delete"},null,8,["onClick"])]),_:2},1024),(v(!0),F(J,null,X(p.requestMatch,(a,T)=>(v(),F(J,null,[p.selectedMatchConditionTypes.includes("host")&&a.type==="host"?(v(),_(y,{key:0,size:"large",align:"center"},{default:l(()=>[e(O,{class:"match-condition-type-label",bordered:!1,color:"processing"},{default:l(()=>[C(A(a==null?void 0:a.type),1)]),_:2},1024),e($,{value:a.condition,"onUpdate:value":c=>a.condition=c,style:{"min-width":"120px"},options:m.value},null,8,["value","onUpdate:value","options"]),e(n,{value:a.value,"onUpdate:value":c=>a.value=c,placeholder:"请求来源ip"},null,8,["value","onUpdate:value"]),e(j(z),{onClick:c=>Q(a==null?void 0:a.type,b),class:"action-icon",icon:"tdesign:delete"},null,8,["onClick"])]),_:2},1024)):q("",!0),p.selectedMatchConditionTypes.includes("application")&&a.type==="application"?(v(),_(y,{key:1,size:"large",align:"center"},{default:l(()=>[e(O,{class:"match-condition-type-label",bordered:!1,color:"processing"},{default:l(()=>[C(A(a==null?void 0:a.type),1)]),_:2},1024),e($,{value:a.condition,"onUpdate:value":c=>a.condition=c,style:{"min-width":"120px"},options:m.value},null,8,["value","onUpdate:value","options"]),e(n,{value:a.value,"onUpdate:value":c=>a.value=c,placeholder:"请求来源应用名"},null,8,["value","onUpdate:value"]),e(j(z),{onClick:c=>Q(a==null?void 0:a.type,b),class:"action-icon",icon:"tdesign:delete"},null,8,["onClick"])]),_:2},1024)):q("",!0),p.selectedMatchConditionTypes.includes("method")&&a.type==="method"?(v(),_(y,{key:2,size:"large",align:"center"},{default:l(()=>[e(O,{class:"match-condition-type-label",bordered:!1,color:"processing"},{default:l(()=>[C(A(a==null?void 0:a.type),1)]),_:2},1024),e($,{value:a.condition,"onUpdate:value":c=>a.condition=c,style:{"min-width":"120px"},options:m.value},null,8,["value","onUpdate:value","options"]),e(n,{value:a.value,"onUpdate:value":c=>a.value=c,placeholder:"方法值"},null,8,["value","onUpdate:value"]),e(j(z),{onClick:c=>Q(a==null?void 0:a.type,b),class:"action-icon",icon:"tdesign:delete"},null,8,["onClick"])]),_:2},1024)):q("",!0),p.selectedMatchConditionTypes.includes("arguments")&&a.type==="arguments"?(v(),_(y,{key:3,style:{width:"100%"},size:"large",align:"start"},{default:l(()=>[e(O,{class:"match-condition-type-label",bordered:!1,color:"processing"},{default:l(()=>[C(A(a==null?void 0:a.type),1)]),_:2},1024),e(y,{direction:"vertical"},{default:l(()=>[e(i,{type:"primary",onClick:c=>ve(b,T)},{default:l(()=>[C(" 添加argument ")]),_:2},1032,["onClick"]),e(B,{pagination:!1,columns:pe,"data-source":p.requestMatch[T].list},{bodyCell:l(({column:c,record:u,text:N,index:D})=>[c.key==="index"?(v(),_(n,{key:0,value:u.index,"onUpdate:value":w=>u.index=w,placeholder:"index"},null,8,["value","onUpdate:value"])):c.key==="condition"?(v(),_($,{key:1,value:u.condition,"onUpdate:value":w=>u.condition=w,options:m.value},null,8,["value","onUpdate:value","options"])):c.key==="value"?(v(),_(n,{key:2,value:u.value,"onUpdate:value":w=>u.value=w,placeholder:"value"},null,8,["value","onUpdate:value"])):c.key==="operation"?(v(),_(y,{key:3,align:"center"},{default:l(()=>[e(j(z),{onClick:w=>ye(b,T,D),icon:"tdesign:remove",class:"action-icon"},null,8,["onClick"])]),_:2},1024)):q("",!0)]),_:2},1032,["data-source"])]),_:2},1024)]),_:2},1024)):q("",!0),p.selectedMatchConditionTypes.includes("attachments")&&a.type==="attachments"?(v(),_(y,{key:4,style:{width:"100%"},size:"large",align:"start"},{default:l(()=>[e(O,{class:"match-condition-type-label",bordered:!1,color:"processing"},{default:l(()=>[C(A(a==null?void 0:a.type),1)]),_:2},1024),e(y,{direction:"vertical"},{default:l(()=>[e(i,{type:"primary",onClick:c=>fe(b,T)},{default:l(()=>[C(" 添加attachment ")]),_:2},1032,["onClick"]),e(B,{pagination:!1,columns:he,"data-source":p.requestMatch[T].list},{bodyCell:l(({column:c,record:u,text:N,index:D})=>[c.key==="myKey"?(v(),_(n,{key:0,value:u.myKey,"onUpdate:value":w=>u.myKey=w,placeholder:"key"},null,8,["value","onUpdate:value"])):c.key==="condition"?(v(),_($,{key:1,value:u.condition,"onUpdate:value":w=>u.condition=w,options:m.value},null,8,["value","onUpdate:value","options"])):c.key==="value"?(v(),_(n,{key:2,value:u.value,"onUpdate:value":w=>u.value=w,placeholder:"value"},null,8,["value","onUpdate:value"])):c.key==="operation"?(v(),_(y,{key:3,align:"center"},{default:l(()=>[e(j(z),{onClick:w=>_e(b,T,D),icon:"tdesign:remove",class:"action-icon"},null,8,["onClick"])]),_:2},1024)):q("",!0)]),_:2},1032,["data-source"])]),_:2},1024)]),_:2},1024)):q("",!0),p.selectedMatchConditionTypes.includes("other")&&a.type==="other"?(v(),_(y,{key:5,style:{width:"100%"},size:"large",align:"start"},{default:l(()=>[e(O,{class:"match-condition-type-label",bordered:!1,color:"processing"},{default:l(()=>[C(A((a==null?void 0:a.type)=="other"?"其他":a==null?void 0:a.type),1)]),_:2},1024),e(y,{direction:"vertical"},{default:l(()=>[e(i,{type:"primary",onClick:c=>ke(b,T)},{default:l(()=>[C(" 添加other ")]),_:2},1032,["onClick"]),e(B,{pagination:!1,columns:I,"data-source":p.requestMatch[T].list},{bodyCell:l(({column:c,record:u,text:N})=>[c.key==="myKey"?(v(),_(n,{key:0,value:u.myKey,"onUpdate:value":D=>u.myKey=D,placeholder:"key"},null,8,["value","onUpdate:value"])):c.key==="condition"?(v(),_($,{key:1,value:u.condition,"onUpdate:value":D=>u.condition=D,options:m.value},null,8,["value","onUpdate:value","options"])):c.key==="value"?(v(),_(n,{key:2,value:u.value,"onUpdate:value":D=>u.value=D,placeholder:"value"},null,8,["value","onUpdate:value"])):c.key==="operation"?(v(),_(y,{key:3,align:"center"},{default:l(()=>[e(j(z),{onClick:D=>be(b,T,u.index),icon:"tdesign:remove",class:"action-icon"},null,8,["onClick"])]),_:2},1024)):q("",!0)]),_:2},1032,["data-source"])]),_:2},1024)]),_:2},1024)):q("",!0)],64))),256))]),_:2},1024)]),_:2},1024)):(v(),_(i,{key:1,onClick:a=>de(b),type:"dashed",size:"large"},{icon:l(()=>[e(j(z),{icon:"tdesign:add"})]),default:l(()=>[C(" 增加匹配条件 ")]),_:2},1032,["onClick"]))]),_:2},1024),e(r,{label:"路由分发",required:""},{default:l(()=>[e(U,null,{default:l(()=>[e(y,{style:{width:"100%"},direction:"vertical",size:"small"},{default:l(()=>[e(h,null,{default:l(()=>[e(r,{label:"匹配条件类型"},{default:l(()=>[e($,{value:p.selectedRouteDistributeMatchTypes,"onUpdate:value":a=>p.selectedRouteDistributeMatchTypes=a,options:se.value,mode:"multiple",style:{"min-width":"200px"}},null,8,["value","onUpdate:value","options"])]),_:2},1024)]),_:2},1024),(v(!0),F(J,null,X(p.routeDistribute,(a,T)=>(v(),F(J,{key:T},[p.selectedRouteDistributeMatchTypes.includes("host")&&a.type==="host"?(v(),_(y,{key:0,size:"large",align:"center"},{default:l(()=>[e(O,{class:"match-condition-type-label",bordered:!1,color:"processing"},{default:l(()=>[C(A(a==null?void 0:a.type),1)]),_:2},1024),e($,{value:a.condition,"onUpdate:value":c=>a.condition=c,style:{"min-width":"120px"},options:m.value},null,8,["value","onUpdate:value","options"]),e(n,{value:a.value,"onUpdate:value":c=>a.value=c,placeholder:"请求来源ip"},null,8,["value","onUpdate:value"]),e(j(z),{onClick:c=>re(a==null?void 0:a.type,b),class:"action-icon",icon:"tdesign:delete"},null,8,["onClick"])]),_:2},1024)):q("",!0),p.selectedRouteDistributeMatchTypes.includes("other")&&a.type==="other"?(v(),_(y,{key:1,style:{width:"100%"},size:"large",align:"start"},{default:l(()=>[e(O,{class:"match-condition-type-label",bordered:!1,color:"processing"},{default:l(()=>[C(A((a==null?void 0:a.type)=="other"?"其他":a==null?void 0:a.type),1)]),_:2},1024),e(y,{direction:"vertical"},{default:l(()=>[e(i,{type:"primary",onClick:c=>ge(b,T)},{default:l(()=>[C(" 添加其他 ")]),_:2},1032,["onClick"]),e(B,{pagination:!1,columns:I,"data-source":p.routeDistribute[T].list},{bodyCell:l(({column:c,record:u,text:N,index:D})=>[c.key==="myKey"?(v(),_(n,{key:0,value:u.myKey,"onUpdate:value":w=>u.myKey=w,placeholder:"key"},null,8,["value","onUpdate:value"])):c.key==="condition"?(v(),_($,{key:1,value:u.condition,"onUpdate:value":w=>u.condition=w,options:m.value},null,8,["value","onUpdate:value","options"])):c.key==="value"?(v(),_(n,{key:2,value:u.value,"onUpdate:value":w=>u.value=w,placeholder:"value"},null,8,["value","onUpdate:value"])):c.key==="operation"?(v(),_(y,{key:3,align:"center"},{default:l(()=>[e(j(z),{onClick:w=>Ce(b,T,D),icon:"tdesign:remove",class:"action-icon"},null,8,["onClick"])]),_:2},1024)):q("",!0)]),_:2},1032,["data-source"])]),_:2},1024)]),_:2},1024)):q("",!0)],64))),128))]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024))),256))]),_:1}),e(i,{onClick:ie,type:"primary"},{default:l(()=>[C(" 增加路由")]),_:1})]),_:1})]),_:1})]),_:1},8,["span"]),e(o,{span:x.value?Z.value:0,class:"right"},{default:l(()=>[x.value?(v(),_(U,{key:0,class:"sliderBox"},{default:l(()=>[G("div",null,[e(P,{title:"字段说明",column:1},{default:l(()=>[e(V,{label:"key"},{default:l(()=>[C(" 作用对象"),me,C(" 可能的值:Dubbo应用名或者服务名 ")]),_:1}),e(V,{label:"scope"},{default:l(()=>[C(" 规则粒度"),Pe,C(" 可能的值:application, service ")]),_:1}),e(V,{label:"force"},{default:l(()=>[C(" 容错保护"),We,C(" 可能的值:true, false"),xe,C(" 描述:如果为true,则路由筛选后若没有可用的地址则会直接报异常;如果为false,则会从可用地址中选择完成RPC调用 ")]),_:1}),e(V,{label:"runtime"},{default:l(()=>[C(" 运行时生效"),Fe,C(" 可能的值:true, false"),Le,C(" 描述:如果为true,则该rule下的所有路由将会实时生效;若为false,则只有在启动时才会生效 ")]),_:1})]),_:1})])]),_:1})):q("",!0)]),_:1},8,["span"])]),_:1}),e(U,{class:"footer"},{default:l(()=>[e(h,null,{default:l(()=>[e(i,{type:"primary",onClick:Me},{default:l(()=>[C("确认")]),_:1})]),_:1})]),_:1})])}}}),Ze=Be(Je,[["__scopeId","data-v-d3c6be66"]]);export{Ze as default}; +import{u as Ue}from"./index-Y8bti_iA.js";import{d as we,y as Re,z as De,D as Ke,H,k as Se,u as qe,B as W,r as Oe,F as le,c as F,b as e,w as l,e as K,o as v,f as C,J as _,n as j,aa as je,ab as Ee,T as q,L as J,M as X,j as G,t as A,I as z,p as Ae,h as ze,_ as Be}from"./index-VXjVsiiO.js";import{a as Ve}from"./traffic-W0fp5Gf-.js";import"./request-Cs8TyifY.js";const L=Y=>(Ae("data-v-d3c6be66"),Y=Y(),ze(),Y),Ne={class:"__container_routingRule_detail"},Ge={style:{"max-width":"400px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},me=L(()=>G("br",null,null,-1)),Pe=L(()=>G("br",null,null,-1)),We=L(()=>G("br",null,null,-1)),xe=L(()=>G("br",null,null,-1)),Fe=L(()=>G("br",null,null,-1)),Le=L(()=>G("br",null,null,-1)),Je=we({__name:"addByFormView",setup(Y){const E=Re(De.PROVIDE_INJECT_KEY);Ke(()=>{if(!H.isNil(E.conditionRule)){const{enabled:s=!0,key:t,scope:i,runtime:h=!0,conditions:$}=E.conditionRule;g.enable=s,g.objectOfAction=t,g.ruleGranularity=i,g.runtime=h,$&&$.length&&$.forEach((r,n)=>{var f,S;const k=r.split("=>"),o=(f=k[0])==null?void 0:f.trim(),M=(S=k[1])==null?void 0:S.trim();d.value[n].requestMatch=$e(o,n),d.value[n].routeDistribute=Te(M,n)})}if(!H.isNil(E.addConditionRuleSate)){const{version:s,group:t}=E.addConditionRuleSate;g.version=s,g.group=t}}),Se();const ae=qe(),x=W(!1),Z=W(8);Ue().toClipboard;const g=Oe({version:"",ruleGranularity:"",objectOfAction:"",enable:!0,faultTolerantProtection:!1,runtime:!0,priority:null,group:""});le(g,s=>{const{ruleGranularity:t,enable:i=!0,runtime:h=!0,objectOfAction:$}=s;E.conditionRule={...E.conditionRule,enabled:i,key:$,runtime:h,scope:t},E.addConditionRuleSate={version:s.version,group:s.group}},{immediate:!!H.isNil(E.conditionRule)});const ne=W([{label:"host",value:"host"},{label:"application",value:"application"},{label:"method",value:"method"},{label:"arguments",value:"arguments"},{label:"attachments",value:"attachments"},{label:"其他",value:"other"}]),se=W([{label:"host",value:"host"},{label:"其他",value:"other"}]),m=W([{label:"=",value:"="},{label:"!=",value:"!="}]),oe=W([{label:"应用",value:"application"},{label:"服务",value:"service"}]),d=W([{selectedMatchConditionTypes:[],requestMatch:[],selectedRouteDistributeMatchTypes:[],routeDistribute:[{type:"host",condition:"",value:""},{type:"other",list:[{myKey:"",condition:"",value:""}]}]}]);le(d,s=>{E.conditionRule={...E.conditionRule,conditions:te()}},{deep:!0,immediate:!!H.isNil(E.conditionRule)});const ie=()=>{d.value.push({selectedMatchConditionTypes:[],requestMatch:[],selectedRouteDistributeMatchTypes:[],routeDistribute:[{type:"host",condition:"=",value:"127.0.0.1"},{type:"other",list:[{myKey:"key",condition:"=",value:"value"}]}]})},ue=s=>{d.value.splice(s,1)},ce=s=>{d.value[s].requestMatch=[],d.value[s].selectedMatchConditionTypes=[]},de=s=>{d.value[s].requestMatch=[{type:"host",condition:"",value:""},{type:"application",condition:"",value:""},{type:"method",condition:"",value:""},{type:"arguments",list:[{index:0,condition:"",value:""}]},{type:"attachments",list:[{myKey:"key",condition:"",value:""}]},{type:"other",list:[{myKey:"key",condition:"",value:""}]}]},Q=(s,t)=>{d.value[t].selectedMatchConditionTypes=d.value[t].selectedMatchConditionTypes.filter(i=>i!==s)},re=(s,t)=>{d.value[t].selectedRouteDistributeMatchTypes=d.value[t].selectedRouteDistributeMatchTypes.filter(i=>i!==s)},pe=[{dataIndex:"index",key:"index",title:"参数索引"},{dataIndex:"condition",key:"condition",title:"关系"},{dataIndex:"value",key:"value",title:"值"},{dataIndex:"operation",key:"operation",title:"操作"}],ve=(s,t)=>{d.value[s].requestMatch[t].list.push({index:0,condition:"=",value:""})},ye=(s,t,i)=>{d.value[s].requestMatch[t].list.length===1&&(d.value[s].selectedMatchConditionTypes=d.value[s].selectedMatchConditionTypes.filter(h=>h!=="arguments")),d.value[s].requestMatch[t].list.splice(i,1)},he=[{dataIndex:"myKey",key:"myKey",title:"键"},{dataIndex:"condition",key:"condition",title:"关系"},{dataIndex:"value",key:"value",title:"值"},{dataIndex:"operation",key:"operation",title:"操作"}],fe=(s,t)=>{d.value[s].requestMatch[t].list.push({key:"key",condition:"=",value:""})},_e=(s,t,i)=>{d.value[s].requestMatch[t].list.length===1&&(d.value[s].selectedMatchConditionTypes=d.value[s].selectedMatchConditionTypes.filter(h=>h!=="attachments")),d.value[s].requestMatch[t].list.splice(i,1)},I=[{dataIndex:"myKey",key:"myKey",title:"键"},{dataIndex:"condition",key:"condition",title:"关系"},{dataIndex:"value",key:"value",title:"值"},{dataIndex:"operation",key:"operation",title:"操作"}],ke=(s,t)=>{d.value[s].requestMatch[t].list.push({myKey:"",condition:"=",value:""})},be=(s,t,i)=>{if(d.value[s].requestMatch[t].list.length===1){d.value[s].selectedMatchConditionTypes=d.value[s].selectedMatchConditionTypes.filter(h=>h!=="other");return}d.value[s].requestMatch[t].list.splice(i,1)},ge=(s,t)=>{d.value[s].routeDistribute[t].list.push({myKey:"",condition:"=",value:""})},Ce=(s,t,i)=>{if(d.value[s].routeDistribute[t].list.length===1){d.value[s].selectedRouteDistributeMatchTypes=d.value[s].selectedRouteDistributeMatchTypes.filter(h=>h!=="other");return}d.value[s].routeDistribute[t].list.splice(i,1)};function ee(s){var f,S;const t=d.value[s],{ruleGranularity:i,objectOfAction:h}=g;let r=`对于${i==="service"?"服务":"应用"}【${h||"未指定"}】`,n=[];(f=t.selectedMatchConditionTypes)==null||f.forEach(U=>{var V,P,p,b;const R=(V=t.requestMatch)==null?void 0:V.find(a=>a.type===U);if(!R)return;let y="";const O=R.condition==="="?"等于":R.condition==="!="?"不等于":R.condition||"",B=R.value||"未指定";switch(U){case"host":y=`请求来源主机 ${O} ${B}`;break;case"application":y=`请求来源应用 ${O} ${B}`;break;case"method":y=`请求方法 ${O} ${B}`;break;case"arguments":const a=(P=R.list)==null?void 0:P.map(u=>{const N=u.condition==="="?"等于":u.condition==="!="?"不等于":u.condition||"",D=u.value!==void 0&&u.value!==""?u.value:"未指定";return`参数[${u.index}] ${N} ${D}`}).filter(Boolean);(a==null?void 0:a.length)>0&&(y=a.join(" 且 "));break;case"attachments":const T=(p=R.list)==null?void 0:p.map(u=>{const N=u.condition==="="?"等于":u.condition==="!="?"不等于":u.condition||"",D=u.value!==void 0&&u.value!==""?u.value:"未指定";return`附件[${u.myKey||"未指定"}] ${N} ${D}`}).filter(Boolean);(T==null?void 0:T.length)>0&&(y=T.join(" 且 "));break;case"other":const c=(b=R.list)==null?void 0:b.map(u=>{const N=u.condition==="="?"等于":u.condition==="!="?"不等于":u.condition||"",D=u.value!==void 0&&u.value!==""?u.value:"未指定";return`自定义匹配[${u.myKey||"未指定"}] ${N} ${D}`}).filter(Boolean);(c==null?void 0:c.length)>0&&(y=c.join(" 且 "));break}y&&((U==="host"||U==="application"||U==="method")&&!R.value?n.push(`${U==="host"?"请求来源主机":U==="application"?"请求来源应用":"请求方法"} 未填写`):n.push(y))});const k=n.length>0?n.join(" 且 "):"任意请求";let o=[];(S=t.selectedRouteDistributeMatchTypes)==null||S.forEach(U=>{var V,P;const R=(V=t.routeDistribute)==null?void 0:V.find(p=>p.type===U);if(!R)return;let y="";const O=R.condition==="="?"等于":R.condition==="!="?"不等于":R.condition||"",B=R.value||"未指定";switch(U){case"host":y=`目标主机 ${O} ${B}`;break;case"other":const p=(P=R.list)==null?void 0:P.map(b=>{const a=b.condition==="="?"等于":b.condition==="!="?"不等于":b.condition||"",T=b.value!==void 0&&b.value!==""?b.value:"未指定";return`目标标签[${b.myKey||"未指定"}] ${a} ${T}`}).filter(Boolean);(p==null?void 0:p.length)>0&&(y=p.join(" 且 "));break}y&&(U==="host"&&!R.value?o.push("目标主机 未填写"):o.push(y))});const M=o.length>0?`满足 【${o.join(" 且 ")}】`:"默认路由规则";return`${r},将满足 【${k}】 条件的请求,转发到 ${M} 的实例。`}function te(){let s=[],t="",i="";return d.value.forEach((h,$)=>{h.selectedMatchConditionTypes.forEach((n,k)=>{h.requestMatch.forEach((o,M)=>{if(n==(o==null?void 0:o.type))switch(o==null?void 0:o.type){case"arguments":o.list.forEach((f,S)=>{t.length>0&&(t+=" & "),t+=`${n}[${f.index}]${f.condition}${f.value}`});break;case"attachments":o.list.forEach((f,S)=>{t.length>0&&(t+=" & "),t+=`${n}[${f.myKey}]${f.condition}${f.value}`});break;case"other":o.list.forEach((f,S)=>{t.length>0&&(t+=" & "),t+=`${f.myKey}${f.condition}${f.value}`});break;default:t.length>0&&(t+=" & "),t+=`${o.type}${o.condition}${o.value}`}})}),h.selectedRouteDistributeMatchTypes.forEach((n,k)=>{h.routeDistribute.forEach((o,M)=>{if(n==(o==null?void 0:o.type))switch(o==null?void 0:o.type){case"other":o==null||o.list.forEach((f,S)=>{i.length>0&&(i+=" & "),i+=`${f.myKey}${f.condition}${f.value}`});break;default:i.length>0&&(i+=" & "),i+=`${o.type}${o.condition}${o.value}`}})});let r="";t.length>0&&i.length>0?r=`${t} => ${i}`:t.length>0&&i.length==0&&(r=`${t}`),s.push(r)}),s}const Me=async()=>{const{version:s,ruleGranularity:t,objectOfAction:i,enable:h,faultTolerantProtection:$,runtime:r,group:n}=g,k={configVersion:"v3.0",scope:t,key:i,enabled:h,force:$,runtime:r,conditions:te()};let o="";t=="application"?o=`${i}.condition-router`:o=`${i}:${s||""}:${n||""}.condition-router`,(await Ve(o,k)).code===200&&ae.push("/traffic/routingRule")};function $e(s,t){const i=[],h=s.split(" & ");return[{type:"host",condition:"",value:""},{type:"application",condition:"",value:""},{type:"method",condition:"",value:""},{type:"arguments",list:[]},{type:"attachments",list:[]},{type:"other",list:[]}].forEach(r=>i.push({...r})),h.forEach(r=>{if(r=r.trim(),r.startsWith("host")){d.value[t].selectedMatchConditionTypes.push("host");const n=r.match(/^host(!=|=)(.+)/);if(n){const k=n[1],o=n[2].trim(),M=i.find(f=>f.type==="host");M.condition=k,M.value=o}}else if(r.startsWith("application")){d.value[t].selectedMatchConditionTypes.push("application");const n=r.match(/^application(!=|=)(.+)/);if(n){const k=n[1],o=n[2].trim(),M=i.find(f=>f.type==="application");M.condition=k,M.value=o}}else if(r.startsWith("method")){d.value[t].selectedMatchConditionTypes.push("method");const n=r.match(/^method(!=|=)(.+)/);if(n){const k=n[1],o=n[2].trim(),M=i.find(f=>f.type==="method");M.condition=k,M.value=o}}else if(r.startsWith("arguments")){!d.value[t].selectedMatchConditionTypes.includes("arguments")&&d.value[t].selectedMatchConditionTypes.push("arguments");const n=r.match(/^arguments\[(\d+)\](!=|=)(.+)/);if(n){const k=parseInt(n[1],10),o=n[2],M=n[3].trim();i.find(S=>S.type==="arguments").list.push({index:k,condition:o,value:M})}}else if(r.startsWith("attachments")){!d.value[t].selectedMatchConditionTypes.includes("attachments")&&d.value[t].selectedMatchConditionTypes.push("attachments");const n=r.match(/^attachments\[(.+)\](!=|=)(.+)/);if(n){const k=n[1].trim(),o=n[2],M=n[3].trim();i.find(S=>S.type==="attachments").list.push({myKey:k,condition:o,value:M})}}else{const n=r.match(/^([^!=]+)(!?=)(.+)$/);if(n){!d.value[t].selectedMatchConditionTypes.includes("other")&&d.value[t].selectedMatchConditionTypes.push("other");const k=i.find(o=>o.type==="other");k&&k.list.push({myKey:n[1].trim(),condition:n[2],value:n[3].trim()})}}}),i}function Te(s,t){const i=[],h=s==null?void 0:s.split(" & ");return[{type:"host",condition:"",value:""},{type:"other",list:[]}].forEach(r=>i.push({...r})),h!=null&&h.length&&h.forEach(r=>{if(r=r.trim(),r.startsWith("host")){d.value[t].selectedRouteDistributeMatchTypes.push("host");const n=r.match(/^host(!=|=)(.+)/);if(n){const k=n[1],o=n[2].trim(),M=i.find(f=>f.type==="host");M.condition=k,M.value=o}}else{const n=r.match(/^([^!=]+)(!?=)(.+)$/);if(n){!d.value[t].selectedRouteDistributeMatchTypes.includes("other")&&d.value[t].selectedRouteDistributeMatchTypes.push("other");const k=i.find(o=>o.type==="other");k&&k.list.push({myKey:n[1].trim(),condition:n[2],value:n[3].trim()})}}}),i}return(s,t)=>{const i=K("a-button"),h=K("a-flex"),$=K("a-select"),r=K("a-form-item"),n=K("a-input"),k=K("a-switch"),o=K("a-col"),M=K("a-input-number"),f=K("a-row"),S=K("a-form"),U=K("a-card"),R=K("a-tooltip"),y=K("a-space"),O=K("a-tag"),B=K("a-table"),V=K("a-descriptions-item"),P=K("a-descriptions");return v(),F("div",Ne,[e(h,{style:{width:"100%"}},{default:l(()=>[e(o,{span:x.value?24-Z.value:24,class:"left"},{default:l(()=>[e(U,null,{default:l(()=>[e(y,{style:{width:"100%"},direction:"vertical",size:"middle"},{default:l(()=>[e(f,null,{default:l(()=>[e(h,{justify:"end",style:{width:"100%"}},{default:l(()=>[e(i,{type:"text",style:{color:"#0a90d5"},onClick:t[0]||(t[0]=p=>x.value=!x.value)},{default:l(()=>[C(" 字段说明 "),x.value?(v(),_(j(Ee),{key:1})):(v(),_(j(je),{key:0}))]),_:1})]),_:1}),e(U,{title:"基础信息",style:{width:"100%"},class:"_detail"},{default:l(()=>[e(S,{layout:"horizontal"},{default:l(()=>[e(f,{style:{width:"100%"}},{default:l(()=>[e(o,{span:12},{default:l(()=>[e(r,{label:"规则粒度",required:""},{default:l(()=>[e($,{value:g.ruleGranularity,"onUpdate:value":t[1]||(t[1]=p=>g.ruleGranularity=p),style:{width:"120px"},options:oe.value},null,8,["value","options"])]),_:1}),g.ruleGranularity==="service"?(v(),_(r,{key:0,label:"版本",required:""},{default:l(()=>[e(n,{value:g.version,"onUpdate:value":t[2]||(t[2]=p=>g.version=p),style:{width:"300px"}},null,8,["value"])]),_:1})):q("",!0),e(r,{label:"容错保护"},{default:l(()=>[e(k,{checked:g.faultTolerantProtection,"onUpdate:checked":t[3]||(t[3]=p=>g.faultTolerantProtection=p),"checked-children":"开","un-checked-children":"关"},null,8,["checked"])]),_:1}),e(r,{label:"运行时生效"},{default:l(()=>[e(k,{checked:g.runtime,"onUpdate:checked":t[4]||(t[4]=p=>g.runtime=p),"checked-children":"开","un-checked-children":"关"},null,8,["checked"])]),_:1})]),_:1}),e(o,{span:12},{default:l(()=>[e(r,{label:"作用对象",required:""},{default:l(()=>[e(n,{value:g.objectOfAction,"onUpdate:value":t[5]||(t[5]=p=>g.objectOfAction=p),style:{width:"300px"}},null,8,["value"])]),_:1}),g.ruleGranularity==="service"?(v(),_(r,{key:0,label:"分组",required:""},{default:l(()=>[e(n,{value:g.group,"onUpdate:value":t[6]||(t[6]=p=>g.group=p),style:{width:"300px"}},null,8,["value"])]),_:1})):q("",!0),e(r,{label:"立即启用"},{default:l(()=>[e(k,{checked:g.enable,"onUpdate:checked":t[7]||(t[7]=p=>g.enable=p),"checked-children":"开","un-checked-children":"关"},null,8,["checked"])]),_:1}),e(r,{label:"优先级"},{default:l(()=>[e(M,{value:g.priority,"onUpdate:value":t[8]||(t[8]=p=>g.priority=p),min:"1"},null,8,["value"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),e(U,{title:"路由列表",style:{width:"100%"},class:"_detail"},{default:l(()=>[(v(!0),F(J,null,X(d.value,(p,b)=>(v(),_(U,null,{title:l(()=>[e(h,{justify:"space-between"},{default:l(()=>[e(y,{align:"center"},{default:l(()=>[G("div",null,"路由【"+A(b+1)+"】",1),e(R,null,{title:l(()=>[C(A(ee(b)),1)]),default:l(()=>[G("div",Ge,A(ee(b)),1)]),_:2},1024)]),_:2},1024),e(j(z),{onClick:a=>ue(b),class:"action-icon",icon:"tdesign:delete"},null,8,["onClick"])]),_:2},1024)]),default:l(()=>[e(S,{layout:"horizontal"},{default:l(()=>[e(y,{style:{width:"100%"},direction:"vertical",size:"large"},{default:l(()=>[e(r,{label:"请求匹配"},{default:l(()=>[p.requestMatch.length>0?(v(),_(U,{key:0},{default:l(()=>[e(y,{style:{width:"100%"},direction:"vertical",size:"small"},{default:l(()=>[e(h,{align:"center",justify:"space-between"},{default:l(()=>[e(r,{label:"匹配条件类型"},{default:l(()=>[e($,{value:p.selectedMatchConditionTypes,"onUpdate:value":a=>p.selectedMatchConditionTypes=a,options:ne.value,mode:"multiple",style:{"min-width":"200px"}},null,8,["value","onUpdate:value","options"])]),_:2},1024),e(j(z),{onClick:a=>ce(b),class:"action-icon",icon:"tdesign:delete"},null,8,["onClick"])]),_:2},1024),(v(!0),F(J,null,X(p.requestMatch,(a,T)=>(v(),F(J,null,[p.selectedMatchConditionTypes.includes("host")&&a.type==="host"?(v(),_(y,{key:0,size:"large",align:"center"},{default:l(()=>[e(O,{class:"match-condition-type-label",bordered:!1,color:"processing"},{default:l(()=>[C(A(a==null?void 0:a.type),1)]),_:2},1024),e($,{value:a.condition,"onUpdate:value":c=>a.condition=c,style:{"min-width":"120px"},options:m.value},null,8,["value","onUpdate:value","options"]),e(n,{value:a.value,"onUpdate:value":c=>a.value=c,placeholder:"请求来源ip"},null,8,["value","onUpdate:value"]),e(j(z),{onClick:c=>Q(a==null?void 0:a.type,b),class:"action-icon",icon:"tdesign:delete"},null,8,["onClick"])]),_:2},1024)):q("",!0),p.selectedMatchConditionTypes.includes("application")&&a.type==="application"?(v(),_(y,{key:1,size:"large",align:"center"},{default:l(()=>[e(O,{class:"match-condition-type-label",bordered:!1,color:"processing"},{default:l(()=>[C(A(a==null?void 0:a.type),1)]),_:2},1024),e($,{value:a.condition,"onUpdate:value":c=>a.condition=c,style:{"min-width":"120px"},options:m.value},null,8,["value","onUpdate:value","options"]),e(n,{value:a.value,"onUpdate:value":c=>a.value=c,placeholder:"请求来源应用名"},null,8,["value","onUpdate:value"]),e(j(z),{onClick:c=>Q(a==null?void 0:a.type,b),class:"action-icon",icon:"tdesign:delete"},null,8,["onClick"])]),_:2},1024)):q("",!0),p.selectedMatchConditionTypes.includes("method")&&a.type==="method"?(v(),_(y,{key:2,size:"large",align:"center"},{default:l(()=>[e(O,{class:"match-condition-type-label",bordered:!1,color:"processing"},{default:l(()=>[C(A(a==null?void 0:a.type),1)]),_:2},1024),e($,{value:a.condition,"onUpdate:value":c=>a.condition=c,style:{"min-width":"120px"},options:m.value},null,8,["value","onUpdate:value","options"]),e(n,{value:a.value,"onUpdate:value":c=>a.value=c,placeholder:"方法值"},null,8,["value","onUpdate:value"]),e(j(z),{onClick:c=>Q(a==null?void 0:a.type,b),class:"action-icon",icon:"tdesign:delete"},null,8,["onClick"])]),_:2},1024)):q("",!0),p.selectedMatchConditionTypes.includes("arguments")&&a.type==="arguments"?(v(),_(y,{key:3,style:{width:"100%"},size:"large",align:"start"},{default:l(()=>[e(O,{class:"match-condition-type-label",bordered:!1,color:"processing"},{default:l(()=>[C(A(a==null?void 0:a.type),1)]),_:2},1024),e(y,{direction:"vertical"},{default:l(()=>[e(i,{type:"primary",onClick:c=>ve(b,T)},{default:l(()=>[C(" 添加argument ")]),_:2},1032,["onClick"]),e(B,{pagination:!1,columns:pe,"data-source":p.requestMatch[T].list},{bodyCell:l(({column:c,record:u,text:N,index:D})=>[c.key==="index"?(v(),_(n,{key:0,value:u.index,"onUpdate:value":w=>u.index=w,placeholder:"index"},null,8,["value","onUpdate:value"])):c.key==="condition"?(v(),_($,{key:1,value:u.condition,"onUpdate:value":w=>u.condition=w,options:m.value},null,8,["value","onUpdate:value","options"])):c.key==="value"?(v(),_(n,{key:2,value:u.value,"onUpdate:value":w=>u.value=w,placeholder:"value"},null,8,["value","onUpdate:value"])):c.key==="operation"?(v(),_(y,{key:3,align:"center"},{default:l(()=>[e(j(z),{onClick:w=>ye(b,T,D),icon:"tdesign:remove",class:"action-icon"},null,8,["onClick"])]),_:2},1024)):q("",!0)]),_:2},1032,["data-source"])]),_:2},1024)]),_:2},1024)):q("",!0),p.selectedMatchConditionTypes.includes("attachments")&&a.type==="attachments"?(v(),_(y,{key:4,style:{width:"100%"},size:"large",align:"start"},{default:l(()=>[e(O,{class:"match-condition-type-label",bordered:!1,color:"processing"},{default:l(()=>[C(A(a==null?void 0:a.type),1)]),_:2},1024),e(y,{direction:"vertical"},{default:l(()=>[e(i,{type:"primary",onClick:c=>fe(b,T)},{default:l(()=>[C(" 添加attachment ")]),_:2},1032,["onClick"]),e(B,{pagination:!1,columns:he,"data-source":p.requestMatch[T].list},{bodyCell:l(({column:c,record:u,text:N,index:D})=>[c.key==="myKey"?(v(),_(n,{key:0,value:u.myKey,"onUpdate:value":w=>u.myKey=w,placeholder:"key"},null,8,["value","onUpdate:value"])):c.key==="condition"?(v(),_($,{key:1,value:u.condition,"onUpdate:value":w=>u.condition=w,options:m.value},null,8,["value","onUpdate:value","options"])):c.key==="value"?(v(),_(n,{key:2,value:u.value,"onUpdate:value":w=>u.value=w,placeholder:"value"},null,8,["value","onUpdate:value"])):c.key==="operation"?(v(),_(y,{key:3,align:"center"},{default:l(()=>[e(j(z),{onClick:w=>_e(b,T,D),icon:"tdesign:remove",class:"action-icon"},null,8,["onClick"])]),_:2},1024)):q("",!0)]),_:2},1032,["data-source"])]),_:2},1024)]),_:2},1024)):q("",!0),p.selectedMatchConditionTypes.includes("other")&&a.type==="other"?(v(),_(y,{key:5,style:{width:"100%"},size:"large",align:"start"},{default:l(()=>[e(O,{class:"match-condition-type-label",bordered:!1,color:"processing"},{default:l(()=>[C(A((a==null?void 0:a.type)=="other"?"其他":a==null?void 0:a.type),1)]),_:2},1024),e(y,{direction:"vertical"},{default:l(()=>[e(i,{type:"primary",onClick:c=>ke(b,T)},{default:l(()=>[C(" 添加other ")]),_:2},1032,["onClick"]),e(B,{pagination:!1,columns:I,"data-source":p.requestMatch[T].list},{bodyCell:l(({column:c,record:u,text:N})=>[c.key==="myKey"?(v(),_(n,{key:0,value:u.myKey,"onUpdate:value":D=>u.myKey=D,placeholder:"key"},null,8,["value","onUpdate:value"])):c.key==="condition"?(v(),_($,{key:1,value:u.condition,"onUpdate:value":D=>u.condition=D,options:m.value},null,8,["value","onUpdate:value","options"])):c.key==="value"?(v(),_(n,{key:2,value:u.value,"onUpdate:value":D=>u.value=D,placeholder:"value"},null,8,["value","onUpdate:value"])):c.key==="operation"?(v(),_(y,{key:3,align:"center"},{default:l(()=>[e(j(z),{onClick:D=>be(b,T,u.index),icon:"tdesign:remove",class:"action-icon"},null,8,["onClick"])]),_:2},1024)):q("",!0)]),_:2},1032,["data-source"])]),_:2},1024)]),_:2},1024)):q("",!0)],64))),256))]),_:2},1024)]),_:2},1024)):(v(),_(i,{key:1,onClick:a=>de(b),type:"dashed",size:"large"},{icon:l(()=>[e(j(z),{icon:"tdesign:add"})]),default:l(()=>[C(" 增加匹配条件 ")]),_:2},1032,["onClick"]))]),_:2},1024),e(r,{label:"路由分发",required:""},{default:l(()=>[e(U,null,{default:l(()=>[e(y,{style:{width:"100%"},direction:"vertical",size:"small"},{default:l(()=>[e(h,null,{default:l(()=>[e(r,{label:"匹配条件类型"},{default:l(()=>[e($,{value:p.selectedRouteDistributeMatchTypes,"onUpdate:value":a=>p.selectedRouteDistributeMatchTypes=a,options:se.value,mode:"multiple",style:{"min-width":"200px"}},null,8,["value","onUpdate:value","options"])]),_:2},1024)]),_:2},1024),(v(!0),F(J,null,X(p.routeDistribute,(a,T)=>(v(),F(J,{key:T},[p.selectedRouteDistributeMatchTypes.includes("host")&&a.type==="host"?(v(),_(y,{key:0,size:"large",align:"center"},{default:l(()=>[e(O,{class:"match-condition-type-label",bordered:!1,color:"processing"},{default:l(()=>[C(A(a==null?void 0:a.type),1)]),_:2},1024),e($,{value:a.condition,"onUpdate:value":c=>a.condition=c,style:{"min-width":"120px"},options:m.value},null,8,["value","onUpdate:value","options"]),e(n,{value:a.value,"onUpdate:value":c=>a.value=c,placeholder:"请求来源ip"},null,8,["value","onUpdate:value"]),e(j(z),{onClick:c=>re(a==null?void 0:a.type,b),class:"action-icon",icon:"tdesign:delete"},null,8,["onClick"])]),_:2},1024)):q("",!0),p.selectedRouteDistributeMatchTypes.includes("other")&&a.type==="other"?(v(),_(y,{key:1,style:{width:"100%"},size:"large",align:"start"},{default:l(()=>[e(O,{class:"match-condition-type-label",bordered:!1,color:"processing"},{default:l(()=>[C(A((a==null?void 0:a.type)=="other"?"其他":a==null?void 0:a.type),1)]),_:2},1024),e(y,{direction:"vertical"},{default:l(()=>[e(i,{type:"primary",onClick:c=>ge(b,T)},{default:l(()=>[C(" 添加其他 ")]),_:2},1032,["onClick"]),e(B,{pagination:!1,columns:I,"data-source":p.routeDistribute[T].list},{bodyCell:l(({column:c,record:u,text:N,index:D})=>[c.key==="myKey"?(v(),_(n,{key:0,value:u.myKey,"onUpdate:value":w=>u.myKey=w,placeholder:"key"},null,8,["value","onUpdate:value"])):c.key==="condition"?(v(),_($,{key:1,value:u.condition,"onUpdate:value":w=>u.condition=w,options:m.value},null,8,["value","onUpdate:value","options"])):c.key==="value"?(v(),_(n,{key:2,value:u.value,"onUpdate:value":w=>u.value=w,placeholder:"value"},null,8,["value","onUpdate:value"])):c.key==="operation"?(v(),_(y,{key:3,align:"center"},{default:l(()=>[e(j(z),{onClick:w=>Ce(b,T,D),icon:"tdesign:remove",class:"action-icon"},null,8,["onClick"])]),_:2},1024)):q("",!0)]),_:2},1032,["data-source"])]),_:2},1024)]),_:2},1024)):q("",!0)],64))),128))]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024))),256))]),_:1}),e(i,{onClick:ie,type:"primary"},{default:l(()=>[C(" 增加路由")]),_:1})]),_:1})]),_:1})]),_:1},8,["span"]),e(o,{span:x.value?Z.value:0,class:"right"},{default:l(()=>[x.value?(v(),_(U,{key:0,class:"sliderBox"},{default:l(()=>[G("div",null,[e(P,{title:"字段说明",column:1},{default:l(()=>[e(V,{label:"key"},{default:l(()=>[C(" 作用对象"),me,C(" 可能的值:Dubbo应用名或者服务名 ")]),_:1}),e(V,{label:"scope"},{default:l(()=>[C(" 规则粒度"),Pe,C(" 可能的值:application, service ")]),_:1}),e(V,{label:"force"},{default:l(()=>[C(" 容错保护"),We,C(" 可能的值:true, false"),xe,C(" 描述:如果为true,则路由筛选后若没有可用的地址则会直接报异常;如果为false,则会从可用地址中选择完成RPC调用 ")]),_:1}),e(V,{label:"runtime"},{default:l(()=>[C(" 运行时生效"),Fe,C(" 可能的值:true, false"),Le,C(" 描述:如果为true,则该rule下的所有路由将会实时生效;若为false,则只有在启动时才会生效 ")]),_:1})]),_:1})])]),_:1})):q("",!0)]),_:1},8,["span"])]),_:1}),e(U,{class:"footer"},{default:l(()=>[e(h,null,{default:l(()=>[e(i,{type:"primary",onClick:Me},{default:l(()=>[C("确认")]),_:1})]),_:1})]),_:1})])}}}),Ze=Be(Je,[["__scopeId","data-v-d3c6be66"]]);export{Ze as default}; diff --git a/app/dubbo-ui/dist/admin/assets/addByFormView-Ia4T74MU.js b/app/dubbo-ui/dist/admin/assets/addByFormView-9BUfLGgu.js similarity index 98% rename from app/dubbo-ui/dist/admin/assets/addByFormView-Ia4T74MU.js rename to app/dubbo-ui/dist/admin/assets/addByFormView-9BUfLGgu.js index ce32d971..cdec6975 100644 --- a/app/dubbo-ui/dist/admin/assets/addByFormView-Ia4T74MU.js +++ b/app/dubbo-ui/dist/admin/assets/addByFormView-9BUfLGgu.js @@ -1 +1 @@ -import{u as ce}from"./index-HdnVQEsT.js";import{d as ue,y as de,z as re,D as pe,H as z,k as _e,a as fe,B as O,u as ye,r as ve,F as J,c as M,b as e,w as t,e as i,o as k,f as r,J as g,n as S,aa as be,ab as he,L as me,M as ke,j as x,t as V,I as L,T as P,p as ge,h as xe,_ as we}from"./index-3zDsduUv.js";import{f as $e}from"./traffic-dHGZ6qwp.js";import"./request-3an337VF.js";const T=A=>(ge("data-v-74fb5f17"),A=A(),xe(),A),Ce={class:"__container_tagRule_detail"},Ue={style:{"max-width":"400px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},Ne=T(()=>x("br",null,null,-1)),Oe=T(()=>x("br",null,null,-1)),Re=T(()=>x("br",null,null,-1)),Ke=T(()=>x("br",null,null,-1)),Te=T(()=>x("br",null,null,-1)),Ee=T(()=>x("br",null,null,-1)),je={class:"bottom-action-footer"},Se=ue({__name:"addByFormView",setup(A){const w=de(re.PROVIDE_INJECT_KEY);pe(()=>{if(!z.isNil(w.tagRule)){const{enabled:a=!0,key:l,scope:u,runtime:p=!0,tags:n}=w.tagRule;c.enable=a,c.objectOfAction=l,c.ruleGranularity=u,c.runtime=p,n&&n.length&&n.forEach((b,d)=>{m.value.push({tagName:b.name,scope:{type:"labels",labels:[],addresses:{condition:"=",addressesStr:""}}});const{match:_}=b;let s=[];_.forEach((y,f)=>{s.push({myKey:y.key,condition:Object.keys(y.value)[0],value:y.value[Object.keys(y.value)[0]]})}),m.value[d]&&m.value[d].scope&&(m.value[d].scope.labels=s)})}}),_e(),fe();const R=O(!1),q=O(8);ce().toClipboard;const Y=ye(),F=(a,l)=>{var n,b,d,_;let u=`对于应用 ${l||"未指定"},将满足 `;const p=[];if(((n=a.scope)==null?void 0:n.type)==="labels"&&((b=a.scope.labels)==null?void 0:b.length)>0)a.scope.labels.forEach(s=>{var C,v;let y="";if(s.myKey==="method")y="请求方法";else if((C=s.myKey)!=null&&C.startsWith("args[")){const E=(v=s.myKey.match(/\[(\d+)\]/))==null?void 0:v[1];E!==void 0?y=`第 ${parseInt(E)+1} 个参数`:y=`标签 ${s.myKey||"未指定"}`}else y=`标签 ${s.myKey||"未指定"}`;let f="";const h=s.value||"未指定";switch(s.condition){case"exact":f=`exact ${h}`;break;case"regex":f=`regex ${h}`;break;case"prefix":f=`prefix ${h}`;break;case"noempty":f="noempty";break;case"empty":f="empty";break;case"wildcard":f=`wildcard ${h}`;break;case"!=":f=`!= ${h}`;break;default:f=`${s.condition||"未知关系"} ${h}`}s.condition!=="empty"&&s.condition!=="noempty"&&!s.value?p.push(`${y} 未填写`):p.push(`${y} ${f}`)});else if(((d=a.scope)==null?void 0:d.type)==="addresses"&&((_=a.scope.addresses)!=null&&_.addressesStr)){const s=a.scope.addresses.condition==="="?"等于":"不等于";p.push(`地址 ${s} [${a.scope.addresses.addressesStr}]`)}return p.length===0?u+="任意请求":u+=p.join(" 且 "),u+=` 的实例,打上 ${a.tagName||"未指定"} 标签,划入 ${a.tagName||"未指定"} 的隔离环境`,u},c=ve({ruleGranularity:"application",objectOfAction:"",enable:!0,faultTolerantProtection:!0,runtime:!0,priority:1,configVersion:"v3.0"});J(c,a=>{const{enable:l,objectOfAction:u,runtime:p,ruleGranularity:n}=a;w.tagRule={...w.tagRule,enabled:l,key:u,runtime:p,scope:n}},{immediate:!!z.isNil(w.tagRule)});const H=O([{label:"labels",value:"labels"}]),W=O([{label:"exact",value:"exact"},{label:"regex",value:"regex"},{label:"prefix",value:"prefix"},{label:"noempty",value:"noempty"},{label:"empty",value:"empty"},{label:"wildcard",value:"wildcard"}]),Q=O([{label:"=",value:"="},{label:"!=",value:"!="}]),X=O([{title:"键",dataIndex:"myKey",key:"myKey"},{title:"关系",dataIndex:"condition",key:"condition"},{title:"值",dataIndex:"value",key:"value"},{title:"操作",dataIndex:"operation",key:"operation"}]),m=O([]);J(m,a=>{console.log(a);const l=[];a.forEach(u=>{const{tagName:p,scope:n}=u,b=n.labels,d={name:p,match:[]};b&&b.length>0&&b.forEach(_=>{d.match.push({key:_.myKey,value:{[_.condition]:_.value}})}),l.push(d)}),w.tagRule={...w.tagRule,tags:l}},{deep:!0,immediate:!!z.isNil(w.tagRule)});const Z=(a,l)=>{if(m.value[a].scope.labels.length===1){m.value[a].scope.type="addresses";return}m.value[a].scope.labels.splice(l,1)},I=a=>{m.value[a].scope.labels.push({myKey:"",condition:"exact",value:""})},ee=()=>{m.value.push({tagName:"",scope:{type:"labels",labels:[{myKey:"",condition:"",value:""}],addresses:{condition:"",addressesStr:""}}})},te=a=>{m.value.splice(a,1)},ae=async()=>{const{ruleGranularity:a,objectOfAction:l,enable:u,faultTolerantProtection:p,runtime:n,priority:b,configVersion:d}=c,_={configVersion:d,scope:a,key:l,enabled:u,runtime:n,tags:[]};m.value.forEach((f,h)=>{const C={name:f.tagName,match:[]};f.scope.labels.forEach((v,E)=>{const D={key:v.myKey,value:{}};D.value[v.condition]=v.value,C.match.push(D)}),_.tags.push(C)});let s="";a=="application"?s=`${l}.tag-router`:s=`${l}:${d}.tag-router`,(await $e(s,_)).code===200&&Y.push("/traffic/tagRule")};return(a,l)=>{const u=i("a-button"),p=i("a-flex"),n=i("a-form-item"),b=i("a-switch"),d=i("a-col"),_=i("a-input"),s=i("a-input-number"),y=i("a-row"),f=i("a-form"),h=i("a-card"),C=i("a-tooltip"),v=i("a-space"),E=i("a-radio-group"),D=i("a-tag"),G=i("a-select"),le=i("a-table"),oe=i("a-textarea"),B=i("a-descriptions-item"),ne=i("a-descriptions"),se=i("a-affix");return k(),M("div",Ce,[e(p,{style:{width:"100%"}},{default:t(()=>[e(d,{span:R.value?24-q.value:24,class:"left"},{default:t(()=>[e(h,null,{default:t(()=>[e(v,{style:{width:"100%"},direction:"vertical",size:"middle"},{default:t(()=>[e(y,null,{default:t(()=>[e(p,{justify:"end",style:{width:"100%"}},{default:t(()=>[e(u,{type:"text",style:{color:"#0a90d5"},onClick:l[0]||(l[0]=o=>R.value=!R.value)},{default:t(()=>[r(" 字段说明 "),R.value?(k(),g(S(he),{key:1})):(k(),g(S(be),{key:0}))]),_:1})]),_:1}),e(h,{title:"基础信息",style:{width:"100%"},class:"_detail"},{default:t(()=>[e(f,{layout:"horizontal"},{default:t(()=>[e(y,{style:{width:"100%"}},{default:t(()=>[e(d,{span:12},{default:t(()=>[e(n,{label:"规则粒度",required:""},{default:t(()=>[r(" 应用")]),_:1}),e(n,{label:"容错保护"},{default:t(()=>[e(b,{checked:c.faultTolerantProtection,"onUpdate:checked":l[1]||(l[1]=o=>c.faultTolerantProtection=o),"checked-children":"开","un-checked-children":"关"},null,8,["checked"])]),_:1}),e(n,{label:"运行时生效"},{default:t(()=>[e(b,{checked:c.runtime,"onUpdate:checked":l[2]||(l[2]=o=>c.runtime=o),"checked-children":"开","un-checked-children":"关"},null,8,["checked"])]),_:1})]),_:1}),e(d,{span:12},{default:t(()=>[e(n,{label:"作用对象",required:""},{default:t(()=>[e(_,{value:c.objectOfAction,"onUpdate:value":l[3]||(l[3]=o=>c.objectOfAction=o),style:{width:"200px"}},null,8,["value"])]),_:1}),e(n,{label:"立即启用"},{default:t(()=>[e(b,{checked:c.enable,"onUpdate:checked":l[4]||(l[4]=o=>c.enable=o),"checked-children":"开","un-checked-children":"关"},null,8,["checked"])]),_:1}),e(n,{label:"优先级"},{default:t(()=>[e(s,{min:"1",value:c.priority,"onUpdate:value":l[5]||(l[5]=o=>c.priority=o)},null,8,["value"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),e(h,{title:"标签列表",style:{width:"100%"},class:"_detail"},{default:t(()=>[(k(!0),M(me,null,ke(m.value,(o,j)=>(k(),g(h,{key:j},{title:t(()=>[e(v,{align:"center"},{default:t(()=>[x("div",null,"路由【"+V(j+1)+"】",1),e(C,null,{title:t(()=>[r(V(F(o,c.objectOfAction)),1)]),default:t(()=>[x("div",Ue,V(F(o,c.objectOfAction)),1)]),_:2},1024)]),_:2},1024)]),default:t(()=>[e(f,{layout:"horizontal"},{default:t(()=>[e(v,{style:{width:"100%"},direction:"vertical",size:"large"},{default:t(()=>[e(p,{justify:"end"},{default:t(()=>[e(S(L),{onClick:U=>te(j),class:"action-icon",icon:"tdesign:delete"},null,8,["onClick"])]),_:2},1024),e(n,{label:"标签名",required:""},{default:t(()=>[e(_,{placeholder:"隔离环境名",value:o.tagName,"onUpdate:value":U=>o.tagName=U},null,8,["value","onUpdate:value"])]),_:2},1024),e(n,{label:"作用范围",required:""},{default:t(()=>[e(h,null,{default:t(()=>[e(v,{style:{width:"100%"},direction:"vertical"},{default:t(()=>[e(n,{label:"匹配条件类型"},{default:t(()=>[e(E,{value:o.scope.type,"onUpdate:value":U=>o.scope.type=U,options:H.value},null,8,["value","onUpdate:value","options"])]),_:2},1024),e(v,{align:"start",style:{width:"100%"},direction:"horizontal"},{default:t(()=>{var U;return[e(D,{bordered:!1,color:"processing"},{default:t(()=>[r(V(o.scope.type),1)]),_:2},1024),o.scope.type==="labels"?(k(),g(le,{key:0,pagination:!1,columns:X.value,"data-source":(U=o.scope)==null?void 0:U.labels},{bodyCell:t(({column:$,record:K,text:Ae,index:ie})=>[$.key==="myKey"?(k(),g(_,{key:0,placeholder:"label key",value:K.myKey,"onUpdate:value":N=>K.myKey=N},null,8,["value","onUpdate:value"])):P("",!0),$.key==="condition"?(k(),g(G,{key:1,value:K.condition,"onUpdate:value":N=>K.condition=N,style:{width:"120px"},options:W.value},null,8,["value","onUpdate:value","options"])):P("",!0),$.key==="value"?(k(),g(_,{key:2,placeholder:"label value",value:K.value,"onUpdate:value":N=>K.value=N},null,8,["value","onUpdate:value"])):$.key==="operation"?(k(),g(v,{key:3,align:"center"},{default:t(()=>[e(S(L),{icon:"tdesign:remove",class:"action-icon",onClick:N=>Z(j,ie)},null,8,["onClick"]),e(S(L),{class:"action-icon",icon:"tdesign:add",onClick:N=>I(j)},null,8,["onClick"])]),_:2},1024)):P("",!0)]),_:2},1032,["columns","data-source"])):(k(),g(v,{key:1,align:"start"},{default:t(()=>[e(G,{style:{width:"120px"},value:o.scope.addresses.condition,"onUpdate:value":$=>o.scope.addresses.condition=$,options:Q.value},null,8,["value","onUpdate:value","options"]),e(oe,{style:{width:"500px"},value:o.scope.addresses.addressesStr,"onUpdate:value":$=>o.scope.addresses.addressesStr=$,placeholder:'地址列表,如有多个用","隔开'},null,8,["value","onUpdate:value"])]),_:2},1024))]}),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:1}),e(u,{onClick:ee,type:"primary"},{default:t(()=>[r(" 增加标签")]),_:1})]),_:1})]),_:1})]),_:1},8,["span"]),e(d,{span:R.value?q.value:0,class:"right"},{default:t(()=>[R.value?(k(),g(h,{key:0,class:"sliderBox"},{default:t(()=>[x("div",null,[e(ne,{title:"字段说明",column:1},{default:t(()=>[e(B,{label:"key"},{default:t(()=>[r(" 作用对象"),Ne,r(" 可能的值:Dubbo应用名或者服务名 ")]),_:1}),e(B,{label:"scope"},{default:t(()=>[r(" 规则粒度"),Oe,r(" 可能的值:application, service ")]),_:1}),e(B,{label:"force"},{default:t(()=>[r(" 容错保护"),Re,r(" 可能的值:true, false"),Ke,r(" 描述:如果为true,则路由筛选后若没有可用的地址则会直接报异常;如果为false,则会从可用地址中选择完成RPC调用 ")]),_:1}),e(B,{label:"runtime"},{default:t(()=>[r(" 运行时生效"),Te,r(" 可能的值:true, false"),Ee,r(" 描述:如果为true,则该rule下的所有路由将会实时生效;若为false,则只有在启动时才会生效 ")]),_:1})]),_:1})])]),_:1})):P("",!0)]),_:1},8,["span"])]),_:1}),e(se,{"offset-bottom":10},{default:t(()=>[x("div",je,[e(v,{align:"center",size:"large"},{default:t(()=>[e(u,{type:"primary",onClick:ae},{default:t(()=>[r(" 确认")]),_:1}),e(u,null,{default:t(()=>[r(" 取消")]),_:1})]),_:1})])]),_:1})])}}}),ze=we(Se,[["__scopeId","data-v-74fb5f17"]]);export{ze as default}; +import{u as ce}from"./index-Y8bti_iA.js";import{d as ue,y as de,z as re,D as pe,H as z,k as _e,a as fe,B as O,u as ye,r as ve,F as J,c as M,b as e,w as t,e as i,o as k,f as r,J as g,n as S,aa as be,ab as he,L as me,M as ke,j as x,t as V,I as L,T as P,p as ge,h as xe,_ as we}from"./index-VXjVsiiO.js";import{f as $e}from"./traffic-W0fp5Gf-.js";import"./request-Cs8TyifY.js";const T=A=>(ge("data-v-74fb5f17"),A=A(),xe(),A),Ce={class:"__container_tagRule_detail"},Ue={style:{"max-width":"400px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},Ne=T(()=>x("br",null,null,-1)),Oe=T(()=>x("br",null,null,-1)),Re=T(()=>x("br",null,null,-1)),Ke=T(()=>x("br",null,null,-1)),Te=T(()=>x("br",null,null,-1)),Ee=T(()=>x("br",null,null,-1)),je={class:"bottom-action-footer"},Se=ue({__name:"addByFormView",setup(A){const w=de(re.PROVIDE_INJECT_KEY);pe(()=>{if(!z.isNil(w.tagRule)){const{enabled:a=!0,key:l,scope:u,runtime:p=!0,tags:n}=w.tagRule;c.enable=a,c.objectOfAction=l,c.ruleGranularity=u,c.runtime=p,n&&n.length&&n.forEach((b,d)=>{m.value.push({tagName:b.name,scope:{type:"labels",labels:[],addresses:{condition:"=",addressesStr:""}}});const{match:_}=b;let s=[];_.forEach((y,f)=>{s.push({myKey:y.key,condition:Object.keys(y.value)[0],value:y.value[Object.keys(y.value)[0]]})}),m.value[d]&&m.value[d].scope&&(m.value[d].scope.labels=s)})}}),_e(),fe();const R=O(!1),q=O(8);ce().toClipboard;const Y=ye(),F=(a,l)=>{var n,b,d,_;let u=`对于应用 ${l||"未指定"},将满足 `;const p=[];if(((n=a.scope)==null?void 0:n.type)==="labels"&&((b=a.scope.labels)==null?void 0:b.length)>0)a.scope.labels.forEach(s=>{var C,v;let y="";if(s.myKey==="method")y="请求方法";else if((C=s.myKey)!=null&&C.startsWith("args[")){const E=(v=s.myKey.match(/\[(\d+)\]/))==null?void 0:v[1];E!==void 0?y=`第 ${parseInt(E)+1} 个参数`:y=`标签 ${s.myKey||"未指定"}`}else y=`标签 ${s.myKey||"未指定"}`;let f="";const h=s.value||"未指定";switch(s.condition){case"exact":f=`exact ${h}`;break;case"regex":f=`regex ${h}`;break;case"prefix":f=`prefix ${h}`;break;case"noempty":f="noempty";break;case"empty":f="empty";break;case"wildcard":f=`wildcard ${h}`;break;case"!=":f=`!= ${h}`;break;default:f=`${s.condition||"未知关系"} ${h}`}s.condition!=="empty"&&s.condition!=="noempty"&&!s.value?p.push(`${y} 未填写`):p.push(`${y} ${f}`)});else if(((d=a.scope)==null?void 0:d.type)==="addresses"&&((_=a.scope.addresses)!=null&&_.addressesStr)){const s=a.scope.addresses.condition==="="?"等于":"不等于";p.push(`地址 ${s} [${a.scope.addresses.addressesStr}]`)}return p.length===0?u+="任意请求":u+=p.join(" 且 "),u+=` 的实例,打上 ${a.tagName||"未指定"} 标签,划入 ${a.tagName||"未指定"} 的隔离环境`,u},c=ve({ruleGranularity:"application",objectOfAction:"",enable:!0,faultTolerantProtection:!0,runtime:!0,priority:1,configVersion:"v3.0"});J(c,a=>{const{enable:l,objectOfAction:u,runtime:p,ruleGranularity:n}=a;w.tagRule={...w.tagRule,enabled:l,key:u,runtime:p,scope:n}},{immediate:!!z.isNil(w.tagRule)});const H=O([{label:"labels",value:"labels"}]),W=O([{label:"exact",value:"exact"},{label:"regex",value:"regex"},{label:"prefix",value:"prefix"},{label:"noempty",value:"noempty"},{label:"empty",value:"empty"},{label:"wildcard",value:"wildcard"}]),Q=O([{label:"=",value:"="},{label:"!=",value:"!="}]),X=O([{title:"键",dataIndex:"myKey",key:"myKey"},{title:"关系",dataIndex:"condition",key:"condition"},{title:"值",dataIndex:"value",key:"value"},{title:"操作",dataIndex:"operation",key:"operation"}]),m=O([]);J(m,a=>{console.log(a);const l=[];a.forEach(u=>{const{tagName:p,scope:n}=u,b=n.labels,d={name:p,match:[]};b&&b.length>0&&b.forEach(_=>{d.match.push({key:_.myKey,value:{[_.condition]:_.value}})}),l.push(d)}),w.tagRule={...w.tagRule,tags:l}},{deep:!0,immediate:!!z.isNil(w.tagRule)});const Z=(a,l)=>{if(m.value[a].scope.labels.length===1){m.value[a].scope.type="addresses";return}m.value[a].scope.labels.splice(l,1)},I=a=>{m.value[a].scope.labels.push({myKey:"",condition:"exact",value:""})},ee=()=>{m.value.push({tagName:"",scope:{type:"labels",labels:[{myKey:"",condition:"",value:""}],addresses:{condition:"",addressesStr:""}}})},te=a=>{m.value.splice(a,1)},ae=async()=>{const{ruleGranularity:a,objectOfAction:l,enable:u,faultTolerantProtection:p,runtime:n,priority:b,configVersion:d}=c,_={configVersion:d,scope:a,key:l,enabled:u,runtime:n,tags:[]};m.value.forEach((f,h)=>{const C={name:f.tagName,match:[]};f.scope.labels.forEach((v,E)=>{const D={key:v.myKey,value:{}};D.value[v.condition]=v.value,C.match.push(D)}),_.tags.push(C)});let s="";a=="application"?s=`${l}.tag-router`:s=`${l}:${d}.tag-router`,(await $e(s,_)).code===200&&Y.push("/traffic/tagRule")};return(a,l)=>{const u=i("a-button"),p=i("a-flex"),n=i("a-form-item"),b=i("a-switch"),d=i("a-col"),_=i("a-input"),s=i("a-input-number"),y=i("a-row"),f=i("a-form"),h=i("a-card"),C=i("a-tooltip"),v=i("a-space"),E=i("a-radio-group"),D=i("a-tag"),G=i("a-select"),le=i("a-table"),oe=i("a-textarea"),B=i("a-descriptions-item"),ne=i("a-descriptions"),se=i("a-affix");return k(),M("div",Ce,[e(p,{style:{width:"100%"}},{default:t(()=>[e(d,{span:R.value?24-q.value:24,class:"left"},{default:t(()=>[e(h,null,{default:t(()=>[e(v,{style:{width:"100%"},direction:"vertical",size:"middle"},{default:t(()=>[e(y,null,{default:t(()=>[e(p,{justify:"end",style:{width:"100%"}},{default:t(()=>[e(u,{type:"text",style:{color:"#0a90d5"},onClick:l[0]||(l[0]=o=>R.value=!R.value)},{default:t(()=>[r(" 字段说明 "),R.value?(k(),g(S(he),{key:1})):(k(),g(S(be),{key:0}))]),_:1})]),_:1}),e(h,{title:"基础信息",style:{width:"100%"},class:"_detail"},{default:t(()=>[e(f,{layout:"horizontal"},{default:t(()=>[e(y,{style:{width:"100%"}},{default:t(()=>[e(d,{span:12},{default:t(()=>[e(n,{label:"规则粒度",required:""},{default:t(()=>[r(" 应用")]),_:1}),e(n,{label:"容错保护"},{default:t(()=>[e(b,{checked:c.faultTolerantProtection,"onUpdate:checked":l[1]||(l[1]=o=>c.faultTolerantProtection=o),"checked-children":"开","un-checked-children":"关"},null,8,["checked"])]),_:1}),e(n,{label:"运行时生效"},{default:t(()=>[e(b,{checked:c.runtime,"onUpdate:checked":l[2]||(l[2]=o=>c.runtime=o),"checked-children":"开","un-checked-children":"关"},null,8,["checked"])]),_:1})]),_:1}),e(d,{span:12},{default:t(()=>[e(n,{label:"作用对象",required:""},{default:t(()=>[e(_,{value:c.objectOfAction,"onUpdate:value":l[3]||(l[3]=o=>c.objectOfAction=o),style:{width:"200px"}},null,8,["value"])]),_:1}),e(n,{label:"立即启用"},{default:t(()=>[e(b,{checked:c.enable,"onUpdate:checked":l[4]||(l[4]=o=>c.enable=o),"checked-children":"开","un-checked-children":"关"},null,8,["checked"])]),_:1}),e(n,{label:"优先级"},{default:t(()=>[e(s,{min:"1",value:c.priority,"onUpdate:value":l[5]||(l[5]=o=>c.priority=o)},null,8,["value"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),e(h,{title:"标签列表",style:{width:"100%"},class:"_detail"},{default:t(()=>[(k(!0),M(me,null,ke(m.value,(o,j)=>(k(),g(h,{key:j},{title:t(()=>[e(v,{align:"center"},{default:t(()=>[x("div",null,"路由【"+V(j+1)+"】",1),e(C,null,{title:t(()=>[r(V(F(o,c.objectOfAction)),1)]),default:t(()=>[x("div",Ue,V(F(o,c.objectOfAction)),1)]),_:2},1024)]),_:2},1024)]),default:t(()=>[e(f,{layout:"horizontal"},{default:t(()=>[e(v,{style:{width:"100%"},direction:"vertical",size:"large"},{default:t(()=>[e(p,{justify:"end"},{default:t(()=>[e(S(L),{onClick:U=>te(j),class:"action-icon",icon:"tdesign:delete"},null,8,["onClick"])]),_:2},1024),e(n,{label:"标签名",required:""},{default:t(()=>[e(_,{placeholder:"隔离环境名",value:o.tagName,"onUpdate:value":U=>o.tagName=U},null,8,["value","onUpdate:value"])]),_:2},1024),e(n,{label:"作用范围",required:""},{default:t(()=>[e(h,null,{default:t(()=>[e(v,{style:{width:"100%"},direction:"vertical"},{default:t(()=>[e(n,{label:"匹配条件类型"},{default:t(()=>[e(E,{value:o.scope.type,"onUpdate:value":U=>o.scope.type=U,options:H.value},null,8,["value","onUpdate:value","options"])]),_:2},1024),e(v,{align:"start",style:{width:"100%"},direction:"horizontal"},{default:t(()=>{var U;return[e(D,{bordered:!1,color:"processing"},{default:t(()=>[r(V(o.scope.type),1)]),_:2},1024),o.scope.type==="labels"?(k(),g(le,{key:0,pagination:!1,columns:X.value,"data-source":(U=o.scope)==null?void 0:U.labels},{bodyCell:t(({column:$,record:K,text:Ae,index:ie})=>[$.key==="myKey"?(k(),g(_,{key:0,placeholder:"label key",value:K.myKey,"onUpdate:value":N=>K.myKey=N},null,8,["value","onUpdate:value"])):P("",!0),$.key==="condition"?(k(),g(G,{key:1,value:K.condition,"onUpdate:value":N=>K.condition=N,style:{width:"120px"},options:W.value},null,8,["value","onUpdate:value","options"])):P("",!0),$.key==="value"?(k(),g(_,{key:2,placeholder:"label value",value:K.value,"onUpdate:value":N=>K.value=N},null,8,["value","onUpdate:value"])):$.key==="operation"?(k(),g(v,{key:3,align:"center"},{default:t(()=>[e(S(L),{icon:"tdesign:remove",class:"action-icon",onClick:N=>Z(j,ie)},null,8,["onClick"]),e(S(L),{class:"action-icon",icon:"tdesign:add",onClick:N=>I(j)},null,8,["onClick"])]),_:2},1024)):P("",!0)]),_:2},1032,["columns","data-source"])):(k(),g(v,{key:1,align:"start"},{default:t(()=>[e(G,{style:{width:"120px"},value:o.scope.addresses.condition,"onUpdate:value":$=>o.scope.addresses.condition=$,options:Q.value},null,8,["value","onUpdate:value","options"]),e(oe,{style:{width:"500px"},value:o.scope.addresses.addressesStr,"onUpdate:value":$=>o.scope.addresses.addressesStr=$,placeholder:'地址列表,如有多个用","隔开'},null,8,["value","onUpdate:value"])]),_:2},1024))]}),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:1}),e(u,{onClick:ee,type:"primary"},{default:t(()=>[r(" 增加标签")]),_:1})]),_:1})]),_:1})]),_:1},8,["span"]),e(d,{span:R.value?q.value:0,class:"right"},{default:t(()=>[R.value?(k(),g(h,{key:0,class:"sliderBox"},{default:t(()=>[x("div",null,[e(ne,{title:"字段说明",column:1},{default:t(()=>[e(B,{label:"key"},{default:t(()=>[r(" 作用对象"),Ne,r(" 可能的值:Dubbo应用名或者服务名 ")]),_:1}),e(B,{label:"scope"},{default:t(()=>[r(" 规则粒度"),Oe,r(" 可能的值:application, service ")]),_:1}),e(B,{label:"force"},{default:t(()=>[r(" 容错保护"),Re,r(" 可能的值:true, false"),Ke,r(" 描述:如果为true,则路由筛选后若没有可用的地址则会直接报异常;如果为false,则会从可用地址中选择完成RPC调用 ")]),_:1}),e(B,{label:"runtime"},{default:t(()=>[r(" 运行时生效"),Te,r(" 可能的值:true, false"),Ee,r(" 描述:如果为true,则该rule下的所有路由将会实时生效;若为false,则只有在启动时才会生效 ")]),_:1})]),_:1})])]),_:1})):P("",!0)]),_:1},8,["span"])]),_:1}),e(se,{"offset-bottom":10},{default:t(()=>[x("div",je,[e(v,{align:"center",size:"large"},{default:t(()=>[e(u,{type:"primary",onClick:ae},{default:t(()=>[r(" 确认")]),_:1}),e(u,null,{default:t(()=>[r(" 取消")]),_:1})]),_:1})])]),_:1})])}}}),ze=we(Se,[["__scopeId","data-v-74fb5f17"]]);export{ze as default}; diff --git a/app/dubbo-ui/dist/admin/assets/addByYAMLView-fC-hqbkM.js b/app/dubbo-ui/dist/admin/assets/addByYAMLView-2m0Rtfoo.js similarity index 95% rename from app/dubbo-ui/dist/admin/assets/addByYAMLView-fC-hqbkM.js rename to app/dubbo-ui/dist/admin/assets/addByYAMLView-2m0Rtfoo.js index f8332ccc..ad073414 100644 --- a/app/dubbo-ui/dist/admin/assets/addByYAMLView-fC-hqbkM.js +++ b/app/dubbo-ui/dist/admin/assets/addByYAMLView-2m0Rtfoo.js @@ -1,4 +1,4 @@ -import{y as R,_ as T}from"./js-yaml-eElisXzH.js";import{d as A,y as $,z as O,u as Y,B as h,D as L,H as w,J as v,w as e,e as s,o as b,b as t,f as a,n as B,aa as M,ab as P,j as o,T as J,m as E,p as j,h as z,_ as K}from"./index-3zDsduUv.js";import{a as H}from"./traffic-dHGZ6qwp.js";import"./request-3an337VF.js";const c=p=>(j("data-v-f0b44ffc"),p=p(),z(),p),U={class:"editorBox"},q={class:"bottom-action-footer"},F=c(()=>o("br",null,null,-1)),G=c(()=>o("br",null,null,-1)),Q=c(()=>o("br",null,null,-1)),W=c(()=>o("br",null,null,-1)),X=c(()=>o("br",null,null,-1)),Z=c(()=>o("br",null,null,-1)),ee=A({__name:"addByYAMLView",setup(p){const d=$(O.PROVIDE_INJECT_KEY),I=Y(),N=h(!1),r=h(!1),V=h(8),i=h(`conditions: +import{y as R,_ as T}from"./js-yaml-EQlPfOK8.js";import{d as A,y as $,z as O,u as Y,B as h,D as L,H as w,J as v,w as e,e as s,o as b,b as t,f as a,n as B,aa as M,ab as P,j as o,T as J,m as E,p as j,h as z,_ as K}from"./index-VXjVsiiO.js";import{a as H}from"./traffic-W0fp5Gf-.js";import"./request-Cs8TyifY.js";const c=p=>(j("data-v-f0b44ffc"),p=p(),z(),p),U={class:"editorBox"},q={class:"bottom-action-footer"},F=c(()=>o("br",null,null,-1)),G=c(()=>o("br",null,null,-1)),Q=c(()=>o("br",null,null,-1)),W=c(()=>o("br",null,null,-1)),X=c(()=>o("br",null,null,-1)),Z=c(()=>o("br",null,null,-1)),ee=A({__name:"addByYAMLView",setup(p){const d=$(O.PROVIDE_INJECT_KEY),I=Y(),N=h(!1),r=h(!1),V=h(8),i=h(`conditions: - from: match: >- method=string & arguments[method]=string & diff --git a/app/dubbo-ui/dist/admin/assets/addByYAMLView--WjgktlZ.js b/app/dubbo-ui/dist/admin/assets/addByYAMLView-vqAGps1J.js similarity index 94% rename from app/dubbo-ui/dist/admin/assets/addByYAMLView--WjgktlZ.js rename to app/dubbo-ui/dist/admin/assets/addByYAMLView-vqAGps1J.js index 11027680..8220ac96 100644 --- a/app/dubbo-ui/dist/admin/assets/addByYAMLView--WjgktlZ.js +++ b/app/dubbo-ui/dist/admin/assets/addByYAMLView-vqAGps1J.js @@ -1,4 +1,4 @@ -import{y as g,_ as N}from"./js-yaml-eElisXzH.js";import{f as A}from"./traffic-dHGZ6qwp.js";import{d as D,y as O,z as S,u as Y,a as $,B as p,D as L,H as M,J as m,w as e,e as n,o as v,b as a,f as t,n as B,aa as P,ab as j,j as o,T as J,p as z,h as K,_ as G}from"./index-3zDsduUv.js";import"./request-3an337VF.js";const r=f=>(z("data-v-169bd129"),f=f(),K(),f),H={class:"editorBox"},U={class:"bottom-action-footer"},q=r(()=>o("br",null,null,-1)),F=r(()=>o("br",null,null,-1)),Q=r(()=>o("br",null,null,-1)),W=r(()=>o("br",null,null,-1)),X=r(()=>o("br",null,null,-1)),Z=r(()=>o("br",null,null,-1)),ee=D({__name:"addByYAMLView",setup(f){const y=O(S.PROVIDE_INJECT_KEY),E=Y();$();const I=p(!1),s=p(!1),h=p(8),u=p(`configVersion: v3.0 +import{y as g,_ as N}from"./js-yaml-EQlPfOK8.js";import{f as A}from"./traffic-W0fp5Gf-.js";import{d as D,y as O,z as S,u as Y,a as $,B as p,D as L,H as M,J as m,w as e,e as n,o as v,b as a,f as t,n as B,aa as P,ab as j,j as o,T as J,p as z,h as K,_ as G}from"./index-VXjVsiiO.js";import"./request-Cs8TyifY.js";const r=f=>(z("data-v-169bd129"),f=f(),K(),f),H={class:"editorBox"},U={class:"bottom-action-footer"},q=r(()=>o("br",null,null,-1)),F=r(()=>o("br",null,null,-1)),Q=r(()=>o("br",null,null,-1)),W=r(()=>o("br",null,null,-1)),X=r(()=>o("br",null,null,-1)),Z=r(()=>o("br",null,null,-1)),ee=D({__name:"addByYAMLView",setup(f){const y=O(S.PROVIDE_INJECT_KEY),E=Y();$();const I=p(!1),s=p(!1),h=p(8),u=p(`configVersion: v3.0 force: true enabled: true key: shop-detail diff --git a/app/dubbo-ui/dist/admin/assets/app-mdoSebGq.js b/app/dubbo-ui/dist/admin/assets/app-tPR0CJiV.js similarity index 94% rename from app/dubbo-ui/dist/admin/assets/app-mdoSebGq.js rename to app/dubbo-ui/dist/admin/assets/app-tPR0CJiV.js index 6360cbc8..15207204 100644 --- a/app/dubbo-ui/dist/admin/assets/app-mdoSebGq.js +++ b/app/dubbo-ui/dist/admin/assets/app-tPR0CJiV.js @@ -1 +1 @@ -import{r as a}from"./request-3an337VF.js";const r=t=>a({url:"/application/search",method:"get",params:t}),p=t=>a({url:"/application/detail",method:"get",params:t}),i=t=>a({url:"/application/instance/info",method:"get",params:t}),n=t=>a({url:"/application/service/form",method:"get",params:t}),c=t=>a({url:"/application/metric-dashboard",method:"get",params:t}),s=t=>a({url:"/application/trace-dashboard",method:"get",params:t}),l=t=>a({url:"/application/event",method:"get",params:t}),g=t=>a({url:"/application/config/operatorLog",method:"get",params:{appName:t}}),u=(t,o)=>a({url:"/application/config/operatorLog",method:"put",params:{appName:t,operatorLog:o}}),d=t=>a({url:"/application/config/flowWeight",method:"get",params:{appName:t}}),h=(t,o)=>a({url:"/application/config/flowWeight",method:"put",params:{appName:t},data:{flowWeightSets:o}}),m=t=>a({url:"/application/config/gray",method:"get",params:{appName:t}}),f=(t,o)=>a({url:"/application/config/gray",method:"put",params:{appName:t},data:{graySets:o}});export{i as a,n as b,c,s as d,d as e,h as f,p as g,m as h,f as i,g as j,l,r as s,u}; +import{r as a}from"./request-Cs8TyifY.js";const r=t=>a({url:"/application/search",method:"get",params:t}),p=t=>a({url:"/application/detail",method:"get",params:t}),i=t=>a({url:"/application/instance/info",method:"get",params:t}),n=t=>a({url:"/application/service/form",method:"get",params:t}),c=t=>a({url:"/application/metric-dashboard",method:"get",params:t}),s=t=>a({url:"/application/trace-dashboard",method:"get",params:t}),l=t=>a({url:"/application/event",method:"get",params:t}),g=t=>a({url:"/application/config/operatorLog",method:"get",params:{appName:t}}),u=(t,o)=>a({url:"/application/config/operatorLog",method:"put",params:{appName:t,operatorLog:o}}),d=t=>a({url:"/application/config/flowWeight",method:"get",params:{appName:t}}),h=(t,o)=>a({url:"/application/config/flowWeight",method:"put",params:{appName:t},data:{flowWeightSets:o}}),m=t=>a({url:"/application/config/gray",method:"get",params:{appName:t}}),f=(t,o)=>a({url:"/application/config/gray",method:"put",params:{appName:t},data:{graySets:o}});export{i as a,n as b,c,s as d,d as e,h as f,p as g,m as h,f as i,g as j,l,r as s,u}; diff --git a/app/dubbo-ui/dist/admin/assets/config-iPQQ4Osw.js b/app/dubbo-ui/dist/admin/assets/config-K0lc03RB.js similarity index 96% rename from app/dubbo-ui/dist/admin/assets/config-iPQQ4Osw.js rename to app/dubbo-ui/dist/admin/assets/config-K0lc03RB.js index 59454ecd..181fdd47 100644 --- a/app/dubbo-ui/dist/admin/assets/config-iPQQ4Osw.js +++ b/app/dubbo-ui/dist/admin/assets/config-K0lc03RB.js @@ -1 +1 @@ -import{C as Q}from"./ConfigPage-Onvd_SY6.js";import{d as X,a as Y,r as Z,a4 as ee,D as ae,c as I,b as l,w as o,n as W,e as _,o as p,L,M as $,J as g,f as C,t as U,j as G,I as j,T as w,_ as te}from"./index-3zDsduUv.js";import{u as oe,e as le,f as ne,h as se,i as ie,j as ue}from"./app-mdoSebGq.js";import"./request-3an337VF.js";const ce=D=>{var m;(m=document.getElementById(D))==null||m.scrollIntoView({behavior:"smooth"})},re={class:"__container_app_config"},de={style:{float:"right"}},fe={style:{float:"right"}},pe=X({__name:"config",setup(D){const m=Y(),A=[{key:"key",title:"label"},{key:"condition",title:"condition"},{key:"value",title:"value"},{key:"operation",title:"操作"}];let r=Z({list:[{title:"applicationDomain.operatorLog",key:"log",form:{logFlag:!1},submit:e=>new Promise(a=>{a(N(e==null?void 0:e.logFlag))}),reset(e){e.logFlag=!1}},{title:"applicationDomain.flowWeight",key:"flow",ext:{title:"添加权重配置",fun(e){V(),ee(()=>{var t;const a=((t=r.list.find(n=>n.key==="flow"))==null?void 0:t.form.rules.length)-1;a>=0&&ce("flowWeight"+a)})}},form:{rules:[{weight:10,scope:[]}]},submit(e){return new Promise(a=>{a(O())})},reset(){x()}},{title:"applicationDomain.gray",key:"gray",ext:{title:"添加灰度环境",fun(){R()}},form:{rules:[{name:"env-nam",scope:{key:"env",value:{exact:"gray"}}}]},submit(e){return new Promise(a=>{a(M())})},reset(){F()}}],current:[0]});const T=async()=>{var a;const e=await ue((a=m.params)==null?void 0:a.pathId);console.log(e),(e==null?void 0:e.code)==200&&r.list.forEach(t=>{if(t.key==="log"){t.form.logFlag=e.data.operatorLog;return}})},N=async e=>{var t;const a=await oe((t=m.params)==null?void 0:t.pathId,e);console.log(a),(a==null?void 0:a.code)==200&&await T()},x=async()=>{var a;const e=await le((a=m.params)==null?void 0:a.pathId);(e==null?void 0:e.code)==200&&r.list.forEach(t=>{t.key==="flow"&&(t.form.rules=JSON.parse(JSON.stringify(e.data.flowWeightSets)),t.form.rules.forEach(n=>{n.scope.forEach(s=>{s.label=s.key,s.condition=s.value?Object.keys(s.value)[0]:"",s.value=s.value?Object.values(s.value)[0]:""})}))})},O=async()=>{var t;let e=[];r.list.forEach(n=>{n.key==="flow"&&n.form.rules.forEach(s=>{let i={weight:s.weight,scope:[]};s.scope.forEach(b=>{const{key:v,value:E,condition:h}=b;let y={key:b.label||v,value:{}};h&&(y.value[h]=E),i.scope.push(y)}),e.push(i)})}),(await ne((t=m.params)==null?void 0:t.pathId,e)).code===200&&await x()},V=()=>{r.list.forEach(e=>{e.key==="flow"&&e.form.rules.push({weight:10,scope:[{key:"",condition:"",value:""}]})})},z=e=>{r.list.forEach(a=>{a.key==="flow"&&a.form.rules.splice(e,1)})},B=e=>{r.list.forEach(a=>{if(a.key==="flow"){let t={key:"",condition:"",value:""};a.form.rules[e].scope.push(t);return}})},P=(e,a)=>{r.list.forEach(t=>{t.key==="flow"&&t.form.rules[e].scope.splice(a,1)})},J=[{key:"label",title:"label",dataIndex:"label"},{key:"condition",title:"condition",dataIndex:"condition"},{key:"value",title:"value",dataIndex:"value"},{key:"operation",title:"operation",dataIndex:"operation"}],F=async()=>{var a;const e=await se((a=m.params)==null?void 0:a.pathId);(e==null?void 0:e.code)==200&&r.list.forEach(t=>{if(t.key==="gray"){const n=e.data.graySets;n.length>0&&n.forEach(s=>{s.scope.forEach(i=>{i.label=i.key,i.condition=i.value?Object.keys(i.value)[0]:"",i.value=i.value?Object.values(i.value)[0]:""})}),t.form.rules=n}})},M=async()=>{var t;let e=[];r.list.forEach(n=>{n.key==="gray"&&n.form.rules.forEach(s=>{let i={name:s.name,scope:[]};s.scope.forEach(b=>{const{key:v,value:E,condition:h}=b;let y={key:b.label,value:{}};h&&(y.value[h]=E),i.scope.push(y)}),e.push(i)})}),(await ie((t=m.params)==null?void 0:t.pathId,e)).code===200&&await F()},R=()=>{r.list.forEach(e=>{e.key==="gray"&&e.form.rules.push({name:"",scope:[{key:"",condition:"",value:""}]})})},q=e=>{r.list.forEach(a=>{if(a.key==="gray"){let t={key:"",condition:"",value:""};a.form.rules[e].scope.push(t);return}})},H=(e,a)=>{r.list.forEach(t=>{t.key==="gray"&&t.form.rules[e].scope.splice(a,1)})},K=e=>{r.list.forEach(a=>{a.key==="gray"&&a.form.rules.splice(e,1)})};return ae(()=>{T(),x(),F()}),(e,a)=>{const t=_("a-switch"),n=_("a-form-item"),s=_("a-button"),i=_("a-space"),b=_("a-input-number"),v=_("a-input"),E=_("a-table"),h=_("a-card");return p(),I("div",re,[l(Q,{options:W(r)},{form_log:o(({current:y})=>[l(n,{label:e.$t("applicationDomain.operatorLog"),name:"logFlag"},{default:o(()=>[l(t,{checked:y.form.logFlag,"onUpdate:checked":k=>y.form.logFlag=k},null,8,["checked","onUpdate:checked"])]),_:2},1032,["label"])]),form_flow:o(({current:y})=>[l(i,{direction:"vertical",size:"middle",class:"flowWeight-box"},{default:o(()=>[(p(!0),I(L,null,$(y.form.rules,(k,u)=>(p(),g(h,{id:"flowWeight"+u},{title:o(()=>[C(U(e.$t("applicationDomain.flowWeight"))+" "+U(u+1)+" ",1),G("div",de,[l(i,null,{default:o(()=>[l(s,{danger:"",type:"dashed",onClick:c=>z(u)},{default:o(()=>[l(W(j),{style:{"font-size":"20px"},icon:"fluent:delete-12-filled"})]),_:2},1032,["onClick"])]),_:2},1024)])]),default:o(()=>[l(n,{name:"rules["+u+"].weight",label:"权重"},{default:o(()=>[l(b,{min:"1",value:k.weight,"onUpdate:value":c=>k.weight=c},null,8,["value","onUpdate:value"])]),_:2},1032,["name"]),l(n,{label:"作用范围"},{default:o(()=>[l(s,{type:"primary",onClick:c=>B(u)},{default:o(()=>[C(" 添加")]),_:2},1032,["onClick"]),l(E,{style:{width:"40vw"},pagination:!1,columns:A,"data-source":k.scope},{bodyCell:o(({column:c,record:d,index:S})=>[c.key==="key"?(p(),g(n,{key:0,name:"rules["+u+"].scope.key"},{default:o(()=>[l(v,{value:d.key,"onUpdate:value":f=>d.key=f},null,8,["value","onUpdate:value"])]),_:2},1032,["name"])):w("",!0),c.key==="condition"?(p(),g(n,{key:1,name:"rules["+u+"].scope.condition"},{default:o(()=>[l(v,{value:d.condition,"onUpdate:value":f=>d.condition=f},null,8,["value","onUpdate:value"])]),_:2},1032,["name"])):w("",!0),c.key==="value"?(p(),g(n,{key:2,name:"rules["+u+"].scope.value"},{default:o(()=>[l(v,{value:d.value,"onUpdate:value":f=>d.value=f},null,8,["value","onUpdate:value"])]),_:2},1032,["name"])):w("",!0),c.key==="operation"?(p(),g(n,{key:3,name:"rules["+u+"].scope.operation"},{default:o(()=>[l(s,{type:"link",onClick:f=>P(u,S)},{default:o(()=>[C(" 删除")]),_:2},1032,["onClick"])]),_:2},1032,["name"])):w("",!0)]),_:2},1032,["data-source"])]),_:2},1024)]),_:2},1032,["id"]))),256))]),_:2},1024)]),form_gray:o(({current:y})=>[l(i,{direction:"vertical",size:"middle"},{default:o(()=>[(p(!0),I(L,null,$(y.form.rules,(k,u)=>(p(),g(h,null,{title:o(()=>[C(U(e.$t("applicationDomain.gray"))+" "+U(u+1)+" ",1),G("div",fe,[l(i,null,{default:o(()=>[l(s,{danger:"",type:"dashed",onClick:c=>K(u)},{default:o(()=>[l(W(j),{style:{"font-size":"20px"},icon:"fluent:delete-12-filled"})]),_:2},1032,["onClick"])]),_:2},1024)])]),default:o(()=>[l(n,{name:"rules["+u+"].name",label:"环境名称"},{default:o(()=>[l(v,{value:k.name,"onUpdate:value":c=>k.name=c},null,8,["value","onUpdate:value"])]),_:2},1032,["name"]),l(n,{label:"作用范围"},{default:o(()=>[l(i,{direction:"vertical",size:"middle"},{default:o(()=>[l(s,{type:"primary",onClick:c=>q(u)},{default:o(()=>[C(" 添加")]),_:2},1032,["onClick"]),l(E,{style:{width:"40vw"},pagination:!1,columns:J,"data-source":k.scope},{bodyCell:o(({column:c,record:d,index:S})=>[c.key==="label"?(p(),g(n,{key:0,name:"rules["+u+"].scope.key"},{default:o(()=>[l(v,{value:d.label,"onUpdate:value":f=>d.label=f},null,8,["value","onUpdate:value"])]),_:2},1032,["name"])):w("",!0),c.key==="condition"?(p(),g(n,{key:1,name:"rules["+u+"].scope.condition"},{default:o(()=>[l(v,{value:d.condition,"onUpdate:value":f=>d.condition=f},null,8,["value","onUpdate:value"])]),_:2},1032,["name"])):w("",!0),c.key==="value"?(p(),g(n,{key:2,name:"rules["+u+"].scope.value"},{default:o(()=>[l(v,{value:d.value,"onUpdate:value":f=>d.value=f},null,8,["value","onUpdate:value"])]),_:2},1032,["name"])):w("",!0),c.key==="operation"?(p(),g(n,{key:3,name:"rules["+u+"].scope.operation"},{default:o(()=>[l(s,{type:"link",onClick:f=>H(u,S)},{default:o(()=>[C(" 删除")]),_:2},1032,["onClick"])]),_:2},1032,["name"])):w("",!0)]),_:2},1032,["data-source"])]),_:2},1024)]),_:2},1024)]),_:2},1024))),256))]),_:2},1024)]),_:1},8,["options"])])}}}),ke=te(pe,[["__scopeId","data-v-2bf9591a"]]);export{ke as default}; +import{C as Q}from"./ConfigPage-Uqug3gMA.js";import{d as X,a as Y,r as Z,a4 as ee,D as ae,c as I,b as l,w as o,n as W,e as _,o as p,L,M as $,J as g,f as C,t as U,j as G,I as j,T as w,_ as te}from"./index-VXjVsiiO.js";import{u as oe,e as le,f as ne,h as se,i as ie,j as ue}from"./app-tPR0CJiV.js";import"./request-Cs8TyifY.js";const ce=D=>{var m;(m=document.getElementById(D))==null||m.scrollIntoView({behavior:"smooth"})},re={class:"__container_app_config"},de={style:{float:"right"}},fe={style:{float:"right"}},pe=X({__name:"config",setup(D){const m=Y(),A=[{key:"key",title:"label"},{key:"condition",title:"condition"},{key:"value",title:"value"},{key:"operation",title:"操作"}];let r=Z({list:[{title:"applicationDomain.operatorLog",key:"log",form:{logFlag:!1},submit:e=>new Promise(a=>{a(N(e==null?void 0:e.logFlag))}),reset(e){e.logFlag=!1}},{title:"applicationDomain.flowWeight",key:"flow",ext:{title:"添加权重配置",fun(e){V(),ee(()=>{var t;const a=((t=r.list.find(n=>n.key==="flow"))==null?void 0:t.form.rules.length)-1;a>=0&&ce("flowWeight"+a)})}},form:{rules:[{weight:10,scope:[]}]},submit(e){return new Promise(a=>{a(O())})},reset(){x()}},{title:"applicationDomain.gray",key:"gray",ext:{title:"添加灰度环境",fun(){R()}},form:{rules:[{name:"env-nam",scope:{key:"env",value:{exact:"gray"}}}]},submit(e){return new Promise(a=>{a(M())})},reset(){F()}}],current:[0]});const T=async()=>{var a;const e=await ue((a=m.params)==null?void 0:a.pathId);console.log(e),(e==null?void 0:e.code)==200&&r.list.forEach(t=>{if(t.key==="log"){t.form.logFlag=e.data.operatorLog;return}})},N=async e=>{var t;const a=await oe((t=m.params)==null?void 0:t.pathId,e);console.log(a),(a==null?void 0:a.code)==200&&await T()},x=async()=>{var a;const e=await le((a=m.params)==null?void 0:a.pathId);(e==null?void 0:e.code)==200&&r.list.forEach(t=>{t.key==="flow"&&(t.form.rules=JSON.parse(JSON.stringify(e.data.flowWeightSets)),t.form.rules.forEach(n=>{n.scope.forEach(s=>{s.label=s.key,s.condition=s.value?Object.keys(s.value)[0]:"",s.value=s.value?Object.values(s.value)[0]:""})}))})},O=async()=>{var t;let e=[];r.list.forEach(n=>{n.key==="flow"&&n.form.rules.forEach(s=>{let i={weight:s.weight,scope:[]};s.scope.forEach(b=>{const{key:v,value:E,condition:h}=b;let y={key:b.label||v,value:{}};h&&(y.value[h]=E),i.scope.push(y)}),e.push(i)})}),(await ne((t=m.params)==null?void 0:t.pathId,e)).code===200&&await x()},V=()=>{r.list.forEach(e=>{e.key==="flow"&&e.form.rules.push({weight:10,scope:[{key:"",condition:"",value:""}]})})},z=e=>{r.list.forEach(a=>{a.key==="flow"&&a.form.rules.splice(e,1)})},B=e=>{r.list.forEach(a=>{if(a.key==="flow"){let t={key:"",condition:"",value:""};a.form.rules[e].scope.push(t);return}})},P=(e,a)=>{r.list.forEach(t=>{t.key==="flow"&&t.form.rules[e].scope.splice(a,1)})},J=[{key:"label",title:"label",dataIndex:"label"},{key:"condition",title:"condition",dataIndex:"condition"},{key:"value",title:"value",dataIndex:"value"},{key:"operation",title:"operation",dataIndex:"operation"}],F=async()=>{var a;const e=await se((a=m.params)==null?void 0:a.pathId);(e==null?void 0:e.code)==200&&r.list.forEach(t=>{if(t.key==="gray"){const n=e.data.graySets;n.length>0&&n.forEach(s=>{s.scope.forEach(i=>{i.label=i.key,i.condition=i.value?Object.keys(i.value)[0]:"",i.value=i.value?Object.values(i.value)[0]:""})}),t.form.rules=n}})},M=async()=>{var t;let e=[];r.list.forEach(n=>{n.key==="gray"&&n.form.rules.forEach(s=>{let i={name:s.name,scope:[]};s.scope.forEach(b=>{const{key:v,value:E,condition:h}=b;let y={key:b.label,value:{}};h&&(y.value[h]=E),i.scope.push(y)}),e.push(i)})}),(await ie((t=m.params)==null?void 0:t.pathId,e)).code===200&&await F()},R=()=>{r.list.forEach(e=>{e.key==="gray"&&e.form.rules.push({name:"",scope:[{key:"",condition:"",value:""}]})})},q=e=>{r.list.forEach(a=>{if(a.key==="gray"){let t={key:"",condition:"",value:""};a.form.rules[e].scope.push(t);return}})},H=(e,a)=>{r.list.forEach(t=>{t.key==="gray"&&t.form.rules[e].scope.splice(a,1)})},K=e=>{r.list.forEach(a=>{a.key==="gray"&&a.form.rules.splice(e,1)})};return ae(()=>{T(),x(),F()}),(e,a)=>{const t=_("a-switch"),n=_("a-form-item"),s=_("a-button"),i=_("a-space"),b=_("a-input-number"),v=_("a-input"),E=_("a-table"),h=_("a-card");return p(),I("div",re,[l(Q,{options:W(r)},{form_log:o(({current:y})=>[l(n,{label:e.$t("applicationDomain.operatorLog"),name:"logFlag"},{default:o(()=>[l(t,{checked:y.form.logFlag,"onUpdate:checked":k=>y.form.logFlag=k},null,8,["checked","onUpdate:checked"])]),_:2},1032,["label"])]),form_flow:o(({current:y})=>[l(i,{direction:"vertical",size:"middle",class:"flowWeight-box"},{default:o(()=>[(p(!0),I(L,null,$(y.form.rules,(k,u)=>(p(),g(h,{id:"flowWeight"+u},{title:o(()=>[C(U(e.$t("applicationDomain.flowWeight"))+" "+U(u+1)+" ",1),G("div",de,[l(i,null,{default:o(()=>[l(s,{danger:"",type:"dashed",onClick:c=>z(u)},{default:o(()=>[l(W(j),{style:{"font-size":"20px"},icon:"fluent:delete-12-filled"})]),_:2},1032,["onClick"])]),_:2},1024)])]),default:o(()=>[l(n,{name:"rules["+u+"].weight",label:"权重"},{default:o(()=>[l(b,{min:"1",value:k.weight,"onUpdate:value":c=>k.weight=c},null,8,["value","onUpdate:value"])]),_:2},1032,["name"]),l(n,{label:"作用范围"},{default:o(()=>[l(s,{type:"primary",onClick:c=>B(u)},{default:o(()=>[C(" 添加")]),_:2},1032,["onClick"]),l(E,{style:{width:"40vw"},pagination:!1,columns:A,"data-source":k.scope},{bodyCell:o(({column:c,record:d,index:S})=>[c.key==="key"?(p(),g(n,{key:0,name:"rules["+u+"].scope.key"},{default:o(()=>[l(v,{value:d.key,"onUpdate:value":f=>d.key=f},null,8,["value","onUpdate:value"])]),_:2},1032,["name"])):w("",!0),c.key==="condition"?(p(),g(n,{key:1,name:"rules["+u+"].scope.condition"},{default:o(()=>[l(v,{value:d.condition,"onUpdate:value":f=>d.condition=f},null,8,["value","onUpdate:value"])]),_:2},1032,["name"])):w("",!0),c.key==="value"?(p(),g(n,{key:2,name:"rules["+u+"].scope.value"},{default:o(()=>[l(v,{value:d.value,"onUpdate:value":f=>d.value=f},null,8,["value","onUpdate:value"])]),_:2},1032,["name"])):w("",!0),c.key==="operation"?(p(),g(n,{key:3,name:"rules["+u+"].scope.operation"},{default:o(()=>[l(s,{type:"link",onClick:f=>P(u,S)},{default:o(()=>[C(" 删除")]),_:2},1032,["onClick"])]),_:2},1032,["name"])):w("",!0)]),_:2},1032,["data-source"])]),_:2},1024)]),_:2},1032,["id"]))),256))]),_:2},1024)]),form_gray:o(({current:y})=>[l(i,{direction:"vertical",size:"middle"},{default:o(()=>[(p(!0),I(L,null,$(y.form.rules,(k,u)=>(p(),g(h,null,{title:o(()=>[C(U(e.$t("applicationDomain.gray"))+" "+U(u+1)+" ",1),G("div",fe,[l(i,null,{default:o(()=>[l(s,{danger:"",type:"dashed",onClick:c=>K(u)},{default:o(()=>[l(W(j),{style:{"font-size":"20px"},icon:"fluent:delete-12-filled"})]),_:2},1032,["onClick"])]),_:2},1024)])]),default:o(()=>[l(n,{name:"rules["+u+"].name",label:"环境名称"},{default:o(()=>[l(v,{value:k.name,"onUpdate:value":c=>k.name=c},null,8,["value","onUpdate:value"])]),_:2},1032,["name"]),l(n,{label:"作用范围"},{default:o(()=>[l(i,{direction:"vertical",size:"middle"},{default:o(()=>[l(s,{type:"primary",onClick:c=>q(u)},{default:o(()=>[C(" 添加")]),_:2},1032,["onClick"]),l(E,{style:{width:"40vw"},pagination:!1,columns:J,"data-source":k.scope},{bodyCell:o(({column:c,record:d,index:S})=>[c.key==="label"?(p(),g(n,{key:0,name:"rules["+u+"].scope.key"},{default:o(()=>[l(v,{value:d.label,"onUpdate:value":f=>d.label=f},null,8,["value","onUpdate:value"])]),_:2},1032,["name"])):w("",!0),c.key==="condition"?(p(),g(n,{key:1,name:"rules["+u+"].scope.condition"},{default:o(()=>[l(v,{value:d.condition,"onUpdate:value":f=>d.condition=f},null,8,["value","onUpdate:value"])]),_:2},1032,["name"])):w("",!0),c.key==="value"?(p(),g(n,{key:2,name:"rules["+u+"].scope.value"},{default:o(()=>[l(v,{value:d.value,"onUpdate:value":f=>d.value=f},null,8,["value","onUpdate:value"])]),_:2},1032,["name"])):w("",!0),c.key==="operation"?(p(),g(n,{key:3,name:"rules["+u+"].scope.operation"},{default:o(()=>[l(s,{type:"link",onClick:f=>H(u,S)},{default:o(()=>[C(" 删除")]),_:2},1032,["onClick"])]),_:2},1032,["name"])):w("",!0)]),_:2},1032,["data-source"])]),_:2},1024)]),_:2},1024)]),_:2},1024))),256))]),_:2},1024)]),_:1},8,["options"])])}}}),ke=te(pe,[["__scopeId","data-v-2bf9591a"]]);export{ke as default}; diff --git a/app/dubbo-ui/dist/admin/assets/configuration-um3mt9hU.js b/app/dubbo-ui/dist/admin/assets/configuration-wTm-Omst.js similarity index 91% rename from app/dubbo-ui/dist/admin/assets/configuration-um3mt9hU.js rename to app/dubbo-ui/dist/admin/assets/configuration-wTm-Omst.js index 9845420d..873d2662 100644 --- a/app/dubbo-ui/dist/admin/assets/configuration-um3mt9hU.js +++ b/app/dubbo-ui/dist/admin/assets/configuration-wTm-Omst.js @@ -1 +1 @@ -import{C as w}from"./ConfigPage-Onvd_SY6.js";import{d as _,a as h,r as u,D as b,c as D,b as c,w as l,n as I,e as d,o as k,_ as F}from"./index-3zDsduUv.js";import{u as y,c as S,d as L,e as P}from"./instance-qriYfOrq.js";import"./request-3an337VF.js";const C={class:"__container_ins_config"},N=_({__name:"configuration",setup(v){const s=h();let i=u({list:[{title:"instanceDomain.operatorLog",key:"log",form:{logFlag:!1},submit:a=>new Promise(e=>{e(p(a==null?void 0:a.logFlag))}),reset(a){a.logFlag=!1}},{title:"instanceDomain.flowDisabled",form:{flowDisabledFlag:!1},key:"flowDisabled",submit:a=>new Promise(e=>{e(m(a==null?void 0:a.flowDisabledFlag))}),reset(a){a.logFlag=!1}}],current:[0]});const f=async()=>{var e,o;const a=await L((e=s.params)==null?void 0:e.pathId,(o=s.params)==null?void 0:o.appName);(a==null?void 0:a.code)==200&&i.list.forEach(t=>{if(t.key==="log"){t.form.logFlag=a.data.operatorLog;return}})},p=async a=>{var o,t;const e=await y((o=s.params)==null?void 0:o.pathId,(t=s.params)==null?void 0:t.appName,a);(e==null?void 0:e.code)==200&&await f()},g=async()=>{var e,o;const a=await P((e=s.params)==null?void 0:e.pathId,(o=s.params)==null?void 0:o.appName);(a==null?void 0:a.code)==200&&i.list.forEach(t=>{t.key==="flowDisabled"&&(t.form.flowDisabledFlag=a.data.trafficDisable)})},m=async a=>{var o,t;const e=await S((o=s.params)==null?void 0:o.pathId,(t=s.params)==null?void 0:t.appName,a);console.log(e)};return b(()=>{console.log(333),f(),g()}),(a,e)=>{const o=d("a-switch"),t=d("a-form-item");return k(),D("div",C,[c(w,{options:I(i)},{form_log:l(({current:n})=>[c(t,{label:a.$t("instanceDomain.operatorLog"),name:"logFlag"},{default:l(()=>[c(o,{checked:n.form.logFlag,"onUpdate:checked":r=>n.form.logFlag=r},null,8,["checked","onUpdate:checked"])]),_:2},1032,["label"])]),form_flowDisabled:l(({current:n})=>[c(t,{label:a.$t("instanceDomain.flowDisabled"),name:"flowDisabledFlag"},{default:l(()=>[c(o,{checked:n.form.flowDisabledFlag,"onUpdate:checked":r=>n.form.flowDisabledFlag=r},null,8,["checked","onUpdate:checked"])]),_:2},1032,["label"])]),_:1},8,["options"])])}}}),x=F(N,[["__scopeId","data-v-452f673d"]]);export{x as default}; +import{C as w}from"./ConfigPage-Uqug3gMA.js";import{d as _,a as h,r as u,D as b,c as D,b as c,w as l,n as I,e as d,o as k,_ as F}from"./index-VXjVsiiO.js";import{u as y,c as S,d as L,e as P}from"./instance-dqyT8xOu.js";import"./request-Cs8TyifY.js";const C={class:"__container_ins_config"},N=_({__name:"configuration",setup(v){const s=h();let i=u({list:[{title:"instanceDomain.operatorLog",key:"log",form:{logFlag:!1},submit:a=>new Promise(e=>{e(p(a==null?void 0:a.logFlag))}),reset(a){a.logFlag=!1}},{title:"instanceDomain.flowDisabled",form:{flowDisabledFlag:!1},key:"flowDisabled",submit:a=>new Promise(e=>{e(m(a==null?void 0:a.flowDisabledFlag))}),reset(a){a.logFlag=!1}}],current:[0]});const f=async()=>{var e,o;const a=await L((e=s.params)==null?void 0:e.pathId,(o=s.params)==null?void 0:o.appName);(a==null?void 0:a.code)==200&&i.list.forEach(t=>{if(t.key==="log"){t.form.logFlag=a.data.operatorLog;return}})},p=async a=>{var o,t;const e=await y((o=s.params)==null?void 0:o.pathId,(t=s.params)==null?void 0:t.appName,a);(e==null?void 0:e.code)==200&&await f()},g=async()=>{var e,o;const a=await P((e=s.params)==null?void 0:e.pathId,(o=s.params)==null?void 0:o.appName);(a==null?void 0:a.code)==200&&i.list.forEach(t=>{t.key==="flowDisabled"&&(t.form.flowDisabledFlag=a.data.trafficDisable)})},m=async a=>{var o,t;const e=await S((o=s.params)==null?void 0:o.pathId,(t=s.params)==null?void 0:t.appName,a);console.log(e)};return b(()=>{console.log(333),f(),g()}),(a,e)=>{const o=d("a-switch"),t=d("a-form-item");return k(),D("div",C,[c(w,{options:I(i)},{form_log:l(({current:n})=>[c(t,{label:a.$t("instanceDomain.operatorLog"),name:"logFlag"},{default:l(()=>[c(o,{checked:n.form.logFlag,"onUpdate:checked":r=>n.form.logFlag=r},null,8,["checked","onUpdate:checked"])]),_:2},1032,["label"])]),form_flowDisabled:l(({current:n})=>[c(t,{label:a.$t("instanceDomain.flowDisabled"),name:"flowDisabledFlag"},{default:l(()=>[c(o,{checked:n.form.flowDisabledFlag,"onUpdate:checked":r=>n.form.flowDisabledFlag=r},null,8,["checked","onUpdate:checked"])]),_:2},1032,["label"])]),_:1},8,["options"])])}}}),x=F(N,[["__scopeId","data-v-452f673d"]]);export{x as default}; diff --git a/app/dubbo-ui/dist/admin/assets/cssMode-RYNyR8Bq.js b/app/dubbo-ui/dist/admin/assets/cssMode-fVQptnrp.js similarity index 99% rename from app/dubbo-ui/dist/admin/assets/cssMode-RYNyR8Bq.js rename to app/dubbo-ui/dist/admin/assets/cssMode-fVQptnrp.js index 1418b69e..7669d8b0 100644 --- a/app/dubbo-ui/dist/admin/assets/cssMode-RYNyR8Bq.js +++ b/app/dubbo-ui/dist/admin/assets/cssMode-fVQptnrp.js @@ -1,4 +1,4 @@ -import{m as tt}from"./js-yaml-eElisXzH.js";import"./index-3zDsduUv.js";/*!----------------------------------------------------------------------------- +import{m as tt}from"./js-yaml-EQlPfOK8.js";import"./index-VXjVsiiO.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license diff --git a/app/dubbo-ui/dist/admin/assets/detail-IPVQRAO3.js b/app/dubbo-ui/dist/admin/assets/detail-IBCpA_Em.js similarity index 96% rename from app/dubbo-ui/dist/admin/assets/detail-IPVQRAO3.js rename to app/dubbo-ui/dist/admin/assets/detail-IBCpA_Em.js index 3470c3a8..bcbb28d0 100644 --- a/app/dubbo-ui/dist/admin/assets/detail-IPVQRAO3.js +++ b/app/dubbo-ui/dist/admin/assets/detail-IBCpA_Em.js @@ -1 +1 @@ -import{u as H}from"./index-HdnVQEsT.js";import{d as K,a as Q,u as U,r as B,k as X,Z as x,D,c,b as o,w as t,e as n,o as u,j as y,f as r,t as a,n as b,a0 as h,J as k,T as P,L as V,M as A,m as ee,_ as oe}from"./index-3zDsduUv.js";import{g as te}from"./instance-qriYfOrq.js";import{f as M}from"./DateUtil-QXt7LnE3.js";import"./request-3an337VF.js";const le={class:"__container_instance_detail"},ae={class:"white_space"},se={class:"white_space"},re={class:"white_space"},pe=K({__name:"detail",setup(de){const S=Q(),j=U(),w=B({}),{appContext:{config:{globalProperties:E}}}=X();x("20");const e=B({});D(async()=>{const{appName:l,pathId:p}=S.params;let s={instanceName:l,instanceIP:p};w.detail=await te(s),Object.assign(e,w.detail.data)});const F=l=>{console.log("appName",l),j.push({path:"/resources/applications/detail/"+l})},J=H().toClipboard;function f(l){ee.success(E.$t("messageDomain.success.copy")),J(l)}const $=l=>l?"开启":"关闭";return(l,p)=>{const s=n("a-descriptions-item"),_=n("a-typography-paragraph"),C=n("a-descriptions"),m=n("a-card"),W=n("a-col"),Y=n("a-row"),v=n("a-typography-link"),Z=n("a-space"),q=n("a-tag"),z=n("a-card-grid"),G=n("a-flex");return u(),c("div",le,[o(G,null,{default:t(()=>[o(z,null,{default:t(()=>[o(Y,{gutter:10},{default:t(()=>[o(W,{span:12},{default:t(()=>[o(m,{class:"_detail"},{default:t(()=>[o(C,{class:"description-column",column:1},{default:t(()=>[o(s,{label:l.$t("instanceDomain.instanceName"),labelStyle:{fontWeight:"bold"}},{default:t(()=>{var d;return[y("p",{onClick:p[0]||(p[0]=i=>{var g;return f((g=b(S).params)==null?void 0:g.appName)}),class:"description-item-content with-card"},[r(a((d=b(S).params)==null?void 0:d.appName)+" ",1),o(b(h))])]}),_:1},8,["label"]),o(s,{label:l.$t("instanceDomain.creationTime_k8s"),labelStyle:{fontWeight:"bold"}},{default:t(()=>[o(_,null,{default:t(()=>[r(a(b(M)(e==null?void 0:e.createTime)),1)]),_:1})]),_:1},8,["label"]),o(s,{label:l.$t("instanceDomain.deployState"),labelStyle:{fontWeight:"bold"}},{default:t(()=>[(e==null?void 0:e.deployState)==="Running"?(u(),k(_,{key:0,type:"success"},{default:t(()=>[r(" Running ")]),_:1})):(u(),k(_,{key:1,type:"danger"},{default:t(()=>[r(" Stop")]),_:1}))]),_:1},8,["label"])]),_:1})]),_:1})]),_:1}),o(W,{span:12},{default:t(()=>[o(m,{class:"_detail",style:{height:"100%"}},{default:t(()=>[o(C,{class:"description-column",column:1},{default:t(()=>[o(s,{label:l.$t("instanceDomain.startTime_k8s"),labelStyle:{fontWeight:"bold"}},{default:t(()=>[o(_,null,{default:t(()=>[r(a(b(M)(e==null?void 0:e.readyTime)),1)]),_:1})]),_:1},8,["label"]),o(s,{label:l.$t("instanceDomain.registerState"),labelStyle:{fontWeight:"bold"}},{default:t(()=>[o(_,{type:(e==null?void 0:e.registerState)==="Registed"?"success":"danger"},{default:t(()=>[r(a(e==null?void 0:e.registerState),1)]),_:1},8,["type"])]),_:1},8,["label"])]),_:1})]),_:1})]),_:1})]),_:1}),o(m,{style:{"margin-top":"10px"},class:"_detail"},{default:t(()=>[o(C,{class:"description-column",column:1},{default:t(()=>[o(s,{label:l.$t("instanceDomain.instanceIP"),labelStyle:{fontWeight:"bold"}},{default:t(()=>[y("p",{onClick:p[1]||(p[1]=d=>f(e==null?void 0:e.ip)),class:"description-item-content with-card"},[r(a(e==null?void 0:e.ip)+" ",1),o(b(h))])]),_:1},8,["label"]),o(s,{label:l.$t("instanceDomain.deployCluster"),labelStyle:{fontWeight:"bold"}},{default:t(()=>[o(_,null,{default:t(()=>[r(a(e==null?void 0:e.deployCluster),1)]),_:1})]),_:1},8,["label"]),o(s,{label:l.$t("instanceDomain.dubboPort"),labelStyle:{fontWeight:"bold"}},{default:t(()=>[e!=null&&e.rpcPort?(u(),c("p",{key:0,onClick:p[2]||(p[2]=d=>f(e==null?void 0:e.rpcPort)),class:"description-item-content with-card"},[r(a(e==null?void 0:e.rpcPort)+" ",1),o(b(h))])):P("",!0)]),_:1},8,["label"]),o(s,{label:l.$t("instanceDomain.registerCluster"),labelStyle:{fontWeight:"bold"}},{default:t(()=>[o(Z,null,{default:t(()=>[(u(!0),c(V,null,A(e==null?void 0:e.registerClusters,d=>(u(),k(v,null,{default:t(()=>[r(a(d),1)]),_:2},1024))),256))]),_:1})]),_:1},8,["label"]),o(s,{label:l.$t("instanceDomain.whichApplication"),labelStyle:{fontWeight:"bold"}},{default:t(()=>[o(v,{onClick:p[3]||(p[3]=d=>F(e==null?void 0:e.appName))},{default:t(()=>[r(a(e==null?void 0:e.appName),1)]),_:1})]),_:1},8,["label"]),o(s,{label:l.$t("instanceDomain.node"),labelStyle:{fontWeight:"bold"}},{default:t(()=>[e!=null&&e.node?(u(),c("p",{key:0,onClick:p[4]||(p[4]=d=>f(e==null?void 0:e.node)),class:"description-item-content with-card"},[r(a(e==null?void 0:e.node)+" ",1),o(b(h))])):P("",!0)]),_:1},8,["label"]),o(s,{label:l.$t("instanceDomain.owningWorkload_k8s"),labelStyle:{fontWeight:"bold"}},{default:t(()=>[o(_,null,{default:t(()=>[r(a(e==null?void 0:e.workloadName),1)]),_:1})]),_:1},8,["label"]),o(s,{label:l.$t("instanceDomain.instanceImage_k8s"),labelStyle:{fontWeight:"bold"}},{default:t(()=>[o(m,{class:"description-item-card"},{default:t(()=>[e!=null&&e.image?(u(),c("p",{key:0,onClick:p[5]||(p[5]=d=>f(e==null?void 0:e.image)),class:"description-item-content with-card"},[r(a(e==null?void 0:e.image)+" ",1),o(b(h))])):P("",!0)]),_:1})]),_:1},8,["label"]),o(s,{label:l.$t("instanceDomain.instanceLabel"),labelStyle:{fontWeight:"bold"}},{default:t(()=>[o(m,{class:"description-item-card"},{default:t(()=>[(u(!0),c(V,null,A(e==null?void 0:e.labels,(d,i)=>(u(),k(q,null,{default:t(()=>[r(a(i)+" : "+a(d),1)]),_:2},1024))),256))]),_:1})]),_:1},8,["label"]),o(s,{label:l.$t("instanceDomain.healthExamination_k8s"),labelStyle:{fontWeight:"bold"}},{default:t(()=>[o(m,{class:"description-item-card"},{default:t(()=>{var d,i,g,N,I,R,T,L,O;return[y("p",ae," 启动探针(StartupProbe):"+a($((d=e==null?void 0:e.probes)==null?void 0:d.startupProbe.open))+" 类型: "+a((i=e==null?void 0:e.probes)==null?void 0:i.startupProbe.type)+" 端口:"+a((g=e==null?void 0:e.probes)==null?void 0:g.startupProbe.port),1),y("p",se," 就绪探针(ReadinessProbe):"+a($((N=e==null?void 0:e.probes)==null?void 0:N.readinessProbe.open))+" 类型: "+a((I=e==null?void 0:e.probes)==null?void 0:I.readinessProbe.type)+" 端口:"+a((R=e==null?void 0:e.probes)==null?void 0:R.readinessProbe.port),1),y("p",re," 存活探针(LivenessProbe):"+a($((T=e==null?void 0:e.probes)==null?void 0:T.livenessProbe.open))+" 类型: "+a((L=e==null?void 0:e.probes)==null?void 0:L.livenessProbe.type)+" 端口:"+a((O=e==null?void 0:e.probes)==null?void 0:O.livenessProbe.port),1)]}),_:1})]),_:1},8,["label"])]),_:1})]),_:1})]),_:1})]),_:1})])}}}),ce=oe(pe,[["__scopeId","data-v-fb65b5f4"]]);export{ce as default}; +import{u as H}from"./index-Y8bti_iA.js";import{d as K,a as Q,u as U,r as B,k as X,Z as x,D,c,b as o,w as t,e as n,o as u,j as y,f as r,t as a,n as b,a0 as h,J as k,T as P,L as V,M as A,m as ee,_ as oe}from"./index-VXjVsiiO.js";import{g as te}from"./instance-dqyT8xOu.js";import{f as M}from"./DateUtil-Hh_Zud1i.js";import"./request-Cs8TyifY.js";const le={class:"__container_instance_detail"},ae={class:"white_space"},se={class:"white_space"},re={class:"white_space"},pe=K({__name:"detail",setup(de){const S=Q(),j=U(),w=B({}),{appContext:{config:{globalProperties:E}}}=X();x("20");const e=B({});D(async()=>{const{appName:l,pathId:p}=S.params;let s={instanceName:l,instanceIP:p};w.detail=await te(s),Object.assign(e,w.detail.data)});const F=l=>{console.log("appName",l),j.push({path:"/resources/applications/detail/"+l})},J=H().toClipboard;function f(l){ee.success(E.$t("messageDomain.success.copy")),J(l)}const $=l=>l?"开启":"关闭";return(l,p)=>{const s=n("a-descriptions-item"),_=n("a-typography-paragraph"),C=n("a-descriptions"),m=n("a-card"),W=n("a-col"),Y=n("a-row"),v=n("a-typography-link"),Z=n("a-space"),q=n("a-tag"),z=n("a-card-grid"),G=n("a-flex");return u(),c("div",le,[o(G,null,{default:t(()=>[o(z,null,{default:t(()=>[o(Y,{gutter:10},{default:t(()=>[o(W,{span:12},{default:t(()=>[o(m,{class:"_detail"},{default:t(()=>[o(C,{class:"description-column",column:1},{default:t(()=>[o(s,{label:l.$t("instanceDomain.instanceName"),labelStyle:{fontWeight:"bold"}},{default:t(()=>{var d;return[y("p",{onClick:p[0]||(p[0]=i=>{var g;return f((g=b(S).params)==null?void 0:g.appName)}),class:"description-item-content with-card"},[r(a((d=b(S).params)==null?void 0:d.appName)+" ",1),o(b(h))])]}),_:1},8,["label"]),o(s,{label:l.$t("instanceDomain.creationTime_k8s"),labelStyle:{fontWeight:"bold"}},{default:t(()=>[o(_,null,{default:t(()=>[r(a(b(M)(e==null?void 0:e.createTime)),1)]),_:1})]),_:1},8,["label"]),o(s,{label:l.$t("instanceDomain.deployState"),labelStyle:{fontWeight:"bold"}},{default:t(()=>[(e==null?void 0:e.deployState)==="Running"?(u(),k(_,{key:0,type:"success"},{default:t(()=>[r(" Running ")]),_:1})):(u(),k(_,{key:1,type:"danger"},{default:t(()=>[r(" Stop")]),_:1}))]),_:1},8,["label"])]),_:1})]),_:1})]),_:1}),o(W,{span:12},{default:t(()=>[o(m,{class:"_detail",style:{height:"100%"}},{default:t(()=>[o(C,{class:"description-column",column:1},{default:t(()=>[o(s,{label:l.$t("instanceDomain.startTime_k8s"),labelStyle:{fontWeight:"bold"}},{default:t(()=>[o(_,null,{default:t(()=>[r(a(b(M)(e==null?void 0:e.readyTime)),1)]),_:1})]),_:1},8,["label"]),o(s,{label:l.$t("instanceDomain.registerState"),labelStyle:{fontWeight:"bold"}},{default:t(()=>[o(_,{type:(e==null?void 0:e.registerState)==="Registed"?"success":"danger"},{default:t(()=>[r(a(e==null?void 0:e.registerState),1)]),_:1},8,["type"])]),_:1},8,["label"])]),_:1})]),_:1})]),_:1})]),_:1}),o(m,{style:{"margin-top":"10px"},class:"_detail"},{default:t(()=>[o(C,{class:"description-column",column:1},{default:t(()=>[o(s,{label:l.$t("instanceDomain.instanceIP"),labelStyle:{fontWeight:"bold"}},{default:t(()=>[y("p",{onClick:p[1]||(p[1]=d=>f(e==null?void 0:e.ip)),class:"description-item-content with-card"},[r(a(e==null?void 0:e.ip)+" ",1),o(b(h))])]),_:1},8,["label"]),o(s,{label:l.$t("instanceDomain.deployCluster"),labelStyle:{fontWeight:"bold"}},{default:t(()=>[o(_,null,{default:t(()=>[r(a(e==null?void 0:e.deployCluster),1)]),_:1})]),_:1},8,["label"]),o(s,{label:l.$t("instanceDomain.dubboPort"),labelStyle:{fontWeight:"bold"}},{default:t(()=>[e!=null&&e.rpcPort?(u(),c("p",{key:0,onClick:p[2]||(p[2]=d=>f(e==null?void 0:e.rpcPort)),class:"description-item-content with-card"},[r(a(e==null?void 0:e.rpcPort)+" ",1),o(b(h))])):P("",!0)]),_:1},8,["label"]),o(s,{label:l.$t("instanceDomain.registerCluster"),labelStyle:{fontWeight:"bold"}},{default:t(()=>[o(Z,null,{default:t(()=>[(u(!0),c(V,null,A(e==null?void 0:e.registerClusters,d=>(u(),k(v,null,{default:t(()=>[r(a(d),1)]),_:2},1024))),256))]),_:1})]),_:1},8,["label"]),o(s,{label:l.$t("instanceDomain.whichApplication"),labelStyle:{fontWeight:"bold"}},{default:t(()=>[o(v,{onClick:p[3]||(p[3]=d=>F(e==null?void 0:e.appName))},{default:t(()=>[r(a(e==null?void 0:e.appName),1)]),_:1})]),_:1},8,["label"]),o(s,{label:l.$t("instanceDomain.node"),labelStyle:{fontWeight:"bold"}},{default:t(()=>[e!=null&&e.node?(u(),c("p",{key:0,onClick:p[4]||(p[4]=d=>f(e==null?void 0:e.node)),class:"description-item-content with-card"},[r(a(e==null?void 0:e.node)+" ",1),o(b(h))])):P("",!0)]),_:1},8,["label"]),o(s,{label:l.$t("instanceDomain.owningWorkload_k8s"),labelStyle:{fontWeight:"bold"}},{default:t(()=>[o(_,null,{default:t(()=>[r(a(e==null?void 0:e.workloadName),1)]),_:1})]),_:1},8,["label"]),o(s,{label:l.$t("instanceDomain.instanceImage_k8s"),labelStyle:{fontWeight:"bold"}},{default:t(()=>[o(m,{class:"description-item-card"},{default:t(()=>[e!=null&&e.image?(u(),c("p",{key:0,onClick:p[5]||(p[5]=d=>f(e==null?void 0:e.image)),class:"description-item-content with-card"},[r(a(e==null?void 0:e.image)+" ",1),o(b(h))])):P("",!0)]),_:1})]),_:1},8,["label"]),o(s,{label:l.$t("instanceDomain.instanceLabel"),labelStyle:{fontWeight:"bold"}},{default:t(()=>[o(m,{class:"description-item-card"},{default:t(()=>[(u(!0),c(V,null,A(e==null?void 0:e.labels,(d,i)=>(u(),k(q,null,{default:t(()=>[r(a(i)+" : "+a(d),1)]),_:2},1024))),256))]),_:1})]),_:1},8,["label"]),o(s,{label:l.$t("instanceDomain.healthExamination_k8s"),labelStyle:{fontWeight:"bold"}},{default:t(()=>[o(m,{class:"description-item-card"},{default:t(()=>{var d,i,g,N,I,R,T,L,O;return[y("p",ae," 启动探针(StartupProbe):"+a($((d=e==null?void 0:e.probes)==null?void 0:d.startupProbe.open))+" 类型: "+a((i=e==null?void 0:e.probes)==null?void 0:i.startupProbe.type)+" 端口:"+a((g=e==null?void 0:e.probes)==null?void 0:g.startupProbe.port),1),y("p",se," 就绪探针(ReadinessProbe):"+a($((N=e==null?void 0:e.probes)==null?void 0:N.readinessProbe.open))+" 类型: "+a((I=e==null?void 0:e.probes)==null?void 0:I.readinessProbe.type)+" 端口:"+a((R=e==null?void 0:e.probes)==null?void 0:R.readinessProbe.port),1),y("p",re," 存活探针(LivenessProbe):"+a($((T=e==null?void 0:e.probes)==null?void 0:T.livenessProbe.open))+" 类型: "+a((L=e==null?void 0:e.probes)==null?void 0:L.livenessProbe.type)+" 端口:"+a((O=e==null?void 0:e.probes)==null?void 0:O.livenessProbe.port),1)]}),_:1})]),_:1},8,["label"])]),_:1})]),_:1})]),_:1})]),_:1})])}}}),ce=oe(pe,[["__scopeId","data-v-fb65b5f4"]]);export{ce as default}; diff --git a/app/dubbo-ui/dist/admin/assets/detail-NWi5D_Jp.js b/app/dubbo-ui/dist/admin/assets/detail-hHkagtGn.js similarity index 93% rename from app/dubbo-ui/dist/admin/assets/detail-NWi5D_Jp.js rename to app/dubbo-ui/dist/admin/assets/detail-hHkagtGn.js index cc600919..cbbbdd4f 100644 --- a/app/dubbo-ui/dist/admin/assets/detail-NWi5D_Jp.js +++ b/app/dubbo-ui/dist/admin/assets/detail-hHkagtGn.js @@ -1 +1 @@ -import{d as L,a as O,r as I,k as T,Z as V,D as W,c as s,b as a,w as e,e as c,o,L as u,M as m,$ as P,J as b,f as S,t as h,n as y,a0 as A,m as j,a1 as $,_ as E}from"./index-3zDsduUv.js";import{g as F}from"./app-mdoSebGq.js";import{u as J}from"./index-HdnVQEsT.js";import"./request-3an337VF.js";const Y={class:"__container_app_detail"},Z={class:"description-item-content no-card"},q=["onClick"],z=L({__name:"detail",setup(G){const M=O(),C=I({}),{appContext:{config:{globalProperties:N}}}=T();V("20");let r=I({left:{},right:{},bottom:{}});W(async()=>{var i;let l=(i=M.params)==null?void 0:i.pathId;C.detail=await F({appName:l}),console.log(C.detail);let{appName:w,rpcProtocols:p,dubboVersions:_,dubboPorts:d,serialProtocols:f,appTypes:x,images:k,workloads:D,deployClusters:t,registerClusters:n,registerModes:g}=C.detail.data;r.left={appName:w,appTypes:x,serialProtocols:f},r.right={rpcProtocols:p,dubboPorts:d,dubboVersions:_},r.bottom={images:k,workloads:D,deployClusters:t,registerClusters:n,registerModes:g},console.log(w)});const R=J().toClipboard;function B(l){j.success(N.$t("messageDomain.success.copy")),R(l)}return(l,w)=>{const p=c("a-descriptions-item"),_=c("a-descriptions"),d=c("a-card"),f=c("a-col"),x=c("a-row"),k=c("a-card-grid"),D=c("a-flex");return o(),s("div",Y,[a(D,null,{default:e(()=>[a(k,null,{default:e(()=>[a(x,{gutter:10},{default:e(()=>[a(f,{span:12},{default:e(()=>[a(d,{class:"_detail"},{default:e(()=>[a(_,{class:"description-column",column:1},{default:e(()=>[(o(!0),s(u,null,m(y(r).left,(t,n,g)=>P((o(),b(p,{labelStyle:{fontWeight:"bold",width:"100px"},label:l.$t("applicationDomain."+n)},{default:e(()=>[S(h(typeof t=="object"?t[0]:t),1)]),_:2},1032,["label"])),[[$,!!t]])),256))]),_:1})]),_:1})]),_:1}),a(f,{span:12},{default:e(()=>[a(d,{class:"_detail"},{default:e(()=>[a(_,{class:"description-column",column:1},{default:e(()=>[(o(!0),s(u,null,m(y(r).right,(t,n,g)=>P((o(),b(p,{labelStyle:{fontWeight:"bold",width:"100px"},label:l.$t("applicationDomain."+n)},{default:e(()=>[S(h(t[0]),1)]),_:2},1032,["label"])),[[$,!!t]])),256))]),_:1})]),_:1})]),_:1})]),_:1}),a(d,{style:{"margin-top":"10px"},class:"_detail"},{default:e(()=>[a(_,{class:"description-column",column:1},{default:e(()=>[(o(!0),s(u,null,m(y(r).bottom,(t,n,g)=>P((o(),b(p,{labelStyle:{fontWeight:"bold"},label:l.$t("applicationDomain."+n)},{default:e(()=>[(t==null?void 0:t.length)<3?(o(!0),s(u,{key:0},m(t,i=>(o(),s("p",Z,h(i),1))),256)):(o(),b(d,{key:1,class:"description-item-card"},{default:e(()=>[(o(!0),s(u,null,m(t,i=>(o(),s("p",{onClick:H=>B(i.toString()),class:"description-item-content with-card"},[S(h(i)+" ",1),a(y(A))],8,q))),256))]),_:2},1024))]),_:2},1032,["label"])),[[$,!!t]])),256))]),_:1})]),_:1})]),_:1})]),_:1})])}}}),v=E(z,[["__scopeId","data-v-2ded24e2"]]);export{v as default}; +import{d as L,a as O,r as I,k as T,Z as V,D as W,c as s,b as a,w as e,e as c,o,L as u,M as m,$ as P,J as b,f as S,t as h,n as y,a0 as A,m as j,a1 as $,_ as E}from"./index-VXjVsiiO.js";import{g as F}from"./app-tPR0CJiV.js";import{u as J}from"./index-Y8bti_iA.js";import"./request-Cs8TyifY.js";const Y={class:"__container_app_detail"},Z={class:"description-item-content no-card"},q=["onClick"],z=L({__name:"detail",setup(G){const M=O(),C=I({}),{appContext:{config:{globalProperties:N}}}=T();V("20");let r=I({left:{},right:{},bottom:{}});W(async()=>{var i;let l=(i=M.params)==null?void 0:i.pathId;C.detail=await F({appName:l}),console.log(C.detail);let{appName:w,rpcProtocols:p,dubboVersions:_,dubboPorts:d,serialProtocols:f,appTypes:x,images:k,workloads:D,deployClusters:t,registerClusters:n,registerModes:g}=C.detail.data;r.left={appName:w,appTypes:x,serialProtocols:f},r.right={rpcProtocols:p,dubboPorts:d,dubboVersions:_},r.bottom={images:k,workloads:D,deployClusters:t,registerClusters:n,registerModes:g},console.log(w)});const R=J().toClipboard;function B(l){j.success(N.$t("messageDomain.success.copy")),R(l)}return(l,w)=>{const p=c("a-descriptions-item"),_=c("a-descriptions"),d=c("a-card"),f=c("a-col"),x=c("a-row"),k=c("a-card-grid"),D=c("a-flex");return o(),s("div",Y,[a(D,null,{default:e(()=>[a(k,null,{default:e(()=>[a(x,{gutter:10},{default:e(()=>[a(f,{span:12},{default:e(()=>[a(d,{class:"_detail"},{default:e(()=>[a(_,{class:"description-column",column:1},{default:e(()=>[(o(!0),s(u,null,m(y(r).left,(t,n,g)=>P((o(),b(p,{labelStyle:{fontWeight:"bold",width:"100px"},label:l.$t("applicationDomain."+n)},{default:e(()=>[S(h(typeof t=="object"?t[0]:t),1)]),_:2},1032,["label"])),[[$,!!t]])),256))]),_:1})]),_:1})]),_:1}),a(f,{span:12},{default:e(()=>[a(d,{class:"_detail"},{default:e(()=>[a(_,{class:"description-column",column:1},{default:e(()=>[(o(!0),s(u,null,m(y(r).right,(t,n,g)=>P((o(),b(p,{labelStyle:{fontWeight:"bold",width:"100px"},label:l.$t("applicationDomain."+n)},{default:e(()=>[S(h(t[0]),1)]),_:2},1032,["label"])),[[$,!!t]])),256))]),_:1})]),_:1})]),_:1})]),_:1}),a(d,{style:{"margin-top":"10px"},class:"_detail"},{default:e(()=>[a(_,{class:"description-column",column:1},{default:e(()=>[(o(!0),s(u,null,m(y(r).bottom,(t,n,g)=>P((o(),b(p,{labelStyle:{fontWeight:"bold"},label:l.$t("applicationDomain."+n)},{default:e(()=>[(t==null?void 0:t.length)<3?(o(!0),s(u,{key:0},m(t,i=>(o(),s("p",Z,h(i),1))),256)):(o(),b(d,{key:1,class:"description-item-card"},{default:e(()=>[(o(!0),s(u,null,m(t,i=>(o(),s("p",{onClick:H=>B(i.toString()),class:"description-item-content with-card"},[S(h(i)+" ",1),a(y(A))],8,q))),256))]),_:2},1024))]),_:2},1032,["label"])),[[$,!!t]])),256))]),_:1})]),_:1})]),_:1})]),_:1})])}}}),v=E(z,[["__scopeId","data-v-2ded24e2"]]);export{v as default}; diff --git a/app/dubbo-ui/dist/admin/assets/distribution-WSPxFnjE.js b/app/dubbo-ui/dist/admin/assets/distribution-F7A0tJhh.js similarity index 94% rename from app/dubbo-ui/dist/admin/assets/distribution-WSPxFnjE.js rename to app/dubbo-ui/dist/admin/assets/distribution-F7A0tJhh.js index 52c71661..a1c67893 100644 --- a/app/dubbo-ui/dist/admin/assets/distribution-WSPxFnjE.js +++ b/app/dubbo-ui/dist/admin/assets/distribution-F7A0tJhh.js @@ -1 +1 @@ -import{d as $,v as E,u as L,a as U,k as j,B as g,r as x,H as F,c as f,b as s,w as p,e as d,n as r,P as O,o as v,f as m,j as A,I as R,t as b,T as h,L as G,J as H,_ as J}from"./index-3zDsduUv.js";import{g as M}from"./service-Hb3ldtV6.js";import{f as Y}from"./DateUtil-QXt7LnE3.js";import"./request-3an337VF.js";const q={class:"__container_services_tabs_distribution"},K=["onClick"],Q=["onClick"],W=$({__name:"distribution",setup(X){E(a=>({"70895fcd":r(O)}));const I=L(),C=U(),{appContext:{config:{globalProperties:S}}}=j(),y=g(""),z=x([{label:"不指定",value:""},{label:"version=1.0.0",value:"version=1.0.0"},{label:"group=group1",value:"group=group1"},{label:"version=1.0.0,group=group1",value:"version=1.0.0,group=group1"}]);g(z[0].value);const N=g("provider"),D=[{title:"应用名",dataIndex:"appName",width:"20%",customCell:(a,e)=>{const t=o.value[e].appName;return e===0||o.value[e-1].appName!==t?{rowSpan:o.value.filter(i=>i.appName===t).length}:{rowSpan:0}}},{title:"实例数",dataIndex:"instanceNum",width:"15%",customRender:({record:a})=>{const e=a.appName;return o.value.filter(l=>l.appName===e).length??0},customCell:(a,e)=>{const t=o.value[e].appName;return e===0||o.value[e-1].appName!==t?{rowSpan:o.value.filter(i=>i.appName===t).length}:{rowSpan:0}}},{title:"实例名",dataIndex:"instanceName",width:"25%",ellipsis:!0},{title:"RPC端口",dataIndex:"rpcPort",width:"8%"},{title:"超时时间",dataIndex:"timeOut",width:"10%"},{title:"重试次数",dataIndex:"retryNum",width:"10%"}],o=g([]),n=x({total:0,pageSize:10,current:1,pageOffset:0,showTotal:a=>S.$t("searchDomain.total")+": "+a+" "+S.$t("searchDomain.unit")}),w=async()=>{var l,i,_;let a={serviceName:(l=C.params)==null?void 0:l.pathId,side:N.value,version:((i=C.params)==null?void 0:i.version)||"",group:((_=C.params)==null?void 0:_.group)||"",pageOffset:n.pageOffset,pageSize:n.pageSize};const{data:{list:e,pageInfo:t}}=await M(a);o.value=e,n.total=t.Total};w();const k=F.debounce(w,300),P=a=>{n.pageSize=a.pageSize||10,n.current=a.current||1,n.pageOffset=(n.current-1)*n.pageSize,k()};return(a,e)=>{const t=d("a-radio-button"),l=d("a-radio-group"),i=d("a-input-search"),_=d("a-flex"),V=d("a-tag"),B=d("a-table");return v(),f("div",q,[s(_,{vertical:""},{default:p(()=>[s(_,{class:"service-filter"},{default:p(()=>[s(l,{value:N.value,"onUpdate:value":e[0]||(e[0]=u=>N.value=u),"button-style":"solid",onClick:r(k)},{default:p(()=>[s(t,{value:"provider"},{default:p(()=>[m("生产者")]),_:1}),s(t,{value:"consumer"},{default:p(()=>[m("消费者")]),_:1})]),_:1},8,["value","onClick"]),s(i,{value:y.value,"onUpdate:value":e[1]||(e[1]=u=>y.value=u),placeholder:"搜索应用,ip,支持前缀搜索",class:"service-filter-input",onSearch:r(k),"enter-button":""},null,8,["value","onSearch"])]),_:1}),s(B,{columns:D,"data-source":o.value,scroll:{y:"45vh"},pagination:n,onChange:P},{bodyCell:p(({column:u,text:c})=>[u.dataIndex==="appName"?(v(),f("span",{key:0,class:"link",onClick:T=>r(I).push("/resources/applications/detail/"+c)},[A("b",null,[s(r(R),{style:{"margin-bottom":"-2px"},icon:"material-symbols:attach-file-rounded"}),m(" "+b(c),1)])],8,K)):h("",!0),u.dataIndex==="instanceName"?(v(),f("span",{key:1,class:"link",onClick:T=>r(I).push("/resources/instances/detail/"+c)},[A("b",null,[s(r(R),{style:{"margin-bottom":"-2px"},icon:"material-symbols:attach-file-rounded"}),m(" "+b(c),1)])],8,Q)):h("",!0),u.dataIndex==="timeOut"?(v(),f(G,{key:2},[m(b(r(Y)(c)),1)],64)):h("",!0),u.dataIndex==="label"?(v(),H(V,{key:3,color:r(O)},{default:p(()=>[m(b(c),1)]),_:2},1032,["color"])):h("",!0)]),_:1},8,["data-source","pagination"])]),_:1})])}}}),oe=J(W,[["__scopeId","data-v-549fa778"]]);export{oe as default}; +import{d as $,v as E,u as L,a as U,k as j,B as g,r as x,H as F,c as f,b as s,w as p,e as d,n as r,P as O,o as v,f as m,j as A,I as R,t as b,T as h,L as G,J as H,_ as J}from"./index-VXjVsiiO.js";import{g as M}from"./service-146hGzKC.js";import{f as Y}from"./DateUtil-Hh_Zud1i.js";import"./request-Cs8TyifY.js";const q={class:"__container_services_tabs_distribution"},K=["onClick"],Q=["onClick"],W=$({__name:"distribution",setup(X){E(a=>({"70895fcd":r(O)}));const I=L(),C=U(),{appContext:{config:{globalProperties:S}}}=j(),y=g(""),z=x([{label:"不指定",value:""},{label:"version=1.0.0",value:"version=1.0.0"},{label:"group=group1",value:"group=group1"},{label:"version=1.0.0,group=group1",value:"version=1.0.0,group=group1"}]);g(z[0].value);const N=g("provider"),D=[{title:"应用名",dataIndex:"appName",width:"20%",customCell:(a,e)=>{const t=o.value[e].appName;return e===0||o.value[e-1].appName!==t?{rowSpan:o.value.filter(i=>i.appName===t).length}:{rowSpan:0}}},{title:"实例数",dataIndex:"instanceNum",width:"15%",customRender:({record:a})=>{const e=a.appName;return o.value.filter(l=>l.appName===e).length??0},customCell:(a,e)=>{const t=o.value[e].appName;return e===0||o.value[e-1].appName!==t?{rowSpan:o.value.filter(i=>i.appName===t).length}:{rowSpan:0}}},{title:"实例名",dataIndex:"instanceName",width:"25%",ellipsis:!0},{title:"RPC端口",dataIndex:"rpcPort",width:"8%"},{title:"超时时间",dataIndex:"timeOut",width:"10%"},{title:"重试次数",dataIndex:"retryNum",width:"10%"}],o=g([]),n=x({total:0,pageSize:10,current:1,pageOffset:0,showTotal:a=>S.$t("searchDomain.total")+": "+a+" "+S.$t("searchDomain.unit")}),w=async()=>{var l,i,_;let a={serviceName:(l=C.params)==null?void 0:l.pathId,side:N.value,version:((i=C.params)==null?void 0:i.version)||"",group:((_=C.params)==null?void 0:_.group)||"",pageOffset:n.pageOffset,pageSize:n.pageSize};const{data:{list:e,pageInfo:t}}=await M(a);o.value=e,n.total=t.Total};w();const k=F.debounce(w,300),P=a=>{n.pageSize=a.pageSize||10,n.current=a.current||1,n.pageOffset=(n.current-1)*n.pageSize,k()};return(a,e)=>{const t=d("a-radio-button"),l=d("a-radio-group"),i=d("a-input-search"),_=d("a-flex"),V=d("a-tag"),B=d("a-table");return v(),f("div",q,[s(_,{vertical:""},{default:p(()=>[s(_,{class:"service-filter"},{default:p(()=>[s(l,{value:N.value,"onUpdate:value":e[0]||(e[0]=u=>N.value=u),"button-style":"solid",onClick:r(k)},{default:p(()=>[s(t,{value:"provider"},{default:p(()=>[m("生产者")]),_:1}),s(t,{value:"consumer"},{default:p(()=>[m("消费者")]),_:1})]),_:1},8,["value","onClick"]),s(i,{value:y.value,"onUpdate:value":e[1]||(e[1]=u=>y.value=u),placeholder:"搜索应用,ip,支持前缀搜索",class:"service-filter-input",onSearch:r(k),"enter-button":""},null,8,["value","onSearch"])]),_:1}),s(B,{columns:D,"data-source":o.value,scroll:{y:"45vh"},pagination:n,onChange:P},{bodyCell:p(({column:u,text:c})=>[u.dataIndex==="appName"?(v(),f("span",{key:0,class:"link",onClick:T=>r(I).push("/resources/applications/detail/"+c)},[A("b",null,[s(r(R),{style:{"margin-bottom":"-2px"},icon:"material-symbols:attach-file-rounded"}),m(" "+b(c),1)])],8,K)):h("",!0),u.dataIndex==="instanceName"?(v(),f("span",{key:1,class:"link",onClick:T=>r(I).push("/resources/instances/detail/"+c)},[A("b",null,[s(r(R),{style:{"margin-bottom":"-2px"},icon:"material-symbols:attach-file-rounded"}),m(" "+b(c),1)])],8,Q)):h("",!0),u.dataIndex==="timeOut"?(v(),f(G,{key:2},[m(b(r(Y)(c)),1)],64)):h("",!0),u.dataIndex==="label"?(v(),H(V,{key:3,color:r(O)},{default:p(()=>[m(b(c),1)]),_:2},1032,["color"])):h("",!0)]),_:1},8,["data-source","pagination"])]),_:1})])}}}),oe=J(W,[["__scopeId","data-v-549fa778"]]);export{oe as default}; diff --git a/app/dubbo-ui/dist/admin/assets/event-IjH1CTVp.js b/app/dubbo-ui/dist/admin/assets/event-QUEx89TK.js similarity index 97% rename from app/dubbo-ui/dist/admin/assets/event-IjH1CTVp.js rename to app/dubbo-ui/dist/admin/assets/event-QUEx89TK.js index a8617739..44245490 100644 --- a/app/dubbo-ui/dist/admin/assets/event-IjH1CTVp.js +++ b/app/dubbo-ui/dist/admin/assets/event-QUEx89TK.js @@ -1 +1 @@ -import{b as s,A as b,d as C,c as d,w as a,e as r,o as p,n as u,L as M,M as S,P as y,f as x,t as _,j as f,p as P,h as w,_ as I}from"./index-3zDsduUv.js";var j={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"};const z=j;function m(e){for(var t=1;t(P("data-v-9245080e"),e=e(),w(),e),D={class:"__container_services_tabs_event"},L={class:"description"},R=N(()=>f("span",null,"过期事件不会存储",-1)),V=C({__name:"event",setup(e){const t=[{time:"2022-01-01",description:"description"},{time:"2022-01-02",description:"description"},{time:"2022-01-03",description:"description"},{time:"2022-01-04",description:"description"},{time:"2022-01-05",description:"description"}];return(n,c)=>{const i=r("a-timeline-item"),v=r("a-tag"),O=r("a-timeline"),g=r("a-card");return p(),d("div",D,[s(g,{class:"timeline-container"},{default:a(()=>[s(O,{class:"timeline"},{default:a(()=>[s(i,null,{dot:a(()=>[s(u(B),{style:{"font-size":"18px"}})]),_:1}),(p(),d(M,null,S(t,(l,h)=>s(i,{key:h},{default:a(()=>[s(v,{class:"time",color:u(y)},{default:a(()=>[x(_(l.time),1)]),_:2},1032,["color"]),f("span",L,_(l.description),1)]),_:2},1024)),64)),s(i,null,{dot:a(()=>[]),default:a(()=>[R]),_:1})]),_:1})]),_:1})])}}}),$=I(V,[["__scopeId","data-v-9245080e"]]);export{$ as default}; +import{b as s,A as b,d as C,c as d,w as a,e as r,o as p,n as u,L as M,M as S,P as y,f as x,t as _,j as f,p as P,h as w,_ as I}from"./index-VXjVsiiO.js";var j={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"};const z=j;function m(e){for(var t=1;t(P("data-v-9245080e"),e=e(),w(),e),D={class:"__container_services_tabs_event"},L={class:"description"},R=N(()=>f("span",null,"过期事件不会存储",-1)),V=C({__name:"event",setup(e){const t=[{time:"2022-01-01",description:"description"},{time:"2022-01-02",description:"description"},{time:"2022-01-03",description:"description"},{time:"2022-01-04",description:"description"},{time:"2022-01-05",description:"description"}];return(n,c)=>{const i=r("a-timeline-item"),v=r("a-tag"),O=r("a-timeline"),g=r("a-card");return p(),d("div",D,[s(g,{class:"timeline-container"},{default:a(()=>[s(O,{class:"timeline"},{default:a(()=>[s(i,null,{dot:a(()=>[s(u(B),{style:{"font-size":"18px"}})]),_:1}),(p(),d(M,null,S(t,(l,h)=>s(i,{key:h},{default:a(()=>[s(v,{class:"time",color:u(y)},{default:a(()=>[x(_(l.time),1)]),_:2},1032,["color"]),f("span",L,_(l.description),1)]),_:2},1024)),64)),s(i,null,{dot:a(()=>[]),default:a(()=>[R]),_:1})]),_:1})]),_:1})])}}}),$=I(V,[["__scopeId","data-v-9245080e"]]);export{$ as default}; diff --git a/app/dubbo-ui/dist/admin/assets/event-ZoLBaQpy.js b/app/dubbo-ui/dist/admin/assets/event-l9CyPMBv.js similarity index 88% rename from app/dubbo-ui/dist/admin/assets/event-ZoLBaQpy.js rename to app/dubbo-ui/dist/admin/assets/event-l9CyPMBv.js index 06d6bf36..f619cacf 100644 --- a/app/dubbo-ui/dist/admin/assets/event-ZoLBaQpy.js +++ b/app/dubbo-ui/dist/admin/assets/event-l9CyPMBv.js @@ -1 +1 @@ -import{d as v,v as f,r as h,D as y,c as d,b as r,w as n,e as p,n as l,P as C,o as c,L as x,M as b,J as k,a5 as w,a6 as I,j as e,a7 as S,t as i,p as B,h as R,_ as g}from"./index-3zDsduUv.js";import{l as L}from"./app-mdoSebGq.js";import"./request-3an337VF.js";const M=t=>(B("data-v-e2aef936"),t=t(),R(),t),O={class:"__container_app_event"},V={class:"box"},z=M(()=>e("div",{class:"type"},null,-1)),A={class:"body"},D={class:"title"},E={class:"time"},N=v({__name:"event",setup(t){f(a=>({f166166e:l(C)}));let s=h({list:[]});return y(async()=>{let a=await L({});s.list=a.data.list,console.log(s)}),(a,P)=>{const m=p("a-timeline-item"),u=p("a-timeline");return c(),d("div",O,[r(u,{mode:"left"},{default:n(()=>[(c(!0),d(x,null,b(l(s).list,(o,_)=>(c(),k(m,null,w({default:n(()=>[e("div",V,[e("div",{class:S(["label",{yellow:_===0}])},[z,e("div",A,[e("b",D,i(o.type),1),e("p",null,i(o.desc),1)])],2),e("span",E,i(o.time),1)])]),_:2},[_===0?{name:"dot",fn:n(()=>[r(l(I),{style:{"font-size":"16px",color:"red"}})]),key:"0"}:void 0]),1024))),256))]),_:1})])}}}),Y=g(N,[["__scopeId","data-v-e2aef936"]]);export{Y as default}; +import{d as v,v as f,r as h,D as y,c as d,b as r,w as n,e as p,n as l,P as C,o as c,L as x,M as b,J as k,a5 as w,a6 as I,j as e,a7 as S,t as i,p as B,h as R,_ as g}from"./index-VXjVsiiO.js";import{l as L}from"./app-tPR0CJiV.js";import"./request-Cs8TyifY.js";const M=t=>(B("data-v-e2aef936"),t=t(),R(),t),O={class:"__container_app_event"},V={class:"box"},z=M(()=>e("div",{class:"type"},null,-1)),A={class:"body"},D={class:"title"},E={class:"time"},N=v({__name:"event",setup(t){f(a=>({f166166e:l(C)}));let s=h({list:[]});return y(async()=>{let a=await L({});s.list=a.data.list,console.log(s)}),(a,P)=>{const m=p("a-timeline-item"),u=p("a-timeline");return c(),d("div",O,[r(u,{mode:"left"},{default:n(()=>[(c(!0),d(x,null,b(l(s).list,(o,_)=>(c(),k(m,null,w({default:n(()=>[e("div",V,[e("div",{class:S(["label",{yellow:_===0}])},[z,e("div",A,[e("b",D,i(o.type),1),e("p",null,i(o.desc),1)])],2),e("span",E,i(o.time),1)])]),_:2},[_===0?{name:"dot",fn:n(()=>[r(l(I),{style:{"font-size":"16px",color:"red"}})]),key:"0"}:void 0]),1024))),256))]),_:1})])}}}),Y=g(N,[["__scopeId","data-v-e2aef936"]]);export{Y as default}; diff --git a/app/dubbo-ui/dist/admin/assets/event-Di8PmXwq.js b/app/dubbo-ui/dist/admin/assets/event-sMTqQXIA.js similarity index 60% rename from app/dubbo-ui/dist/admin/assets/event-Di8PmXwq.js rename to app/dubbo-ui/dist/admin/assets/event-sMTqQXIA.js index b21dc56f..11db5828 100644 --- a/app/dubbo-ui/dist/admin/assets/event-Di8PmXwq.js +++ b/app/dubbo-ui/dist/admin/assets/event-sMTqQXIA.js @@ -1 +1 @@ -import{d as e,c as t,o as n}from"./index-3zDsduUv.js";const s=e({__name:"event",setup(o){return(a,c)=>(n(),t("div",null,"event todo"))}});export{s as default}; +import{d as e,c as t,o as n}from"./index-VXjVsiiO.js";const s=e({__name:"event",setup(o){return(a,c)=>(n(),t("div",null,"event todo"))}});export{s as default}; diff --git a/app/dubbo-ui/dist/admin/assets/formView-vzcbtWy_.js b/app/dubbo-ui/dist/admin/assets/formView-E0GrG_45.js similarity index 99% rename from app/dubbo-ui/dist/admin/assets/formView-vzcbtWy_.js rename to app/dubbo-ui/dist/admin/assets/formView-E0GrG_45.js index c5746bb5..2e4379aa 100644 --- a/app/dubbo-ui/dist/admin/assets/formView-vzcbtWy_.js +++ b/app/dubbo-ui/dist/admin/assets/formView-E0GrG_45.js @@ -1,4 +1,4 @@ -import{d as tn,v as en,y as rn,z as nn,k as sn,a as an,u as on,B as Ge,r as Ke,l as Fi,D as ln,c as Ct,b as D,w as S,J as $,T as zt,a4 as Ii,e as rt,n as G,P as Ft,o as E,j as Re,L as Wt,M as qt,f as nt,t as dt,af as un,I as ne,ai as fn,m as ge,_ as hn}from"./index-3zDsduUv.js";import{u as _n}from"./index-HdnVQEsT.js";import{k as dn,l as cn,m as pn}from"./traffic-dHGZ6qwp.js";import{V as mn,C as gn}from"./ConfigModel-IgPiU3B2.js";import"./request-3an337VF.js";function Mt(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function tr(l,t){l.prototype=Object.create(t.prototype),l.prototype.constructor=l,l.__proto__=t}/*! +import{d as tn,v as en,y as rn,z as nn,k as sn,a as an,u as on,B as Ge,r as Ke,l as Fi,D as ln,c as Ct,b as D,w as S,J as $,T as zt,a4 as Ii,e as rt,n as G,P as Ft,o as E,j as Re,L as Wt,M as qt,f as nt,t as dt,af as un,I as ne,ai as fn,m as ge,_ as hn}from"./index-VXjVsiiO.js";import{u as _n}from"./index-Y8bti_iA.js";import{k as dn,l as cn,m as pn}from"./traffic-W0fp5Gf-.js";import{V as mn,C as gn}from"./ConfigModel-28QrmMMG.js";import"./request-Cs8TyifY.js";function Mt(l){if(l===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l}function tr(l,t){l.prototype=Object.create(t.prototype),l.prototype.constructor=l,l.__proto__=t}/*! * GSAP 3.12.7 * https://gsap.com * diff --git a/app/dubbo-ui/dist/admin/assets/formView-RlUvRzIB.js b/app/dubbo-ui/dist/admin/assets/formView-VeEGspOH.js similarity index 95% rename from app/dubbo-ui/dist/admin/assets/formView-RlUvRzIB.js rename to app/dubbo-ui/dist/admin/assets/formView-VeEGspOH.js index 855e76ff..7cc33e63 100644 --- a/app/dubbo-ui/dist/admin/assets/formView-RlUvRzIB.js +++ b/app/dubbo-ui/dist/admin/assets/formView-VeEGspOH.js @@ -1 +1 @@ -import{u as G}from"./index-HdnVQEsT.js";import{d as F,k as J,a as U,B as k,r as H,l as K,D as Q,c as $,b as o,w as t,e as i,o as s,f as n,t as r,J as c,n as y,aa as X,ab as Y,j as g,a0 as S,T as v,L as M,M as O,m as Z,p as ee,h as te,_ as oe}from"./index-3zDsduUv.js";import{g as ae}from"./traffic-dHGZ6qwp.js";import"./request-3an337VF.js";const A=w=>(ee("data-v-2f7b63ed"),w=w(),te(),w),le={class:"__container_routingRule_detail"},ne=A(()=>g("p",null,"修改时间: 2024/3/20 15:20:31",-1)),se=A(()=>g("p",null,"版本号: xo842xqpx834",-1)),re=F({__name:"formView",setup(w){const{appContext:{config:{globalProperties:T}}}=J(),j=U(),_=k(!1),B=k(8),x=G().toClipboard;function h(e){Z.success(T.$t("messageDomain.success.copy")),x(e)}const a=H({configVersion:"v3.0",scope:"service",key:"org.apache.dubbo.samples.UserService",enabled:!0,runtime:!0,force:!1,conditions:["=>host!=192.168.0.68"],group:"",version:""}),N=K(()=>{const e=a.key.split(":");return a.version=e[1]||"",a.group=e[2]||"",e[0]?e[0]:""}),R=k([]),V=k([]);async function E(){var l;let e=await ae((l=j.params)==null?void 0:l.ruleName);console.log(e),(e==null?void 0:e.code)===200&&(Object.assign(a,(e==null?void 0:e.data)||{}),a.conditions.forEach((p,C)=>{var D,f;const m=p.split(" => "),u=(D=m[1])==null?void 0:D.split(" & "),b=(f=m[0])==null?void 0:f.split(" & ");R.value=R.value.concat(b),V.value=V.value.concat(u)}))}const L=()=>{var l;const e=(l=j.params)==null?void 0:l.ruleName;if(e&&a.scope==="service"){const p=e==null?void 0:e.split(":");a.version=p[1],a.group=p[2].split(".")[0]}};return Q(async()=>{await E(),L()}),(e,l)=>{const p=i("a-typography-title"),C=i("a-button"),m=i("a-flex"),u=i("a-descriptions-item"),b=i("a-typography-paragraph"),D=i("a-descriptions"),f=i("a-card"),z=i("a-row"),P=i("a-tag"),W=i("a-space"),q=i("a-col");return s(),$("div",le,[o(m,{style:{width:"100%"}},{default:t(()=>[o(q,{span:_.value?24-B.value:24,class:"left"},{default:t(()=>[o(z,null,{default:t(()=>[o(m,{justify:"space-between",style:{width:"100%"}},{default:t(()=>[o(p,{level:3},{default:t(()=>[n(" 基础信息")]),_:1}),o(C,{type:"text",style:{color:"#0a90d5"},onClick:l[0]||(l[0]=d=>_.value=!_.value)},{default:t(()=>[n(r(e.$t("flowControlDomain.versionRecords"))+" ",1),_.value?(s(),c(y(Y),{key:1})):(s(),c(y(X),{key:0}))]),_:1})]),_:1}),o(f,{class:"_detail"},{default:t(()=>[o(D,{column:2,layout:"vertical",title:""},{default:t(()=>[o(u,{label:e.$t("flowControlDomain.ruleName"),labelStyle:{fontWeight:"bold"}},{default:t(()=>[g("p",{class:"description-item-content with-card",onClick:l[1]||(l[1]=d=>h(a.key))},[n(r(a.key)+" ",1),o(y(S))])]),_:1},8,["label"]),o(u,{label:e.$t("flowControlDomain.ruleGranularity"),labelStyle:{fontWeight:"bold"}},{default:t(()=>[o(b,null,{default:t(()=>[n(r(a.scope),1)]),_:1})]),_:1},8,["label"]),a.scope=="service"?(s(),c(u,{key:0,label:"版本",labelStyle:{fontWeight:"bold"}},{default:t(()=>[g("p",{class:"description-item-content with-card",onClick:l[2]||(l[2]=d=>h(a.version))},[n(r(a.version)+" ",1),a.version.length?(s(),c(y(S),{key:0})):v("",!0)])]),_:1})):v("",!0),a.scope=="service"?(s(),c(u,{key:1,label:"分组",labelStyle:{fontWeight:"bold"}},{default:t(()=>[g("p",{class:"description-item-content with-card",onClick:l[3]||(l[3]=d=>h(a.group))},[n(r(a.group)+" ",1),a.group.length?(s(),c(y(S),{key:0})):v("",!0)])]),_:1})):v("",!0),o(u,{label:e.$t("flowControlDomain.actionObject"),labelStyle:{fontWeight:"bold"}},{default:t(()=>[g("p",{class:"description-item-content with-card",onClick:l[4]||(l[4]=d=>h(N.value))},[n(r(N.value)+" ",1),o(y(S))])]),_:1},8,["label"]),o(u,{label:e.$t("flowControlDomain.faultTolerantProtection"),labelStyle:{fontWeight:"bold"}},{default:t(()=>[o(b,null,{default:t(()=>[n(r(a.force?e.$t("flowControlDomain.opened"):e.$t("flowControlDomain.closed")),1)]),_:1})]),_:1},8,["label"]),o(u,{label:e.$t("flowControlDomain.enabledState"),labelStyle:{fontWeight:"bold"}},{default:t(()=>[o(b,null,{default:t(()=>[n(r(a.enabled?e.$t("flowControlDomain.enabled"):e.$t("flowControlDomain.disabled")),1)]),_:1})]),_:1},8,["label"]),o(u,{label:e.$t("flowControlDomain.runTimeEffective"),labelStyle:{fontWeight:"bold"}},{default:t(()=>[o(b,null,{default:t(()=>[n(r(a.runtime?e.$t("flowControlDomain.opened"):e.$t("flowControlDomain.closed")),1)]),_:1})]),_:1},8,["label"])]),_:1})]),_:1})]),_:1}),o(f,{style:{"margin-top":"10px"},class:"_detail"},{default:t(()=>[o(W,{align:"start",style:{width:"100%"}},{default:t(()=>[o(p,{level:5},{default:t(()=>[n(r(e.$t("flowControlDomain.requestParameterMatching"))+": ",1)]),_:1}),o(W,{align:"center",direction:"horizontal",size:"middle",wrap:""},{default:t(()=>[(s(!0),$(M,null,O(R.value,(d,I)=>(s(),c(P,{key:I,color:"#2db7f5"},{default:t(()=>[n(r(d),1)]),_:2},1024))),128))]),_:1})]),_:1}),o(W,{align:"start",style:{width:"100%"},wrap:""},{default:t(()=>[o(p,{level:5},{default:t(()=>[n(r(e.$t("flowControlDomain.addressSubsetMatching"))+": ",1)]),_:1}),(s(!0),$(M,null,O(V.value,(d,I)=>(s(),c(P,{key:I,color:"#87d068"},{default:t(()=>[n(r(d),1)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1},8,["span"]),o(q,{span:_.value?B.value:0,class:"right"},{default:t(()=>[_.value?(s(),c(f,{key:0,class:"sliderBox"},{default:t(()=>[(s(),$(M,null,O(2,d=>o(f,{key:d},{default:t(()=>[ne,se,o(m,{justify:"flex-end"},{default:t(()=>[o(C,{type:"text",style:{color:"#0a90d5"}},{default:t(()=>[n("查看")]),_:1}),o(C,{type:"text",style:{color:"#0a90d5"}},{default:t(()=>[n("回滚")]),_:1})]),_:1})]),_:2},1024)),64))]),_:1})):v("",!0)]),_:1},8,["span"])]),_:1})])}}}),pe=oe(re,[["__scopeId","data-v-2f7b63ed"]]);export{pe as default}; +import{u as G}from"./index-Y8bti_iA.js";import{d as F,k as J,a as U,B as k,r as H,l as K,D as Q,c as $,b as o,w as t,e as i,o as s,f as n,t as r,J as c,n as y,aa as X,ab as Y,j as g,a0 as S,T as v,L as M,M as O,m as Z,p as ee,h as te,_ as oe}from"./index-VXjVsiiO.js";import{g as ae}from"./traffic-W0fp5Gf-.js";import"./request-Cs8TyifY.js";const A=w=>(ee("data-v-2f7b63ed"),w=w(),te(),w),le={class:"__container_routingRule_detail"},ne=A(()=>g("p",null,"修改时间: 2024/3/20 15:20:31",-1)),se=A(()=>g("p",null,"版本号: xo842xqpx834",-1)),re=F({__name:"formView",setup(w){const{appContext:{config:{globalProperties:T}}}=J(),j=U(),_=k(!1),B=k(8),x=G().toClipboard;function h(e){Z.success(T.$t("messageDomain.success.copy")),x(e)}const a=H({configVersion:"v3.0",scope:"service",key:"org.apache.dubbo.samples.UserService",enabled:!0,runtime:!0,force:!1,conditions:["=>host!=192.168.0.68"],group:"",version:""}),N=K(()=>{const e=a.key.split(":");return a.version=e[1]||"",a.group=e[2]||"",e[0]?e[0]:""}),R=k([]),V=k([]);async function E(){var l;let e=await ae((l=j.params)==null?void 0:l.ruleName);console.log(e),(e==null?void 0:e.code)===200&&(Object.assign(a,(e==null?void 0:e.data)||{}),a.conditions.forEach((p,C)=>{var D,f;const m=p.split(" => "),u=(D=m[1])==null?void 0:D.split(" & "),b=(f=m[0])==null?void 0:f.split(" & ");R.value=R.value.concat(b),V.value=V.value.concat(u)}))}const L=()=>{var l;const e=(l=j.params)==null?void 0:l.ruleName;if(e&&a.scope==="service"){const p=e==null?void 0:e.split(":");a.version=p[1],a.group=p[2].split(".")[0]}};return Q(async()=>{await E(),L()}),(e,l)=>{const p=i("a-typography-title"),C=i("a-button"),m=i("a-flex"),u=i("a-descriptions-item"),b=i("a-typography-paragraph"),D=i("a-descriptions"),f=i("a-card"),z=i("a-row"),P=i("a-tag"),W=i("a-space"),q=i("a-col");return s(),$("div",le,[o(m,{style:{width:"100%"}},{default:t(()=>[o(q,{span:_.value?24-B.value:24,class:"left"},{default:t(()=>[o(z,null,{default:t(()=>[o(m,{justify:"space-between",style:{width:"100%"}},{default:t(()=>[o(p,{level:3},{default:t(()=>[n(" 基础信息")]),_:1}),o(C,{type:"text",style:{color:"#0a90d5"},onClick:l[0]||(l[0]=d=>_.value=!_.value)},{default:t(()=>[n(r(e.$t("flowControlDomain.versionRecords"))+" ",1),_.value?(s(),c(y(Y),{key:1})):(s(),c(y(X),{key:0}))]),_:1})]),_:1}),o(f,{class:"_detail"},{default:t(()=>[o(D,{column:2,layout:"vertical",title:""},{default:t(()=>[o(u,{label:e.$t("flowControlDomain.ruleName"),labelStyle:{fontWeight:"bold"}},{default:t(()=>[g("p",{class:"description-item-content with-card",onClick:l[1]||(l[1]=d=>h(a.key))},[n(r(a.key)+" ",1),o(y(S))])]),_:1},8,["label"]),o(u,{label:e.$t("flowControlDomain.ruleGranularity"),labelStyle:{fontWeight:"bold"}},{default:t(()=>[o(b,null,{default:t(()=>[n(r(a.scope),1)]),_:1})]),_:1},8,["label"]),a.scope=="service"?(s(),c(u,{key:0,label:"版本",labelStyle:{fontWeight:"bold"}},{default:t(()=>[g("p",{class:"description-item-content with-card",onClick:l[2]||(l[2]=d=>h(a.version))},[n(r(a.version)+" ",1),a.version.length?(s(),c(y(S),{key:0})):v("",!0)])]),_:1})):v("",!0),a.scope=="service"?(s(),c(u,{key:1,label:"分组",labelStyle:{fontWeight:"bold"}},{default:t(()=>[g("p",{class:"description-item-content with-card",onClick:l[3]||(l[3]=d=>h(a.group))},[n(r(a.group)+" ",1),a.group.length?(s(),c(y(S),{key:0})):v("",!0)])]),_:1})):v("",!0),o(u,{label:e.$t("flowControlDomain.actionObject"),labelStyle:{fontWeight:"bold"}},{default:t(()=>[g("p",{class:"description-item-content with-card",onClick:l[4]||(l[4]=d=>h(N.value))},[n(r(N.value)+" ",1),o(y(S))])]),_:1},8,["label"]),o(u,{label:e.$t("flowControlDomain.faultTolerantProtection"),labelStyle:{fontWeight:"bold"}},{default:t(()=>[o(b,null,{default:t(()=>[n(r(a.force?e.$t("flowControlDomain.opened"):e.$t("flowControlDomain.closed")),1)]),_:1})]),_:1},8,["label"]),o(u,{label:e.$t("flowControlDomain.enabledState"),labelStyle:{fontWeight:"bold"}},{default:t(()=>[o(b,null,{default:t(()=>[n(r(a.enabled?e.$t("flowControlDomain.enabled"):e.$t("flowControlDomain.disabled")),1)]),_:1})]),_:1},8,["label"]),o(u,{label:e.$t("flowControlDomain.runTimeEffective"),labelStyle:{fontWeight:"bold"}},{default:t(()=>[o(b,null,{default:t(()=>[n(r(a.runtime?e.$t("flowControlDomain.opened"):e.$t("flowControlDomain.closed")),1)]),_:1})]),_:1},8,["label"])]),_:1})]),_:1})]),_:1}),o(f,{style:{"margin-top":"10px"},class:"_detail"},{default:t(()=>[o(W,{align:"start",style:{width:"100%"}},{default:t(()=>[o(p,{level:5},{default:t(()=>[n(r(e.$t("flowControlDomain.requestParameterMatching"))+": ",1)]),_:1}),o(W,{align:"center",direction:"horizontal",size:"middle",wrap:""},{default:t(()=>[(s(!0),$(M,null,O(R.value,(d,I)=>(s(),c(P,{key:I,color:"#2db7f5"},{default:t(()=>[n(r(d),1)]),_:2},1024))),128))]),_:1})]),_:1}),o(W,{align:"start",style:{width:"100%"},wrap:""},{default:t(()=>[o(p,{level:5},{default:t(()=>[n(r(e.$t("flowControlDomain.addressSubsetMatching"))+": ",1)]),_:1}),(s(!0),$(M,null,O(V.value,(d,I)=>(s(),c(P,{key:I,color:"#87d068"},{default:t(()=>[n(r(d),1)]),_:2},1024))),128))]),_:1})]),_:1})]),_:1},8,["span"]),o(q,{span:_.value?B.value:0,class:"right"},{default:t(()=>[_.value?(s(),c(f,{key:0,class:"sliderBox"},{default:t(()=>[(s(),$(M,null,O(2,d=>o(f,{key:d},{default:t(()=>[ne,se,o(m,{justify:"flex-end"},{default:t(()=>[o(C,{type:"text",style:{color:"#0a90d5"}},{default:t(()=>[n("查看")]),_:1}),o(C,{type:"text",style:{color:"#0a90d5"}},{default:t(()=>[n("回滚")]),_:1})]),_:1})]),_:2},1024)),64))]),_:1})):v("",!0)]),_:1},8,["span"])]),_:1})])}}}),pe=oe(re,[["__scopeId","data-v-2f7b63ed"]]);export{pe as default}; diff --git a/app/dubbo-ui/dist/admin/assets/formView-2KzX11dd.js b/app/dubbo-ui/dist/admin/assets/formView-pYzBQ4Sn.js similarity index 93% rename from app/dubbo-ui/dist/admin/assets/formView-2KzX11dd.js rename to app/dubbo-ui/dist/admin/assets/formView-pYzBQ4Sn.js index c7e2853f..a9adbe90 100644 --- a/app/dubbo-ui/dist/admin/assets/formView-2KzX11dd.js +++ b/app/dubbo-ui/dist/admin/assets/formView-pYzBQ4Sn.js @@ -1 +1 @@ -import{d as P,v as T,a as L,k as M,l as x,r as A,D as E,c as f,b as t,w as a,L as v,M as w,e as l,n as m,P as F,o as c,j as h,f as n,t as o,a0 as D,J as $,m as G,_ as J}from"./index-3zDsduUv.js";import{u as Y}from"./index-HdnVQEsT.js";import{e as q}from"./traffic-dHGZ6qwp.js";import"./request-3an337VF.js";const z={class:"__container_app_detail"},H=P({__name:"formView",setup(K){T(e=>({"0baf33be":m(F)}));const k=L(),{appContext:{config:{globalProperties:O}}}=M(),R=Y().toClipboard;function _(e){G.success(O.$t("messageDomain.success.copy")),R(e)}const b=x(()=>{const e=s.key.split(":");return e[0]?e[0]:""}),s=A({configVersion:"v3.0",scope:"application",key:"shop-user",enabled:!0,runtime:!0,tags:[{name:"gray",match:[{key:"version",value:{exact:"v1"}}]}]}),N=async()=>{var r;const e=await q((r=k.params)==null?void 0:r.ruleName);e.code===200&&Object.assign(s,e.data||{})};return E(()=>{N()}),(e,r)=>{const i=l("a-descriptions-item"),u=l("a-typography-paragraph"),S=l("a-descriptions"),g=l("a-card"),V=l("a-flex"),j=l("a-typography-text"),y=l("a-typography-title"),C=l("a-space"),I=l("a-tag");return c(),f("div",z,[t(V,null,{default:a(()=>[t(g,{class:"_detail"},{default:a(()=>[t(S,{column:2,layout:"vertical",title:""},{default:a(()=>[t(i,{label:e.$t("flowControlDomain.ruleName"),labelStyle:{fontWeight:"bold"}},{default:a(()=>[h("p",{onClick:r[0]||(r[0]=p=>_(s.key)),class:"description-item-content with-card"},[n(o(s.key)+" ",1),t(m(D))])]),_:1},8,["label"]),t(i,{label:e.$t("flowControlDomain.ruleGranularity"),labelStyle:{fontWeight:"bold"}},{default:a(()=>[t(u,null,{default:a(()=>[n(o(s.scope),1)]),_:1})]),_:1},8,["label"]),t(i,{label:e.$t("flowControlDomain.actionObject"),labelStyle:{fontWeight:"bold"}},{default:a(()=>[h("p",{onClick:r[1]||(r[1]=p=>_(b.value)),class:"description-item-content with-card"},[n(o(b.value)+" ",1),t(m(D))])]),_:1},8,["label"]),t(i,{label:e.$t("flowControlDomain.enabledState"),labelStyle:{fontWeight:"bold"}},{default:a(()=>[t(u,null,{default:a(()=>[n(o(s.enabled?e.$t("flowControlDomain.enabled"):e.$t("flowControlDomain.disabled")),1)]),_:1})]),_:1},8,["label"]),t(i,{label:e.$t("flowControlDomain.runTimeEffective"),labelStyle:{fontWeight:"bold"}},{default:a(()=>[t(u,null,{default:a(()=>[n(o(s.runtime?e.$t("flowControlDomain.opened"):e.$t("flowControlDomain.closed")),1)]),_:1})]),_:1},8,["label"])]),_:1})]),_:1})]),_:1}),(c(!0),f(v,null,w(s.tags,(p,W)=>(c(),$(g,{title:`标签【${W+1}】`,style:{"margin-top":"10px"},class:"_detail"},{default:a(()=>[t(C,{align:"center"},{default:a(()=>[t(y,{level:5},{default:a(()=>[n(o(e.$t("flowControlDomain.labelName"))+": ",1),t(j,{class:"labelName"},{default:a(()=>[n(o(p.name),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),t(C,{align:"start",style:{width:"100%"}},{default:a(()=>[t(y,{level:5},{default:a(()=>[n(o(e.$t("flowControlDomain.actuatingRange"))+": ",1)]),_:1}),(c(!0),f(v,null,w(p.match,(d,B)=>(c(),$(I,{key:B,color:"#2db7f5"},{default:a(()=>[n(o(d.key)+": "+o(Object.keys(d.value)[0])+"="+o(Object.values(d.value)[0]),1)]),_:2},1024))),128))]),_:2},1024)]),_:2},1032,["title"]))),256))])}}}),ee=J(H,[["__scopeId","data-v-4f4c877f"]]);export{ee as default}; +import{d as P,v as T,a as L,k as M,l as x,r as A,D as E,c as f,b as t,w as a,L as v,M as w,e as l,n as m,P as F,o as c,j as h,f as n,t as o,a0 as D,J as $,m as G,_ as J}from"./index-VXjVsiiO.js";import{u as Y}from"./index-Y8bti_iA.js";import{e as q}from"./traffic-W0fp5Gf-.js";import"./request-Cs8TyifY.js";const z={class:"__container_app_detail"},H=P({__name:"formView",setup(K){T(e=>({"0baf33be":m(F)}));const k=L(),{appContext:{config:{globalProperties:O}}}=M(),R=Y().toClipboard;function _(e){G.success(O.$t("messageDomain.success.copy")),R(e)}const b=x(()=>{const e=s.key.split(":");return e[0]?e[0]:""}),s=A({configVersion:"v3.0",scope:"application",key:"shop-user",enabled:!0,runtime:!0,tags:[{name:"gray",match:[{key:"version",value:{exact:"v1"}}]}]}),N=async()=>{var r;const e=await q((r=k.params)==null?void 0:r.ruleName);e.code===200&&Object.assign(s,e.data||{})};return E(()=>{N()}),(e,r)=>{const i=l("a-descriptions-item"),u=l("a-typography-paragraph"),S=l("a-descriptions"),g=l("a-card"),V=l("a-flex"),j=l("a-typography-text"),y=l("a-typography-title"),C=l("a-space"),I=l("a-tag");return c(),f("div",z,[t(V,null,{default:a(()=>[t(g,{class:"_detail"},{default:a(()=>[t(S,{column:2,layout:"vertical",title:""},{default:a(()=>[t(i,{label:e.$t("flowControlDomain.ruleName"),labelStyle:{fontWeight:"bold"}},{default:a(()=>[h("p",{onClick:r[0]||(r[0]=p=>_(s.key)),class:"description-item-content with-card"},[n(o(s.key)+" ",1),t(m(D))])]),_:1},8,["label"]),t(i,{label:e.$t("flowControlDomain.ruleGranularity"),labelStyle:{fontWeight:"bold"}},{default:a(()=>[t(u,null,{default:a(()=>[n(o(s.scope),1)]),_:1})]),_:1},8,["label"]),t(i,{label:e.$t("flowControlDomain.actionObject"),labelStyle:{fontWeight:"bold"}},{default:a(()=>[h("p",{onClick:r[1]||(r[1]=p=>_(b.value)),class:"description-item-content with-card"},[n(o(b.value)+" ",1),t(m(D))])]),_:1},8,["label"]),t(i,{label:e.$t("flowControlDomain.enabledState"),labelStyle:{fontWeight:"bold"}},{default:a(()=>[t(u,null,{default:a(()=>[n(o(s.enabled?e.$t("flowControlDomain.enabled"):e.$t("flowControlDomain.disabled")),1)]),_:1})]),_:1},8,["label"]),t(i,{label:e.$t("flowControlDomain.runTimeEffective"),labelStyle:{fontWeight:"bold"}},{default:a(()=>[t(u,null,{default:a(()=>[n(o(s.runtime?e.$t("flowControlDomain.opened"):e.$t("flowControlDomain.closed")),1)]),_:1})]),_:1},8,["label"])]),_:1})]),_:1})]),_:1}),(c(!0),f(v,null,w(s.tags,(p,W)=>(c(),$(g,{title:`标签【${W+1}】`,style:{"margin-top":"10px"},class:"_detail"},{default:a(()=>[t(C,{align:"center"},{default:a(()=>[t(y,{level:5},{default:a(()=>[n(o(e.$t("flowControlDomain.labelName"))+": ",1),t(j,{class:"labelName"},{default:a(()=>[n(o(p.name),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),t(C,{align:"start",style:{width:"100%"}},{default:a(()=>[t(y,{level:5},{default:a(()=>[n(o(e.$t("flowControlDomain.actuatingRange"))+": ",1)]),_:1}),(c(!0),f(v,null,w(p.match,(d,B)=>(c(),$(I,{key:B,color:"#2db7f5"},{default:a(()=>[n(o(d.key)+": "+o(Object.keys(d.value)[0])+"="+o(Object.values(d.value)[0]),1)]),_:2},1024))),128))]),_:2},1024)]),_:2},1032,["title"]))),256))])}}}),ee=J(H,[["__scopeId","data-v-4f4c877f"]]);export{ee as default}; diff --git a/app/dubbo-ui/dist/admin/assets/freemarker2-UxhOxt-M.js b/app/dubbo-ui/dist/admin/assets/freemarker2-CvjbrvE7.js similarity index 99% rename from app/dubbo-ui/dist/admin/assets/freemarker2-UxhOxt-M.js rename to app/dubbo-ui/dist/admin/assets/freemarker2-CvjbrvE7.js index bd858663..d82ffc32 100644 --- a/app/dubbo-ui/dist/admin/assets/freemarker2-UxhOxt-M.js +++ b/app/dubbo-ui/dist/admin/assets/freemarker2-CvjbrvE7.js @@ -1,4 +1,4 @@ -import{m as F}from"./js-yaml-eElisXzH.js";import"./index-3zDsduUv.js";/*!----------------------------------------------------------------------------- +import{m as F}from"./js-yaml-EQlPfOK8.js";import"./index-VXjVsiiO.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license diff --git a/app/dubbo-ui/dist/admin/assets/globalSearch--VMQnq3S.js b/app/dubbo-ui/dist/admin/assets/globalSearch-6GNf4A56.js similarity index 75% rename from app/dubbo-ui/dist/admin/assets/globalSearch--VMQnq3S.js rename to app/dubbo-ui/dist/admin/assets/globalSearch-6GNf4A56.js index dd48b25a..9de764f3 100644 --- a/app/dubbo-ui/dist/admin/assets/globalSearch--VMQnq3S.js +++ b/app/dubbo-ui/dist/admin/assets/globalSearch-6GNf4A56.js @@ -1 +1 @@ -import{r as t}from"./request-3an337VF.js";const r=e=>t({url:"/auth/login",method:"post",data:e,headers:{"Content-Type":"multipart/form-data"}}),s=()=>t({url:"/auth/logout",method:"post"}),a=()=>t({url:"/meshes",method:"get"});export{s as a,r as l,a as m}; +import{r as t}from"./request-Cs8TyifY.js";const r=e=>t({url:"/auth/login",method:"post",data:e,headers:{"Content-Type":"multipart/form-data"}}),s=()=>t({url:"/auth/logout",method:"post"}),a=()=>t({url:"/meshes",method:"get"});export{s as a,r as l,a as m}; diff --git a/app/dubbo-ui/dist/admin/assets/handlebars-feyIBGtU.js b/app/dubbo-ui/dist/admin/assets/handlebars-fU1X2nVM.js similarity index 98% rename from app/dubbo-ui/dist/admin/assets/handlebars-feyIBGtU.js rename to app/dubbo-ui/dist/admin/assets/handlebars-fU1X2nVM.js index 516ff2f1..4b88f948 100644 --- a/app/dubbo-ui/dist/admin/assets/handlebars-feyIBGtU.js +++ b/app/dubbo-ui/dist/admin/assets/handlebars-fU1X2nVM.js @@ -1,4 +1,4 @@ -import{m as i}from"./js-yaml-eElisXzH.js";import"./index-3zDsduUv.js";/*!----------------------------------------------------------------------------- +import{m as i}from"./js-yaml-EQlPfOK8.js";import"./index-VXjVsiiO.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license diff --git a/app/dubbo-ui/dist/admin/assets/html-XW1o38ac.js b/app/dubbo-ui/dist/admin/assets/html-6FTFGpD-.js similarity index 97% rename from app/dubbo-ui/dist/admin/assets/html-XW1o38ac.js rename to app/dubbo-ui/dist/admin/assets/html-6FTFGpD-.js index 0df3fe64..b511e9fe 100644 --- a/app/dubbo-ui/dist/admin/assets/html-XW1o38ac.js +++ b/app/dubbo-ui/dist/admin/assets/html-6FTFGpD-.js @@ -1,4 +1,4 @@ -import{m as p}from"./js-yaml-eElisXzH.js";import"./index-3zDsduUv.js";/*!----------------------------------------------------------------------------- +import{m as p}from"./js-yaml-EQlPfOK8.js";import"./index-VXjVsiiO.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license diff --git a/app/dubbo-ui/dist/admin/assets/htmlMode-GNYYzuyz.js b/app/dubbo-ui/dist/admin/assets/htmlMode-hY3gUkwW.js similarity index 99% rename from app/dubbo-ui/dist/admin/assets/htmlMode-GNYYzuyz.js rename to app/dubbo-ui/dist/admin/assets/htmlMode-hY3gUkwW.js index 96fbf02e..a8f7a6ee 100644 --- a/app/dubbo-ui/dist/admin/assets/htmlMode-GNYYzuyz.js +++ b/app/dubbo-ui/dist/admin/assets/htmlMode-hY3gUkwW.js @@ -1,4 +1,4 @@ -import{m as ft}from"./js-yaml-eElisXzH.js";import"./index-3zDsduUv.js";/*!----------------------------------------------------------------------------- +import{m as ft}from"./js-yaml-EQlPfOK8.js";import"./index-VXjVsiiO.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license diff --git a/app/dubbo-ui/dist/admin/assets/index-PuhA8qFJ.js b/app/dubbo-ui/dist/admin/assets/index-7eDR2syK.js similarity index 99% rename from app/dubbo-ui/dist/admin/assets/index-PuhA8qFJ.js rename to app/dubbo-ui/dist/admin/assets/index-7eDR2syK.js index d6f68b06..8ff63742 100644 --- a/app/dubbo-ui/dist/admin/assets/index-PuhA8qFJ.js +++ b/app/dubbo-ui/dist/admin/assets/index-7eDR2syK.js @@ -1,4 +1,4 @@ -import{X as ip,d as vk,v as gk,a as yk,r as Bv,D as mk,c as bf,j as Qo,t as xf,n as yi,b as Fn,w as On,e as ho,P as Fv,o as po,L as zv,M as Gv,J as Yv,I as Wv,f as Hv,p as bk,h as xk,_ as wk}from"./index-3zDsduUv.js";import{g as Ok,a as Sk}from"./serverInfo-F5PlCBPJ.js";import"./request-3an337VF.js";const _b=()=>[["cartesian"]];_b.props={};function _k(t,e){return t=t%(2*Math.PI),e=e%(2*Math.PI),t<0&&(t=2*Math.PI+t),e<0&&(e=2*Math.PI+e),t>=e&&(e=e+2*Math.PI),{startAngle:t,endAngle:e}}const Mb=(t={})=>{const e={startAngle:-Math.PI/2,endAngle:Math.PI*3/2,innerRadius:0,outerRadius:1},n=Object.assign(Object.assign({},e),t);return Object.assign(Object.assign({},n),_k(n.startAngle,n.endAngle))},Cs=t=>{const{startAngle:e,endAngle:n,innerRadius:r,outerRadius:i}=Mb(t);return[["translate",0,.5],["reflect.y"],["translate",0,-.5],["polar",e,n,r,i]]};Cs.props={};const ap=()=>[["transpose"],["translate",.5,.5],["reflect.x"],["translate",-.5,-.5]];ap.props={transform:!0};const Mk=(t={})=>{const e={startAngle:-Math.PI/2,endAngle:Math.PI*3/2,innerRadius:0,outerRadius:1};return Object.assign(Object.assign({},e),t)},Eb=t=>{const{startAngle:e,endAngle:n,innerRadius:r,outerRadius:i}=Mk(t);return[...ap(),...Cs({startAngle:e,endAngle:n,innerRadius:r,outerRadius:i})]};Eb.props={};const Pb=(t={})=>{const e={startAngle:-Math.PI/2,endAngle:Math.PI*3/2,innerRadius:0,outerRadius:1};return Object.assign(Object.assign({},e),t)},op=t=>{const{startAngle:e,endAngle:n,innerRadius:r,outerRadius:i}=Pb(t);return[["transpose"],["translate",.5,.5],["reflect"],["translate",-.5,-.5],...Cs({startAngle:e,endAngle:n,innerRadius:r,outerRadius:i})]};op.props={};const sp=()=>[["parallel",0,1,0,1]];sp.props={};const Ab=({focusX:t=0,focusY:e=0,distortionX:n=2,distortionY:r=2,visual:i=!1})=>[["fisheye",t,e,n,r,i]];Ab.props={transform:!0};const kb=t=>{const{startAngle:e=-Math.PI/2,endAngle:n=Math.PI*3/2,innerRadius:r=0,outerRadius:i=1}=t;return[...sp(),...Cs({startAngle:e,endAngle:n,innerRadius:r,outerRadius:i})]};kb.props={};const Tb=({value:t})=>e=>e.map(()=>t);Tb.props={};const Cb=({value:t})=>e=>e.map(t);Cb.props={};const Lb=({value:t})=>e=>e.map(n=>n[t]);Lb.props={};const Nb=({value:t})=>()=>t;Nb.props={};var fl=function(t){return t!==null&&typeof t!="function"&&isFinite(t.length)};const Ve=function(t){return typeof t=="function"};var nt=function(t){return t==null},Ek={}.toString,Ls=function(t,e){return Ek.call(t)==="[object "+e+"]"};const Le=function(t){return Array.isArray?Array.isArray(t):Ls(t,"Array")},ki=function(t){var e=typeof t;return t!==null&&e==="object"||e==="function"};function cp(t,e){if(t){var n;if(Le(t))for(var r=0,i=t.length;rn?n:t},de=function(t){return Ls(t,"Number")},Tk=1e-5;function Fo(t,e,n){return n===void 0&&(n=Tk),Math.abs(t-e)r&&(n=a,r=o)}return n}},Lk=function(t,e){if(Le(t)){for(var n,r=1/0,i=0;ii&&(r=n,o(1),++e),n[s]=c}function o(s){e=0,n=Object.create(null),s||(r=Object.create(null))}return o(),{clear:o,has:function(s){return n[s]!==void 0||r[s]!==void 0},get:function(s){var c=n[s];if(c!==void 0)return c;if((c=r[s])!==void 0)return a(s,c),c},set:function(s,c){n[s]!==void 0?n[s]=c:a(s,c)}}}const Ik=function(t,e,n){if(n===void 0&&(n=128),!Ve(t))throw new TypeError("Expected a function");var r=function(){for(var i=[],a=0;ae?(r&&(clearTimeout(r),r=null),s=u,o=t.apply(i,a),r||(i=a=null)):!r&&n.trailing!==!1&&(r=setTimeout(c,f)),o};return l.cancel=function(){clearTimeout(r),s=0,r=i=a=null},l},wf=function(){};function Uv(t){return nt(t)?0:fl(t)?t.length:Object.keys(t).length}var Zt=1e-6,he=typeof Float32Array<"u"?Float32Array:Array;Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)});function Ja(){var t=new he(9);return he!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function zk(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function Gk(t){var e=new he(9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function Yk(t,e,n,r,i,a,o,s,c){var l=new he(9);return l[0]=t,l[1]=e,l[2]=n,l[3]=r,l[4]=i,l[5]=a,l[6]=o,l[7]=s,l[8]=c,l}function Wk(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],c=e[6],l=e[7],u=e[8],f=u*o-s*l,d=-u*a+s*c,h=l*a-o*c,p=n*f+r*d+i*h;return p?(p=1/p,t[0]=f*p,t[1]=(-u*r+i*l)*p,t[2]=(s*r-i*o)*p,t[3]=d*p,t[4]=(u*n-i*c)*p,t[5]=(-s*n+i*a)*p,t[6]=h*p,t[7]=(-l*n+r*c)*p,t[8]=(o*n-r*a)*p,t):null}function Hk(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],c=e[5],l=e[6],u=e[7],f=e[8],d=n[0],h=n[1],p=n[2],v=n[3],g=n[4],y=n[5],m=n[6],b=n[7],x=n[8];return t[0]=d*r+h*o+p*l,t[1]=d*i+h*s+p*u,t[2]=d*a+h*c+p*f,t[3]=v*r+g*o+y*l,t[4]=v*i+g*s+y*u,t[5]=v*a+g*c+y*f,t[6]=m*r+b*o+x*l,t[7]=m*i+b*s+x*u,t[8]=m*a+b*c+x*f,t}function Vk(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t}function Xk(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function Uk(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}var qk=Hk;function Nt(){var t=new he(16);return he!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}function lp(t){var e=new he(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function Ri(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function Kk(t,e,n,r,i,a,o,s,c,l,u,f,d,h,p,v){var g=new he(16);return g[0]=t,g[1]=e,g[2]=n,g[3]=r,g[4]=i,g[5]=a,g[6]=o,g[7]=s,g[8]=c,g[9]=l,g[10]=u,g[11]=f,g[12]=d,g[13]=h,g[14]=p,g[15]=v,g}function Td(t,e,n,r,i,a,o,s,c,l,u,f,d,h,p,v,g){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c,t[8]=l,t[9]=u,t[10]=f,t[11]=d,t[12]=h,t[13]=p,t[14]=v,t[15]=g,t}function Rs(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function zb(t,e){if(t===e){var n=e[1],r=e[2],i=e[3],a=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=a,t[11]=e[14],t[12]=i,t[13]=o,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function Wn(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],c=e[6],l=e[7],u=e[8],f=e[9],d=e[10],h=e[11],p=e[12],v=e[13],g=e[14],y=e[15],m=n*s-r*o,b=n*c-i*o,x=n*l-a*o,w=r*c-i*s,O=r*l-a*s,S=i*l-a*c,_=u*v-f*p,M=u*g-d*p,E=u*y-h*p,P=f*g-d*v,T=f*y-h*v,A=d*y-h*g,k=m*A-b*T+x*P+w*E-O*M+S*_;return k?(k=1/k,t[0]=(s*A-c*T+l*P)*k,t[1]=(i*T-r*A-a*P)*k,t[2]=(v*S-g*O+y*w)*k,t[3]=(d*O-f*S-h*w)*k,t[4]=(c*E-o*A-l*M)*k,t[5]=(n*A-i*E+a*M)*k,t[6]=(g*x-p*S-y*b)*k,t[7]=(u*S-d*x+h*b)*k,t[8]=(o*T-s*E+l*_)*k,t[9]=(r*E-n*T-a*_)*k,t[10]=(p*O-v*x+y*m)*k,t[11]=(f*x-u*O-h*m)*k,t[12]=(s*M-o*P-c*_)*k,t[13]=(n*P-r*M+i*_)*k,t[14]=(v*b-p*w-g*m)*k,t[15]=(u*w-f*b+d*m)*k,t):null}function Zk(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],c=e[6],l=e[7],u=e[8],f=e[9],d=e[10],h=e[11],p=e[12],v=e[13],g=e[14],y=e[15];return t[0]=s*(d*y-h*g)-f*(c*y-l*g)+v*(c*h-l*d),t[1]=-(r*(d*y-h*g)-f*(i*y-a*g)+v*(i*h-a*d)),t[2]=r*(c*y-l*g)-s*(i*y-a*g)+v*(i*l-a*c),t[3]=-(r*(c*h-l*d)-s*(i*h-a*d)+f*(i*l-a*c)),t[4]=-(o*(d*y-h*g)-u*(c*y-l*g)+p*(c*h-l*d)),t[5]=n*(d*y-h*g)-u*(i*y-a*g)+p*(i*h-a*d),t[6]=-(n*(c*y-l*g)-o*(i*y-a*g)+p*(i*l-a*c)),t[7]=n*(c*h-l*d)-o*(i*h-a*d)+u*(i*l-a*c),t[8]=o*(f*y-h*v)-u*(s*y-l*v)+p*(s*h-l*f),t[9]=-(n*(f*y-h*v)-u*(r*y-a*v)+p*(r*h-a*f)),t[10]=n*(s*y-l*v)-o*(r*y-a*v)+p*(r*l-a*s),t[11]=-(n*(s*h-l*f)-o*(r*h-a*f)+u*(r*l-a*s)),t[12]=-(o*(f*g-d*v)-u*(s*g-c*v)+p*(s*d-c*f)),t[13]=n*(f*g-d*v)-u*(r*g-i*v)+p*(r*d-i*f),t[14]=-(n*(s*g-c*v)-o*(r*g-i*v)+p*(r*c-i*s)),t[15]=n*(s*d-c*f)-o*(r*d-i*f)+u*(r*c-i*s),t}function Gb(t){var e=t[0],n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7],l=t[8],u=t[9],f=t[10],d=t[11],h=t[12],p=t[13],v=t[14],g=t[15],y=e*o-n*a,m=e*s-r*a,b=e*c-i*a,x=n*s-r*o,w=n*c-i*o,O=r*c-i*s,S=l*p-u*h,_=l*v-f*h,M=l*g-d*h,E=u*v-f*p,P=u*g-d*p,T=f*g-d*v;return y*T-m*P+b*E+x*M-w*_+O*S}function $e(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],c=e[5],l=e[6],u=e[7],f=e[8],d=e[9],h=e[10],p=e[11],v=e[12],g=e[13],y=e[14],m=e[15],b=n[0],x=n[1],w=n[2],O=n[3];return t[0]=b*r+x*s+w*f+O*v,t[1]=b*i+x*c+w*d+O*g,t[2]=b*a+x*l+w*h+O*y,t[3]=b*o+x*u+w*p+O*m,b=n[4],x=n[5],w=n[6],O=n[7],t[4]=b*r+x*s+w*f+O*v,t[5]=b*i+x*c+w*d+O*g,t[6]=b*a+x*l+w*h+O*y,t[7]=b*o+x*u+w*p+O*m,b=n[8],x=n[9],w=n[10],O=n[11],t[8]=b*r+x*s+w*f+O*v,t[9]=b*i+x*c+w*d+O*g,t[10]=b*a+x*l+w*h+O*y,t[11]=b*o+x*u+w*p+O*m,b=n[12],x=n[13],w=n[14],O=n[15],t[12]=b*r+x*s+w*f+O*v,t[13]=b*i+x*c+w*d+O*g,t[14]=b*a+x*l+w*h+O*y,t[15]=b*o+x*u+w*p+O*m,t}function Ur(t,e,n){var r=n[0],i=n[1],a=n[2],o,s,c,l,u,f,d,h,p,v,g,y;return e===t?(t[12]=e[0]*r+e[4]*i+e[8]*a+e[12],t[13]=e[1]*r+e[5]*i+e[9]*a+e[13],t[14]=e[2]*r+e[6]*i+e[10]*a+e[14],t[15]=e[3]*r+e[7]*i+e[11]*a+e[15]):(o=e[0],s=e[1],c=e[2],l=e[3],u=e[4],f=e[5],d=e[6],h=e[7],p=e[8],v=e[9],g=e[10],y=e[11],t[0]=o,t[1]=s,t[2]=c,t[3]=l,t[4]=u,t[5]=f,t[6]=d,t[7]=h,t[8]=p,t[9]=v,t[10]=g,t[11]=y,t[12]=o*r+u*i+p*a+e[12],t[13]=s*r+f*i+v*a+e[13],t[14]=c*r+d*i+g*a+e[14],t[15]=l*r+h*i+y*a+e[15]),t}function vl(t,e,n){var r=n[0],i=n[1],a=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function Qk(t,e,n,r){var i=r[0],a=r[1],o=r[2],s=Math.hypot(i,a,o),c,l,u,f,d,h,p,v,g,y,m,b,x,w,O,S,_,M,E,P,T,A,k,C;return s0?(n[0]=(s*o+u*r+c*a-l*i)*2/f,n[1]=(c*o+u*i+l*r-s*a)*2/f,n[2]=(l*o+u*a+s*i-c*r)*2/f):(n[0]=(s*o+u*r+c*a-l*i)*2,n[1]=(c*o+u*i+l*r-s*a)*2,n[2]=(l*o+u*a+s*i-c*r)*2),Hb(t,e,n),t}function gl(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function Aa(t,e){var n=e[0],r=e[1],i=e[2],a=e[4],o=e[5],s=e[6],c=e[8],l=e[9],u=e[10];return t[0]=Math.hypot(n,r,i),t[1]=Math.hypot(a,o,s),t[2]=Math.hypot(c,l,u),t}function yl(t,e){var n=new he(3);Aa(n,e);var r=1/n[0],i=1/n[1],a=1/n[2],o=e[0]*r,s=e[1]*i,c=e[2]*a,l=e[4]*r,u=e[5]*i,f=e[6]*a,d=e[8]*r,h=e[9]*i,p=e[10]*a,v=o+u+p,g=0;return v>0?(g=Math.sqrt(v+1)*2,t[3]=.25*g,t[0]=(f-h)/g,t[1]=(d-c)/g,t[2]=(s-l)/g):o>u&&o>p?(g=Math.sqrt(1+o-u-p)*2,t[3]=(f-h)/g,t[0]=.25*g,t[1]=(s+l)/g,t[2]=(d+c)/g):u>p?(g=Math.sqrt(1+u-o-p)*2,t[3]=(d-c)/g,t[0]=(s+l)/g,t[1]=.25*g,t[2]=(f+h)/g):(g=Math.sqrt(1+p-o-u)*2,t[3]=(s-l)/g,t[0]=(d+c)/g,t[1]=(f+h)/g,t[2]=.25*g),t}function aT(t,e,n,r){var i=e[0],a=e[1],o=e[2],s=e[3],c=i+i,l=a+a,u=o+o,f=i*c,d=i*l,h=i*u,p=a*l,v=a*u,g=o*u,y=s*c,m=s*l,b=s*u,x=r[0],w=r[1],O=r[2];return t[0]=(1-(p+g))*x,t[1]=(d+b)*x,t[2]=(h-m)*x,t[3]=0,t[4]=(d-b)*w,t[5]=(1-(f+g))*w,t[6]=(v+y)*w,t[7]=0,t[8]=(h+m)*O,t[9]=(v-y)*O,t[10]=(1-(f+p))*O,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function zo(t,e,n,r,i){var a=e[0],o=e[1],s=e[2],c=e[3],l=a+a,u=o+o,f=s+s,d=a*l,h=a*u,p=a*f,v=o*u,g=o*f,y=s*f,m=c*l,b=c*u,x=c*f,w=r[0],O=r[1],S=r[2],_=i[0],M=i[1],E=i[2],P=(1-(v+y))*w,T=(h+x)*w,A=(p-b)*w,k=(h-x)*O,C=(1-(d+y))*O,L=(g+m)*O,I=(p+b)*S,R=(g-m)*S,j=(1-(d+v))*S;return t[0]=P,t[1]=T,t[2]=A,t[3]=0,t[4]=k,t[5]=C,t[6]=L,t[7]=0,t[8]=I,t[9]=R,t[10]=j,t[11]=0,t[12]=n[0]+_-(P*_+k*M+I*E),t[13]=n[1]+M-(T*_+C*M+R*E),t[14]=n[2]+E-(A*_+L*M+j*E),t[15]=1,t}function dp(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n+n,s=r+r,c=i+i,l=n*o,u=r*o,f=r*s,d=i*o,h=i*s,p=i*c,v=a*o,g=a*s,y=a*c;return t[0]=1-f-p,t[1]=u+y,t[2]=d-g,t[3]=0,t[4]=u-y,t[5]=1-l-p,t[6]=h+v,t[7]=0,t[8]=d+g,t[9]=h-v,t[10]=1-l-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function oT(t,e,n,r,i,a,o){var s=1/(n-e),c=1/(i-r),l=1/(a-o);return t[0]=a*2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a*2*c,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(i+r)*c,t[10]=(o+a)*l,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*a*2*l,t[15]=0,t}function Vb(t,e,n,r,i){var a=1/Math.tan(e/2),o;return t[0]=a/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,i!=null&&i!==1/0?(o=1/(r-i),t[10]=(i+r)*o,t[14]=2*i*r*o):(t[10]=-1,t[14]=-2*r),t}var sT=Vb;function cT(t,e,n,r,i){var a=1/Math.tan(e/2),o;return t[0]=a/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,i!=null&&i!==1/0?(o=1/(r-i),t[10]=i*o,t[14]=i*r*o):(t[10]=-1,t[14]=-r),t}function lT(t,e,n,r){var i=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),c=2/(o+s),l=2/(i+a);return t[0]=c,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l,t[6]=0,t[7]=0,t[8]=-((o-s)*c*.5),t[9]=(i-a)*l*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t}function Xb(t,e,n,r,i,a,o){var s=1/(e-n),c=1/(r-i),l=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*l,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*c,t[14]=(o+a)*l,t[15]=1,t}var Ub=Xb;function qb(t,e,n,r,i,a,o){var s=1/(e-n),c=1/(r-i),l=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=l,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*c,t[14]=a*l,t[15]=1,t}function Kb(t,e,n,r){var i,a,o,s,c,l,u,f,d,h,p=e[0],v=e[1],g=e[2],y=r[0],m=r[1],b=r[2],x=n[0],w=n[1],O=n[2];return Math.abs(p-x)0&&(h=1/Math.sqrt(h),u*=h,f*=h,d*=h);var p=c*d-l*f,v=l*u-s*d,g=s*f-c*u;return h=p*p+v*v+g*g,h>0&&(h=1/Math.sqrt(h),p*=h,v*=h,g*=h),t[0]=p,t[1]=v,t[2]=g,t[3]=0,t[4]=f*g-d*v,t[5]=d*p-u*g,t[6]=u*v-f*p,t[7]=0,t[8]=u,t[9]=f,t[10]=d,t[11]=0,t[12]=i,t[13]=a,t[14]=o,t[15]=1,t}function fT(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"}function dT(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function hT(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t}function Zb(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function pT(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t}function vT(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t}function gT(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function yT(t,e){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8],f=t[9],d=t[10],h=t[11],p=t[12],v=t[13],g=t[14],y=t[15],m=e[0],b=e[1],x=e[2],w=e[3],O=e[4],S=e[5],_=e[6],M=e[7],E=e[8],P=e[9],T=e[10],A=e[11],k=e[12],C=e[13],L=e[14],I=e[15];return Math.abs(n-m)<=Zt*Math.max(1,Math.abs(n),Math.abs(m))&&Math.abs(r-b)<=Zt*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(i-x)<=Zt*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(a-w)<=Zt*Math.max(1,Math.abs(a),Math.abs(w))&&Math.abs(o-O)<=Zt*Math.max(1,Math.abs(o),Math.abs(O))&&Math.abs(s-S)<=Zt*Math.max(1,Math.abs(s),Math.abs(S))&&Math.abs(c-_)<=Zt*Math.max(1,Math.abs(c),Math.abs(_))&&Math.abs(l-M)<=Zt*Math.max(1,Math.abs(l),Math.abs(M))&&Math.abs(u-E)<=Zt*Math.max(1,Math.abs(u),Math.abs(E))&&Math.abs(f-P)<=Zt*Math.max(1,Math.abs(f),Math.abs(P))&&Math.abs(d-T)<=Zt*Math.max(1,Math.abs(d),Math.abs(T))&&Math.abs(h-A)<=Zt*Math.max(1,Math.abs(h),Math.abs(A))&&Math.abs(p-k)<=Zt*Math.max(1,Math.abs(p),Math.abs(k))&&Math.abs(v-C)<=Zt*Math.max(1,Math.abs(v),Math.abs(C))&&Math.abs(g-L)<=Zt*Math.max(1,Math.abs(g),Math.abs(L))&&Math.abs(y-I)<=Zt*Math.max(1,Math.abs(y),Math.abs(I))}var Qb=$e,mT=Zb;const bT=Object.freeze(Object.defineProperty({__proto__:null,add:hT,adjoint:Zk,clone:lp,copy:Ri,create:Nt,determinant:Gb,equals:yT,exactEquals:gT,frob:dT,fromQuat:dp,fromQuat2:iT,fromRotation:tT,fromRotationTranslation:Hb,fromRotationTranslationScale:aT,fromRotationTranslationScaleOrigin:zo,fromScaling:fp,fromTranslation:up,fromValues:Kk,fromXRotation:eT,fromYRotation:nT,fromZRotation:rT,frustum:oT,getRotation:yl,getScaling:Aa,getTranslation:gl,identity:Rs,invert:Wn,lookAt:Kb,mul:Qb,multiply:$e,multiplyScalar:pT,multiplyScalarAndAdd:vT,ortho:Ub,orthoNO:Xb,orthoZO:qb,perspective:sT,perspectiveFromFieldOfView:lT,perspectiveNO:Vb,perspectiveZO:cT,rotate:Qk,rotateX:Yb,rotateY:Wb,rotateZ:Jk,scale:vl,set:Td,str:fT,sub:mT,subtract:Zb,targetTo:uT,translate:Ur,transpose:zb},Symbol.toStringTag,{value:"Module"}));function yt(){var t=new he(3);return he!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function br(t){var e=new he(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function wr(t){var e=t[0],n=t[1],r=t[2];return Math.hypot(e,n,r)}function St(t,e,n){var r=new he(3);return r[0]=t,r[1]=e,r[2]=n,r}function rn(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function Gn(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function ba(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function qv(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function xT(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function Cd(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function wT(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.hypot(n,r,i)}function Ti(t,e){var n=e[0],r=e[1],i=e[2],a=n*n+r*r+i*i;return a>0&&(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t}function nr(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function Qc(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[0],s=n[1],c=n[2];return t[0]=i*c-a*s,t[1]=a*o-r*c,t[2]=r*s-i*o,t}function Ld(t,e,n,r){var i=e[0],a=e[1],o=e[2];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t[2]=o+r*(n[2]-o),t}function Oe(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[3]*r+n[7]*i+n[11]*a+n[15];return o=o||1,t[0]=(n[0]*r+n[4]*i+n[8]*a+n[12])/o,t[1]=(n[1]*r+n[5]*i+n[9]*a+n[13])/o,t[2]=(n[2]*r+n[6]*i+n[10]*a+n[14])/o,t}function Jb(t,e,n){var r=e[0],i=e[1],a=e[2];return t[0]=r*n[0]+i*n[3]+a*n[6],t[1]=r*n[1]+i*n[4]+a*n[7],t[2]=r*n[2]+i*n[5]+a*n[8],t}function OT(t,e,n){var r=n[0],i=n[1],a=n[2],o=n[3],s=e[0],c=e[1],l=e[2],u=i*l-a*c,f=a*s-r*l,d=r*c-i*s,h=i*d-a*f,p=a*u-r*d,v=r*f-i*u,g=o*2;return u*=g,f*=g,d*=g,h*=2,p*=2,v*=2,t[0]=s+u+h,t[1]=c+f+p,t[2]=l+d+v,t}function vo(t,e){var n=t[0],r=t[1],i=t[2],a=e[0],o=e[1],s=e[2];return Math.abs(n-a)<=Zt*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-o)<=Zt*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(i-s)<=Zt*Math.max(1,Math.abs(i),Math.abs(s))}var Kv=wT,tx=wr;(function(){var t=yt();return function(e,n,r,i,a,o){var s,c;for(n||(n=3),r||(r=0),i?c=Math.min(i*n+r,e.length):c=e.length,s=r;s0&&(o=1/Math.sqrt(o)),t[0]=n*o,t[1]=r*o,t[2]=i*o,t[3]=a*o,t}function ha(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3];return t[0]=n[0]*r+n[4]*i+n[8]*a+n[12]*o,t[1]=n[1]*r+n[5]*i+n[9]*a+n[13]*o,t[2]=n[2]*r+n[6]*i+n[10]*a+n[14]*o,t[3]=n[3]*r+n[7]*i+n[11]*a+n[15]*o,t}(function(){var t=da();return function(e,n,r,i,a,o){var s,c;for(n||(n=4),r||(r=0),i?c=Math.min(i*n+r,e.length):c=e.length,s=r;sZt?(d=Math.acos(h),p=Math.sin(d),v=Math.sin((1-r)*d)/p,g=Math.sin(r*d)/p):(v=1-r,g=r),t[0]=v*i+g*c,t[1]=v*a+g*l,t[2]=v*o+g*u,t[3]=v*s+g*f,t}function Sf(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n*n+r*r+i*i+a*a,s=o?1/o:0;return t[0]=-n*s,t[1]=-r*s,t[2]=-i*s,t[3]=a*s,t}function ET(t,e){var n=e[0]+e[4]+e[8],r;if(n>0)r=Math.sqrt(n+1),t[3]=.5*r,r=.5/r,t[0]=(e[5]-e[7])*r,t[1]=(e[6]-e[2])*r,t[2]=(e[1]-e[3])*r;else{var i=0;e[4]>e[0]&&(i=1),e[8]>e[i*3+i]&&(i=2);var a=(i+1)%3,o=(i+2)%3;r=Math.sqrt(e[i*3+i]-e[a*3+a]-e[o*3+o]+1),t[i]=.5*r,r=.5/r,t[3]=(e[a*3+o]-e[o*3+a])*r,t[a]=(e[a*3+i]+e[i*3+a])*r,t[o]=(e[o*3+i]+e[i*3+o])*r}return t}function oc(t,e,n,r){var i=.5*Math.PI/180;e*=i,n*=i,r*=i;var a=Math.sin(e),o=Math.cos(e),s=Math.sin(n),c=Math.cos(n),l=Math.sin(r),u=Math.cos(r);return t[0]=a*c*u-o*s*l,t[1]=o*s*u+a*c*l,t[2]=o*c*l-a*s*u,t[3]=o*c*u+a*s*l,t}var _f=ST,sc=_T,Zv=qr,ml=MT;(function(){var t=yt(),e=St(1,0,0),n=St(0,1,0);return function(r,i,a){var o=nr(i,a);return o<-.999999?(Qc(t,e,i),tx(t)<1e-6&&Qc(t,n,i),Ti(t,t),Hr(r,t,Math.PI),r):o>.999999?(r[0]=0,r[1]=0,r[2]=0,r[3]=1,r):(Qc(t,i,a),r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=1+o,ml(r,r))}})();(function(){var t=ve(),e=ve();return function(n,r,i,a,o,s){return Of(t,r,o,s),Of(e,i,a,s),Of(n,t,e,2*s*(1-s)),n}})();(function(){var t=Ja();return function(e,n,r,i){return t[0]=r[0],t[3]=r[1],t[6]=r[2],t[1]=i[0],t[4]=i[1],t[7]=i[2],t[2]=-n[0],t[5]=-n[1],t[8]=-n[2],ml(e,ET(e,t))}})();function PT(){var t=new he(2);return he!=Float32Array&&(t[0]=0,t[1]=0),t}function AT(t,e){var n=new he(2);return n[0]=t,n[1]=e,n}function kT(t,e){return t[0]=e[0],t[1]=e[1],t}function TT(t,e){var n=e[0],r=e[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t}function CT(t,e){return t[0]*e[0]+t[1]*e[1]}function LT(t,e){return t[0]===e[0]&&t[1]===e[1]}(function(){var t=PT();return function(e,n,r,i,a,o){var s,c;for(n||(n=2),r||(r=0),i?c=Math.min(i*n+r,e.length):c=e.length,s=r;s0&&a[a.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function N(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,a=[],o;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function ex(){for(var t=0,e=0,n=arguments.length;e7){t[n].shift();for(var r=t[n],i=n;r.length;)e[n]="A",t.splice(i+=1,0,["C"].concat(r.splice(0,6)));t.splice(n,1)}}var Go={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0};function rx(t){return Array.isArray(t)&&t.every(function(e){var n=e[0].toLowerCase();return Go[n]===e.length-1&&"achlmqstvz".includes(n)})}function ix(t){return rx(t)&&t.every(function(e){var n=e[0];return n===n.toUpperCase()})}function ax(t){return ix(t)&&t.every(function(e){var n=e[0];return"ACLMQZ".includes(n)})}function Qv(t){for(var e=t.pathValue[t.segmentStart],n=e.toLowerCase(),r=t.data;r.length>=Go[n]&&(n==="m"&&r.length>2?(t.segments.push([e].concat(r.splice(0,2))),n="l",e=e==="m"?"l":"L"):t.segments.push([e].concat(r.splice(0,Go[n]))),!!Go[n]););}function RT(t){var e=t.index,n=t.pathValue,r=n.charCodeAt(e);if(r===48){t.param=0,t.index+=1;return}if(r===49){t.param=1,t.index+=1;return}t.err='[path-util]: invalid Arc flag "'+n[e]+'", expecting 0 or 1 at index '+e}function IT(t){return t>=48&&t<=57||t===43||t===45||t===46}function ea(t){return t>=48&&t<=57}function jT(t){var e=t.max,n=t.pathValue,r=t.index,i=r,a=!1,o=!1,s=!1,c=!1,l;if(i>=e){t.err="[path-util]: Invalid path value at index "+i+', "pathValue" is missing param';return}if(l=n.charCodeAt(i),(l===43||l===45)&&(i+=1,l=n.charCodeAt(i)),!ea(l)&&l!==46){t.err="[path-util]: Invalid path value at index "+i+', "'+n[i]+'" is not a number';return}if(l!==46){if(a=l===48,i+=1,l=n.charCodeAt(i),a&&i=5760&&e.includes(t)}function Jc(t){for(var e=t.pathValue,n=t.max;t.index0;o-=1){if(BT(i)&&(o===3||o===4)?RT(t):jT(t),t.err.length)return;t.data.push(t.param),Jc(t),t.index=t.max||!IT(n.charCodeAt(t.index)))break}Qv(t)}var zT=function(){function t(e){this.pathValue=e,this.segments=[],this.max=e.length,this.index=0,this.param=0,this.segmentStart=0,this.data=[],this.err=""}return t}();function GT(t){if(rx(t))return[].concat(t);var e=new zT(t);for(Jc(e);e.index1&&(E=Math.sqrt(E),d*=E,h*=E);var P=d*d,T=h*h,A=(a===o?-1:1)*Math.sqrt(Math.abs((P*T-P*M*M-T*_*_)/(P*M*M+T*_*_)));O=A*d*M/h+(u+p)/2,S=A*-h*_/d+(f+v)/2,x=Math.asin(((f-S)/h*Math.pow(10,9)>>0)/Math.pow(10,9)),w=Math.asin(((v-S)/h*Math.pow(10,9)>>0)/Math.pow(10,9)),x=uw&&(x-=Math.PI*2),!o&&w>x&&(w-=Math.PI*2)}var k=w-x;if(Math.abs(k)>g){var C=w,L=p,I=v;w=x+g*(o&&w>x?1:-1),p=O+d*Math.cos(w),v=S+h*Math.sin(w),m=hp(p,v,d,h,i,0,o,L,I,[w,C,O,S])}k=w-x;var R=Math.cos(x),j=Math.sin(x),D=Math.cos(w),$=Math.sin(w),B=Math.tan(k/4),F=4/3*d*B,Y=4/3*h*B,U=[u,f],K=[u+F*j,f-Y*R],V=[p+F*$,v-Y*D],W=[p,v];if(K[0]=2*U[0]-K[0],K[1]=2*U[1]-K[1],l)return K.concat(V,W,m);m=K.concat(V,W,m);for(var J=[],et=0,it=m.length;et=a)o={x:n,y:r};else{var s=Fr([t,e],[n,r],i/a),c=s[0],l=s[1];o={x:c,y:l}}return{length:a,point:o,min:{x:Math.min(t,n),y:Math.min(e,r)},max:{x:Math.max(t,n),y:Math.max(e,r)}}}function tg(t,e){var n=t.x,r=t.y,i=e.x,a=e.y,o=n*i+r*a,s=Math.sqrt((Math.pow(n,2)+Math.pow(r,2))*(Math.pow(i,2)+Math.pow(a,2))),c=n*a-r*i<0?-1:1,l=c*Math.acos(o/s);return l}function KT(t,e,n,r,i,a,o,s,c,l){var u=Math.abs,f=Math.sin,d=Math.cos,h=Math.sqrt,p=Math.PI,v=u(n),g=u(r),y=(i%360+360)%360,m=y*(p/180);if(t===s&&e===c)return{x:t,y:e};if(v===0||g===0)return Id(t,e,s,c,l).point;var b=(t-s)/2,x=(e-c)/2,w={x:d(m)*b+f(m)*x,y:-f(m)*b+d(m)*x},O=Math.pow(w.x,2)/Math.pow(v,2)+Math.pow(w.y,2)/Math.pow(g,2);O>1&&(v*=h(O),g*=h(O));var S=Math.pow(v,2)*Math.pow(g,2)-Math.pow(v,2)*Math.pow(w.y,2)-Math.pow(g,2)*Math.pow(w.x,2),_=Math.pow(v,2)*Math.pow(w.y,2)+Math.pow(g,2)*Math.pow(w.x,2),M=S/_;M=M<0?0:M;var E=(a!==o?1:-1)*h(M),P={x:E*(v*w.y/g),y:E*(-(g*w.x)/v)},T={x:d(m)*P.x-f(m)*P.y+(t+s)/2,y:f(m)*P.x+d(m)*P.y+(e+c)/2},A={x:(w.x-P.x)/v,y:(w.y-P.y)/g},k=tg({x:1,y:0},A),C={x:(-w.x-P.x)/v,y:(-w.y-P.y)/g},L=tg(A,C);!o&&L>0?L-=2*p:o&&L<0&&(L+=2*p),L%=2*p;var I=k+L*l,R=v*d(I),j=g*f(I),D={x:d(m)*R-f(m)*j+T.x,y:f(m)*R+d(m)*j+T.y};return D}function ZT(t,e,n,r,i,a,o,s,c,l,u){var f,d=u.bbox,h=d===void 0?!0:d,p=u.length,v=p===void 0?!0:p,g=u.sampleSize,y=g===void 0?30:g,m=typeof l=="number",b=t,x=e,w=0,O=[b,x,w],S=[b,x],_=0,M={x:0,y:0},E=[{x:b,y:x}];m&&l<=0&&(M={x:b,y:x});for(var P=0;P<=y;P+=1){if(_=P/y,f=KT(t,e,n,r,i,a,o,s,c,_),b=f.x,x=f.y,h&&E.push({x:b,y:x}),v&&(w+=nn(S,[b,x])),S=[b,x],m&&w>=l&&l>O[2]){var T=(w-l)/(w-O[2]);M={x:S[0]*(1-T)+O[0]*T,y:S[1]*(1-T)+O[1]*T}}O=[b,x,w]}return m&&l>=w&&(M={x:s,y:c}),{length:w,point:M,min:{x:Math.min.apply(null,E.map(function(A){return A.x})),y:Math.min.apply(null,E.map(function(A){return A.y}))},max:{x:Math.max.apply(null,E.map(function(A){return A.x})),y:Math.max.apply(null,E.map(function(A){return A.y}))}}}function QT(t,e,n,r,i,a,o,s,c){var l=1-c;return{x:Math.pow(l,3)*t+3*Math.pow(l,2)*c*n+3*l*Math.pow(c,2)*i+Math.pow(c,3)*o,y:Math.pow(l,3)*e+3*Math.pow(l,2)*c*r+3*l*Math.pow(c,2)*a+Math.pow(c,3)*s}}function ox(t,e,n,r,i,a,o,s,c,l){var u,f=l.bbox,d=f===void 0?!0:f,h=l.length,p=h===void 0?!0:h,v=l.sampleSize,g=v===void 0?10:v,y=typeof c=="number",m=t,b=e,x=0,w=[m,b,x],O=[m,b],S=0,_={x:0,y:0},M=[{x:m,y:b}];y&&c<=0&&(_={x:m,y:b});for(var E=0;E<=g;E+=1){if(S=E/g,u=QT(t,e,n,r,i,a,o,s,S),m=u.x,b=u.y,d&&M.push({x:m,y:b}),p&&(x+=nn(O,[m,b])),O=[m,b],y&&x>=c&&c>w[2]){var P=(x-c)/(x-w[2]);_={x:O[0]*(1-P)+w[0]*P,y:O[1]*(1-P)+w[1]*P}}w=[m,b,x]}return y&&c>=x&&(_={x:o,y:s}),{length:x,point:_,min:{x:Math.min.apply(null,M.map(function(T){return T.x})),y:Math.min.apply(null,M.map(function(T){return T.y}))},max:{x:Math.max.apply(null,M.map(function(T){return T.x})),y:Math.max.apply(null,M.map(function(T){return T.y}))}}}function JT(t,e,n,r,i,a,o){var s=1-o;return{x:Math.pow(s,2)*t+2*s*o*n+Math.pow(o,2)*i,y:Math.pow(s,2)*e+2*s*o*r+Math.pow(o,2)*a}}function t5(t,e,n,r,i,a,o,s){var c,l=s.bbox,u=l===void 0?!0:l,f=s.length,d=f===void 0?!0:f,h=s.sampleSize,p=h===void 0?10:h,v=typeof o=="number",g=t,y=e,m=0,b=[g,y,m],x=[g,y],w=0,O={x:0,y:0},S=[{x:g,y}];v&&o<=0&&(O={x:g,y});for(var _=0;_<=p;_+=1){if(w=_/p,c=JT(t,e,n,r,i,a,w),g=c.x,y=c.y,u&&S.push({x:g,y}),d&&(m+=nn(x,[g,y])),x=[g,y],v&&m>=o&&o>b[2]){var M=(m-o)/(m-b[2]);O={x:x[0]*(1-M)+b[0]*M,y:x[1]*(1-M)+b[1]*M}}b=[g,y,m]}return v&&o>=m&&(O={x:i,y:a}),{length:m,point:O,min:{x:Math.min.apply(null,S.map(function(E){return E.x})),y:Math.min.apply(null,S.map(function(E){return E.y}))},max:{x:Math.max.apply(null,S.map(function(E){return E.x})),y:Math.max.apply(null,S.map(function(E){return E.y}))}}}function sx(t,e,n){for(var r,i,a,o,s,c,l=bl(t),u=typeof e=="number",f,d=[],h,p=0,v=0,g=0,y=0,m,b=[],x=[],w=0,O={x:0,y:0},S=O,_=O,M=O,E=0,P=0,T=l.length;P=e&&(M=_),x.push(S),b.push(O),E+=w,c=h!=="Z"?m.slice(-2):[g,y],p=c[0],v=c[1];return u&&e>=E&&(M={x:p,y:v}),{length:E,point:M,min:{x:Math.min.apply(null,b.map(function(A){return A.x})),y:Math.min.apply(null,b.map(function(A){return A.y}))},max:{x:Math.max.apply(null,x.map(function(A){return A.x})),y:Math.max.apply(null,x.map(function(A){return A.y}))}}}function e5(t,e){return sx(t,void 0,z(z({},e),{bbox:!1,length:!0})).length}function n5(t){var e=t.length,n=e-1;return t.map(function(r,i){return t.map(function(a,o){var s=i+o,c;return o===0||t[s]&&t[s][0]==="M"?(c=t[s],["M"].concat(c.slice(-2))):(s>=e&&(s-=n),t[s])})})}function r5(t,e){var n=t.length-1,r=[],i=0,a=0,o=n5(t);return o.forEach(function(s,c){t.slice(1).forEach(function(l,u){a+=nn(t[(c+u)%n].slice(-2),e[u%n].slice(-2))}),r[c]=a,a=0}),i=r.indexOf(Math.min.apply(null,r)),o[i]}function i5(t,e,n,r,i,a,o,s){return 3*((s-e)*(n+i)-(o-t)*(r+a)+r*(t-i)-n*(e-a)+s*(i+t/3)-o*(a+e/3))/20}function a5(t){var e=0,n=0,r=0;return Rd(t).map(function(i){var a;switch(i[0]){case"M":return e=i[1],n=i[2],0;default:var o=i.slice(1),s=o[0],c=o[1],l=o[2],u=o[3],f=o[4],d=o[5];return r=i5(e,n,s,c,l,u,f,d),a=i.slice(-2),e=a[0],n=a[1],r}}).reduce(function(i,a){return i+a},0)}function eg(t){return a5(t)>=0}function o5(t,e,n){return sx(t,e,z(z({},n),{bbox:!1,length:!0})).point}function s5(t,e){e===void 0&&(e=.5);var n=t.slice(0,2),r=t.slice(2,4),i=t.slice(4,6),a=t.slice(6,8),o=Fr(n,r,e),s=Fr(r,i,e),c=Fr(i,a,e),l=Fr(o,s,e),u=Fr(s,c,e),f=Fr(l,u,e);return[["C"].concat(o,l,f),["C"].concat(u,c,a)]}function ng(t){return t.map(function(e,n,r){var i=n&&r[n-1].slice(-2).concat(e.slice(1)),a=n?ox(i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8],{bbox:!1}).length:0,o;return n?o=a?s5(i):[e,e]:o=[e],{s:e,ss:o,l:a}})}function cx(t,e,n){var r=ng(t),i=ng(e),a=r.length,o=i.length,s=r.filter(function(g){return g.l}).length,c=i.filter(function(g){return g.l}).length,l=r.filter(function(g){return g.l}).reduce(function(g,y){var m=y.l;return g+m},0)/s||0,u=i.filter(function(g){return g.l}).reduce(function(g,y){var m=y.l;return g+m},0)/c||0,f=n||Math.max(a,o),d=[l,u],h=[f-a,f-o],p=0,v=[r,i].map(function(g,y){return g.l===f?g.map(function(m){return m.s}):g.map(function(m,b){return p=b&&h[y]&&m.l>=d[y],h[y]-=p?1:0,p?m.ss:[m.s]}).flat()});return v[0].length===v[1].length?v:cx(v[0],v[1],f)}function rg(t){var e=document.createElement("div");e.innerHTML=t;var n=e.childNodes[0];return n&&e.contains(n)&&e.removeChild(n),n}function Wt(t,e){if(t!==null)return{type:"column",value:t,field:e}}function yu(t,e){const n=Wt(t,e);return Object.assign(Object.assign({},n),{inferred:!0})}function xl(t,e){if(t!==null)return{type:"column",value:t,field:e,visual:!0}}function c5(t,e){const n=Wt(t,e);return Object.assign(Object.assign({},n),{constant:!1})}function Kr(t,e){const n=[];for(const r of t)n[r]=e;return n}function Ot(t,e){const n=t[e];if(!n)return[null,null];const{value:r,field:i=null}=n;return[r,i]}function ts(t,...e){for(const n of e)if(typeof n=="string"){const[r,i]=Ot(t,n);if(r!==null)return[r,i]}else return[n,null];return[null,null]}function Is(t){return t instanceof Date?!1:typeof t=="object"}const js=()=>(t,e)=>{const{encode:n}=e,{y1:r}=n;return r!==void 0?[t,e]:[t,X({},e,{encode:{y1:yu(Kr(t,0))}})]};js.props={};function oe(t,e){return t==null||e==null?NaN:te?1:t>=e?0:NaN}function l5(t,e){return t==null||e==null?NaN:et?1:e>=t?0:NaN}function Ca(t){let e,n,r;t.length!==2?(e=oe,n=(s,c)=>oe(t(s),c),r=(s,c)=>t(s)-c):(e=t===oe||t===l5?t:u5,n=t,r=t);function i(s,c,l=0,u=s.length){if(l>>1;n(s[f],c)<0?l=f+1:u=f}while(l>>1;n(s[f],c)<=0?l=f+1:u=f}while(ll&&r(s[f-1],c)>-r(s[f],c)?f-1:f}return{left:i,center:o,right:a}}function u5(){return 0}function jd(t){return t===null?NaN:+t}function*f5(t,e){if(e===void 0)for(let n of t)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of t)(r=e(r,++n,t))!=null&&(r=+r)>=r&&(yield r)}}const lx=Ca(oe),d5=lx.right,h5=lx.left,p5=Ca(jd).center;function ux(t,e){let n=0;if(e===void 0)for(let r of t)r!=null&&(r=+r)>=r&&++n;else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(i=+i)>=i&&++n}return n}function v5(t,e){let n=0,r,i=0,a=0;if(e===void 0)for(let o of t)o!=null&&(o=+o)>=o&&(r=o-i,i+=r/++n,a+=r*(o-i));else{let o=-1;for(let s of t)(s=e(s,++o,t))!=null&&(s=+s)>=s&&(r=s-i,i+=r/++n,a+=r*(s-i))}if(n>1)return a/(n-1)}function fx(t,e){const n=v5(t,e);return n&&Math.sqrt(n)}function Mr(t,e){let n,r;if(e===void 0)for(const i of t)i!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r=a&&(n=r=a):(n>a&&(n=a),r0){for(o=e[--n];n>0&&(r=o,i=e[--n],o=r+i,a=i-(o-r),!a););n>0&&(a<0&&e[n-1]<0||a>0&&e[n-1]>0)&&(i=a*2,r=o+i,i==r-o&&(o=r))}return o}}let g5=class extends Map{constructor(e,n=b5){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(const[r,i]of e)this.set(r,i)}get(e){return super.get(ig(this,e))}has(e){return super.has(ig(this,e))}set(e,n){return super.set(y5(this,e),n)}delete(e){return super.delete(m5(this,e))}};function ig({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function y5({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function m5({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function b5(t){return t!==null&&typeof t=="object"?t.valueOf():t}function es(t){return t}function te(t,...e){return mu(t,es,es,e)}function pp(t,...e){return mu(t,Array.from,es,e)}function vp(t,e,...n){return mu(t,es,e,n)}function dx(t,e,...n){return mu(t,Array.from,e,n)}function mu(t,e,n,r){return function i(a,o){if(o>=r.length)return n(a);const s=new g5,c=r[o++];let l=-1;for(const u of a){const f=c(u,++l,a),d=s.get(f);d?d.push(u):s.set(f,[u])}for(const[u,f]of s)s.set(u,i(f,o));return e(s)}(t,0)}function x5(t,e){return Array.from(e,n=>t[n])}function Er(t,...e){if(typeof t[Symbol.iterator]!="function")throw new TypeError("values is not iterable");t=Array.from(t);let[n]=e;if(n&&n.length!==2||e.length>1){const r=Uint32Array.from(t,(i,a)=>a);return e.length>1?(e=e.map(i=>t.map(i)),r.sort((i,a)=>{for(const o of e){const s=ns(o[i],o[a]);if(s)return s}})):(n=t.map(n),r.sort((i,a)=>ns(n[i],n[a]))),x5(t,r)}return t.sort(hx(n))}function hx(t=oe){if(t===oe)return ns;if(typeof t!="function")throw new TypeError("compare is not a function");return(e,n)=>{const r=t(e,n);return r||r===0?r:(t(n,n)===0)-(t(e,e)===0)}}function ns(t,e){return(t==null||!(t>=t))-(e==null||!(e>=e))||(te?1:0)}function w5(t,e,n){return(e.length!==2?Er(vp(t,e,n),([r,i],[a,o])=>oe(i,o)||oe(r,a)):Er(te(t,n),([r,i],[a,o])=>e(i,o)||oe(r,a))).map(([r])=>r)}var O5=Array.prototype,S5=O5.slice;function Ef(t){return()=>t}const _5=Math.sqrt(50),M5=Math.sqrt(10),E5=Math.sqrt(2);function wl(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=_5?10:a>=M5?5:a>=E5?2:1;let s,c,l;return i<0?(l=Math.pow(10,-i)/o,s=Math.round(t*l),c=Math.round(e*l),s/le&&--c,l=-l):(l=Math.pow(10,i)*o,s=Math.round(t/l),c=Math.round(e/l),s*le&&--c),c0))return[];if(t===e)return[t];const r=e=i))return[];const s=a-i+1,c=new Array(s);if(r)if(o<0)for(let l=0;l0?(t=Math.floor(t/i)*i,e=Math.ceil(e/i)*i):i<0&&(t=Math.ceil(t*i)/i,e=Math.floor(e*i)/i),r=i}}function k5(t){return Math.max(1,Math.ceil(Math.log(ux(t))/Math.LN2)+1)}function T5(){var t=es,e=Mr,n=k5;function r(i){Array.isArray(i)||(i=Array.from(i));var a,o=i.length,s,c,l=new Array(o);for(a=0;a=d)if(b>=d&&e===Mr){const w=Dd(f,d,x);isFinite(w)&&(w>0?d=(Math.floor(d/w)+1)*w:w<0&&(d=(Math.ceil(d*-w)+1)/-w))}else h.pop()}for(var p=h.length,v=0,g=p;h[v]<=f;)++v;for(;h[g-1]>d;)--g;(v||g0?h[a-1]:f,m.x1=a0)for(a=0;a=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n=i)&&(n=i)}return n}function to(t,e){let n,r=-1,i=-1;if(e===void 0)for(const a of t)++i,a!=null&&(n=a)&&(n=a,r=i);else for(let a of t)(a=e(a,++i,t))!=null&&(n=a)&&(n=a,r=i);return r}function bn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function bu(t,e){let n,r=-1,i=-1;if(e===void 0)for(const a of t)++i,a!=null&&(n>a||n===void 0&&a>=a)&&(n=a,r=i);else for(let a of t)(a=e(a,++i,t))!=null&&(n>a||n===void 0&&a>=a)&&(n=a,r=i);return r}function gp(t,e,n=0,r=1/0,i){if(e=Math.floor(e),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(t.length-1,r)),!(n<=e&&e<=r))return t;for(i=i===void 0?ns:hx(i);r>n;){if(r-n>600){const c=r-n+1,l=e-n+1,u=Math.log(c),f=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*f*(c-f)/c)*(l-c/2<0?-1:1),h=Math.max(n,Math.floor(e-l*f/c+d)),p=Math.min(r,Math.floor(e+(c-l)*f/c+d));gp(t,e,h,p,i)}const a=t[e];let o=n,s=r;for(go(t,n,e),i(t[r],a)>0&&go(t,n,r);o0;)--s}i(t[n],a)===0?go(t,n,s):(++s,go(t,s,r)),s<=e&&(n=s+1),e<=s&&(r=s-1)}return t}function go(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function C5(t,e=oe){let n,r=!1;if(e.length===1){let i;for(const a of t){const o=e(a);(r?oe(o,i)>0:oe(o,o)===0)&&(n=a,i=o,r=!0)}}else for(const i of t)(r?e(i,n)>0:e(i,i)===0)&&(n=i,r=!0);return n}function xu(t,e,n){if(t=Float64Array.from(f5(t,n)),!(!(r=t.length)||isNaN(e=+e))){if(e<=0||r<2)return bn(t);if(e>=1)return Ct(t);var r,i=(r-1)*e,a=Math.floor(i),o=Ct(gp(t,a).subarray(0,a+1)),s=bn(t.subarray(a+1));return o+(s-o)*(i-a)}}function L5(t,e,n=jd){if(!isNaN(e=+e)){if(r=Float64Array.from(t,(s,c)=>jd(n(t[c],c,t))),e<=0)return bu(r);if(e>=1)return to(r);var r,i=Uint32Array.from(t,(s,c)=>c),a=r.length-1,o=Math.floor(a*e);return gp(i,o,0,a,(s,c)=>ns(r[s],r[c])),o=C5(i.subarray(0,o+1),s=>r[s]),o>=0?o:-1}}function N5(t,e,n){const r=ux(t),i=fx(t);return r&&i?Math.ceil((n-e)*Math.cbrt(r)/(3.49*i)):1}function rs(t,e){let n=0,r=0;if(e===void 0)for(let i of t)i!=null&&(i=+i)>=i&&(++n,r+=i);else{let i=-1;for(let a of t)(a=e(a,++i,t))!=null&&(a=+a)>=a&&(++n,r+=a)}if(n)return r/n}function yp(t,e){return xu(t,.5,e)}function R5(t,e){return L5(t,.5,e)}function*I5(t){for(const e of t)yield*e}function px(t){return Array.from(I5(t))}function pa(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((e-t)/n))|0,a=new Array(i);++r(r,...i)=>n(e(r,...i),...i),ji)}function D5(t){return t.reduce((e,n)=>r=>j5(this,void 0,void 0,function*(){const i=yield e(r);return n(i)}),ji)}function bp(t){return t.replace(/( |^)[a-z]/g,e=>e.toUpperCase())}function La(t=""){throw new Error(t)}function xp(t,e){const{attributes:n}=e,r=new Set(["id","className"]);for(const[i,a]of Object.entries(n))r.has(i)||(i==="transform"&&t.attr(i,""),t.attr(i,a))}function zt(t){return t!=null&&!Number.isNaN(t)}function $5(t){const e=new Map;return n=>{if(e.has(n))return e.get(n);const r=t(n);return e.set(n,r),r}}function B5(t,e){const{transform:n}=t.style,i=(a=>a==="none"||a===void 0)(n)?"":n;t.style.transform=`${i} ${e}`.trimStart()}function Q(t,e){return vx(t,e)||{}}function vx(t,e){const n=Object.entries(t||{}).filter(([r])=>r.startsWith(e)).map(([r,i])=>[Db(r.replace(e,"").trim()),i]).filter(([r])=>!!r);return n.length===0?null:Object.fromEntries(n)}function F5(t,e){return Object.fromEntries(Object.entries(t).filter(([n])=>e.find(r=>n.startsWith(r))))}function Pf(t,...e){return Object.fromEntries(Object.entries(t).filter(([n])=>e.every(r=>!n.startsWith(r))))}function ag(t,e){if(t===void 0)return null;if(typeof t=="number")return t;const n=+t.replace("%","");return Number.isNaN(n)?null:n/100*e}function is(t){return typeof t=="object"&&!(t instanceof Date)&&t!==null&&!Array.isArray(t)}function Lr(t){return t===null||t===!1}function gx(t,e,n=5,r=0){if(!(r>=n)){for(const i of Object.keys(e)){const a=e[i];!Cr(a)||!Cr(t[i])?t[i]=a:gx(t[i],a,n,r+1)}return t}}function ai(t,e){return Object.entries(t).reduce((n,[r,i])=>(n[r]=e(i,r,t),n),{})}function Ui(t){return t.map((e,n)=>n)}function z5(t){return t[0]}function yx(t){return t[t.length-1]}function G5(t){return Array.from(new Set(t))}function mx(t,e){const n=[[],[]];return t.forEach(r=>{n[e(r)?0:1].push(r)}),n}function bx(t,e=t.length){if(e===1)return t.map(r=>[r]);const n=[];for(let r=0;r{n.push([t[r],...o])})}return n}function Y5(t){if(t.length===1)return[t];const e=[];for(let n=1;n<=t.length;n++)e.push(...bx(t,n));return e}function oi(t,e,n){const{encode:r}=n;if(t===null)return[e];const i=W5(t).map(o=>{var s;return[o,(s=Ot(r,o))===null||s===void 0?void 0:s[0]]}).filter(([,o])=>zt(o)),a=o=>i.map(([,s])=>s[o]).join("-");return Array.from(te(e,a).values())}function xx(t){return Array.isArray(t)?X5(t):typeof t=="function"?V5(t):t==="series"?H5:t==="value"?U5:t==="sum"?q5:t==="maxIndex"?K5:()=>null}function wx(t,e){for(const n of t)n.sort(e)}function Ox(t,e){return(e==null?void 0:e.domain)||Array.from(new Set(t))}function W5(t){return Array.isArray(t)?t:[t]}function H5(t,e,n){return Ds(r=>n[r])}function V5(t){return(e,n,r)=>Ds(i=>t(e[i]))}function X5(t){return(e,n,r)=>(i,a)=>t.reduce((o,s)=>o!==0?o:oe(e[i][s],e[a][s]),0)}function U5(t,e,n){return Ds(r=>e[r])}function q5(t,e,n){const r=Ui(t),i=Array.from(te(r,o=>n[+o]).entries()),a=new Map(i.map(([o,s])=>[o,s.reduce((c,l)=>c+ +e[l])]));return Ds(o=>a.get(n[o]))}function K5(t,e,n){const r=Ui(t),i=Array.from(te(r,o=>n[+o]).entries()),a=new Map(i.map(([o,s])=>[o,to(s,c=>e[c])]));return Ds(o=>a.get(n[o]))}function Ds(t){return(e,n)=>oe(t(e),t(n))}const Sx=(t={})=>{const{groupBy:e="x",orderBy:n=null,reverse:r=!1,y:i="y",y1:a="y1",series:o=!0}=t;return(s,c)=>{const{data:l,encode:u,style:f={}}=c,[d,h]=Ot(u,"y"),[p,v]=Ot(u,"y1"),[g]=o?ts(u,"series","color"):Ot(u,"color"),y=oi(e,s,c),b=xx(n)(l,d,g);b&&wx(y,b);const x=new Array(s.length),w=new Array(s.length),O=new Array(s.length),S=[],_=[];for(const A of y){r&&A.reverse();const k=p?+p[A[0]]:0,C=[],L=[];for(const F of A){const Y=O[F]=+d[F]-k;Y<0?L.push(F):Y>=0&&C.push(F)}const I=C.length>0?C:L,R=L.length>0?L:C;let j=C.length-1,D=0;for(;j>0&&d[I[j]]===0;)j--;for(;D0?B=x[F]=(w[F]=B)+Y:x[F]=w[F]=B}}const M=new Set(S),E=new Set(_),P=i==="y"?x:w,T=a==="y"?x:w;return[s,X({},c,{encode:{y0:yu(d,h),y:Wt(P,h),y1:Wt(T,v)},style:Object.assign({first:(A,k)=>M.has(k),last:(A,k)=>E.has(k)},f)})]}};Sx.props={};function yo(t){return Math.abs(t)>10?String(t):t.toString().padStart(2,"0")}function Z5(t){const e=t.getFullYear(),n=yo(t.getMonth()+1),r=yo(t.getDate()),i=`${e}-${n}-${r}`,a=t.getHours(),o=t.getMinutes(),s=t.getSeconds();return a||o||s?`${i} ${yo(a)}:${yo(o)}:${yo(s)}`:i}const wu=(t={})=>{const{channel:e="x"}=t;return(n,r)=>{const{encode:i}=r,{tooltip:a}=r;if(Lr(a))return[n,r];const{title:o}=a;if(o!==void 0)return[n,r];const s=Object.keys(i).filter(l=>l.startsWith(e)).filter(l=>!i[l].inferred).map(l=>Ot(i,l)).filter(([l])=>l).map(l=>l[0]);if(s.length===0)return[n,r];const c=[];for(const l of n)c[l]={value:s.map(u=>u[l]instanceof Date?Z5(u[l]):u[l]).join(", ")};return[n,X({},r,{tooltip:{title:c}})]}};wu.props={};const qi=()=>(t,e)=>{const{encode:n}=e,{x:r}=n;return r!==void 0?[t,e]:[t,X({},e,{encode:{x:yu(Kr(t,0))},scale:{x:{guide:null}}})]};qi.props={};const Ou=()=>(t,e)=>{const{encode:n}=e,{y:r}=n;return r!==void 0?[t,e]:[t,X({},e,{encode:{y:yu(Kr(t,0))},scale:{y:{guide:null}}})]};Ou.props={};const _x=()=>(t,e)=>{const{encode:n}=e,{size:r}=n;return r!==void 0?[t,e]:[t,X({},e,{encode:{size:xl(Kr(t,3))}})]};_x.props={};var Q5=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i(t,e)=>{const{encode:n}=e,{key:r}=n,i=Q5(n,["key"]);if(r!==void 0)return[t,e];const a=Object.values(i).map(({value:s})=>s),o=t.map(s=>a.filter(Array.isArray).map(c=>c[s]).join("-"));return[t,X({},e,{encode:{key:Wt(o)}})]};Mx.props={};const wp=()=>(t,e)=>{const{encode:n}=e,{series:r,color:i}=n;if(r!==void 0||i===void 0)return[t,e];const[a,o]=Ot(n,"color");return[t,X({},e,{encode:{series:Wt(a,o)}})]};wp.props={};const Ex=()=>(t,e)=>{const{data:n}=e;return!Array.isArray(n)||n.some(Is)?[t,e]:[t,X({},e,{encode:{y:Wt(n)}})]};Ex.props={};const Px=()=>(t,e)=>{const{data:n}=e;return!Array.isArray(n)||n.some(Is)?[t,e]:[t,X({},e,{encode:{x:Wt(n)}})]};Px.props={};const Ax=()=>(t,e)=>{const{encode:n}=e,{y1:r}=n;if(r)return[t,e];const[i]=Ot(n,"y");return[t,X({},e,{encode:{y1:Wt([...i])}})]};Ax.props={};const kx=()=>(t,e)=>{const{encode:n}=e,{x1:r}=n;if(r)return[t,e];const[i]=Ot(n,"x");return[t,X({},e,{encode:{x1:Wt([...i])}})]};kx.props={};const Tx=()=>(t,e)=>{const{data:n}=e;if(Array.isArray(n)&&(n.every(Array.isArray)||!n.some(Is))){const r=(i,a)=>Array.isArray(i[0])?i.map(o=>o[a]):[i[a]];return[t,X({},e,{encode:{x:Wt(r(n,0)),x1:Wt(r(n,1))}})]}return[t,e]};Tx.props={};const Cx=()=>(t,e)=>{const{data:n}=e;if(Array.isArray(n)&&(n.every(Array.isArray)||!n.some(Is))){const r=(i,a)=>Array.isArray(i[0])?i.map(o=>o[a]):[i[a]];return[t,X({},e,{encode:{y:Wt(r(n,0)),y1:Wt(r(n,1))}})]}return[t,e]};Cx.props={};const Su=t=>{const{channel:e}=t;return(n,r)=>{const{encode:i,tooltip:a}=r;if(Lr(a))return[n,r];const{items:o=[]}=a;if(!o||o.length>0)return[n,r];const c=(Array.isArray(e)?e:[e]).flatMap(l=>Object.keys(i).filter(u=>u.startsWith(l)).map(u=>{const{field:f,value:d,inferred:h=!1,aggregate:p}=i[u];return h?null:p&&d?{channel:u}:f?{field:f}:d?{channel:u}:null}).filter(u=>u!==null));return[n,X({},r,{tooltip:{items:c}})]}};Su.props={};const Op=()=>(t,e)=>[t,X({scale:{x:{padding:0},y:{padding:0}}},e)];Op.props={};var og=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i(t,e)=>{const{data:n,style:r={}}=e,i=og(e,["data","style"]),{x:a,y:o}=r,s=og(r,["x","y"]);if(a==null||o==null)return[t,e];const c=a||0,l=o||0;return[[0],X({},i,{data:[0],cartesian:!0,encode:{x:Wt([c]),y:Wt([l])},scale:{x:{type:"identity",independent:!0,guide:null},y:{type:"identity",independent:!0,guide:null}},style:s})]};_u.props={};const Lx=()=>(t,e)=>{const{style:n={}}=e;return[t,X({},e,{style:Object.assign(Object.assign({},n),Object.fromEntries(Object.entries(n).filter(([,r])=>typeof r=="function").map(([r,i])=>[r,()=>i])))})]};Lx.props={};const Mu=()=>(t,e)=>{const{data:n}=e;if(!Array.isArray(n)||n.some(Is))return[t,e];const r=Array.isArray(n[0])?n:[n],i=r.map(o=>o[0]),a=r.map(o=>o[1]);return[t,X({},e,{encode:{x:Wt(i),y:Wt(a)}})]};Mu.props={};const Nx=()=>(t,e)=>{const{style:n={},encode:r}=e,{series:i}=r,{gradient:a}=n;return!a||i?[t,e]:[t,X({},e,{encode:{series:xl(Kr(t,void 0))}})]};Nx.props={};var J5=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{groupBy:e="x",reverse:n=!1,orderBy:r,padding:i}=t;return J5(t,["groupBy","reverse","orderBy","padding"]),(a,o)=>{const{data:s,encode:c,scale:l}=o,{series:u}=l,[f]=Ot(c,"y"),[d]=ts(c,"series","color"),h=Ox(d,u),p=oi(e,a,o),g=xx(r)(s,f,d);g&&wx(p,g);const y=new Array(a.length);for(const m of p){n&&m.reverse();for(let b=0;b{const{groupBy:e=["x"],reducer:n=(o,s)=>s[o[0]],orderBy:r=null,reverse:i=!1,duration:a}=t;return(o,s)=>{const{encode:c}=s,u=(Array.isArray(e)?e:[e]).map(g=>[g,Ot(c,g)[0]]);if(u.length===0)return[o,s];let f=[o];for(const[,g]of u){const y=[];for(const m of f){const b=Array.from(te(m,x=>g[x]).values());y.push(...b)}f=y}if(r){const[g]=Ot(c,r);g&&f.sort((y,m)=>n(y,g)-n(m,g)),i&&f.reverse()}const d=(a||3e3)/f.length,[h]=a?[Kr(o,d)]:ts(c,"enterDuration",Kr(o,d)),[p]=ts(c,"enterDelay",Kr(o,0)),v=new Array(o.length);for(let g=0,y=0;g+h[x]);for(const x of m)v[x]=+p[x]+y;y+=b}return[o,X({},s,{encode:{enterDuration:xl(h),enterDelay:xl(v)}})]}};Ix.props={};var t3=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ibn(n,i=>r[+i]),max:(n,r)=>Ct(n,i=>r[+i]),first:(n,r)=>r[n[0]],last:(n,r)=>r[n[n.length-1]],mean:(n,r)=>rs(n,i=>r[+i]),median:(n,r)=>yp(n,i=>r[+i]),sum:(n,r)=>Cn(n,i=>r[+i]),deviation:(n,r)=>fx(n,i=>r[+i])}[t]||Ct}const jx=(t={})=>{const{groupBy:e="x",basis:n="max"}=t;return(r,i)=>{const{encode:a,tooltip:o}=i,s=t3(a,["x"]),c=Object.entries(s).filter(([p])=>p.startsWith("y")).map(([p])=>[p,Ot(a,p)[0]]),[,l]=c.find(([p])=>p==="y"),u=c.map(([p])=>[p,new Array(r.length)]),f=oi(e,r,i),d=e3(n);for(const p of f){const v=d(p,l);for(const g of p)for(let y=0;y[p,Wt(v,Ot(a,p)[1])]))},!h&&a.y0&&{tooltip:{items:[{channel:"y0"}]}}))]}};jx.props={};function Na(t,...e){return e.reduce((n,r)=>i=>n(r(i)),t)}function Ol(t,e){return e-t?n=>(n-t)/(e-t):n=>.5}function n3(t,e){const n=ee?t:e;return i=>Math.min(Math.max(n,i),r)}function Sp(t,e,n,r,i){let a=n||0,o=r||t.length;const s=i||(c=>c);for(;ae?o=c:a=c+1}return a}const $d=Math.sqrt(50),Bd=Math.sqrt(10),Fd=Math.sqrt(2);function tl(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/10**i;return i>=0?(a>=$d?10:a>=Bd?5:a>=Fd?2:1)*10**i:-(10**-i)/(a>=$d?10:a>=Bd?5:a>=Fd?2:1)}function sg(t,e,n){const r=Math.abs(e-t)/Math.max(0,n);let i=10**Math.floor(Math.log(r)/Math.LN10);const a=r/i;return a>=$d?i*=10:a>=Bd?i*=5:a>=Fd&&(i*=2),e{const r=[t,e];let i=0,a=r.length-1,o=r[i],s=r[a],c;return s0?(o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c,c=tl(o,s,n)):c<0&&(o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c,c=tl(o,s,n)),c>0?(r[i]=Math.floor(o/c)*c,r[a]=Math.ceil(s/c)*c):c<0&&(r[i]=Math.ceil(o*c)/c,r[a]=Math.floor(s*c)/c),r},as=1e3,os=as*60,ss=os*60,Di=ss*24,Yo=Di*7,$x=Di*30,Bx=Di*365;function Fe(t,e,n,r){const i=(l,u)=>{const f=h=>r(h)%u===0;let d=u;for(;d&&!f(l);)n(l,-1),d-=1;return l},a=(l,u)=>{u&&i(l,u),e(l)},o=(l,u)=>{const f=new Date(+l);return a(f,u),f},s=(l,u)=>{const f=new Date(+l-1);return a(f,u),n(f,u),a(f),f};return{ceil:s,floor:o,range:(l,u,f,d)=>{const h=[],p=Math.floor(f),v=d?s(l,f):s(l);for(let g=v;gt,(t,e=1)=>{t.setTime(+t+e)},t=>t.getTime()),i3=Fe(as,t=>{t.setMilliseconds(0)},(t,e=1)=>{t.setTime(+t+as*e)},t=>t.getSeconds()),a3=Fe(os,t=>{t.setSeconds(0,0)},(t,e=1)=>{t.setTime(+t+os*e)},t=>t.getMinutes()),o3=Fe(ss,t=>{t.setMinutes(0,0,0)},(t,e=1)=>{t.setTime(+t+ss*e)},t=>t.getHours()),s3=Fe(Di,t=>{t.setHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+Di*e)},t=>t.getDate()-1),Fx=Fe($x,t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e=1)=>{const n=t.getMonth();t.setMonth(n+e)},t=>t.getMonth()),c3=Fe(Yo,t=>{t.setDate(t.getDate()-t.getDay()%7),t.setHours(0,0,0,0)},(t,e=1)=>{t.setDate(t.getDate()+7*e)},t=>{const e=Fx.floor(t),n=new Date(+t);return Math.floor((+n-+e)/Yo)}),l3=Fe(Bx,t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e=1)=>{const n=t.getFullYear();t.setFullYear(n+e)},t=>t.getFullYear()),zx={millisecond:r3,second:i3,minute:a3,hour:o3,day:s3,week:c3,month:Fx,year:l3},u3=Fe(1,t=>t,(t,e=1)=>{t.setTime(+t+e)},t=>t.getTime()),f3=Fe(as,t=>{t.setUTCMilliseconds(0)},(t,e=1)=>{t.setTime(+t+as*e)},t=>t.getUTCSeconds()),d3=Fe(os,t=>{t.setUTCSeconds(0,0)},(t,e=1)=>{t.setTime(+t+os*e)},t=>t.getUTCMinutes()),h3=Fe(ss,t=>{t.setUTCMinutes(0,0,0)},(t,e=1)=>{t.setTime(+t+ss*e)},t=>t.getUTCHours()),p3=Fe(Di,t=>{t.setUTCHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+Di*e)},t=>t.getUTCDate()-1),Gx=Fe($x,t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e=1)=>{const n=t.getUTCMonth();t.setUTCMonth(n+e)},t=>t.getUTCMonth()),v3=Fe(Yo,t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7)%7),t.setUTCHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+Yo*e)},t=>{const e=Gx.floor(t),n=new Date(+t);return Math.floor((+n-+e)/Yo)}),g3=Fe(Bx,t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e=1)=>{const n=t.getUTCFullYear();t.setUTCFullYear(n+e)},t=>t.getUTCFullYear()),Yx={millisecond:u3,second:f3,minute:d3,hour:h3,day:p3,week:v3,month:Gx,year:g3};function y3(t){const e=t?Yx:zx,{year:n,month:r,week:i,day:a,hour:o,minute:s,second:c,millisecond:l}=e;return{tickIntervals:[[c,1],[c,5],[c,15],[c,30],[s,1],[s,5],[s,15],[s,30],[o,1],[o,3],[o,6],[o,12],[a,1],[a,2],[i,1],[r,1],[r,3],[n,1]],year:n,millisecond:l}}function Wx(t,e,n,r,i){const a=+t,o=+e,{tickIntervals:s,year:c,millisecond:l}=y3(i),u=([g,y])=>g.duration*y,f=r?(o-a)/r:n||5,d=r||(o-a)/f,h=s.length,p=Sp(s,d,0,h,u);let v;if(p===h){const g=sg(a/c.duration,o/c.duration,f);v=[c,g]}else if(p){const g=d/u(s[p-1]){const a=t>e,o=a?e:t,s=a?t:e,[c,l]=Wx(o,s,n,r,i),u=[c.floor(o,l),c.ceil(s,l)];return a?u.reverse():u};var Hx=function(t){return t!==null&&typeof t!="function"&&isFinite(t.length)},b3={}.toString,$s=function(t,e){return b3.call(t)==="[object "+e+"]"};const Vx=function(t){return $s(t,"Function")};var x3=function(t){return t==null};const Xx=function(t){return Array.isArray?Array.isArray(t):$s(t,"Array")},w3=function(t){var e=typeof t;return t!==null&&e==="object"||e==="function"};function O3(t,e){if(t){var n;if(Xx(t))for(var r=0,i=t.length;re=>-t(-e),_p=(t,e)=>{const n=Math.log(t),r=t===Math.E?Math.log:t===10?Math.log10:t===2?Math.log2:i=>Math.log(i)/n;return e?Zx(r):r},Mp=(t,e)=>{const n=t===Math.E?Math.exp:r=>t**r;return e?Zx(n):n},T3=(t,e,n,r)=>{const i=t<0,a=_p(r,i),o=Mp(r,i),s=t>e,c=s?e:t,l=s?t:e,u=[o(Math.floor(a(c))),o(Math.ceil(a(l)))];return s?u.reverse():u},C3=t=>e=>{const n=t(e);return cs(n)?Math.round(n):n};function L3(t,e){return n=>{n.prototype.rescale=function(){this.initRange(),this.nice();const[r]=this.chooseTransforms();this.composeOutput(r,this.chooseClamp(r))},n.prototype.initRange=function(){const{interpolator:r}=this.options;this.options.range=t(r)},n.prototype.composeOutput=function(r,i){const{domain:a,interpolator:o,round:s}=this.getOptions(),c=e(a.map(r)),l=s?C3(o):o;this.output=Na(l,c,i,r)},n.prototype.invert=void 0}}var Qx={exports:{}},N3={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Jx={exports:{}},R3=function(e){return!e||typeof e=="string"?!1:e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!=="String")},I3=R3,j3=Array.prototype.concat,D3=Array.prototype.slice,ug=Jx.exports=function(e){for(var n=[],r=0,i=e.length;r=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};gn.to.keyword=function(t){return e2[t.slice(0,3)]};function Zr(t,e,n){return Math.min(Math.max(e,t),n)}function uc(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}var B3=Qx.exports;const F3=ip(B3);function kf(t,e,n){let r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function z3(t){const e=t[0]/360,n=t[1]/100,r=t[2]/100,i=t[3];if(n===0)return[r*255,r*255,r*255,i];const a=r<.5?r*(1+n):r+n-r*n,o=2*r-a,s=kf(o,a,e+1/3),c=kf(o,a,e),l=kf(o,a,e-1/3);return[s*255,c*255,l*255,i]}function fg(t){const e=F3.get(t);if(!e)return null;const{model:n,value:r}=e;return n==="rgb"?r:n==="hsl"?z3(r):null}const Ra=(t,e)=>n=>t*(1-n)+e*n,G3=(t,e)=>{const n=fg(t),r=fg(e);return n===null||r===null?n?()=>t:()=>e:i=>{const a=new Array(4);for(let u=0;u<4;u+=1){const f=n[u],d=r[u];a[u]=f*(1-i)+d*i}const[o,s,c,l]=a;return`rgba(${Math.round(o)}, ${Math.round(s)}, ${Math.round(c)}, ${l})`}},Fs=(t,e)=>typeof t=="number"&&typeof e=="number"?Ra(t,e):typeof t=="string"&&typeof e=="string"?G3(t,e):()=>t,Y3=(t,e)=>{const n=Ra(t,e);return r=>Math.round(n(r))};function W3(t,e){const{second:n,minute:r,hour:i,day:a,week:o,month:s,year:c}=e;return n.floor(t)`${e}`:typeof t=="object"?e=>JSON.stringify(e):e=>e}let n2=class r2 extends zs{getDefaultOptions(){return{domain:[],range:[],unknown:Eu}}constructor(e){super(e)}map(e){return this.domainIndexMap.size===0&&pg(this.domainIndexMap,this.getDomain(),this.domainKey),vg({value:this.domainKey(e),mapper:this.domainIndexMap,from:this.getDomain(),to:this.getRange(),notFoundReturn:this.options.unknown})}invert(e){return this.rangeIndexMap.size===0&&pg(this.rangeIndexMap,this.getRange(),this.rangeKey),vg({value:this.rangeKey(e),mapper:this.rangeIndexMap,from:this.getRange(),to:this.getDomain(),notFoundReturn:this.options.unknown})}rescale(e){const[n]=this.options.domain,[r]=this.options.range;if(this.domainKey=gg(n),this.rangeKey=gg(r),!this.rangeIndexMap){this.rangeIndexMap=new Map,this.domainIndexMap=new Map;return}(!e||e.range)&&this.rangeIndexMap.clear(),(!e||e.domain||e.compare)&&(this.domainIndexMap.clear(),this.sortedDomain=void 0)}clone(){return new r2(this.options)}getRange(){return this.options.range}getDomain(){if(this.sortedDomain)return this.sortedDomain;const{domain:e,compare:n}=this.options;return this.sortedDomain=n?[...e].sort(n):e,this.sortedDomain}};function U3(t){const e=Math.min(...t);return t.map(n=>n/e)}function q3(t,e){const n=t.length,r=e-n;return r>0?[...t,...new Array(r).fill(1)]:r<0?t.slice(0,e):t}function K3(t){return Math.round(t*1e12)/1e12}function Z3(t){const{domain:e,range:n,paddingOuter:r,paddingInner:i,flex:a,round:o,align:s}=t,c=e.length,l=q3(a,c),[u,f]=n,d=f-u,h=2/c*r+1-1/c*i,p=d/h,v=p*i/c,g=p-c*v,y=U3(l),m=y.reduce((T,A)=>T+A),b=g/m,x=new hg(e.map((T,A)=>{const k=y[A]*b;return[T,o?Math.floor(k):k]})),w=new hg(e.map((T,A)=>{const C=y[A]*b+v;return[T,o?Math.floor(C):C]})),O=Array.from(w.values()).reduce((T,A)=>T+A),_=(d-(O-O/c*i))*s,M=u+_;let E=o?Math.round(M):M;const P=new Array(c);for(let T=0;Td+b*u);return{valueStep:u,valueBandWidth:f,adjustedRange:y}}let Ia=class i2 extends n2{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,paddingInner:0,paddingOuter:0,padding:0,unknown:Eu,flex:[]}}constructor(e){super(e)}clone(){return new i2(this.options)}getStep(e){return this.valueStep===void 0?1:typeof this.valueStep=="number"?this.valueStep:e===void 0?Array.from(this.valueStep.values())[0]:this.valueStep.get(e)}getBandWidth(e){return this.valueBandWidth===void 0?1:typeof this.valueBandWidth=="number"?this.valueBandWidth:e===void 0?Array.from(this.valueBandWidth.values())[0]:this.valueBandWidth.get(e)}getRange(){return this.adjustedRange}getPaddingInner(){const{padding:e,paddingInner:n}=this.options;return e>0?e:n}getPaddingOuter(){const{padding:e,paddingOuter:n}=this.options;return e>0?e:n}rescale(){super.rescale();const{align:e,domain:n,range:r,round:i,flex:a}=this.options,{adjustedRange:o,valueBandWidth:s,valueStep:c}=Q3({align:e,range:r,round:i,flex:a,paddingInner:this.getPaddingInner(),paddingOuter:this.getPaddingOuter(),domain:n});this.valueStep=c,this.valueBandWidth=s,this.adjustedRange=o}};const Bi=(t,e,n)=>{let r,i,a=t,o=e;if(a===o&&n>0)return[a];let s=tl(a,o,n);if(s===0||!Number.isFinite(s))return[];if(s>0){a=Math.ceil(a/s),o=Math.floor(o/s),i=new Array(r=Math.ceil(o-a+1));for(let c=0;c=0&&(c=1),1-s/(o-1)-n+c}function rC(t,e,n){const r=Kx(e);return 1-qx(e,t)/(r-1)-n+1}function iC(t,e,n,r,i,a){const o=(t-1)/(a-i),s=(e-1)/(Math.max(a,r)-Math.min(n,i));return 2-Math.max(o/s,s/o)}function aC(t,e){return t>=e?2-(t-1)/(e-1):1}function oC(t,e,n,r){const i=e-t;return 1-.5*((e-r)**2+(t-n)**2)/(.1*i)**2}function sC(t,e,n){const r=e-t;return n>r?1-((n-r)/2)**2/(.1*r)**2:1}function cC(){return 1}const Pp=(t,e,n=5,r=!0,i=J3,a=[.25,.2,.5,.05])=>{const o=n<0?0:Math.round(n);if(Number.isNaN(t)||Number.isNaN(e)||typeof t!="number"||typeof e!="number"||!o)return[];if(e-t<1e-15||o===1)return[t];const s={score:-2,lmin:0,lmax:0,lstep:0};let c=1;for(;c<1/0;){for(let p=0;ps.score&&(!r||T<=t&&A>=e)&&(s.lmin=T,s.lmax=A,s.lstep=k,s.score=j)}}x+=1}y+=1}}c+=1}const l=mo(s.lmax),u=mo(s.lmin),f=mo(s.lstep),d=Math.floor(eC((l-u)/f))+1,h=new Array(d);h[0]=mo(u);for(let p=1;p{const[r,i]=t,[a,o]=e;let s,c;return r{const r=Math.min(t.length,e.length)-1,i=new Array(r),a=new Array(r),o=t[0]>t[r],s=o?[...t].reverse():t,c=o?[...e].reverse():e;for(let l=0;l{const u=Sp(t,l,1,r)-1,f=i[u],d=a[u];return Na(d,f)(l)}},mg=(t,e,n,r)=>(Math.min(t.length,e.length)>2?uC:lC)(t,e,r?Y3:n);let Pu=class extends zs{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:Ra,tickCount:5}}map(e){return Sl(e)?this.output(e):this.options.unknown}invert(e){return Sl(e)?this.input(e):this.options.unknown}nice(){if(!this.options.nice)return;const[e,n,r,...i]=this.getTickMethodOptions();this.options.domain=this.chooseNice()(e,n,r,...i)}getTicks(){const{tickMethod:e}=this.options,[n,r,i,...a]=this.getTickMethodOptions();return e(n,r,i,...a)}getTickMethodOptions(){const{domain:e,tickCount:n}=this.options,r=e[0],i=e[e.length-1];return[r,i,n]}chooseNice(){return Dx}rescale(){this.nice();const[e,n]=this.chooseTransforms();this.composeOutput(e,this.chooseClamp(e)),this.composeInput(e,n,this.chooseClamp(n))}chooseClamp(e){const{clamp:n,range:r}=this.options,i=this.options.domain.map(e),a=Math.min(i.length,r.length);return n?n3(i[0],i[a-1]):$i}composeOutput(e,n){const{domain:r,range:i,round:a,interpolate:o}=this.options,s=mg(r.map(e),i,o,a);this.output=Na(s,n,e)}composeInput(e,n,r){const{domain:i,range:a}=this.options,o=mg(a,i.map(e),Ra);this.input=Na(n,r,o)}},Yt=class c2 extends Pu{getDefaultOptions(){return{domain:[0,1],range:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolate:Fs,tickMethod:Bi,tickCount:5}}chooseTransforms(){return[$i,$i]}clone(){return new c2(this.options)}},l2=class u2 extends Ia{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,padding:0,unknown:Eu,paddingInner:1,paddingOuter:0}}constructor(e){super(e)}getPaddingInner(){return 1}clone(){return new u2(this.options)}update(e){super.update(e)}getPaddingOuter(){return this.options.padding}};const fC=t=>e=>e<0?-((-e)**t):e**t,dC=t=>e=>e<0?-((-e)**(1/t)):e**(1/t),hC=t=>t<0?-Math.sqrt(-t):Math.sqrt(t);let f2=class d2 extends Pu{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,exponent:2,interpolate:Fs,tickMethod:Bi,tickCount:5}}constructor(e){super(e)}chooseTransforms(){const{exponent:e}=this.options;if(e===1)return[$i,$i];const n=e===.5?hC:fC(e),r=dC(e);return[n,r]}clone(){return new d2(this.options)}},pC=class h2 extends f2{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:Fs,tickMethod:Bi,tickCount:5,exponent:.5}}constructor(e){super(e)}update(e){super.update(e)}clone(){return new h2(this.options)}},Au=class p2 extends zs{getDefaultOptions(){return{domain:[.5],range:[0,1]}}constructor(e){super(e)}map(e){if(!Sl(e))return this.options.unknown;const n=Sp(this.thresholds,e,0,this.n);return this.options.range[n]}invert(e){const{range:n}=this.options,r=n.indexOf(e),i=this.thresholds;return[i[r-1],i[r]]}clone(){return new p2(this.options)}rescale(){const{domain:e,range:n}=this.options;this.n=Math.min(e.length,n.length-1),this.thresholds=e}};const vC=(t,e,n,r=10)=>{const i=t<0,a=Mp(r,i),o=_p(r,i),s=e=1;p-=1){const v=h*p;if(v>l)break;v>=c&&d.push(v)}}else for(;u<=f;u+=1){const h=a(u);for(let p=1;pl)break;v>=c&&d.push(v)}}d.length*2a-o);const i=[];for(let a=1;a3?0:(t-t%10!==10?1:0)*t%10]}},_C=zd({},SC),Qe=function(t,e){for(e===void 0&&(e=2),t=String(t);t.length0?"-":"+")+Qe(Math.floor(Math.abs(e)/60)*100+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+Qe(Math.floor(Math.abs(e)/60),2)+":"+Qe(Math.abs(e)%60,2)}},bg={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},EC=function(t,e,n){if(e===void 0&&(e=bg.default),n===void 0&&(n={}),typeof t=="number"&&(t=new Date(t)),Object.prototype.toString.call(t)!=="[object Date]"||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");e=bg[e]||e;var r=[];e=e.replace(xC,function(a,o){return r.push(o),"@@@"});var i=zd(zd({},_C),n);return e=e.replace(bC,function(a){return MC[a](t,i)}),e.replace(/@@@/g,function(){return r.shift()})};const PC=(t,e,n,r,i)=>{const a=t>e,o=a?e:t,s=a?t:e,[c,l]=Wx(o,s,n,r,i),u=c.range(o,new Date(+s+1),l,!0);return a?u.reverse():u};function AC(t){const e=t.getTimezoneOffset(),n=new Date(t);return n.setMinutes(n.getMinutes()+e,n.getSeconds(),n.getMilliseconds()),n}let kC=class S2 extends Pu{getDefaultOptions(){return{domain:[new Date(2e3,0,1),new Date(2e3,0,2)],range:[0,1],nice:!1,tickCount:5,tickInterval:void 0,unknown:void 0,clamp:!1,tickMethod:PC,interpolate:Ra,mask:void 0,utc:!1}}chooseTransforms(){return[r=>+r,r=>new Date(r)]}chooseNice(){return m3}getTickMethodOptions(){const{domain:e,tickCount:n,tickInterval:r,utc:i}=this.options,a=e[0],o=e[e.length-1];return[a,o,n,r,i]}getFormatter(){const{mask:e,utc:n}=this.options,r=n?Yx:zx,i=n?AC:$i;return a=>EC(i(a),e||W3(a,r))}clone(){return new S2(this.options)}};var TC=function(t,e,n,r){var i=arguments.length,a=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},Gd;function CC(t){return[t(0),t(1)]}const LC=t=>{const[e,n]=t;return Na(Ra(0,1),Ol(e,n))};let Yd=Gd=class extends Yt{getDefaultOptions(){return{domain:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolator:$i,tickMethod:Bi,tickCount:5}}constructor(e){super(e)}clone(){return new Gd(this.options)}};Yd=Gd=TC([L3(CC,LC)],Yd);function _l(t,e,n){if(t===null)return[-.5,.5];const r=Ox(t,e),a=new Ia({domain:r,range:[0,1],padding:n}).getBandWidth();return[-a/2,a/2]}function Ml(t,e,n){return e*(1-t)+n*t}const _2=(t={})=>{const{padding:e=0,paddingX:n=e,paddingY:r=e,random:i=Math.random}=t;return(a,o)=>{const{encode:s,scale:c}=o,{x:l,y:u}=c,[f]=Ot(s,"x"),[d]=Ot(s,"y"),h=_l(f,l,n),p=_l(d,u,r),v=a.map(()=>Ml(i(),...p)),g=a.map(()=>Ml(i(),...h));return[a,X({scale:{x:{padding:.5},y:{padding:.5}}},o,{encode:{dy:Wt(v),dx:Wt(g)}})]}};_2.props={};const M2=(t={})=>{const{padding:e=0,random:n=Math.random}=t;return(r,i)=>{const{encode:a,scale:o}=i,{x:s}=o,[c]=Ot(a,"x"),l=_l(c,s,e),u=r.map(()=>Ml(n(),...l));return[r,X({scale:{x:{padding:.5}}},i,{encode:{dx:Wt(u)}})]}};M2.props={};const E2=(t={})=>{const{padding:e=0,random:n=Math.random}=t;return(r,i)=>{const{encode:a,scale:o}=i,{y:s}=o,[c]=Ot(a,"y"),l=_l(c,s,e),u=r.map(()=>Ml(n(),...l));return[r,X({scale:{y:{padding:.5}}},i,{encode:{dy:Wt(u)}})]}};E2.props={};var NC=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{groupBy:e="x"}=t;return(n,r)=>{const{encode:i}=r,a=NC(i,["x"]),o=Object.entries(a).filter(([f])=>f.startsWith("y")).map(([f])=>[f,Ot(i,f)[0]]),s=o.map(([f])=>[f,new Array(n.length)]),c=oi(e,n,r),l=new Array(c.length);for(let f=0;fo.map(([,y])=>+y[g])),[p,v]=Mr(h);l[f]=(p+v)/2}const u=Math.max(...l);for(let f=0;f[f,Wt(d,Ot(i,f)[1])]))})]}};P2.props={};const A2=(t={})=>{const{groupBy:e="x",series:n=!0}=t;return(r,i)=>{const{encode:a}=i,[o]=Ot(a,"y"),[s,c]=Ot(a,"y1");n?ts(a,"series","color"):Ot(a,"color");const l=oi(e,r,i),u=new Array(r.length);for(const f of l){const d=f.map(h=>+o[h]);for(let h=0;hy!==h));u[p]=o[p]>v?v:o[p]}}return[r,X({},i,{encode:{y1:Wt(u,c)}})]}};A2.props={};function xg(t,e){return[t[0]]}function RC(t,e){const n=t.length-1;return[t[n]]}function IC(t,e){const n=to(t,r=>e[r]);return[t[n]]}function jC(t,e){const n=bu(t,r=>e[r]);return[t[n]]}function DC(t){return typeof t=="function"?t:{first:xg,last:RC,max:IC,min:jC}[t]||xg}const ku=(t={})=>{const{groupBy:e="series",channel:n,selector:r}=t;return(i,a)=>{const{encode:o}=a,s=oi(e,i,a),[c]=Ot(o,n),l=DC(r);return[s.flatMap(u=>l(u,c)),a]}};ku.props={};var $C=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{selector:e}=t,n=$C(t,["selector"]);return ku(Object.assign({channel:"x",selector:e},n))};k2.props={};var BC=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{selector:e}=t,n=BC(t,["selector"]);return ku(Object.assign({channel:"y",selector:e},n))};T2.props={};var FC=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ie===null?t:`${t} of ${e}`}function zC(t){if(typeof t=="function")return[t,null];const n={mean:GC,max:WC,count:VC,first:UC,last:qC,sum:XC,min:HC,median:YC}[t];if(!n)throw new Error(`Unknown reducer: ${t}.`);return n()}function GC(){const t=(n,r)=>rs(n,i=>+r[i]),e=si("mean");return[t,e]}function YC(){const t=(n,r)=>yp(n,i=>+r[i]),e=si("median");return[t,e]}function WC(){const t=(n,r)=>Ct(n,i=>+r[i]),e=si("max");return[t,e]}function HC(){const t=(n,r)=>bn(n,i=>+r[i]),e=si("min");return[t,e]}function VC(){const t=(n,r)=>n.length,e=si("count");return[t,e]}function XC(){const t=(n,r)=>Cn(n,i=>+r[i]),e=si("sum");return[t,e]}function UC(){const t=(n,r)=>r[n[0]],e=si("first");return[t,e]}function qC(){const t=(n,r)=>r[n[n.length-1]],e=si("last");return[t,e]}const Ap=(t={})=>{const{groupBy:e}=t,n=FC(t,["groupBy"]);return(r,i)=>{const{data:a,encode:o}=i,s=e(r,i);if(!s)return[r,i];const c=(h,p)=>{if(h)return h;const{from:v}=p;if(!v)return h;const[,g]=Ot(o,v);return g},l=Object.entries(n).map(([h,p])=>{const[v,g]=zC(p),[y,m]=Ot(o,h),b=c(m,p),x=s.map(w=>v(w,y??a));return[h,Object.assign(Object.assign({},c5(x,(g==null?void 0:g(b))||b)),{aggregate:!0})]}),u=Object.keys(o).map(h=>{const[p,v]=Ot(o,h),g=s.map(y=>p[y[0]]);return[h,Wt(g,v)]}),f=s.map(h=>a[h[0]]);return[Ui(s),X({},i,{data:f,encode:Object.fromEntries([...u,...l])})]}};Ap.props={};var KC=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{channels:e=["x","y"]}=t,n=KC(t,["channels"]),r=(i,a)=>oi(e,i,a);return Ap(Object.assign(Object.assign({},n),{groupBy:r}))};Gs.props={};const C2=(t={})=>Gs(Object.assign(Object.assign({},t),{channels:["x","color","series"]}));C2.props={};const L2=(t={})=>Gs(Object.assign(Object.assign({},t),{channels:["y","color","series"]}));L2.props={};const N2=(t={})=>Gs(Object.assign(Object.assign({},t),{channels:["color"]}));N2.props={};var R2=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ii(o,a);if(i==="max")return o=>Ct(o,s=>+a[s]);if(i==="min")return o=>bn(o,s=>+a[s]);if(i==="sum")return o=>Cn(o,s=>+a[s]);if(i==="median")return o=>yp(o,s=>+a[s]);if(i==="mean")return o=>rs(o,s=>+a[s]);if(i==="first")return o=>a[o[0]];if(i==="last")return o=>a[o[o.length-1]];throw new Error(`Unknown reducer: ${i}`)}function QC(t,e,n){const{reverse:r,channel:i}=n,{encode:a}=e,[o]=Ot(a,i),s=Er(t,c=>o[c]);return r&&s.reverse(),[s,e]}function JC(t,e,n){if(!Array.isArray(n))return t;const r=new Set(n);return t.filter(i=>r.has(e[i]))}function tL(t,e,n){var r;const{reverse:i,slice:a,channel:o}=n,s=R2(n,["reverse","slice","channel"]),{encode:c,scale:l={}}=e,u=(r=l[o])===null||r===void 0?void 0:r.domain,[f]=Ot(c,o),d=ZC(o,s,c),h=JC(t,f,u),p=w5(h,d,y=>f[y]);i&&p.reverse();const v=typeof a=="number"?[0,a]:a,g=a?p.slice(...v):p;return[t,X(e,{scale:{[o]:{domain:g}}})]}const Tu=(t={})=>{const{reverse:e=!1,slice:n,channel:r,ordinal:i=!0}=t,a=R2(t,["reverse","slice","channel","ordinal"]);return(o,s)=>i?tL(o,s,Object.assign({reverse:e,slice:n,channel:r},a)):QC(o,s,Object.assign({reverse:e,slice:n,channel:r},a))};Tu.props={};const I2=(t={})=>Tu(Object.assign(Object.assign({},t),{channel:"x"}));I2.props={};const j2=(t={})=>Tu(Object.assign(Object.assign({},t),{channel:"color"}));j2.props={};const D2=(t={})=>Tu(Object.assign(Object.assign({},t),{channel:"y"}));D2.props={};function eL(t,e){return typeof e=="string"?t.map(n=>n[e]):t.map(e)}function nL(t,e){if(typeof t=="function")return n=>t(n,e);if(t==="sum")return n=>Cn(n,r=>+e[r]);throw new Error(`Unknown reducer: ${t}`)}const $2=(t={})=>{const{field:e,channel:n="y",reducer:r="sum"}=t;return(i,a)=>{const{data:o,encode:s}=a,[c]=Ot(s,"x"),l=e?eL(o,e):Ot(s,n)[0],u=nL(r,l),f=dx(i,u,d=>c[d]).map(d=>d[1]);return[i,X({},a,{scale:{x:{flex:f}}})]}};$2.props={};function se([t,e],[n,r]){return[t-n,e-r]}function fc([t,e],[n,r]){return[t+n,e+r]}function Jt([t,e],[n,r]){return Math.sqrt(Math.pow(t-n,2)+Math.pow(e-r,2))}function Nn([t,e]){return Math.atan2(e,t)}function ja([t,e]){return Nn([t,e])+Math.PI/2}function B2(t,e){const n=Nn(t),r=Nn(e);return n{const o=r.length;if(o===0)return[];const{innerWidth:s,innerHeight:c}=a,l=c/s;let u=Math.ceil(Math.sqrt(i/l)),f=s/u,d=Math.ceil(i/u),h=d*f;for(;h>c;)u=u+1,f=s/u,d=Math.ceil(i/u),h=d*f;const p=c-d*f,v=d<=1?0:p/(d-1),[g,y]=d<=1?[(s-o*f)/(o-1),(c-f)/2]:[0,0];return r.map((m,b)=>{const[x,w,O,S]=kp(m),_=n==="col"?b%u:Math.floor(b/d),M=n==="col"?Math.floor(b/u):b%d,E=_*f,P=(d-M-1)*f+p,T=(f-e)/O,A=(f-e)/S,k=E-x+g*_+1/2*e,C=P-w-v*M-y+1/2*e;return`translate(${k}, ${C}) scale(${T}, ${A})`})}}const z2=t=>(e,n)=>[e,X({},n,{modifier:rL(t),axis:!1})];z2.props={};var iL=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{groupChannels:e=["color"],binChannels:n=["x","y"]}=t,r=iL(t,["groupChannels","binChannels"]),i={},a=(o,s)=>{const{encode:c}=s,l=n.map(p=>{const[v]=Ot(c,p);return v}),u=Q(r,wg),f=o.filter(p=>l.every(v=>zt(v[p]))),d=[...e.map(p=>{const[v]=Ot(c,p);return v}).filter(zt).map(p=>v=>p[v]),...n.map((p,v)=>{const g=l[v],y=u[p]||aL(g),m=T5().thresholds(y).value(x=>+g[x])(f),b=new Map(m.flatMap(x=>{const{x0:w,x1:O}=x,S=`${w},${O}`;return x.map(_=>[_,S])}));return i[p]=b,x=>b.get(x)})],h=p=>d.map(v=>v(p)).join("-");return Array.from(te(f,h).values())};return Ap(Object.assign(Object.assign(Object.assign({},Object.fromEntries(Object.entries(r).filter(([o])=>!o.startsWith(wg)))),Object.fromEntries(n.flatMap(o=>{const s=([l])=>+i[o].get(l).split(",")[0],c=([l])=>+i[o].get(l).split(",")[1];return c.from=o,[[o,s],[`${o}1`,c]]}))),{groupBy:a}))};Tp.props={};const G2=(t={})=>{const{thresholds:e}=t;return Tp(Object.assign(Object.assign({},t),{thresholdsX:e,groupChannels:["color"],binChannels:["x"]}))};G2.props={};function oL(t,e,n,r){const i=t.length;if(r>=i||r===0)return t;const a=h=>e[t[h]]*1,o=h=>n[t[h]]*1,s=[],c=(i-2)/(r-2);let l=0,u,f,d;s.push(l);for(let h=0;hu&&(u=f,d=b);s.push(d),l=d}return s.push(i-1),s.map(h=>t[h])}function sL(t){if(typeof t=="function")return t;if(t==="lttb")return oL;const e={first:r=>[r[0]],last:r=>[r[r.length-1]],min:(r,i,a)=>[r[bu(r,o=>a[o])]],max:(r,i,a)=>[r[to(r,o=>a[o])]],median:(r,i,a)=>[r[R5(r,o=>a[o])]]},n=e[t]||e.median;return(r,i,a,o)=>{const s=Math.max(1,Math.floor(r.length/o));return cL(r,s).flatMap(l=>n(l,i,a))}}function cL(t,e){const n=t.length,r=[];let i=0;for(;i{const{strategy:e="median",thresholds:n=2e3,groupBy:r=["series","color"]}=t,i=sL(e);return(a,o)=>{const{encode:s}=o,c=oi(r,a,o),[l]=Ot(s,"x"),[u]=Ot(s,"y");return[c.flatMap(f=>i(f,l,u,n)),o]}};Y2.props={};function lL(t){return typeof t=="object"?[t.value,t.ordinal]:[t,!0]}const W2=(t={})=>(e,n)=>{const{encode:r,data:i}=n,a=Object.entries(t).map(([u,f])=>{const[d]=Ot(r,u);if(!d)return null;const[h,p=!0]=lL(f);if(typeof h=="function")return v=>h(d[v]);if(p){const v=Array.isArray(h)?h:[h];return v.length===0?null:g=>v.includes(d[g])}else{const[v,g]=h;return y=>d[y]>=v&&d[y]<=g}}).filter(zt);if(a.length===0)return[e,n];const o=u=>a.every(f=>f(u)),s=e.filter(o),c=s.map((u,f)=>f),l=Object.entries(r).map(([u,f])=>[u,Object.assign(Object.assign({},f),{value:c.map(d=>f.value[s[d]]).filter(d=>d!==void 0)})]);return[c,X({},n,{encode:Object.fromEntries(l),data:s.map(u=>i[u])})]};W2.props={};function Ut(t){return function(){return t}}const Og=Math.abs,Re=Math.atan2,mi=Math.cos,uL=Math.max,Tf=Math.min,qn=Math.sin,va=Math.sqrt,Ie=1e-12,ls=Math.PI,El=ls/2,fL=2*ls;function dL(t){return t>1?0:t<-1?ls:Math.acos(t)}function Sg(t){return t>=1?El:t<=-1?-El:Math.asin(t)}const Wd=Math.PI,Hd=2*Wd,_i=1e-6,hL=Hd-_i;function H2(t){this._+=t[0];for(let e=1,n=t.length;e=0))throw new Error(`invalid digits: ${t}`);if(e>15)return H2;const n=10**e;return function(r){this._+=r[0];for(let i=1,a=r.length;i_i)if(!(Math.abs(f*c-l*u)>_i)||!a)this._append`L${this._x1=e},${this._y1=n}`;else{let h=r-o,p=i-s,v=c*c+l*l,g=h*h+p*p,y=Math.sqrt(v),m=Math.sqrt(d),b=a*Math.tan((Wd-Math.acos((v+d-g)/(2*y*m)))/2),x=b/m,w=b/y;Math.abs(x-1)>_i&&this._append`L${e+x*u},${n+x*f}`,this._append`A${a},${a},0,0,${+(f*h>u*p)},${this._x1=e+w*c},${this._y1=n+w*l}`}}arc(e,n,r,i,a,o){if(e=+e,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),c=r*Math.sin(i),l=e+s,u=n+c,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${l},${u}`:(Math.abs(this._x1-l)>_i||Math.abs(this._y1-u)>_i)&&this._append`L${l},${u}`,r&&(d<0&&(d=d%Hd+Hd),d>hL?this._append`A${r},${r},0,1,${f},${e-s},${n-c}A${r},${r},0,1,${f},${this._x1=l},${this._y1=u}`:d>_i&&this._append`A${r},${r},0,${+(d>=Wd)},${f},${this._x1=e+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(e,n,r,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}};function jn(){return new Cp}jn.prototype=Cp.prototype;function Lp(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);e=r}return t},()=>new Cp(e)}function vL(t){return t.innerRadius}function gL(t){return t.outerRadius}function yL(t){return t.startAngle}function mL(t){return t.endAngle}function bL(t){return t&&t.padAngle}function xL(t,e,n,r,i,a,o,s){var c=n-t,l=r-e,u=o-i,f=s-a,d=f*c-u*l;if(!(d*dk*k+C*C&&(_=E,M=P),{cx:_,cy:M,x01:-u,y01:-f,x11:_*(i/w-1),y11:M*(i/w-1)}}function Cu(){var t=vL,e=gL,n=Ut(0),r=null,i=yL,a=mL,o=bL,s=null,c=Lp(l);function l(){var u,f,d=+t.apply(this,arguments),h=+e.apply(this,arguments),p=i.apply(this,arguments)-El,v=a.apply(this,arguments)-El,g=Og(v-p),y=v>p;if(s||(s=u=c()),hIe))s.moveTo(0,0);else if(g>fL-Ie)s.moveTo(h*mi(p),h*qn(p)),s.arc(0,0,h,p,v,!y),d>Ie&&(s.moveTo(d*mi(v),d*qn(v)),s.arc(0,0,d,v,p,y));else{var m=p,b=v,x=p,w=v,O=g,S=g,_=o.apply(this,arguments)/2,M=_>Ie&&(r?+r.apply(this,arguments):va(d*d+h*h)),E=Tf(Og(h-d)/2,+n.apply(this,arguments)),P=E,T=E,A,k;if(M>Ie){var C=Sg(M/d*qn(_)),L=Sg(M/h*qn(_));(O-=C*2)>Ie?(C*=y?1:-1,x+=C,w-=C):(O=0,x=w=(p+v)/2),(S-=L*2)>Ie?(L*=y?1:-1,m+=L,b-=L):(S=0,m=b=(p+v)/2)}var I=h*mi(m),R=h*qn(m),j=d*mi(w),D=d*qn(w);if(E>Ie){var $=h*mi(b),B=h*qn(b),F=d*mi(x),Y=d*qn(x),U;if(gIe?T>Ie?(A=dc(F,Y,I,R,h,T,y),k=dc($,B,j,D,h,T,y),s.moveTo(A.cx+A.x01,A.cy+A.y01),TIe)||!(O>Ie)?s.lineTo(j,D):P>Ie?(A=dc(j,D,$,B,d,-P,y),k=dc(I,R,F,Y,d,-P,y),s.lineTo(A.cx+A.x01,A.cy+A.y01),P=h;--p)s.point(b[p],x[p]);s.lineEnd(),s.areaEnd()}y&&(b[d]=+t(g,d,f),x[d]=+e(g,d,f),s.point(r?+r(g,d,f):b[d],n?+n(g,d,f):x[d]))}if(m)return s=null,m+""||null}function u(){return Jr().defined(i).curve(o).context(a)}return l.x=function(f){return arguments.length?(t=typeof f=="function"?f:Ut(+f),r=null,l):t},l.x0=function(f){return arguments.length?(t=typeof f=="function"?f:Ut(+f),l):t},l.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Ut(+f),l):r},l.y=function(f){return arguments.length?(e=typeof f=="function"?f:Ut(+f),n=null,l):e},l.y0=function(f){return arguments.length?(e=typeof f=="function"?f:Ut(+f),l):e},l.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Ut(+f),l):n},l.lineX0=l.lineY0=function(){return u().x(t).y(e)},l.lineY1=function(){return u().x(t).y(n)},l.lineX1=function(){return u().x(r).y(e)},l.defined=function(f){return arguments.length?(i=typeof f=="function"?f:Ut(!!f),l):i},l.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),l):o},l.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),l):a},l}var K2=Np(Ys);function Z2(t){this._curve=t}Z2.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};function Np(t){function e(n){return new Z2(t(n))}return e._curve=t,e}function Mo(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(n){return arguments.length?e(Np(n)):e()._curve},t}function wL(){return Mo(Jr().curve(K2))}function OL(){var t=Vd().curve(K2),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,a=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return Mo(n())},delete t.lineX0,t.lineEndAngle=function(){return Mo(r())},delete t.lineX1,t.lineInnerRadius=function(){return Mo(i())},delete t.lineY0,t.lineOuterRadius=function(){return Mo(a())},delete t.lineY1,t.curve=function(o){return arguments.length?e(Np(o)):e()._curve},t}function Da(){}function Xd(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Rp(t,e){this._context=t,this._k=(1-e)/6}Rp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Xd(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Xd(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(r){return new Rp(r,e)}return n.tension=function(r){return t(+r)},n})(0);function Ip(t,e){this._context=t,this._k=(1-e)/6}Ip.prototype={areaStart:Da,areaEnd:Da,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Xd(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(r){return new Ip(r,e)}return n.tension=function(r){return t(+r)},n})(0);function Q2(t,e,n){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>Ie){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>Ie){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*l+t._x1*t._l23_2a-e*t._l12_2a)/u,o=(o*l+t._y1*t._l23_2a-n*t._l12_2a)/u}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function J2(t,e){this._context=t,this._alpha=e}J2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Q2(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(r){return e?new J2(r,e):new Rp(r,0)}return n.alpha=function(r){return t(+r)},n})(.5);function tw(t,e){this._context=t,this._alpha=e}tw.prototype={areaStart:Da,areaEnd:Da,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Q2(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const ew=function t(e){function n(r){return e?new tw(r,e):new Ip(r,0)}return n.alpha=function(r){return t(+r)},n}(.5);function nw(t){this._context=t}nw.prototype={areaStart:Da,areaEnd:Da,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function jp(t){return new nw(t)}function _g(t){return t<0?-1:1}function Mg(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(_g(a)+_g(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Eg(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Cf(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-r)/3;t._context.bezierCurveTo(r+s,i+s*e,a-s,o-s*n,a,o)}function Pl(t){this._context=t}Pl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Cf(this,this._t0,Eg(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Cf(this,Eg(this,n=Mg(this,t,e)),n);break;default:Cf(this,this._t0,n=Mg(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function rw(t){this._context=new iw(t)}(rw.prototype=Object.create(Pl.prototype)).point=function(t,e){Pl.prototype.point.call(this,e,t)};function iw(t){this._context=t}iw.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,a){this._context.bezierCurveTo(e,t,r,n,a,i)}};function aw(t){return new Pl(t)}function ow(t){return new rw(t)}function Lu(t,e){this._context=t,this._t=e}Lu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}}this._x=t,this._y=e}};function sw(t){return new Lu(t,.5)}function cw(t){return new Lu(t,0)}function lw(t){return new Lu(t,1)}function qt(t){const{transformations:e}=t.getOptions();return e.map(([r])=>r).filter(r=>r==="transpose").length%2!==0}function Ht(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="polar")}function Nu(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="reflect")&&e.some(([n])=>n.startsWith("transpose"))}function uw(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="helix")}function Ru(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="parallel")}function fw(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="fisheye")}function SL(t){return Ru(t)&&Ht(t)}function eo(t){return uw(t)||Ht(t)}function _L(t){return Ht(t)&&qt(t)}function ML(t){if(eo(t)){const[e,n]=t.getSize(),r=t.getOptions().transformations.find(i=>i[0]==="polar");if(r)return Math.max(e,n)/2*r[4]}return 0}function Iu(t){const{transformations:e}=t.getOptions(),[,,,n,r]=e.find(i=>i[0]==="polar");return[+n,+r]}function Dp(t,e=!0){const{transformations:n}=t.getOptions(),[,r,i]=n.find(a=>a[0]==="polar");return e?[+r*180/Math.PI,+i*180/Math.PI]:[r,i]}function EL(t,e){const{transformations:n}=t.getOptions(),[,...r]=n.find(i=>i[0]===e);return r}var dw={exports:{}};(function(t){var e=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(c,l,u){this.fn=c,this.context=l,this.once=u||!1}function a(c,l,u,f,d){if(typeof u!="function")throw new TypeError("The listener must be a function");var h=new i(u,f||c,d),p=n?n+l:l;return c._events[p]?c._events[p].fn?c._events[p]=[c._events[p],h]:c._events[p].push(h):(c._events[p]=h,c._eventsCount++),c}function o(c,l){--c._eventsCount===0?c._events=new r:delete c._events[l]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var l=[],u,f;if(this._eventsCount===0)return l;for(f in u=this._events)e.call(u,f)&&l.push(n?f.slice(1):f);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(u)):l},s.prototype.listeners=function(l){var u=n?n+l:l,f=this._events[u];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,h=f.length,p=new Array(h);d>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?hc(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?hc(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=kL.exec(t))?new yn(e[1],e[2],e[3],1):(e=TL.exec(t))?new yn(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=CL.exec(t))?hc(e[1],e[2],e[3],e[4]):(e=LL.exec(t))?hc(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=NL.exec(t))?Ng(e[1],e[2]/100,e[3]/100,1):(e=RL.exec(t))?Ng(e[1],e[2]/100,e[3]/100,e[4]):Pg.hasOwnProperty(t)?Tg(Pg[t]):t==="transparent"?new yn(NaN,NaN,NaN,0):null}function Tg(t){return new yn(t>>16&255,t>>8&255,t&255,1)}function hc(t,e,n,r){return r<=0&&(t=e=n=NaN),new yn(t,e,n,r)}function jL(t){return t instanceof Ws||(t=ju(t)),t?(t=t.rgb(),new yn(t.r,t.g,t.b,t.opacity)):new yn}function DL(t,e,n,r){return arguments.length===1?jL(t):new yn(t,e,n,r??1)}function yn(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}Bp(yn,DL,hw(Ws,{brighter:function(t){return t=t==null?Al:Math.pow(Al,t),new yn(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?us:Math.pow(us,t),new yn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Cg,formatHex:Cg,formatRgb:Lg,toString:Lg}));function Cg(){return"#"+Lf(this.r)+Lf(this.g)+Lf(this.b)}function Lg(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(t===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(t===1?")":", "+t+")")}function Lf(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function Ng(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Qn(t,e,n,r)}function pw(t){if(t instanceof Qn)return new Qn(t.h,t.s,t.l,t.opacity);if(t instanceof Ws||(t=ju(t)),!t)return new Qn;if(t instanceof Qn)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(e===a?o=(n-r)/s+(n0&&c<1?0:o,new Qn(o,s,c,t.opacity)}function $L(t,e,n,r){return arguments.length===1?pw(t):new Qn(t,e,n,r??1)}function Qn(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Bp(Qn,$L,hw(Ws,{brighter:function(t){return t=t==null?Al:Math.pow(Al,t),new Qn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?us:Math.pow(us,t),new Qn(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new yn(Nf(t>=240?t-240:t+120,i,r),Nf(t,i,r),Nf(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(t===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(t===1?")":", "+t+")")}}));function Nf(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}function Pr(t,e,n,r){var i=t-n,a=e-r;return Math.sqrt(i*i+a*a)}function vw(t,e){var n=Math.min.apply(Math,q([],N(t),!1)),r=Math.min.apply(Math,q([],N(e),!1)),i=Math.max.apply(Math,q([],N(t),!1)),a=Math.max.apply(Math,q([],N(e),!1));return{x:n,y:r,width:i-n,height:a-r}}function BL(t,e,n){return Math.atan(-e/t*Math.tan(n))}function FL(t,e,n){return Math.atan(e/(t*Math.tan(n)))}function zL(t,e,n,r,i,a){return n*Math.cos(i)*Math.cos(a)-r*Math.sin(i)*Math.sin(a)+t}function GL(t,e,n,r,i,a){return n*Math.sin(i)*Math.cos(a)+r*Math.cos(i)*Math.sin(a)+e}function YL(t,e,n,r,i,a,o){for(var s=BL(n,r,i),c=1/0,l=-1/0,u=[a,o],f=-Math.PI*2;f<=Math.PI*2;f+=Math.PI){var d=s+f;al&&(l=h)}for(var p=FL(n,r,i),v=1/0,g=-1/0,y=[a,o],f=-Math.PI*2;f<=Math.PI*2;f+=Math.PI){var m=p+f;ag&&(g=b)}return{x:c,y:v,width:l-c,height:g-v}}var WL=1e-4;function gw(t,e,n,r,i,a){var o=-1,s=1/0,c=[n,r],l=20;a&&a>200&&(l=a/10);for(var u=1/l,f=u/10,d=0;d<=l;d++){var h=d*u,p=[i.apply(void 0,q([],N(t.concat([h])),!1)),i.apply(void 0,q([],N(e.concat([h])),!1))],v=Pr(c[0],c[1],p[0],p[1]);v=0&&v=0&&c<=1&&s.push(c));else{var f=a*a-4*i*o;Fo(f,0)?s.push(-a/(2*i)):f>0&&(u=Math.sqrt(f),c=(-a+u)/(2*i),l=(-a-u)/(2*i),c>=0&&c<=1&&s.push(c),l>=0&&l<=1&&s.push(l))}return s}function VL(t,e,n,r,i,a,o,s){for(var c=[t,o],l=[e,s],u=Rg(t,n,i,o),f=Rg(e,r,a,s),d=0;d=0?[i]:[]}function KL(t,e,n,r,i,a){var o=jg(t,n,i)[0],s=jg(e,r,a)[0],c=[t,i],l=[e,a];return o!==void 0&&c.push(qd(t,n,i,o)),s!==void 0&&l.push(qd(e,r,a,s)),vw(c,l)}function ZL(t,e,n,r,i,a,o,s){return gw([t,n,i],[e,r,a],o,s,qd)}function QL(t,e,n,r,i,a,o,s){var c=ZL(t,e,n,r,i,a,o,s);return Pr(c.x,c.y,o,s)}var JL=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},bw={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(JL,function(){function n(w,O,S,_,M){r(w,O,S||0,_||w.length-1,M||a)}function r(w,O,S,_,M){for(;_>S;){if(_-S>600){var E=_-S+1,P=O-S+1,T=Math.log(E),A=.5*Math.exp(2*T/3),k=.5*Math.sqrt(T*A*(E-A)/E)*(P-E/2<0?-1:1),C=Math.max(S,Math.floor(O-P*A/E+k)),L=Math.min(_,Math.floor(O+(E-P)*A/E+k));r(w,O,C,L,M)}var I=w[O],R=S,j=_;for(i(w,S,O),M(w[_],I)>0&&i(w,S,_);R0;)j--}M(w[S],I)===0?i(w,S,j):(j++,i(w,j,_)),j<=O&&(S=j+1),O<=j&&(_=j-1)}}function i(w,O,S){var _=w[O];w[O]=w[S],w[S]=_}function a(w,O){return wO?1:0}var o=function(O){O===void 0&&(O=9),this._maxEntries=Math.max(4,O),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()};o.prototype.all=function(){return this._all(this.data,[])},o.prototype.search=function(O){var S=this.data,_=[];if(!m(O,S))return _;for(var M=this.toBBox,E=[];S;){for(var P=0;P=0&&E[S].children.length>this._maxEntries;)this._split(E,S),S--;this._adjustParentBBoxes(M,E,S)},o.prototype._split=function(O,S){var _=O[S],M=_.children.length,E=this._minEntries;this._chooseSplitAxis(_,E,M);var P=this._chooseSplitIndex(_,E,M),T=b(_.children.splice(P,_.children.length-P));T.height=_.height,T.leaf=_.leaf,c(_,this.toBBox),c(T,this.toBBox),S?O[S-1].children.push(T):this._splitRoot(_,T)},o.prototype._splitRoot=function(O,S){this.data=b([O,S]),this.data.height=O.height+1,this.data.leaf=!1,c(this.data,this.toBBox)},o.prototype._chooseSplitIndex=function(O,S,_){for(var M,E=1/0,P=1/0,T=S;T<=_-S;T++){var A=l(O,0,T,this.toBBox),k=l(O,T,_,this.toBBox),C=g(A,k),L=h(A)+h(k);C=S;L--){var I=O.children[L];u(T,O.leaf?E(I):I),A+=p(T)}return A},o.prototype._adjustParentBBoxes=function(O,S,_){for(var M=_;M>=0;M--)u(S[M],O)},o.prototype._condense=function(O){for(var S=O.length-1,_=void 0;S>=0;S--)O[S].children.length===0?S>0?(_=O[S-1].children,_.splice(_.indexOf(O[S]),1)):this.clear():c(O[S],this.toBBox)};function s(w,O,S){if(!S)return O.indexOf(w);for(var _=0;_=w.minX&&O.maxY>=w.minY}function b(w){return{children:w,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function x(w,O,S,_,M){for(var E=[O,S];E.length;)if(S=E.pop(),O=E.pop(),!(S-O<=_)){var P=O+Math.ceil((S-O)/_/2)*_;n(w,P,O,S,M),E.push(O,P,P,S)}}return o})})(bw);var tN=bw.exports,G;(function(t){t.GROUP="g",t.CIRCLE="circle",t.ELLIPSE="ellipse",t.IMAGE="image",t.RECT="rect",t.LINE="line",t.POLYLINE="polyline",t.POLYGON="polygon",t.TEXT="text",t.PATH="path",t.HTML="html",t.MESH="mesh"})(G||(G={}));var wa;(function(t){t[t.ZERO=0]="ZERO",t[t.NEGATIVE_ONE=1]="NEGATIVE_ONE"})(wa||(wa={}));var ci=function(){function t(){this.plugins=[]}return t.prototype.addRenderingPlugin=function(e){this.plugins.push(e),this.context.renderingPlugins.push(e)},t.prototype.removeAllRenderingPlugins=function(){var e=this;this.plugins.forEach(function(n){var r=e.context.renderingPlugins.indexOf(n);r>=0&&e.context.renderingPlugins.splice(r,1)})},t}(),eN=function(){function t(e){this.clipSpaceNearZ=wa.NEGATIVE_ONE,this.plugins=[],this.config=z({enableDirtyCheck:!0,enableCulling:!1,enableAutoRendering:!0,enableDirtyRectangleRendering:!0,enableDirtyRectangleRenderingDebug:!1},e)}return t.prototype.registerPlugin=function(e){var n=this.plugins.findIndex(function(r){return r===e});n===-1&&this.plugins.push(e)},t.prototype.unregisterPlugin=function(e){var n=this.plugins.findIndex(function(r){return r===e});n>-1&&this.plugins.splice(n,1)},t.prototype.getPlugins=function(){return this.plugins},t.prototype.getPlugin=function(e){return this.plugins.find(function(n){return n.name===e})},t.prototype.getConfig=function(){return this.config},t.prototype.setConfig=function(e){Object.assign(this.config,e)},t}();function na(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function Rf(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function el(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function Dg(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function nN(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function rN(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function Oa(t){return t===void 0?0:t>360||t<-360?t%360:t}function We(t,e,n){return e===void 0&&(e=0),n===void 0&&(n=0),Array.isArray(t)&&t.length===3?br(t):de(t)?St(t,e,n):St(t[0],t[1]||e,t[2]||n)}function re(t){return t*(Math.PI/180)}function Pn(t){return t*(180/Math.PI)}function iN(t){return 360*t}function aN(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n*n,s=r*r,c=i*i,l=a*a,u=o+s+c+l,f=n*a-r*i;return f>.499995*u?(t[0]=Math.PI/2,t[1]=2*Math.atan2(r,n),t[2]=0):f<-.499995*u?(t[0]=-Math.PI/2,t[1]=2*Math.atan2(r,n),t[2]=0):(t[0]=Math.asin(2*(n*i-a*r)),t[1]=Math.atan2(2*(n*a+r*i),1-2*(c+l)),t[2]=Math.atan2(2*(n*r+i*a),1-2*(s+c))),t}function oN(t,e){var n,r,i=Math.PI*.5,a=N(Aa(yt(),e),3),o=a[0],s=a[1],c=a[2],l=Math.asin(-e[2]/o);return l-i?(n=Math.atan2(e[6]/s,e[10]/c),r=Math.atan2(e[1]/o,e[0]/o)):(r=0,n=-Math.atan2(e[4]/s,e[5]/s)):(r=0,n=Math.atan2(e[4]/s,e[5]/s)),t[0]=n,t[1]=l,t[2]=r,t}function If(t,e){return e.length===16?oN(t,e):aN(t,e)}function sN(t,e,n,r,i){var a=Math.cos(t),o=Math.sin(t);return Yk(r*a,i*o,0,-r*o,i*a,0,e,n,1)}function cN(t,e,n,r,i,a,o,s){s===void 0&&(s=!1);var c=2*a/(n-e),l=2*a/(r-i),u=(n+e)/(n-e),f=(r+i)/(r-i),d,h;return s?(d=-o/(o-a),h=-o*a/(o-a)):(d=-(o+a)/(o-a),h=-2*o*a/(o-a)),t[0]=c,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l,t[6]=0,t[7]=0,t[8]=u,t[9]=f,t[10]=d,t[11]=-1,t[12]=0,t[13]=0,t[14]=h,t[15]=0,t}function $g(t){var e=t[0],n=t[1],r=t[3],i=t[4],a=Math.sqrt(e*e+n*n),o=Math.sqrt(r*r+i*i),s=e*i-n*r;s<0&&(eft[1][2]&&(a[0]=-a[0]),ft[0][2]>ft[2][0]&&(a[1]=-a[1]),ft[1][0]>ft[0][1]&&(a[2]=-a[2]),!0}function uN(t,e){var n=e[15];if(n===0)return!1;for(var r=1/n,i=0;i<16;i++)t[i]=e[i]*r;return!0}function fN(t,e){t[0][0]=e[0],t[0][1]=e[1],t[0][2]=e[2],t[1][0]=e[4],t[1][1]=e[5],t[1][2]=e[6],t[2][0]=e[8],t[2][1]=e[9],t[2][2]=e[10]}function jf(t,e,n,r,i){t[0]=e[0]*r+n[0]*i,t[1]=e[1]*r+n[1]*i,t[2]=e[2]*r+n[2]*i}var be=function(){function t(){this.center=[0,0,0],this.halfExtents=[0,0,0],this.min=[0,0,0],this.max=[0,0,0]}return t.isEmpty=function(e){return!e||e.halfExtents[0]===0&&e.halfExtents[1]===0&&e.halfExtents[2]===0},t.prototype.update=function(e,n){na(this.center,e),na(this.halfExtents,n),Rf(this.min,this.center,this.halfExtents),el(this.max,this.center,this.halfExtents)},t.prototype.setMinMax=function(e,n){el(this.center,n,e),Dg(this.center,this.center,.5),Rf(this.halfExtents,n,e),Dg(this.halfExtents,this.halfExtents,.5),na(this.min,e),na(this.max,n)},t.prototype.getMin=function(){return this.min},t.prototype.getMax=function(){return this.max},t.prototype.add=function(e){if(!t.isEmpty(e)){if(t.isEmpty(this)){this.setMinMax(e.getMin(),e.getMax());return}var n=this.center,r=n[0],i=n[1],a=n[2],o=this.halfExtents,s=o[0],c=o[1],l=o[2],u=r-s,f=r+s,d=i-c,h=i+c,p=a-l,v=a+l,g=e.center,y=g[0],m=g[1],b=g[2],x=e.halfExtents,w=x[0],O=x[1],S=x[2],_=y-w,M=y+w,E=m-O,P=m+O,T=b-S,A=b+S;_f&&(f=M),Eh&&(h=P),Tv&&(v=A),n[0]=(u+f)*.5,n[1]=(d+h)*.5,n[2]=(p+v)*.5,o[0]=(f-u)*.5,o[1]=(h-d)*.5,o[2]=(v-p)*.5,this.min[0]=u,this.min[1]=d,this.min[2]=p,this.max[0]=f,this.max[1]=h,this.max[2]=v}},t.prototype.setFromTransformedAABB=function(e,n){var r=this.center,i=this.halfExtents,a=e.center,o=e.halfExtents,s=n[0],c=n[4],l=n[8],u=n[1],f=n[5],d=n[9],h=n[2],p=n[6],v=n[10],g=Math.abs(s),y=Math.abs(c),m=Math.abs(l),b=Math.abs(u),x=Math.abs(f),w=Math.abs(d),O=Math.abs(h),S=Math.abs(p),_=Math.abs(v);r[0]=n[12]+s*a[0]+c*a[1]+l*a[2],r[1]=n[13]+u*a[0]+f*a[1]+d*a[2],r[2]=n[14]+h*a[0]+p*a[1]+v*a[2],i[0]=g*o[0]+y*o[1]+m*o[2],i[1]=b*o[0]+x*o[1]+w*o[2],i[2]=O*o[0]+S*o[1]+_*o[2],Rf(this.min,r,i),el(this.max,r,i)},t.prototype.intersects=function(e){var n=this.getMax(),r=this.getMin(),i=e.getMax(),a=e.getMin();return r[0]<=i[0]&&n[0]>=a[0]&&r[1]<=i[1]&&n[1]>=a[1]&&r[2]<=i[2]&&n[2]>=a[2]},t.prototype.intersection=function(e){if(!this.intersects(e))return null;var n=new t,r=nN([0,0,0],this.getMin(),e.getMin()),i=rN([0,0,0],this.getMax(),e.getMax());return n.setMinMax(r,i),n},t.prototype.getNegativeFarPoint=function(e){return e.pnVertexFlag===273?na([0,0,0],this.min):e.pnVertexFlag===272?[this.min[0],this.min[1],this.max[2]]:e.pnVertexFlag===257?[this.min[0],this.max[1],this.min[2]]:e.pnVertexFlag===256?[this.min[0],this.max[1],this.max[2]]:e.pnVertexFlag===17?[this.max[0],this.min[1],this.min[2]]:e.pnVertexFlag===16?[this.max[0],this.min[1],this.max[2]]:e.pnVertexFlag===1?[this.max[0],this.max[1],this.min[2]]:[this.max[0],this.max[1],this.max[2]]},t.prototype.getPositiveFarPoint=function(e){return e.pnVertexFlag===273?na([0,0,0],this.max):e.pnVertexFlag===272?[this.max[0],this.max[1],this.min[2]]:e.pnVertexFlag===257?[this.max[0],this.min[1],this.max[2]]:e.pnVertexFlag===256?[this.max[0],this.min[1],this.min[2]]:e.pnVertexFlag===17?[this.min[0],this.max[1],this.max[2]]:e.pnVertexFlag===16?[this.min[0],this.max[1],this.min[2]]:e.pnVertexFlag===1?[this.min[0],this.min[1],this.max[2]]:[this.min[0],this.min[1],this.min[2]]},t}(),dN=function(){function t(e,n){this.distance=e||0,this.normal=n||St(0,1,0),this.updatePNVertexFlag()}return t.prototype.updatePNVertexFlag=function(){this.pnVertexFlag=(+(this.normal[0]>=0)<<8)+(+(this.normal[1]>=0)<<4)+ +(this.normal[2]>=0)},t.prototype.distanceToPoint=function(e){return nr(e,this.normal)-this.distance},t.prototype.normalize=function(){var e=1/tx(this.normal);Cd(this.normal,this.normal,e),this.distance*=e},t.prototype.intersectsLine=function(e,n,r){var i=this.distanceToPoint(e),a=this.distanceToPoint(n),o=i/(i-a),s=o>=0&&o<=1;return s&&r&&Ld(r,e,n,o),s},t}(),zr;(function(t){t[t.OUTSIDE=4294967295]="OUTSIDE",t[t.INSIDE=0]="INSIDE",t[t.INDETERMINATE=2147483647]="INDETERMINATE"})(zr||(zr={}));var hN=function(){function t(e){if(this.planes=[],e)this.planes=e;else for(var n=0;n<6;n++)this.planes.push(new dN)}return t.prototype.extractFromVPMatrix=function(e){var n=N(e,16),r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7],f=n[8],d=n[9],h=n[10],p=n[11],v=n[12],g=n[13],y=n[14],m=n[15];Gn(this.planes[0].normal,o-r,u-s,p-f),this.planes[0].distance=m-v,Gn(this.planes[1].normal,o+r,u+s,p+f),this.planes[1].distance=m+v,Gn(this.planes[2].normal,o+i,u+c,p+d),this.planes[2].distance=m+g,Gn(this.planes[3].normal,o-i,u-c,p-d),this.planes[3].distance=m-g,Gn(this.planes[4].normal,o-a,u-l,p-h),this.planes[4].distance=m-y,Gn(this.planes[5].normal,o+a,u+l,p+h),this.planes[5].distance=m+y,this.planes.forEach(function(b){b.normalize(),b.updatePNVertexFlag()})},t}(),Ee=function(){function t(e,n){e===void 0&&(e=0),n===void 0&&(n=0),this.x=0,this.y=0,this.x=e,this.y=n}return t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.copyFrom=function(e){this.x=e.x,this.y=e.y},t}(),Fi=function(){function t(e,n,r,i){this.x=e,this.y=n,this.width=r,this.height=i,this.left=e,this.right=e+r,this.top=n,this.bottom=n+i}return t.prototype.toJSON=function(){},t}(),It="Method not implemented.",ra="Use document.documentElement instead.",pN="Cannot append a destroyed element.",Tt;(function(t){t[t.ORBITING=0]="ORBITING",t[t.EXPLORING=1]="EXPLORING",t[t.TRACKING=2]="TRACKING"})(Tt||(Tt={}));var ds;(function(t){t[t.DEFAULT=0]="DEFAULT",t[t.ROTATIONAL=1]="ROTATIONAL",t[t.TRANSLATIONAL=2]="TRANSLATIONAL",t[t.CINEMATIC=3]="CINEMATIC"})(ds||(ds={}));var tn;(function(t){t[t.ORTHOGRAPHIC=0]="ORTHOGRAPHIC",t[t.PERSPECTIVE=1]="PERSPECTIVE"})(tn||(tn={}));var xw={UPDATED:"updated"},Fg=2e-4,ww=function(){function t(){this.clipSpaceNearZ=wa.NEGATIVE_ONE,this.eventEmitter=new $p,this.matrix=Nt(),this.right=St(1,0,0),this.up=St(0,1,0),this.forward=St(0,0,1),this.position=St(0,0,1),this.focalPoint=St(0,0,0),this.distanceVector=St(0,0,-1),this.distance=1,this.azimuth=0,this.elevation=0,this.roll=0,this.relAzimuth=0,this.relElevation=0,this.relRoll=0,this.dollyingStep=0,this.maxDistance=1/0,this.minDistance=-1/0,this.zoom=1,this.rotateWorld=!1,this.fov=30,this.near=.1,this.far=1e3,this.aspect=1,this.projectionMatrix=Nt(),this.projectionMatrixInverse=Nt(),this.jitteredProjectionMatrix=void 0,this.enableUpdate=!0,this.type=Tt.EXPLORING,this.trackingMode=ds.DEFAULT,this.projectionMode=tn.PERSPECTIVE,this.frustum=new hN,this.orthoMatrix=Nt()}return t.prototype.isOrtho=function(){return this.projectionMode===tn.ORTHOGRAPHIC},t.prototype.getProjectionMode=function(){return this.projectionMode},t.prototype.getPerspective=function(){return this.jitteredProjectionMatrix||this.projectionMatrix},t.prototype.getPerspectiveInverse=function(){return this.projectionMatrixInverse},t.prototype.getFrustum=function(){return this.frustum},t.prototype.getPosition=function(){return this.position},t.prototype.getFocalPoint=function(){return this.focalPoint},t.prototype.getDollyingStep=function(){return this.dollyingStep},t.prototype.getNear=function(){return this.near},t.prototype.getFar=function(){return this.far},t.prototype.getZoom=function(){return this.zoom},t.prototype.getOrthoMatrix=function(){return this.orthoMatrix},t.prototype.getView=function(){return this.view},t.prototype.setEnableUpdate=function(e){this.enableUpdate=e},t.prototype.setType=function(e,n){return this.type=e,this.type===Tt.EXPLORING?this.setWorldRotation(!0):this.setWorldRotation(!1),this._getAngles(),this.type===Tt.TRACKING&&n!==void 0&&this.setTrackingMode(n),this},t.prototype.setProjectionMode=function(e){return this.projectionMode=e,this},t.prototype.setTrackingMode=function(e){if(this.type!==Tt.TRACKING)throw new Error("Impossible to set a tracking mode if the camera is not of tracking type");return this.trackingMode=e,this},t.prototype.setWorldRotation=function(e){return this.rotateWorld=e,this._getAngles(),this},t.prototype.getViewTransform=function(){return Wn(Nt(),this.matrix)},t.prototype.getWorldTransform=function(){return this.matrix},t.prototype.jitterProjectionMatrix=function(e,n){var r=up(Nt(),[e,n,0]);this.jitteredProjectionMatrix=$e(Nt(),r,this.projectionMatrix)},t.prototype.clearJitterProjectionMatrix=function(){this.jitteredProjectionMatrix=void 0},t.prototype.setMatrix=function(e){return this.matrix=e,this._update(),this},t.prototype.setFov=function(e){return this.setPerspective(this.near,this.far,e,this.aspect),this},t.prototype.setAspect=function(e){return this.setPerspective(this.near,this.far,this.fov,e),this},t.prototype.setNear=function(e){return this.projectionMode===tn.PERSPECTIVE?this.setPerspective(e,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,e,this.far),this},t.prototype.setFar=function(e){return this.projectionMode===tn.PERSPECTIVE?this.setPerspective(this.near,e,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,e),this},t.prototype.setViewOffset=function(e,n,r,i,a,o){return this.aspect=e/n,this.view===void 0&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=n,this.view.offsetX=r,this.view.offsetY=i,this.view.width=a,this.view.height=o,this.projectionMode===tn.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this},t.prototype.clearViewOffset=function(){return this.view!==void 0&&(this.view.enabled=!1),this.projectionMode===tn.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this},t.prototype.setZoom=function(e){return this.zoom=e,this.projectionMode===tn.ORTHOGRAPHIC?this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far):this.projectionMode===tn.PERSPECTIVE&&this.setPerspective(this.near,this.far,this.fov,this.aspect),this},t.prototype.setZoomByViewportPoint=function(e,n){var r=this.canvas.viewport2Canvas({x:n[0],y:n[1]}),i=r.x,a=r.y,o=this.roll;this.rotate(0,0,-o),this.setPosition(i,a),this.setFocalPoint(i,a),this.setZoom(e),this.rotate(0,0,o);var s=this.canvas.viewport2Canvas({x:n[0],y:n[1]}),c=s.x,l=s.y,u=St(c-i,l-a,0),f=nr(u,this.right)/wr(this.right),d=nr(u,this.up)/wr(this.up);return this.pan(-f,-d),this},t.prototype.setPerspective=function(e,n,r,i){var a;this.projectionMode=tn.PERSPECTIVE,this.fov=r,this.near=e,this.far=n,this.aspect=i;var o=this.near*Math.tan(re(.5*this.fov))/this.zoom,s=2*o,c=this.aspect*s,l=-.5*c;if(!((a=this.view)===null||a===void 0)&&a.enabled){var u=this.view.fullWidth,f=this.view.fullHeight;l+=this.view.offsetX*c/u,o-=this.view.offsetY*s/f,c*=this.view.width/u,s*=this.view.height/f}return cN(this.projectionMatrix,l,l+c,o,o-s,e,this.far,this.clipSpaceNearZ===wa.ZERO),vl(this.projectionMatrix,this.projectionMatrix,St(1,-1,1)),Wn(this.projectionMatrixInverse,this.projectionMatrix),this.triggerUpdate(),this},t.prototype.setOrthographic=function(e,n,r,i,a,o){var s;this.projectionMode=tn.ORTHOGRAPHIC,this.rright=n,this.left=e,this.top=r,this.bottom=i,this.near=a,this.far=o;var c=(this.rright-this.left)/(2*this.zoom),l=(this.top-this.bottom)/(2*this.zoom),u=(this.rright+this.left)/2,f=(this.top+this.bottom)/2,d=u-c,h=u+c,p=f+l,v=f-l;if(!((s=this.view)===null||s===void 0)&&s.enabled){var g=(this.rright-this.left)/this.view.fullWidth/this.zoom,y=(this.top-this.bottom)/this.view.fullHeight/this.zoom;d+=g*this.view.offsetX,h=d+g*this.view.width,p-=y*this.view.offsetY,v=p-y*this.view.height}return this.clipSpaceNearZ===wa.NEGATIVE_ONE?Ub(this.projectionMatrix,d,h,v,p,a,o):qb(this.projectionMatrix,d,h,v,p,a,o),vl(this.projectionMatrix,this.projectionMatrix,St(1,-1,1)),Wn(this.projectionMatrixInverse,this.projectionMatrix),this._getOrthoMatrix(),this.triggerUpdate(),this},t.prototype.setPosition=function(e,n,r){n===void 0&&(n=this.position[1]),r===void 0&&(r=this.position[2]);var i=We(e,n,r);return this._setPosition(i),this.setFocalPoint(this.focalPoint),this.triggerUpdate(),this},t.prototype.setFocalPoint=function(e,n,r){n===void 0&&(n=this.focalPoint[1]),r===void 0&&(r=this.focalPoint[2]);var i=St(0,1,0);if(this.focalPoint=We(e,n,r),this.trackingMode===ds.CINEMATIC){var a=qv(yt(),this.focalPoint,this.position);e=a[0],n=a[1],r=a[2];var o=wr(a),s=Pn(Math.asin(n/o)),c=90+Pn(Math.atan2(r,e)),l=Nt();Wb(l,l,re(c)),Yb(l,l,re(s)),i=Oe(yt(),[0,1,0],l)}return Wn(this.matrix,Kb(Nt(),this.position,this.focalPoint,i)),this._getAxes(),this._getDistance(),this._getAngles(),this.triggerUpdate(),this},t.prototype.getDistance=function(){return this.distance},t.prototype.getDistanceVector=function(){return this.distanceVector},t.prototype.setDistance=function(e){if(this.distance===e||e<0)return this;this.distance=e,this.distance=Z.kEms&&e=ti.kUnitType&&this.getType()<=ti.kClampType},t}(),xN=function(t){rt(e,t);function e(n){var r=t.call(this)||this;return r.colorSpace=n,r}return e.prototype.getType=function(){return ti.kColorType},e.prototype.to=function(n){return this},e}(Du),rr;(function(t){t[t.Constant=0]="Constant",t[t.LinearGradient=1]="LinearGradient",t[t.RadialGradient=2]="RadialGradient"})(rr||(rr={}));var pc=function(t){rt(e,t);function e(n,r){var i=t.call(this)||this;return i.type=n,i.value=r,i}return e.prototype.clone=function(){return new e(this.type,this.value)},e.prototype.buildCSSText=function(n,r,i){return i},e.prototype.getType=function(){return ti.kColorType},e}(Du),sn=function(t){rt(e,t);function e(n){var r=t.call(this)||this;return r.value=n,r}return e.prototype.clone=function(){return new e(this.value)},e.prototype.getType=function(){return ti.kKeywordType},e.prototype.buildCSSText=function(n,r,i){return i+this.value},e}(Du),wN=Ne(function(t){return t===void 0&&(t=""),t.replace(/-([a-z])/g,function(e){return e[1].toUpperCase()})}),Yg=function(t){return t.split("").map(function(e,n){return e.toUpperCase()===e?"".concat(n!==0?"-":"").concat(e.toLowerCase()):e}).join("")};function ON(t){if(!t)throw new Error}function ga(t){return typeof t=="function"}function SN(t){return typeof t=="symbol"}var _N={d:{alias:"path"},strokeDasharray:{alias:"lineDash"},strokeWidth:{alias:"lineWidth"},textAnchor:{alias:"textAlign"},src:{alias:"img"}},Jd=Ne(function(t){var e=wN(t),n=_N[e];return e=(n==null?void 0:n.alias)||e,e}),MN=function(t,e){e===void 0&&(e="");var n="";return Number.isFinite(t)?(ON(Number.isNaN(t)),n="NaN"):t>0?n="infinity":n="-infinity",n+=e},th=function(t){return bN(mN(t))},jt=function(t){rt(e,t);function e(n,r){r===void 0&&(r=Z.kNumber);var i=t.call(this)||this,a;return typeof r=="string"?a=yN(r):a=r,i.unit=a,i.value=n,i}return e.prototype.clone=function(){return new e(this.value,this.unit)},e.prototype.equals=function(n){var r=n;return this.value===r.value&&this.unit===r.unit},e.prototype.getType=function(){return ti.kUnitType},e.prototype.convertTo=function(n){if(this.unit===n)return new e(this.value,this.unit);var r=th(this.unit);if(r!==th(n)||r===Z.kUnknown)return null;var i=Gg(this.unit)/Gg(n);return new e(this.value*i,n)},e.prototype.buildCSSText=function(n,r,i){var a;switch(this.unit){case Z.kUnknown:break;case Z.kInteger:a=Number(this.value).toFixed(0);break;case Z.kNumber:case Z.kPercentage:case Z.kEms:case Z.kRems:case Z.kPixels:case Z.kDegrees:case Z.kRadians:case Z.kGradians:case Z.kMilliseconds:case Z.kSeconds:case Z.kTurns:{var o=-999999,s=999999,c=this.value,l=Qd(this.unit);if(cs){var u=Qd(this.unit);!Number.isFinite(c)||Number.isNaN(c)?a=MN(c,u):a=c+(u||"")}else a="".concat(c).concat(l)}}return i+=a,i},e}(Du),we=new jt(0,"px");new jt(1,"px");var Hn=new jt(0,"deg"),Fp=function(t){rt(e,t);function e(n,r,i,a,o){a===void 0&&(a=1),o===void 0&&(o=!1);var s=t.call(this,"rgb")||this;return s.r=n,s.g=r,s.b=i,s.alpha=a,s.isNone=o,s}return e.prototype.clone=function(){return new e(this.r,this.g,this.b,this.alpha)},e.prototype.buildCSSText=function(n,r,i){return i+"rgba(".concat(this.r,",").concat(this.g,",").concat(this.b,",").concat(this.alpha,")")},e}(xN),Gt=new sn("unset"),EN=new sn("initial"),PN=new sn("inherit"),Df={"":Gt,unset:Gt,initial:EN,inherit:PN},eh=function(t){return Df[t]||(Df[t]=new sn(t)),Df[t]},nh=new Fp(0,0,0,0,!0),Ow=new Fp(0,0,0,0),AN=Ne(function(t,e,n,r){return new Fp(t,e,n,r)},function(t,e,n,r){return"rgba(".concat(t,",").concat(e,",").concat(n,",").concat(r,")")}),Ft=function(t,e){return e===void 0&&(e=Z.kNumber),new jt(t,e)},kl=new jt(50,"%"),rh;(function(t){t[t.Standard=0]="Standard"})(rh||(rh={}));var $a;(function(t){t[t.ADDED=0]="ADDED",t[t.REMOVED=1]="REMOVED",t[t.Z_INDEX_CHANGED=2]="Z_INDEX_CHANGED"})($a||($a={}));var Sw={absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:new Fi(0,0,0,0)},tt;(function(t){t.COORDINATE="",t.COLOR="",t.PAINT="",t.NUMBER="",t.ANGLE="",t.OPACITY_VALUE="",t.SHADOW_BLUR="",t.LENGTH="",t.PERCENTAGE="",t.LENGTH_PERCENTAGE=" | ",t.LENGTH_PERCENTAGE_12="[ | ]{1,2}",t.LENGTH_PERCENTAGE_14="[ | ]{1,4}",t.LIST_OF_POINTS="",t.PATH="",t.FILTER="",t.Z_INDEX="",t.OFFSET_DISTANCE="",t.DEFINED_PATH="",t.MARKER="",t.TRANSFORM="",t.TRANSFORM_ORIGIN="",t.TEXT="",t.TEXT_TRANSFORM=""})(tt||(tt={}));function kN(t){var e=t.type,n=t.value;return e==="hex"?"#".concat(n):e==="literal"?n:e==="rgb"?"rgb(".concat(n.join(","),")"):"rgba(".concat(n.join(","),")")}var TN=function(){var t={linearGradient:/^(linear\-gradient)/i,repeatingLinearGradient:/^(repeating\-linear\-gradient)/i,radialGradient:/^(radial\-gradient)/i,repeatingRadialGradient:/^(repeating\-radial\-gradient)/i,conicGradient:/^(conic\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},e="";function n(I){throw new Error(e+": "+I)}function r(){var I=i();return e.length>0&&n("Invalid input not EOF"),I}function i(){return b(a)}function a(){return o("linear-gradient",t.linearGradient,c)||o("repeating-linear-gradient",t.repeatingLinearGradient,c)||o("radial-gradient",t.radialGradient,f)||o("repeating-radial-gradient",t.repeatingRadialGradient,f)||o("conic-gradient",t.conicGradient,f)}function o(I,R,j){return s(R,function(D){var $=j();return $&&(C(t.comma)||n("Missing comma before color stops")),{type:I,orientation:$,colorStops:b(x)}})}function s(I,R){var j=C(I);if(j){C(t.startCall)||n("Missing (");var D=R(j);return C(t.endCall)||n("Missing )"),D}}function c(){return l()||u()}function l(){return k("directional",t.sideOrCorner,1)}function u(){return k("angular",t.angleValue,1)}function f(){var I,R=d(),j;return R&&(I=[],I.push(R),j=e,C(t.comma)&&(R=d(),R?I.push(R):e=j)),I}function d(){var I=h()||p();if(I)I.at=g();else{var R=v();if(R){I=R;var j=g();j&&(I.at=j)}else{var D=y();D&&(I={type:"default-radial",at:D})}}return I}function h(){var I=k("shape",/^(circle)/i,0);return I&&(I.style=A()||v()),I}function p(){var I=k("shape",/^(ellipse)/i,0);return I&&(I.style=P()||v()),I}function v(){return k("extent-keyword",t.extentKeywords,1)}function g(){if(k("position",/^at/,0)){var I=y();return I||n("Missing positioning value"),I}}function y(){var I=m();if(I.x||I.y)return{type:"position",value:I}}function m(){return{x:P(),y:P()}}function b(I){var R=I(),j=[];if(R)for(j.push(R);C(t.comma);)R=I(),R?j.push(R):n("One extra comma");return j}function x(){var I=w();return I||n("Expected color definition"),I.length=P(),I}function w(){return S()||M()||_()||O()}function O(){return k("literal",t.literalColor,0)}function S(){return k("hex",t.hexColor,1)}function _(){return s(t.rgbColor,function(){return{type:"rgb",value:b(E)}})}function M(){return s(t.rgbaColor,function(){return{type:"rgba",value:b(E)}})}function E(){return C(t.number)[1]}function P(){return k("%",t.percentageValue,1)||T()||A()}function T(){return k("position-keyword",t.positionKeywords,1)}function A(){return k("px",t.pixelValue,1)||k("em",t.emValue,1)}function k(I,R,j){var D=C(R);if(D)return{type:I,value:D[j]}}function C(I){var R=/^[\n\r\t\s]+/.exec(e);R&&L(R[0].length);var j=I.exec(e);return j&&L(j[0].length),j}function L(I){e=e.substring(I)}return function(I){return e=I,r()}}();function CN(t,e,n){var r=re(n.value),i=0,a=0,o=i+t/2,s=a+e/2,c=Math.abs(t*Math.cos(r))+Math.abs(e*Math.sin(r)),l=o-Math.cos(r)*c/2,u=s-Math.sin(r)*c/2,f=o+Math.cos(r)*c/2,d=s+Math.sin(r)*c/2;return{x1:l,y1:u,x2:f,y2:d}}function LN(t,e,n,r,i){var a=n.value,o=r.value;n.unit===Z.kPercentage&&(a=n.value/100*t),r.unit===Z.kPercentage&&(o=r.value/100*e);var s=Math.max(nn([0,0],[a,o]),nn([0,e],[a,o]),nn([t,e],[a,o]),nn([t,0],[a,o]));return i&&(i instanceof jt?s=i.value:i instanceof sn&&(i.value==="closest-side"?s=Math.min(a,t-a,o,e-o):i.value==="farthest-side"?s=Math.max(a,t-a,o,e-o):i.value==="closest-corner"&&(s=Math.min(nn([0,0],[a,o]),nn([0,e],[a,o]),nn([t,e],[a,o]),nn([t,0],[a,o]))))),{x:a,y:o,r:s}}var NN=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,RN=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,IN=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,_w=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function jN(t){var e,n,r,i=t.length;t[i-1].length=(e=t[i-1].length)!==null&&e!==void 0?e:{type:"%",value:"100"},i>1&&(t[0].length=(n=t[0].length)!==null&&n!==void 0?n:{type:"%",value:"0"});for(var a=0,o=Number(t[0].length.value),s=1;s-1||t.indexOf("radial")>-1){var n=TN(t);return n.map(function(s){var c=s.type,l=s.orientation,u=s.colorStops;jN(u);var f=u.map(function(b){return{offset:Ft(Number(b.length.value),"%"),color:kN(b)}});if(c==="linear-gradient")return new pc(rr.LinearGradient,{angle:l?$N(l):Hn,steps:f});if(c==="radial-gradient"&&(l||(l=[{type:"shape",value:"circle"}]),l[0].type==="shape"&&l[0].value==="circle")){var d=BN(l[0].at),h=d.cx,p=d.cy,v=void 0;if(l[0].style){var g=l[0].style,y=g.type,m=g.value;y==="extent-keyword"?v=eh(m):v=Ft(m,y)}return new pc(rr.RadialGradient,{cx:h,cy:p,size:v,steps:f})}})}var r=t[0];if(t[1]==="("||t[2]==="("){if(r==="l"){var i=NN.exec(t);if(i){var a=((e=i[2].match(_w))===null||e===void 0?void 0:e.map(function(s){return s.split(":")}))||[];return[new pc(rr.LinearGradient,{angle:Ft(parseFloat(i[1]),"deg"),steps:a.map(function(s){var c=N(s,2),l=c[0],u=c[1];return{offset:Ft(Number(l)*100,"%"),color:u}})})]}}else if(r==="r"){var o=zN(t);if(o)if(le(o))t=o;else return[new pc(rr.RadialGradient,o)]}else if(r==="p")return GN(t)}});function zN(t){var e,n=RN.exec(t);if(n){var r=((e=n[4].match(_w))===null||e===void 0?void 0:e.map(function(i){return i.split(":")}))||[];return{cx:Ft(50,"%"),cy:Ft(50,"%"),steps:r.map(function(i){var a=N(i,2),o=a[0],s=a[1];return{offset:Ft(Number(o)*100,"%"),color:s}})}}return null}function GN(t){var e=IN.exec(t);if(e){var n=e[1],r=e[2];switch(n){case"a":n="repeat";break;case"x":n="repeat-x";break;case"y":n="repeat-y";break;case"n":n="no-repeat";break;default:n="no-repeat"}return{image:r,repetition:n}}return null}function hs(t){return t&&!!t.image}function Tl(t){return t&&!nt(t.r)&&!nt(t.g)&&!nt(t.b)}var Ar=Ne(function(t){if(hs(t))return z({repetition:"repeat"},t);if(nt(t)&&(t=""),t==="transparent")return Ow;t==="currentColor"&&(t="black");var e=FN(t);if(e)return e;var n=ju(t),r=[0,0,0,0];return n!==null&&(r[0]=n.r||0,r[1]=n.g||0,r[2]=n.b||0,r[3]=n.opacity),AN.apply(void 0,q([],N(r),!1))});function YN(t,e){if(!(!Tl(t)||!Tl(e)))return[[Number(t.r),Number(t.g),Number(t.b),Number(t.alpha)],[Number(e.r),Number(e.g),Number(e.b),Number(e.alpha)],function(n){var r=n.slice();if(r[3])for(var i=0;i<3;i++)r[i]=Math.round(ce(r[i],0,255));return r[3]=ce(r[3],0,1),"rgba(".concat(r.join(","),")")}]}function Hs(t,e){if(nt(e))return Ft(0,"px");if(e="".concat(e).trim().toLowerCase(),isFinite(Number(e))){if("px".search(t)>=0)return Ft(Number(e),"px");if("deg".search(t)>=0)return Ft(Number(e),"deg")}var n=[];e=e.replace(t,function(i){return n.push(i),"U"+i});var r="U("+t.source+")";return n.map(function(i){return Ft(Number(e.replace(new RegExp("U"+i,"g"),"").replace(new RegExp(r,"g"),"*0")),i)})[0]}var Mw=function(t){return Hs(new RegExp("px","g"),t)},WN=Ne(Mw),HN=function(t){return Hs(new RegExp("%","g"),t)};Ne(HN);var ps=function(t){return de(t)||isFinite(Number(t))?Ft(Number(t)||0,"px"):Hs(new RegExp("px|%|em|rem","g"),t)},Ba=Ne(ps),zp=function(t){return Hs(new RegExp("deg|rad|grad|turn","g"),t)},Ew=Ne(zp);function VN(t,e,n,r,i){i===void 0&&(i=0);var a="",o=t.value||0,s=e.value||0,c=th(t.unit),l=t.convertTo(c),u=e.convertTo(c);return l&&u?(o=l.value,s=u.value,a=Qd(t.unit)):(jt.isLength(t.unit)||jt.isLength(e.unit))&&(o=dn(t,i,n),s=dn(e,i,n),a="px"),[o,s,function(f){return r&&(f=Math.max(f,0)),f+a}]}function hn(t){var e=0;return t.unit===Z.kDegrees?e=t.value:t.unit===Z.kRadians?e=Pn(Number(t.value)):t.unit===Z.kTurns&&(e=iN(Number(t.value))),e}function $f(t,e){var n;return Array.isArray(t)?n=t.map(function(r){return Number(r)}):le(t)?n=t.split(" ").map(function(r){return Number(r)}):de(t)&&(n=[t]),e===2?n.length===1?[n[0],n[0]]:[n[0],n[1]]:n.length===1?[n[0],n[0],n[0],n[0]]:n.length===2?[n[0],n[1],n[0],n[1]]:n.length===3?[n[0],n[1],n[2],n[1]]:[n[0],n[1],n[2],n[3]]}function Pw(t){return le(t)?t.split(" ").map(function(e){return Ba(e)}):t.map(function(e){return Ba(e.toString())})}function dn(t,e,n){if(t.value===0)return 0;if(t.unit===Z.kPixels)return Number(t.value);if(t.unit===Z.kPercentage&&n){var r=n.nodeName===G.GROUP?n.getLocalBounds():n.geometry.contentBounds;return t.value/100*r.halfExtents[e]*2}return 0}var XN=function(t){return Hs(/deg|rad|grad|turn|px|%/g,t)},UN=["blur","brightness","drop-shadow","contrast","grayscale","sepia","saturate","hue-rotate","invert"];function Aw(t){if(t===void 0&&(t=""),t=t.toLowerCase().trim(),t==="none")return[];for(var e=/\s*([\w-]+)\(([^)]*)\)/g,n=[],r,i=0;r=e.exec(t);){if(r.index!==i)return[];if(i=r.index+r[0].length,UN.indexOf(r[1])>-1&&n.push({name:r[1],params:r[2].split(" ").map(function(a){return XN(a)||Ar(a)})}),e.lastIndex===t.length)return n}return[]}function kw(t){return t.toString()}var no=function(t){return typeof t=="number"?Ft(t):/^\s*[-+]?(\d*\.)?\d+\s*$/.test(t)?Ft(Number(t)):Ft(0)},zi=Ne(no);Ne(function(t){return le(t)?t.split(" ").map(zi):t.map(zi)});function Gp(t,e){return[t,e,kw]}function Yp(t,e){return function(n,r){return[n,r,function(i){return kw(ce(i,t,e))}]}}function Tw(t,e){if(t.length===e.length)return[t,e,function(n){return n}]}function ih(t){return t.parsedStyle.path.totalLength===0&&(t.parsedStyle.path.totalLength=e5(t.parsedStyle.path.absolutePath)),t.parsedStyle.path.totalLength}function qN(t){for(var e=0;e0&&n.push(r),{polygons:e,polylines:n}}function Cl(t,e){return t[0]===e[0]&&t[1]===e[1]}function QN(t,e){for(var n=[],r=[],i=[],a=0;aMath.PI/2?Math.PI-l:l,u=u>Math.PI/2?Math.PI-u:u;var f={xExtra:Math.cos(c/2-l)*(e/2*(1/Math.sin(c/2)))-e/2||0,yExtra:Math.cos(u-c/2)*(e/2*(1/Math.sin(c/2)))-e/2||0};return f}function Wg(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}var Hg=function(t,e){var n=t.x*e.x+t.y*e.y,r=Math.sqrt((Math.pow(t.x,2)+Math.pow(t.y,2))*(Math.pow(e.x,2)+Math.pow(e.y,2))),i=t.x*e.y-t.y*e.x<0?-1:1,a=i*Math.acos(n/r);return a},Vg=function(t,e,n,r,i,a,o,s){e=Math.abs(e),n=Math.abs(n),r=Ib(r,360);var c=re(r);if(t.x===o.x&&t.y===o.y)return{x:t.x,y:t.y,ellipticalArcAngle:0};if(e===0||n===0)return{x:0,y:0,ellipticalArcAngle:0};var l=(t.x-o.x)/2,u=(t.y-o.y)/2,f={x:Math.cos(c)*l+Math.sin(c)*u,y:-Math.sin(c)*l+Math.cos(c)*u},d=Math.pow(f.x,2)/Math.pow(e,2)+Math.pow(f.y,2)/Math.pow(n,2);d>1&&(e=Math.sqrt(d)*e,n=Math.sqrt(d)*n);var h=Math.pow(e,2)*Math.pow(n,2)-Math.pow(e,2)*Math.pow(f.y,2)-Math.pow(n,2)*Math.pow(f.x,2),p=Math.pow(e,2)*Math.pow(f.y,2)+Math.pow(n,2)*Math.pow(f.x,2),v=h/p;v=v<0?0:v;var g=(i!==a?1:-1)*Math.sqrt(v),y={x:g*(e*f.y/n),y:g*(-(n*f.x)/e)},m={x:Math.cos(c)*y.x-Math.sin(c)*y.y+(t.x+o.x)/2,y:Math.sin(c)*y.x+Math.cos(c)*y.y+(t.y+o.y)/2},b={x:(f.x-y.x)/e,y:(f.y-y.y)/n},x=Hg({x:1,y:0},b),w={x:(-f.x-y.x)/e,y:(-f.y-y.y)/n},O=Hg(b,w);!a&&O>0?O-=2*Math.PI:a&&O<0&&(O+=2*Math.PI),O%=2*Math.PI;var S=x+O*s,_=e*Math.cos(S),M=n*Math.sin(S),E={x:Math.cos(c)*_-Math.sin(c)*M+m.x,y:Math.sin(c)*_+Math.cos(c)*M+m.y,ellipticalArcStartAngle:x,ellipticalArcEndAngle:x+O,ellipticalArcAngle:S,ellipticalArcCenter:m,resultantRx:e,resultantRy:n};return E};function JN(t){for(var e=[],n=null,r=null,i=null,a=0,o=t.length,s=0;s1&&(n*=Math.sqrt(h),r*=Math.sqrt(h));var p=n*n*(d*d)+r*r*(f*f),v=p?Math.sqrt((n*n*(r*r)-p)/p):1;a===o&&(v*=-1),isNaN(v)&&(v=0);var g=r?v*n*d/r:0,y=n?v*-r*f/n:0,m=(s+l)/2+Math.cos(i)*g-Math.sin(i)*y,b=(c+u)/2+Math.sin(i)*g+Math.cos(i)*y,x=[(f-g)/n,(d-y)/r],w=[(-1*f-g)/n,(-1*d-y)/r],O=Ug([1,0],x),S=Ug(x,w);return ah(x,w)<=-1&&(S=Math.PI),ah(x,w)>=1&&(S=0),o===0&&S>0&&(S=S-2*Math.PI),o===1&&S<0&&(S=S+2*Math.PI),{cx:m,cy:b,rx:Cl(t,[l,u])?0:n,ry:Cl(t,[l,u])?0:r,startAngle:O,endAngle:O+S,xRotation:i,arcFlag:a,sweepFlag:o}}function e4(t,e,n){var r=e.parsedStyle,i=r.defX,a=i===void 0?0:i,o=r.defY,s=o===void 0?0:o;return t.reduce(function(c,l){var u="";if(l[0]==="M"||l[0]==="L"){var f=St(l[1]-a,l[2]-s,0);n&&Oe(f,f,n),u="".concat(l[0]).concat(f[0],",").concat(f[1])}else if(l[0]==="Z")u=l[0];else if(l[0]==="C"){var d=St(l[1]-a,l[2]-s,0),h=St(l[3]-a,l[4]-s,0),p=St(l[5]-a,l[6]-s,0);n&&(Oe(d,d,n),Oe(h,h,n),Oe(p,p,n)),u="".concat(l[0]).concat(d[0],",").concat(d[1],",").concat(h[0],",").concat(h[1],",").concat(p[0],",").concat(p[1])}else if(l[0]==="A"){var v=St(l[6]-a,l[7]-s,0);n&&Oe(v,v,n),u="".concat(l[0]).concat(l[1],",").concat(l[2],",").concat(l[3],",").concat(l[4],",").concat(l[5],",").concat(v[0],",").concat(v[1])}else if(l[0]==="Q"){var d=St(l[1]-a,l[2]-s,0),h=St(l[3]-a,l[4]-s,0);n&&(Oe(d,d,n),Oe(h,h,n)),u="".concat(l[0]).concat(l[1],",").concat(l[2],",").concat(l[3],",").concat(l[4],"}")}return c+=u},"")}function n4(t,e,n,r){return[["M",t,e],["L",n,r]]}function qg(t,e,n,r){var i=(-1+Math.sqrt(2))/3*4,a=t*i,o=e*i,s=n-t,c=n+t,l=r-e,u=r+e;return[["M",s,r],["C",s,r-o,n-a,l,n,l],["C",n+a,l,c,r-o,c,r],["C",c,r+o,n+a,u,n,u],["C",n-a,u,s,r+o,s,r],["Z"]]}function r4(t,e){var n=t.map(function(r,i){return[i===0?"M":"L",r[0],r[1]]});return e&&n.push(["Z"]),n}function i4(t,e,n,r,i){if(i){var a=N(i,4),o=a[0],s=a[1],c=a[2],l=a[3],u=t>0?1:-1,f=e>0?1:-1,d=u+f!==0?1:0;return[["M",u*o+n,r],["L",t-u*s+n,r],s?["A",s,s,0,0,d,t+n,f*s+r]:null,["L",t+n,e-f*c+r],c?["A",c,c,0,0,d,t+n-u*c,e+r]:null,["L",n+u*l,e+r],l?["A",l,l,0,0,d,n,e+r-f*l]:null,["L",n,f*o+r],o?["A",o,o,0,0,d,u*o+n,r]:null,["Z"]].filter(function(h){return h})}return[["M",n,r],["L",n+t,r],["L",n+t,r+e],["L",n,r+e],["Z"]]}function Wp(t,e){e===void 0&&(e=t.getLocalTransform());var n=[];switch(t.nodeName){case G.LINE:var r=t.parsedStyle,i=r.x1,a=i===void 0?0:i,o=r.y1,s=o===void 0?0:o,c=r.x2,l=c===void 0?0:c,u=r.y2,f=u===void 0?0:u;n=n4(a,s,l,f);break;case G.CIRCLE:{var d=t.parsedStyle,h=d.r,p=h===void 0?0:h,v=d.cx,g=v===void 0?0:v,y=d.cy,m=y===void 0?0:y;n=qg(p,p,g,m);break}case G.ELLIPSE:{var b=t.parsedStyle,x=b.rx,w=x===void 0?0:x,O=b.ry,S=O===void 0?0:O,_=b.cx,g=_===void 0?0:_,M=b.cy,m=M===void 0?0:M;n=qg(w,S,g,m);break}case G.POLYLINE:case G.POLYGON:var E=t.parsedStyle.points;n=r4(E.points,t.nodeName===G.POLYGON);break;case G.RECT:var P=t.parsedStyle,T=P.width,A=T===void 0?0:T,k=P.height,C=k===void 0?0:k,L=P.x,I=L===void 0?0:L,R=P.y,j=R===void 0?0:R,D=P.radius,$=D&&D.some(function(F){return F!==0});n=i4(A,C,I,j,$&&D.map(function(F){return ce(F,0,Math.min(Math.abs(A)/2,Math.abs(C)/2))}));break;case G.PATH:var B=t.parsedStyle.path.absolutePath;n=q([],N(B),!1);break}if(n.length)return e4(n,t,e)}var Cw=function(t){if(t===""||Array.isArray(t)&&t.length===0)return{absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:{x:0,y:0,width:0,height:0}};var e;try{e=bl(t)}catch{e=bl(""),console.error("[g]: Invalid SVG Path definition: ".concat(t))}qN(e);var n=KN(e),r=ZN(e),i=r.polygons,a=r.polylines,o=JN(e),s=QN(o,0),c=s.x,l=s.y,u=s.width,f=s.height;return{absolutePath:e,hasArc:n,segments:o,polygons:i,polylines:a,totalLength:0,rect:{x:Number.isFinite(c)?c:0,y:Number.isFinite(l)?l:0,width:Number.isFinite(u)?u:0,height:Number.isFinite(f)?f:0}}},a4=Ne(Cw);function oh(t){return le(t)?a4(t):Cw(t)}function o4(t,e,n){var r=t.curve,i=e.curve;(!r||r.length===0)&&(r=Rd(t.absolutePath,!1),t.curve=r),(!i||i.length===0)&&(i=Rd(e.absolutePath,!1),e.curve=i);var a=[r,i];r.length!==i.length&&(a=cx(r,i));var o=eg(a[0])!==eg(a[1])?qT(a[0]):UT(a[0]);return[o,r5(a[1],o),function(s){return s}]}function Lw(t,e){var n;le(t)?n=t.split(" ").map(function(u){var f=N(u.split(","),2),d=f[0],h=f[1];return[Number(d),Number(h)]}):n=t;var r=[],i=0,a,o,s=qL(n);n.forEach(function(u,f){n[f+1]&&(a=[0,0],a[0]=i/s,o=yw(u[0],u[1],n[f+1][0],n[f+1][1]),i+=o,a[1]=i/s,r.push(a))});var c=Math.min.apply(Math,q([],N(n.map(function(u){return u[0]})),!1)),l=Math.min.apply(Math,q([],N(n.map(function(u){return u[1]})),!1));return e&&(e.parsedStyle.defX=c,e.parsedStyle.defY=l),{points:n,totalLength:s,segments:r}}function s4(t,e){return[t.points,e.points,function(n){return n}]}var ie=null;function Je(t){return function(e){var n=0;return t.map(function(r){return r===ie?e[n++]:r})}}function bi(t){return t}var Ll={matrix:["NNNNNN",[ie,ie,0,0,ie,ie,0,0,0,0,1,0,ie,ie,0,1],bi],matrix3d:["NNNNNNNNNNNNNNNN",bi],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",Je([ie,ie,new jt(1)]),bi],scalex:["N",Je([ie,new jt(1),new jt(1)]),Je([ie,new jt(1)])],scaley:["N",Je([new jt(1),ie,new jt(1)]),Je([new jt(1),ie])],scalez:["N",Je([new jt(1),new jt(1),ie])],scale3d:["NNN",bi],skew:["Aa",null,bi],skewx:["A",null,Je([ie,Hn])],skewy:["A",null,Je([Hn,ie])],translate:["Tt",Je([ie,ie,we]),bi],translatex:["T",Je([ie,we,we]),Je([ie,we])],translatey:["T",Je([we,ie,we]),Je([we,ie])],translatez:["L",Je([we,we,ie])],translate3d:["TTL",bi]};function Hp(t){if(t=(t||"none").toLowerCase().trim(),t==="none")return[];for(var e=/\s*(\w+)\(([^)]*)\)/g,n=[],r,i=0;r=e.exec(t);){if(r.index!==i)return[];i=r.index+r[0].length;var a=r[1],o=Ll[a];if(!o)return[];var s=r[2].split(","),c=o[0];if(c.length"].calculator(null,null,{value:n.textTransform},e,null),n.clipPath&&this.runtime.CSSPropertySyntaxFactory[""].calculator("clipPath",o,n.clipPath,e,this.runtime),n.offsetPath&&this.runtime.CSSPropertySyntaxFactory[""].calculator("offsetPath",s,n.offsetPath,e,this.runtime),n.anchor&&(e.parsedStyle.anchor=$f(n.anchor,2)),n.transform&&(e.parsedStyle.transform=Hp(n.transform)),n.transformOrigin&&(e.parsedStyle.transformOrigin=Nw(n.transformOrigin)),n.markerStart&&(e.parsedStyle.markerStart=this.runtime.CSSPropertySyntaxFactory[""].calculator(null,n.markerStart,n.markerStart,null,null)),n.markerEnd&&(e.parsedStyle.markerEnd=this.runtime.CSSPropertySyntaxFactory[""].calculator(null,n.markerEnd,n.markerEnd,null,null)),n.markerMid&&(e.parsedStyle.markerMid=this.runtime.CSSPropertySyntaxFactory[""].calculator("",n.markerMid,n.markerMid,null,null)),((e.nodeName===G.CIRCLE||e.nodeName===G.ELLIPSE)&&(!nt(n.cx)||!nt(n.cy))||(e.nodeName===G.RECT||e.nodeName===G.IMAGE||e.nodeName===G.GROUP||e.nodeName===G.HTML||e.nodeName===G.TEXT||e.nodeName===G.MESH)&&(!nt(n.x)||!nt(n.y)||!nt(n.z))||e.nodeName===G.LINE&&(!nt(n.x1)||!nt(n.y1)||!nt(n.z1)||!nt(n.x2)||!nt(n.y2)||!nt(n.z2)))&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),nt(n.zIndex)||this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),n.path&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),n.points&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),nt(n.offsetDistance)||this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),n.transform&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),c&&this.updateGeometry(e);return}var u=r.skipUpdateAttribute,f=r.skipParse,d=r.forceUpdateGeometry,h=r.usedAttributes,p=r.memoize,v=d,g=Object.keys(n);g.forEach(function(y){var m;u||(e.attributes[y]=n[y]),!v&&(!((m=Br[y])===null||m===void 0)&&m.l)&&(v=!0)}),f||g.forEach(function(y){e.computedStyle[y]=i.parseProperty(y,e.attributes[y],e,p)}),h!=null&&h.length&&(g=Array.from(new Set(g.concat(h)))),g.forEach(function(y){y in e.computedStyle&&(e.parsedStyle[y]=i.computeProperty(y,e.computedStyle[y],e,p))}),v&&this.updateGeometry(e),g.forEach(function(y){y in e.parsedStyle&&i.postProcessProperty(y,e,g)}),this.runtime.enableCSSParsing&&e.children.length&&g.forEach(function(y){y in e.parsedStyle&&i.isPropertyInheritable(y)&&e.children.forEach(function(m){m.internalSetAttribute(y,null,{skipUpdateAttribute:!0,skipParse:!0})})})},t.prototype.parseProperty=function(e,n,r,i){var a=Br[e],o=n;if((n===""||nt(n))&&(n="unset"),n==="unset"||n==="initial"||n==="inherit")o=eh(n);else if(a){var s=a.k,c=a.syntax,l=c&&this.getPropertySyntax(c);s&&s.indexOf(n)>-1?o=eh(n):l&&(!i&&l.parserUnmemoize?o=l.parserUnmemoize(n,r):l.parser&&(o=l.parser(n,r)))}return o},t.prototype.computeProperty=function(e,n,r,i){var a=Br[e],o=r.id==="g-root",s=n;if(a){var c=a.syntax,l=a.inh,u=a.d;if(n instanceof sn){var f=n.value;if(f==="unset"&&(l&&!o?f="inherit":f="initial"),f==="initial")nt(u)||(n=this.parseProperty(e,ga(u)?u(r.nodeName):u,r,i));else if(f==="inherit"){var d=this.tryToResolveProperty(r,e,{inherited:!0});if(nt(d)){this.addUnresolveProperty(r,e);return}else return d}}var h=c&&this.getPropertySyntax(c);if(h&&h.calculator){var p=r.parsedStyle[e];s=h.calculator(e,p,n,r,this.runtime)}else n instanceof sn?s=n.value:s=n}return s},t.prototype.postProcessProperty=function(e,n,r){var i=Br[e];if(i&&i.syntax){var a=i.syntax&&this.getPropertySyntax(i.syntax),o=a;o&&o.postProcessor&&o.postProcessor(n,r)}},t.prototype.addUnresolveProperty=function(e,n){var r=la.get(e);r||(la.set(e,[]),r=la.get(e)),r.indexOf(n)===-1&&r.push(n)},t.prototype.tryToResolveProperty=function(e,n,r){r===void 0&&(r={});var i=r.inherited;if(i&&e.parentElement&&m4(e.parentElement,n)){var a=e.parentElement.parsedStyle[n];return a==="unset"||a==="initial"||a==="inherit"?void 0:a}},t.prototype.recalc=function(e){var n=la.get(e);if(n&&n.length){var r={};n.forEach(function(i){r[i]=e.attributes[i]}),this.processProperties(e,r),la.delete(e)}},t.prototype.updateGeometry=function(e){var n=e.nodeName,r=this.runtime.geometryUpdaterFactory[n];if(r){var i=e.geometry;i.contentBounds||(i.contentBounds=new be),i.renderBounds||(i.renderBounds=new be);var a=e.parsedStyle,o=r.update(a,e),s=o.width,c=o.height,l=o.depth,u=l===void 0?0:l,f=o.offsetX,d=f===void 0?0:f,h=o.offsetY,p=h===void 0?0:h,v=o.offsetZ,g=v===void 0?0:v,y=[Math.abs(s)/2,Math.abs(c)/2,u/2],m=a,b=m.stroke,x=m.lineWidth,w=m.increasedLineWidthForHitTesting,O=m.shadowType,S=m.shadowColor,_=m.filter,M=_===void 0?[]:_,E=m.transformOrigin,P=a.anchor;n===G.TEXT?delete a.anchor:n===G.MESH&&(a.anchor[2]=.5);var T=[(1-(P&&P[0]||0)*2)*s/2+d,(1-(P&&P[1]||0)*2)*c/2+p,(1-(P&&P[2]||0)*2)*y[2]+g];i.contentBounds.update(T,y);var A=n===G.POLYLINE||n===G.POLYGON||n===G.PATH?Math.SQRT2:.5,k=b&&!b.isNone;if(k){var C=((x||0)+(w||0))*A;y[0]+=C,y[1]+=C}if(i.renderBounds.update(T,y),S&&O&&O!=="inner"){var L=i.renderBounds,I=L.min,R=L.max,j=a,D=j.shadowBlur,$=j.shadowOffsetX,B=j.shadowOffsetY,F=D||0,Y=$||0,U=B||0,K=I[0]-F+Y,V=R[0]+F+Y,W=I[1]-F+U,J=R[1]+F+U;I[0]=Math.min(I[0],K),R[0]=Math.max(R[0],V),I[1]=Math.min(I[1],W),R[1]=Math.max(R[1],J),i.renderBounds.setMinMax(I,R)}M.forEach(function(lt){var xt=lt.name,Et=lt.params;if(xt==="blur"){var Xt=Et[0].value;i.renderBounds.update(i.renderBounds.center,el(i.renderBounds.halfExtents,i.renderBounds.halfExtents,[Xt,Xt,0]))}else if(xt==="drop-shadow"){var ue=Et[0].value,Ke=Et[1].value,vr=Et[2].value,gi=i.renderBounds,Ge=gi.min,wn=gi.max,_t=Ge[0]-vr+ue,Pt=wn[0]+vr+ue,ee=Ge[1]-vr+Ke,kt=wn[1]+vr+Ke;Ge[0]=Math.min(Ge[0],_t),wn[0]=Math.max(wn[0],Pt),Ge[1]=Math.min(Ge[1],ee),wn[1]=Math.max(wn[1],kt),i.renderBounds.setMinMax(Ge,wn)}}),P=a.anchor;var et=s<0,it=c<0,ct=(et?-1:1)*(E?dn(E[0],0,e):0),ot=(it?-1:1)*(E?dn(E[1],1,e):0);ct=ct-(et?-1:1)*(P&&P[0]||0)*i.contentBounds.halfExtents[0]*2,ot=ot-(it?-1:1)*(P&&P[1]||0)*i.contentBounds.halfExtents[1]*2,e.setOrigin(ct,ot),this.runtime.sceneGraphService.dirtifyToRoot(e)}},t.prototype.isPropertyInheritable=function(e){var n=Br[e];return n?n.inh:!1},t}(),x4=function(){function t(){this.parser=Ew,this.parserUnmemoize=zp,this.parserWithCSSDisabled=null,this.mixer=Gp}return t.prototype.calculator=function(e,n,r,i){return hn(r)},t}(),w4=function(){function t(){}return t.prototype.calculator=function(e,n,r,i,a){return r instanceof sn&&(r=null),a.sceneGraphService.updateDisplayObjectDependency(e,n,r,i),e==="clipPath"&&i.forEach(function(o){o.childNodes.length===0&&a.sceneGraphService.dirtifyToRoot(o)}),r},t}(),O4=function(){function t(){this.parser=Ar,this.parserWithCSSDisabled=Ar,this.mixer=YN}return t.prototype.calculator=function(e,n,r,i){return r instanceof sn?r.value==="none"?nh:Ow:r},t}(),S4=function(){function t(){this.parser=Aw}return t.prototype.calculator=function(e,n,r){return r instanceof sn?[]:r},t}();function Jg(t){var e=t.parsedStyle.fontSize;return nt(e)?null:e}var Xp=function(){function t(){this.parser=Ba,this.parserUnmemoize=ps,this.parserWithCSSDisabled=null,this.mixer=Gp}return t.prototype.calculator=function(e,n,r,i,a){var o;if(de(r))return r;if(jt.isRelativeUnit(r.unit)){var s=a.styleValueRegistry;if(r.unit===Z.kPercentage)return 0;if(r.unit===Z.kEms){if(i.parentNode){var c=Jg(i.parentNode);if(c)return c*=r.value,c;s.addUnresolveProperty(i,e)}else s.addUnresolveProperty(i,e);return 0}else if(r.unit===Z.kRems){if(!((o=i==null?void 0:i.ownerDocument)===null||o===void 0)&&o.documentElement){var c=Jg(i.ownerDocument.documentElement);if(c)return c*=r.value,c;s.addUnresolveProperty(i,e)}else s.addUnresolveProperty(i,e);return 0}}else return r.value},t}(),_4=function(){function t(){this.mixer=Tw}return t.prototype.parser=function(e){var n=Pw(de(e)?[e]:e),r;return n.length===1?r=[n[0],n[0]]:r=[n[0],n[1]],r},t.prototype.calculator=function(e,n,r){return r.map(function(i){return i.value})},t}(),M4=function(){function t(){this.mixer=Tw}return t.prototype.parser=function(e){var n=Pw(de(e)?[e]:e),r;return n.length===1?r=[n[0],n[0],n[0],n[0]]:n.length===2?r=[n[0],n[1],n[0],n[1]]:n.length===3?r=[n[0],n[1],n[2],n[1]]:r=[n[0],n[1],n[2],n[3]],r},t.prototype.calculator=function(e,n,r){return r.map(function(i){return i.value})},t}(),xo=Nt();function Up(t,e){var n=e.parsedStyle.defX||0,r=e.parsedStyle.defY||0;return e.resetLocalTransform(),e.setLocalPosition(n,r),t.forEach(function(i){var a=i.t,o=i.d;if(a==="scale"){var s=(o==null?void 0:o.map(function(m){return m.value}))||[1,1];e.scaleLocal(s[0],s[1],1)}else if(a==="scalex"){var s=(o==null?void 0:o.map(function(b){return b.value}))||[1];e.scaleLocal(s[0],1,1)}else if(a==="scaley"){var s=(o==null?void 0:o.map(function(b){return b.value}))||[1];e.scaleLocal(1,s[0],1)}else if(a==="scalez"){var s=(o==null?void 0:o.map(function(b){return b.value}))||[1];e.scaleLocal(1,1,s[0])}else if(a==="scale3d"){var s=(o==null?void 0:o.map(function(b){return b.value}))||[1,1,1];e.scaleLocal(s[0],s[1],s[2])}else if(a==="translate"){var c=o||[we,we];e.translateLocal(c[0].value,c[1].value,0)}else if(a==="translatex"){var c=o||[we];e.translateLocal(c[0].value,0,0)}else if(a==="translatey"){var c=o||[we];e.translateLocal(0,c[0].value,0)}else if(a==="translatez"){var c=o||[we];e.translateLocal(0,0,c[0].value)}else if(a==="translate3d"){var c=o||[we,we,we];e.translateLocal(c[0].value,c[1].value,c[2].value)}else if(a==="rotate"){var l=o||[Hn];e.rotateLocal(0,0,hn(l[0]))}else if(a==="rotatex"){var l=o||[Hn];e.rotateLocal(hn(l[0]),0,0)}else if(a==="rotatey"){var l=o||[Hn];e.rotateLocal(0,hn(l[0]),0)}else if(a==="rotatez"){var l=o||[Hn];e.rotateLocal(0,0,hn(l[0]))}else if(a!=="rotate3d")if(a==="skew"){var u=(o==null?void 0:o.map(function(m){return m.value}))||[0,0];e.setLocalSkew(re(u[0]),re(u[1]))}else if(a==="skewx"){var u=(o==null?void 0:o.map(function(b){return b.value}))||[0];e.setLocalSkew(re(u[0]),e.getLocalSkew()[1])}else if(a==="skewy"){var u=(o==null?void 0:o.map(function(b){return b.value}))||[0];e.setLocalSkew(e.getLocalSkew()[0],re(u[0]))}else if(a==="matrix"){var f=N(o.map(function(m){return m.value}),6),d=f[0],h=f[1],p=f[2],v=f[3],g=f[4],y=f[5];e.setLocalTransform(Td(xo,d,h,0,0,p,v,0,0,0,0,1,0,g+n,y+r,0,1))}else a==="matrix3d"&&(Td.apply(bT,q([xo],N(o.map(function(m){return m.value})),!1)),xo[12]+=n,xo[13]+=r,e.setLocalTransform(xo))}),e.getLocalTransform()}var E4=function(t){rt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.postProcessor=function(n,r){var i,a,o;switch(n.nodeName){case G.CIRCLE:case G.ELLIPSE:var s=n.parsedStyle,c=s.cx,l=s.cy,u=s.cz;nt(c)||(i=c),nt(l)||(a=l),nt(u)||(o=u);break;case G.LINE:var f=n.parsedStyle,d=f.x1,h=f.x2,p=f.y1,v=f.y2,g=Math.min(d,h),y=Math.min(p,v);i=g,a=y,o=0;break;case G.RECT:case G.IMAGE:case G.GROUP:case G.HTML:case G.TEXT:case G.MESH:nt(n.parsedStyle.x)||(i=n.parsedStyle.x),nt(n.parsedStyle.y)||(a=n.parsedStyle.y),nt(n.parsedStyle.z)||(o=n.parsedStyle.z);break}n.nodeName!==G.PATH&&n.nodeName!==G.POLYLINE&&n.nodeName!==G.POLYGON&&(n.parsedStyle.defX=i||0,n.parsedStyle.defY=a||0);var m=!nt(i)||!nt(a)||!nt(o);if(m&&r.indexOf("transform")===-1){var b=n.parsedStyle.transform;if(b&&b.length)Up(b,n);else{var x=N(n.getLocalPosition(),3),w=x[0],O=x[1],S=x[2];n.setLocalPosition(nt(i)?w:i,nt(a)?O:a,nt(o)?S:o)}}},e}(Xp),P4=function(){function t(){}return t.prototype.calculator=function(e,n,r,i){r instanceof sn&&(r=null);var a=r==null?void 0:r.cloneNode(!0);return a&&(a.style.isMarker=!0),a},t}(),A4=function(){function t(){this.mixer=Gp,this.parser=zi,this.parserUnmemoize=no,this.parserWithCSSDisabled=null}return t.prototype.calculator=function(e,n,r){return r.value},t}(),k4=function(){function t(){this.parser=zi,this.parserUnmemoize=no,this.parserWithCSSDisabled=null,this.mixer=Yp(0,1)}return t.prototype.calculator=function(e,n,r){return r.value},t.prototype.postProcessor=function(e){var n=e.parsedStyle,r=n.offsetPath,i=n.offsetDistance;if(r){var a=r.nodeName;if(a===G.LINE||a===G.PATH||a===G.POLYLINE){var o=r.getPoint(i);o&&(e.parsedStyle.defX=o.x,e.parsedStyle.defY=o.y,e.setLocalPosition(o.x,o.y))}}},t}(),T4=function(){function t(){this.parser=zi,this.parserUnmemoize=no,this.parserWithCSSDisabled=null,this.mixer=Yp(0,1)}return t.prototype.calculator=function(e,n,r){return r.value},t}(),C4=function(){function t(){this.parser=oh,this.parserWithCSSDisabled=oh,this.mixer=o4}return t.prototype.calculator=function(e,n,r){return r instanceof sn&&r.value==="unset"?{absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:new Fi(0,0,0,0)}:r},t.prototype.postProcessor=function(e,n){if(e.parsedStyle.defX=e.parsedStyle.path.rect.x,e.parsedStyle.defY=e.parsedStyle.path.rect.y,e.nodeName===G.PATH&&n.indexOf("transform")===-1){var r=e.parsedStyle,i=r.defX,a=i===void 0?0:i,o=r.defY,s=o===void 0?0:o;e.setLocalPosition(a,s)}},t}(),L4=function(){function t(){this.parser=Lw,this.mixer=s4}return t.prototype.postProcessor=function(e,n){if((e.nodeName===G.POLYGON||e.nodeName===G.POLYLINE)&&n.indexOf("transform")===-1){var r=e.parsedStyle,i=r.defX,a=r.defY;e.setLocalPosition(i,a)}},t}(),N4=function(t){rt(e,t);function e(){var n=t.apply(this,q([],N(arguments),!1))||this;return n.mixer=Yp(0,1/0),n}return e}(Xp),R4=function(){function t(){}return t.prototype.calculator=function(e,n,r,i){return r instanceof sn?r.value==="unset"?"":r.value:"".concat(r)},t.prototype.postProcessor=function(e){e.nodeValue="".concat(e.parsedStyle.text)||""},t}(),I4=function(){function t(){}return t.prototype.calculator=function(e,n,r,i){var a=i.getAttribute("text");if(a){var o=a;r.value==="capitalize"?o=a.charAt(0).toUpperCase()+a.slice(1):r.value==="lowercase"?o=a.toLowerCase():r.value==="uppercase"&&(o=a.toUpperCase()),i.parsedStyle.text=o}return r.value},t}(),Gf={},j4=0;function D4(t,e){if(t){var n=typeof t=="string"?t:t.id||j4++;Gf[n]&&Gf[n].destroy(),Gf[n]=e}}var Vs=typeof window<"u"&&typeof window.document<"u";function $4(t){return!!t.getAttribute}function B4(t,e){for(var n=0,r=t.length;n>>1;Rw(t[i],e)<0?n=i+1:r=i}return n}function Rw(t,e){var n=Number(t.parsedStyle.zIndex),r=Number(e.parsedStyle.zIndex);if(n===r){var i=t.parentNode;if(i){var a=i.childNodes||[];return a.indexOf(t)-a.indexOf(e)}}return n-r}function Iw(t){var e,n=t;do{var r=(e=n.parsedStyle)===null||e===void 0?void 0:e.clipPath;if(r)return n;n=n.parentElement}while(n!==null);return null}var ty="px";function F4(t,e,n){Vs&&t.style&&(t.style.width=e+ty,t.style.height=n+ty)}function jw(t,e){if(Vs)return document.defaultView.getComputedStyle(t,null).getPropertyValue(e)}function z4(t){var e=jw(t,"width");return e==="auto"?t.offsetWidth:parseFloat(e)}function G4(t){var e=jw(t,"height");return e==="auto"?t.offsetHeight:parseFloat(e)}var Y4=1,W4={touchstart:"pointerdown",touchend:"pointerup",touchendoutside:"pointerupoutside",touchmove:"pointermove",touchcancel:"pointercancel"},sh=typeof performance=="object"&&performance.now?performance:Date;function Ki(t,e,n){var r=!1,i=!1,a=!!e&&!e.isNone,o=!!n&&!n.isNone;return t==="visiblepainted"||t==="painted"||t==="auto"?(r=a,i=o):t==="visiblefill"||t==="fill"?r=!0:t==="visiblestroke"||t==="stroke"?i=!0:(t==="visible"||t==="all")&&(r=!0,i=!0),[r,i]}var H4=1,V4=function(){return H4++},sr=typeof self=="object"&&self.self==self?self:typeof global=="object"&&global.global==global?global:{},X4=Date.now(),U4=function(){return sr.performance&&typeof sr.performance.now=="function"?sr.performance.now():Date.now()-X4},Eo={},ey=Date.now(),q4=function(t){if(typeof t!="function")throw new TypeError(t+" is not a function");var e=Date.now(),n=e-ey,r=n>16?0:16-n,i=V4();return Eo[i]=t,Object.keys(Eo).length>1||setTimeout(function(){ey=e;var a=Eo;Eo={},Object.keys(a).forEach(function(o){return a[o](U4())})},r),i},K4=function(t){delete Eo[t]},Z4=["","webkit","moz","ms","o"],Dw=function(t){return typeof t!="string"?q4:t===""?sr.requestAnimationFrame:sr[t+"RequestAnimationFrame"]},Q4=function(t){return typeof t!="string"?K4:t===""?sr.cancelAnimationFrame:sr[t+"CancelAnimationFrame"]||sr[t+"CancelRequestAnimationFrame"]},J4=function(t,e){for(var n=0;t[n]!==void 0;){if(e(t[n]))return t[n];n=n+1}},$w=J4(Z4,function(t){return!!Dw(t)}),Bw=Dw($w),Fw=Q4($w);sr.requestAnimationFrame=Bw;sr.cancelAnimationFrame=Fw;var tR=function(){function t(){this.callbacks=[]}return t.prototype.getCallbacksNum=function(){return this.callbacks.length},t.prototype.tapPromise=function(e,n){this.callbacks.push(n)},t.prototype.promise=function(){for(var e=[],n=0;n=0;c--){var l=s[c].trim();!rR.test(l)&&nR.indexOf(l)<0&&(l='"'.concat(l,'"')),s[c]=l}return"".concat(r," ").concat(i," ").concat(a," ").concat(o," ").concat(s.join(","))}var aR=function(){function t(){this.parser=Hp,this.parserUnmemoize=Kg,this.parserWithCSSDisabled=Kg,this.mixer=g4}return t.prototype.calculator=function(e,n,r,i){return r instanceof sn?[]:r},t.prototype.postProcessor=function(e){var n=e.parsedStyle.transform;Up(n,e)},t}(),oR=function(){function t(){this.parser=Nw,this.parserUnmemoize=y4}return t}(),sR=function(){function t(){this.parser=zi,this.parserUnmemoize=no}return t.prototype.calculator=function(e,n,r,i){return r.value},t.prototype.postProcessor=function(e){if(e.parentNode){var n=e.parentNode,r=n.renderable,i=n.sortable;r&&(r.dirty=!0),i&&(i.dirty=!0,i.dirtyReason=$a.Z_INDEX_CHANGED)}},t}(),cR=function(){function t(){}return t.prototype.update=function(e,n){var r=e.r,i=r*2,a=r*2;return{width:i,height:a}},t}(),lR=function(){function t(){}return t.prototype.update=function(e,n){var r=e.rx,i=e.ry,a=r*2,o=i*2;return{width:a,height:o}},t}(),uR=function(){function t(){}return t.prototype.update=function(e){var n=e.x1,r=e.y1,i=e.x2,a=e.y2,o=Math.min(n,i),s=Math.max(n,i),c=Math.min(r,a),l=Math.max(r,a),u=s-o,f=l-c;return{width:u,height:f}},t}(),fR=function(){function t(){}return t.prototype.update=function(e){var n=e.path,r=n.rect,i=r.width,a=r.height;return{width:i,height:a}},t}(),dR=function(){function t(){}return t.prototype.update=function(e){if(e.points&&Le(e.points.points)){var n=e.points.points,r=Math.min.apply(Math,q([],N(n.map(function(l){return l[0]})),!1)),i=Math.max.apply(Math,q([],N(n.map(function(l){return l[0]})),!1)),a=Math.min.apply(Math,q([],N(n.map(function(l){return l[1]})),!1)),o=Math.max.apply(Math,q([],N(n.map(function(l){return l[1]})),!1)),s=i-r,c=o-a;return{width:s,height:c}}return{width:0,height:0}},t}(),hR=function(){function t(){}return t.prototype.update=function(e,n){var r=e.img,i=e.width,a=i===void 0?0:i,o=e.height,s=o===void 0?0:o,c=a,l=s;return r&&!le(r)&&(c||(c=r.width,e.width=c),l||(l=r.height,e.height=l)),{width:c,height:l}},t}(),pR=function(){function t(e){this.globalRuntime=e}return t.prototype.isReadyToMeasure=function(e,n){var r=e.text,i=e.textAlign,a=e.textBaseline,o=e.fontSize,s=e.fontStyle,c=e.fontWeight,l=e.fontVariant,u=e.lineWidth;return r&&o&&s&&c&&l&&i&&a&&!nt(u)},t.prototype.update=function(e,n){var r,i,a=e.text,o=e.textAlign,s=e.lineWidth,c=e.textBaseline,l=e.dx,u=e.dy;if(!this.isReadyToMeasure(e,n))return e.metrics={font:"",width:0,height:0,lines:[],lineWidths:[],lineHeight:0,maxLineWidth:0,fontProperties:{ascent:0,descent:0,fontSize:0},lineMetrics:[]},{width:0,height:0,x:0,y:0,offsetX:0,offsetY:0};var f=(((i=(r=n==null?void 0:n.ownerDocument)===null||r===void 0?void 0:r.defaultView)===null||i===void 0?void 0:i.getConfig())||{}).offscreenCanvas,d=this.globalRuntime.textService.measureText(a,e,f);e.metrics=d;var h=d.width,p=d.height,v=d.lineHeight,g=d.fontProperties,y=[h/2,p/2,0],m=[0,1],b=0;o==="center"||o==="middle"?(b=s/2,m=[.5,1]):(o==="right"||o==="end")&&(b=s,m=[1,1]);var x=0;return c==="middle"?x=y[1]:c==="top"||c==="hanging"?x=y[1]*2:c==="alphabetic"?x=this.globalRuntime.enableCSSParsing?v-g.ascent:0:(c==="bottom"||c==="ideographic")&&(x=0),l&&(b+=l),u&&(x+=u),e.anchor=[m[0],m[1],0],{width:y[0]*2,height:y[1]*2,offsetX:b,offsetY:x}},t}();function vR(t){return!!t.type}var $u=function(){function t(e){this.eventPhase=t.prototype.NONE,this.bubbles=!0,this.cancelBubble=!0,this.cancelable=!1,this.defaultPrevented=!1,this.propagationStopped=!1,this.propagationImmediatelyStopped=!1,this.layer=new Ee,this.page=new Ee,this.canvas=new Ee,this.viewport=new Ee,this.composed=!1,this.NONE=0,this.CAPTURING_PHASE=1,this.AT_TARGET=2,this.BUBBLING_PHASE=3,this.manager=e}return Object.defineProperty(t.prototype,"name",{get:function(){return this.type},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"layerX",{get:function(){return this.layer.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"layerY",{get:function(){return this.layer.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageX",{get:function(){return this.page.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageY",{get:function(){return this.page.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this.canvas.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.canvas.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canvasX",{get:function(){return this.canvas.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canvasY",{get:function(){return this.canvas.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"viewportX",{get:function(){return this.viewport.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"viewportY",{get:function(){return this.viewport.y},enumerable:!1,configurable:!0}),t.prototype.composedPath=function(){return this.manager&&(!this.path||this.path[0]!==this.target)&&(this.path=this.target?this.manager.propagationPath(this.target):[]),this.path},Object.defineProperty(t.prototype,"propagationPath",{get:function(){return this.composedPath()},enumerable:!1,configurable:!0}),t.prototype.preventDefault=function(){this.nativeEvent instanceof Event&&this.nativeEvent.cancelable&&this.nativeEvent.preventDefault(),this.defaultPrevented=!0},t.prototype.stopImmediatePropagation=function(){this.propagationImmediatelyStopped=!0},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.initEvent=function(){},t.prototype.initUIEvent=function(){},t.prototype.clone=function(){throw new Error(It)},t}(),zw=function(t){rt(e,t);function e(){var n=t.apply(this,q([],N(arguments),!1))||this;return n.client=new Ee,n.movement=new Ee,n.offset=new Ee,n.global=new Ee,n.screen=new Ee,n}return Object.defineProperty(e.prototype,"clientX",{get:function(){return this.client.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clientY",{get:function(){return this.client.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"movementX",{get:function(){return this.movement.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"movementY",{get:function(){return this.movement.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offsetX",{get:function(){return this.offset.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offsetY",{get:function(){return this.offset.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"globalX",{get:function(){return this.global.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"globalY",{get:function(){return this.global.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"screenX",{get:function(){return this.screen.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"screenY",{get:function(){return this.screen.y},enumerable:!1,configurable:!0}),e.prototype.getModifierState=function(n){return"getModifierState"in this.nativeEvent&&this.nativeEvent.getModifierState(n)},e.prototype.initMouseEvent=function(){throw new Error(It)},e}($u),ch=function(t){rt(e,t);function e(){var n=t.apply(this,q([],N(arguments),!1))||this;return n.width=0,n.height=0,n.isPrimary=!1,n}return e.prototype.getCoalescedEvents=function(){return this.type==="pointermove"||this.type==="mousemove"||this.type==="touchmove"?[this]:[]},e.prototype.getPredictedEvents=function(){throw new Error("getPredictedEvents is not supported!")},e.prototype.clone=function(){return this.manager.clonePointerEvent(this)},e}(zw),lh=function(t){rt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.clone=function(){return this.manager.cloneWheelEvent(this)},e}(zw),Dt=function(t){rt(e,t);function e(n,r){var i=t.call(this,null)||this;return i.type=n,i.detail=r,Object.assign(i,r),i}return e}($u),ny=":",Gw=function(){function t(){this.emitter=new $p}return t.prototype.on=function(e,n,r){return this.addEventListener(e,n,r),this},t.prototype.addEventListener=function(e,n,r){var i=Xv(r)&&r||ki(r)&&r.capture,a=ki(r)&&r.once,o=ga(n)?void 0:n,s=!1,c="";if(e.indexOf(ny)>-1){var l=N(e.split(ny),2),u=l[0],f=l[1];e=f,c=u,s=!0}if(e=i?"".concat(e,"capture"):e,n=ga(n)?n:n.handleEvent,s){var d=n;n=function(){for(var h,p=[],v=0;v0},e.prototype.isDefaultNamespace=function(n){throw new Error(It)},e.prototype.lookupNamespaceURI=function(n){throw new Error(It)},e.prototype.lookupPrefix=function(n){throw new Error(It)},e.prototype.normalize=function(){throw new Error(It)},e.prototype.isEqualNode=function(n){return this===n},e.prototype.isSameNode=function(n){return this.isEqualNode(n)},Object.defineProperty(e.prototype,"parent",{get:function(){return this.parentNode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentElement",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this.childNodes.length>0?this.childNodes[0]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.childNodes.length>0?this.childNodes[this.childNodes.length-1]:null},enumerable:!1,configurable:!0}),e.prototype.compareDocumentPosition=function(n){var r;if(n===this)return 0;for(var i=n,a=this,o=[i],s=[a];(r=i.parentNode)!==null&&r!==void 0?r:a.parentNode;)i=i.parentNode?(o.push(i.parentNode),i.parentNode):i,a=a.parentNode?(s.push(a.parentNode),a.parentNode):a;if(i!==a)return e.DOCUMENT_POSITION_DISCONNECTED|e.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|e.DOCUMENT_POSITION_PRECEDING;var c=o.length>s.length?o:s,l=c===o?s:o;if(c[c.length-l.length]===l[0])return c===o?e.DOCUMENT_POSITION_CONTAINED_BY|e.DOCUMENT_POSITION_FOLLOWING:e.DOCUMENT_POSITION_CONTAINS|e.DOCUMENT_POSITION_PRECEDING;for(var u=c.length-l.length,f=l.length-1;f>=0;f--){var d=l[f],h=c[u+f];if(h!==d){var p=d.parentNode.childNodes;return p.indexOf(d)0&&r;)r=r.parentNode,n--;return r},e.prototype.forEach=function(n,r){r===void 0&&(r=!1),n(this)||(r?this.childNodes.slice():this.childNodes).forEach(function(i){i.forEach(n)})},e.DOCUMENT_POSITION_DISCONNECTED=1,e.DOCUMENT_POSITION_PRECEDING=2,e.DOCUMENT_POSITION_FOLLOWING=4,e.DOCUMENT_POSITION_CONTAINS=8,e.DOCUMENT_POSITION_CONTAINED_BY=16,e.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32,e}(Gw),gR=2048,yR=function(){function t(e,n){var r=this;this.globalRuntime=e,this.context=n,this.emitter=new $p,this.nativeHTMLMap=new WeakMap,this.cursor="default",this.mappingTable={},this.mappingState={trackingData:{}},this.eventPool=new Map,this.tmpMatrix=Nt(),this.tmpVec3=yt(),this.onPointerDown=function(i){var a=r.createPointerEvent(i);if(r.dispatchEvent(a,"pointerdown"),a.pointerType==="touch")r.dispatchEvent(a,"touchstart");else if(a.pointerType==="mouse"||a.pointerType==="pen"){var o=a.button===2;r.dispatchEvent(a,o?"rightdown":"mousedown")}var s=r.trackingData(i.pointerId);s.pressTargetsByButton[i.button]=a.composedPath(),r.freeEvent(a)},this.onPointerUp=function(i){var a,o=sh.now(),s=r.createPointerEvent(i,void 0,void 0,r.context.config.alwaysTriggerPointerEventOnCanvas?r.rootTarget:void 0);if(r.dispatchEvent(s,"pointerup"),s.pointerType==="touch")r.dispatchEvent(s,"touchend");else if(s.pointerType==="mouse"||s.pointerType==="pen"){var c=s.button===2;r.dispatchEvent(s,c?"rightup":"mouseup")}var l=r.trackingData(i.pointerId),u=r.findMountedTarget(l.pressTargetsByButton[i.button]),f=u;if(u&&!s.composedPath().includes(u)){for(var d=u;d&&!s.composedPath().includes(d);){if(s.currentTarget=d,r.notifyTarget(s,"pointerupoutside"),s.pointerType==="touch")r.notifyTarget(s,"touchendoutside");else if(s.pointerType==="mouse"||s.pointerType==="pen"){var c=s.button===2;r.notifyTarget(s,c?"rightupoutside":"mouseupoutside")}_e.isNode(d)&&(d=d.parentNode)}delete l.pressTargetsByButton[i.button],f=d}if(f){var h=r.clonePointerEvent(s,"click");h.target=f,h.path=[],l.clicksByButton[i.button]||(l.clicksByButton[i.button]={clickCount:0,target:h.target,timeStamp:o});var p=l.clicksByButton[i.button];p.target===h.target&&o-p.timeStamp<200?++p.clickCount:p.clickCount=1,p.target=h.target,p.timeStamp=o,h.detail=p.clickCount,!((a=s.detail)===null||a===void 0)&&a.preventClick||(!r.context.config.useNativeClickEvent&&(h.pointerType==="mouse"||h.pointerType==="touch")&&r.dispatchEvent(h,"click"),r.dispatchEvent(h,"pointertap")),r.freeEvent(h)}r.freeEvent(s)},this.onPointerMove=function(i){var a=r.createPointerEvent(i,void 0,void 0,r.context.config.alwaysTriggerPointerEventOnCanvas?r.rootTarget:void 0),o=a.pointerType==="mouse"||a.pointerType==="pen",s=r.trackingData(i.pointerId),c=r.findMountedTarget(s.overTargets);if(s.overTargets&&c!==a.target){var l=i.type==="mousemove"?"mouseout":"pointerout",u=r.createPointerEvent(i,l,c||void 0);if(r.dispatchEvent(u,"pointerout"),o&&r.dispatchEvent(u,"mouseout"),!a.composedPath().includes(c)){var f=r.createPointerEvent(i,"pointerleave",c||void 0);for(f.eventPhase=f.AT_TARGET;f.target&&!a.composedPath().includes(f.target);)f.currentTarget=f.target,r.notifyTarget(f),o&&r.notifyTarget(f,"mouseleave"),_e.isNode(f.target)&&(f.target=f.target.parentNode);r.freeEvent(f)}r.freeEvent(u)}if(c!==a.target){var d=i.type==="mousemove"?"mouseover":"pointerover",h=r.clonePointerEvent(a,d);r.dispatchEvent(h,"pointerover"),o&&r.dispatchEvent(h,"mouseover");for(var p=c&&_e.isNode(c)&&c.parentNode;p&&p!==(_e.isNode(r.rootTarget)&&r.rootTarget.parentNode)&&p!==a.target;)p=p.parentNode;var v=!p||p===(_e.isNode(r.rootTarget)&&r.rootTarget.parentNode);if(v){var g=r.clonePointerEvent(a,"pointerenter");for(g.eventPhase=g.AT_TARGET;g.target&&g.target!==c&&g.target!==(_e.isNode(r.rootTarget)&&r.rootTarget.parentNode);)g.currentTarget=g.target,r.notifyTarget(g),o&&r.notifyTarget(g,"mouseenter"),_e.isNode(g.target)&&(g.target=g.target.parentNode);r.freeEvent(g)}r.freeEvent(h)}r.dispatchEvent(a,"pointermove"),a.pointerType==="touch"&&r.dispatchEvent(a,"touchmove"),o&&(r.dispatchEvent(a,"mousemove"),r.cursor=r.getCursor(a.target)),s.overTargets=a.composedPath(),r.freeEvent(a)},this.onPointerOut=function(i){var a=r.trackingData(i.pointerId);if(a.overTargets){var o=i.pointerType==="mouse"||i.pointerType==="pen",s=r.findMountedTarget(a.overTargets),c=r.createPointerEvent(i,"pointerout",s||void 0);r.dispatchEvent(c),o&&r.dispatchEvent(c,"mouseout");var l=r.createPointerEvent(i,"pointerleave",s||void 0);for(l.eventPhase=l.AT_TARGET;l.target&&l.target!==(_e.isNode(r.rootTarget)&&r.rootTarget.parentNode);)l.currentTarget=l.target,r.notifyTarget(l),o&&r.notifyTarget(l,"mouseleave"),_e.isNode(l.target)&&(l.target=l.target.parentNode);a.overTargets=null,r.freeEvent(c),r.freeEvent(l)}r.cursor=null},this.onPointerOver=function(i){var a=r.trackingData(i.pointerId),o=r.createPointerEvent(i),s=o.pointerType==="mouse"||o.pointerType==="pen";r.dispatchEvent(o,"pointerover"),s&&r.dispatchEvent(o,"mouseover"),o.pointerType==="mouse"&&(r.cursor=r.getCursor(o.target));var c=r.clonePointerEvent(o,"pointerenter");for(c.eventPhase=c.AT_TARGET;c.target&&c.target!==(_e.isNode(r.rootTarget)&&r.rootTarget.parentNode);)c.currentTarget=c.target,r.notifyTarget(c),s&&r.notifyTarget(c,"mouseenter"),_e.isNode(c.target)&&(c.target=c.target.parentNode);a.overTargets=o.composedPath(),r.freeEvent(o),r.freeEvent(c)},this.onPointerUpOutside=function(i){var a=r.trackingData(i.pointerId),o=r.findMountedTarget(a.pressTargetsByButton[i.button]),s=r.createPointerEvent(i);if(o){for(var c=o;c;)s.currentTarget=c,r.notifyTarget(s,"pointerupoutside"),s.pointerType==="touch"||(s.pointerType==="mouse"||s.pointerType==="pen")&&r.notifyTarget(s,s.button===2?"rightupoutside":"mouseupoutside"),_e.isNode(c)&&(c=c.parentNode);delete a.pressTargetsByButton[i.button]}r.freeEvent(s)},this.onWheel=function(i){var a=r.createWheelEvent(i);r.dispatchEvent(a),r.freeEvent(a)},this.onClick=function(i){if(r.context.config.useNativeClickEvent){var a=r.createPointerEvent(i);r.dispatchEvent(a),r.freeEvent(a)}},this.onPointerCancel=function(i){var a=r.createPointerEvent(i,void 0,void 0,r.context.config.alwaysTriggerPointerEventOnCanvas?r.rootTarget:void 0);r.dispatchEvent(a),r.freeEvent(a)}}return t.prototype.init=function(){this.rootTarget=this.context.renderingContext.root.parentNode,this.addEventMapping("pointerdown",this.onPointerDown),this.addEventMapping("pointerup",this.onPointerUp),this.addEventMapping("pointermove",this.onPointerMove),this.addEventMapping("pointerout",this.onPointerOut),this.addEventMapping("pointerleave",this.onPointerOut),this.addEventMapping("pointercancel",this.onPointerCancel),this.addEventMapping("pointerover",this.onPointerOver),this.addEventMapping("pointerupoutside",this.onPointerUpOutside),this.addEventMapping("wheel",this.onWheel),this.addEventMapping("click",this.onClick)},t.prototype.destroy=function(){this.emitter.removeAllListeners(),this.mappingTable={},this.mappingState={},this.eventPool.clear()},t.prototype.client2Viewport=function(e){var n=this.context.contextService.getBoundingClientRect();return new Ee(e.x-((n==null?void 0:n.left)||0),e.y-((n==null?void 0:n.top)||0))},t.prototype.viewport2Client=function(e){var n=this.context.contextService.getBoundingClientRect();return new Ee(e.x+((n==null?void 0:n.left)||0),e.y+((n==null?void 0:n.top)||0))},t.prototype.viewport2Canvas=function(e){var n=e.x,r=e.y,i=this.rootTarget.defaultView,a=i.getCamera(),o=this.context.config,s=o.width,c=o.height,l=a.getPerspectiveInverse(),u=a.getWorldTransform(),f=$e(this.tmpMatrix,u,l),d=Gn(this.tmpVec3,n/s*2-1,(1-r/c)*2-1,0);return Oe(d,d,f),new Ee(d[0],d[1])},t.prototype.canvas2Viewport=function(e){var n=this.rootTarget.defaultView,r=n.getCamera(),i=r.getPerspective(),a=r.getViewTransform(),o=$e(this.tmpMatrix,i,a),s=Gn(this.tmpVec3,e.x,e.y,0);Oe(this.tmpVec3,this.tmpVec3,o);var c=this.context.config,l=c.width,u=c.height;return new Ee((s[0]+1)/2*l,(1-(s[1]+1)/2)*u)},t.prototype.setPickHandler=function(e){this.pickHandler=e},t.prototype.addEventMapping=function(e,n){this.mappingTable[e]||(this.mappingTable[e]=[]),this.mappingTable[e].push({fn:n,priority:0}),this.mappingTable[e].sort(function(r,i){return r.priority-i.priority})},t.prototype.mapEvent=function(e){if(this.rootTarget){var n=this.mappingTable[e.type];if(n)for(var r=0,i=n.length;r=1;i--)if(e.currentTarget=r[i],this.notifyTarget(e,n),e.propagationStopped||e.propagationImmediatelyStopped)return;if(e.eventPhase=e.AT_TARGET,e.currentTarget=e.target,this.notifyTarget(e,n),!(e.propagationStopped||e.propagationImmediatelyStopped)){var a=r.indexOf(e.currentTarget);e.eventPhase=e.BUBBLING_PHASE;for(var i=a+1;ia||r>o?null:!s&&this.pickHandler(e)||this.rootTarget||null},t.prototype.isNativeEventFromCanvas=function(e){var n,r=this.context.contextService.getDomElement(),i=(n=e.nativeEvent)===null||n===void 0?void 0:n.target;if(i){if(i===r)return!0;if(r&&r.contains)return r.contains(i)}return e.nativeEvent.composedPath?e.nativeEvent.composedPath().indexOf(r)>-1:!1},t.prototype.getExistedHTML=function(e){var n,r;if(e.nativeEvent.composedPath)try{for(var i=vn(e.nativeEvent.composedPath()),a=i.next();!a.done;a=i.next()){var o=a.value,s=this.nativeHTMLMap.get(o);if(s)return s}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return null},t.prototype.pickTarget=function(e){return this.hitTest({clientX:e.clientX,clientY:e.clientY,viewportX:e.viewportX,viewportY:e.viewportY,x:e.canvasX,y:e.canvasY})},t.prototype.createPointerEvent=function(e,n,r,i){var a=this.allocateEvent(ch);this.copyPointerData(e,a),this.copyMouseData(e,a),this.copyData(e,a),a.nativeEvent=e.nativeEvent,a.originalEvent=e;var o=this.getExistedHTML(a);return a.target=r??(o||this.isNativeEventFromCanvas(a)&&this.pickTarget(a)||i),typeof n=="string"&&(a.type=n),a},t.prototype.createWheelEvent=function(e){var n=this.allocateEvent(lh);this.copyWheelData(e,n),this.copyMouseData(e,n),this.copyData(e,n),n.nativeEvent=e.nativeEvent,n.originalEvent=e;var r=this.getExistedHTML(n);return n.target=r||this.isNativeEventFromCanvas(n)&&this.pickTarget(n),n},t.prototype.trackingData=function(e){return this.mappingState.trackingData[e]||(this.mappingState.trackingData[e]={pressTargetsByButton:{},clicksByButton:{},overTarget:null}),this.mappingState.trackingData[e]},t.prototype.cloneWheelEvent=function(e){var n=this.allocateEvent(lh);return n.nativeEvent=e.nativeEvent,n.originalEvent=e.originalEvent,this.copyWheelData(e,n),this.copyMouseData(e,n),this.copyData(e,n),n.target=e.target,n.path=e.composedPath().slice(),n.type=e.type,n},t.prototype.clonePointerEvent=function(e,n){var r=this.allocateEvent(ch);return r.nativeEvent=e.nativeEvent,r.originalEvent=e.originalEvent,this.copyPointerData(e,r),this.copyMouseData(e,r),this.copyData(e,r),r.target=e.target,r.path=e.composedPath().slice(),r.type=n??r.type,r},t.prototype.copyPointerData=function(e,n){n.pointerId=e.pointerId,n.width=e.width,n.height=e.height,n.isPrimary=e.isPrimary,n.pointerType=e.pointerType,n.pressure=e.pressure,n.tangentialPressure=e.tangentialPressure,n.tiltX=e.tiltX,n.tiltY=e.tiltY,n.twist=e.twist},t.prototype.copyMouseData=function(e,n){n.altKey=e.altKey,n.button=e.button,n.buttons=e.buttons,n.ctrlKey=e.ctrlKey,n.metaKey=e.metaKey,n.shiftKey=e.shiftKey,n.client.copyFrom(e.client),n.movement.copyFrom(e.movement),n.canvas.copyFrom(e.canvas),n.screen.copyFrom(e.screen),n.global.copyFrom(e.global),n.offset.copyFrom(e.offset)},t.prototype.copyWheelData=function(e,n){n.deltaMode=e.deltaMode,n.deltaX=e.deltaX,n.deltaY=e.deltaY,n.deltaZ=e.deltaZ},t.prototype.copyData=function(e,n){n.isTrusted=e.isTrusted,n.timeStamp=sh.now(),n.type=e.type,n.detail=e.detail,n.view=e.view,n.page.copyFrom(e.page),n.viewport.copyFrom(e.viewport)},t.prototype.allocateEvent=function(e){this.eventPool.has(e)||this.eventPool.set(e,[]);var n=this.eventPool.get(e).pop()||new e(this);return n.eventPhase=n.NONE,n.currentTarget=null,n.path=[],n.target=null,n},t.prototype.freeEvent=function(e){if(e.manager!==this)throw new Error("It is illegal to free an event not managed by this EventBoundary!");var n=e.constructor;this.eventPool.has(n)||this.eventPool.set(n,[]),this.eventPool.get(n).push(e)},t.prototype.notifyTarget=function(e,n){n=n??e.type;var r=e.eventPhase===e.CAPTURING_PHASE||e.eventPhase===e.AT_TARGET?"".concat(n,"capture"):n;this.notifyListeners(e,r),e.eventPhase===e.AT_TARGET&&this.notifyListeners(e,n)},t.prototype.notifyListeners=function(e,n){var r=e.currentTarget.emitter,i=r._events[n];if(i)if("fn"in i)i.once&&r.removeListener(n,i.fn,void 0,!0),i.fn.call(e.currentTarget||i.context,e);else for(var a=0;a=0;r--){var i=e[r];if(i===this.rootTarget||_e.isNode(i)&&i.parentNode===n)n=e[r];else break}return n},t.prototype.getCursor=function(e){for(var n=e;n;){var r=$4(n)&&n.getAttribute("cursor");if(r)return r;n=_e.isNode(n)&&n.parentNode}},t}(),mR=function(){function t(){}return t.prototype.getOrCreateCanvas=function(e,n){if(this.canvas)return this.canvas;if(e||H.offscreenCanvas)this.canvas=e||H.offscreenCanvas,this.context=this.canvas.getContext("2d",z({willReadFrequently:!0},n));else try{this.canvas=new window.OffscreenCanvas(0,0),this.context=this.canvas.getContext("2d",z({willReadFrequently:!0},n)),(!this.context||!this.context.measureText)&&(this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"))}catch{this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d",z({willReadFrequently:!0},n))}return this.canvas.width=10,this.canvas.height=10,this.canvas},t.prototype.getOrCreateContext=function(e,n){return this.context?this.context:(this.getOrCreateCanvas(e,n),this.context)},t}(),Qr;(function(t){t[t.CAMERA_CHANGED=0]="CAMERA_CHANGED",t[t.DISPLAY_OBJECT_CHANGED=1]="DISPLAY_OBJECT_CHANGED",t[t.NONE=2]="NONE"})(Qr||(Qr={}));var bR=function(){function t(e,n){this.globalRuntime=e,this.context=n,this.inited=!1,this.stats={total:0,rendered:0},this.zIndexCounter=0,this.hooks={init:new Ye,initAsync:new tR,dirtycheck:new Yf,cull:new Yf,beginFrame:new Ye,beforeRender:new Ye,render:new Ye,afterRender:new Ye,endFrame:new Ye,destroy:new Ye,pick:new eR,pickSync:new Yf,pointerDown:new Ye,pointerUp:new Ye,pointerMove:new Ye,pointerOut:new Ye,pointerOver:new Ye,pointerWheel:new Ye,pointerCancel:new Ye,click:new Ye}}return t.prototype.init=function(e){var n=this,r=z(z({},this.globalRuntime),this.context);this.context.renderingPlugins.forEach(function(i){i.apply(r,n.globalRuntime)}),this.hooks.init.call(),this.hooks.initAsync.getCallbacksNum()===0?(this.inited=!0,e()):this.hooks.initAsync.promise().then(function(){n.inited=!0,e()})},t.prototype.getStats=function(){return this.stats},t.prototype.disableDirtyRectangleRendering=function(){var e=this.context.config.renderer,n=e.getConfig().enableDirtyRectangleRendering;return!n||this.context.renderingContext.renderReasons.has(Qr.CAMERA_CHANGED)},t.prototype.render=function(e,n){var r=this;this.stats.total=0,this.stats.rendered=0,this.zIndexCounter=0;var i=this.context.renderingContext;if(this.globalRuntime.sceneGraphService.syncHierarchy(i.root),this.globalRuntime.sceneGraphService.triggerPendingEvents(),i.renderReasons.size&&this.inited){i.dirtyRectangleRenderingDisabled=this.disableDirtyRectangleRendering();var a=i.renderReasons.size===1&&i.renderReasons.has(Qr.CAMERA_CHANGED),o=!e.disableRenderHooks||!(e.disableRenderHooks&&a);o&&this.renderDisplayObject(i.root,e,i),this.hooks.beginFrame.call(),o&&i.renderListCurrentFrame.forEach(function(s){r.hooks.beforeRender.call(s),r.hooks.render.call(s),r.hooks.afterRender.call(s)}),this.hooks.endFrame.call(),i.renderListCurrentFrame=[],i.renderReasons.clear(),n()}},t.prototype.renderDisplayObject=function(e,n,r){var i=this,a=n.renderer.getConfig(),o=a.enableDirtyCheck,s=a.enableCulling;this.globalRuntime.enableCSSParsing&&this.globalRuntime.styleValueRegistry.recalc(e);var c=e.renderable,l=o?c.dirty||r.dirtyRectangleRenderingDisabled?e:null:e;if(l){var u=s?this.hooks.cull.call(l,this.context.camera):l;u&&(this.stats.rendered++,r.renderListCurrentFrame.push(u))}e.renderable.dirty=!1,e.sortable.renderOrder=this.zIndexCounter++,this.stats.total++;var f=e.sortable;f.dirty&&(this.sort(e,f),f.dirty=!1,f.dirtyChildren=[],f.dirtyReason=void 0),(f.sorted||e.childNodes).forEach(function(d){i.renderDisplayObject(d,n,r)})},t.prototype.sort=function(e,n){n.sorted&&n.dirtyReason!==$a.Z_INDEX_CHANGED?n.dirtyChildren.forEach(function(r){var i=e.childNodes.indexOf(r);if(i===-1){var a=n.sorted.indexOf(r);a>=0&&n.sorted.splice(a,1)}else if(n.sorted.length===0)n.sorted.push(r);else{var o=B4(n.sorted,r);n.sorted.splice(o,0,r)}}):n.sorted=e.childNodes.slice().sort(Rw)},t.prototype.destroy=function(){this.inited=!1,this.hooks.destroy.call(),this.globalRuntime.sceneGraphService.clearPendingEvents()},t.prototype.dirtify=function(){this.context.renderingContext.renderReasons.add(Qr.DISPLAY_OBJECT_CHANGED)},t}(),xR=/\[\s*(.*)=(.*)\s*\]/,wR=function(){function t(){}return t.prototype.selectOne=function(e,n){var r=this;if(e.startsWith("."))return n.find(function(s){return((s==null?void 0:s.classList)||[]).indexOf(r.getIdOrClassname(e))>-1});if(e.startsWith("#"))return n.find(function(s){return s.id===r.getIdOrClassname(e)});if(e.startsWith("[")){var i=this.getAttribute(e),a=i.name,o=i.value;return a?n.find(function(s){return n!==s&&(a==="name"?s.name===o:r.attributeToString(s,a)===o)}):null}else return n.find(function(s){return n!==s&&s.nodeName===e})},t.prototype.selectAll=function(e,n){var r=this;if(e.startsWith("."))return n.findAll(function(s){return n!==s&&((s==null?void 0:s.classList)||[]).indexOf(r.getIdOrClassname(e))>-1});if(e.startsWith("#"))return n.findAll(function(s){return n!==s&&s.id===r.getIdOrClassname(e)});if(e.startsWith("[")){var i=this.getAttribute(e),a=i.name,o=i.value;return a?n.findAll(function(s){return n!==s&&(a==="name"?s.name===o:r.attributeToString(s,a)===o)}):[]}else return n.findAll(function(s){return n!==s&&s.nodeName===e})},t.prototype.is=function(e,n){if(e.startsWith("."))return n.className===this.getIdOrClassname(e);if(e.startsWith("#"))return n.id===this.getIdOrClassname(e);if(e.startsWith("[")){var r=this.getAttribute(e),i=r.name,a=r.value;return i==="name"?n.name===a:this.attributeToString(n,i)===a}else return n.nodeName===e},t.prototype.getIdOrClassname=function(e){return e.substring(1)},t.prototype.getAttribute=function(e){var n=e.match(xR),r="",i="";return n&&n.length>2&&(r=n[1].replace(/"/g,""),i=n[2].replace(/"/g,"")),{name:r,value:i}},t.prototype.attributeToString=function(e,n){if(!e.getAttribute)return"";var r=e.getAttribute(n);return nt(r)?"":r.toString?r.toString():""},t}(),Gi=function(t){rt(e,t);function e(n,r,i,a,o,s,c,l){var u=t.call(this,null)||this;return u.relatedNode=r,u.prevValue=i,u.newValue=a,u.attrName=o,u.attrChange=s,u.prevParsedValue=c,u.newParsedValue=l,u.type=n,u}return e.ADDITION=2,e.MODIFICATION=1,e.REMOVAL=3,e}($u),ht;(function(t){t.REPARENT="reparent",t.DESTROY="destroy",t.ATTR_MODIFIED="DOMAttrModified",t.INSERTED="DOMNodeInserted",t.REMOVED="removed",t.MOUNTED="DOMNodeInsertedIntoDocument",t.UNMOUNTED="DOMNodeRemovedFromDocument",t.BOUNDS_CHANGED="bounds-changed",t.CULLED="culled"})(ht||(ht={}));function ry(t){var e=t.renderable;e&&(e.renderBoundsDirty=!0,e.boundsDirty=!0)}var OR=new Gi(ht.REPARENT,null,"","","",0,"",""),SR=function(){function t(e){var n=this;this.runtime=e,this.pendingEvents=[],this.boundsChangedEvent=new Dt(ht.BOUNDS_CHANGED),this.rotate=function(){var r=ve();return function(i,a,o,s){o===void 0&&(o=0),s===void 0&&(s=0),typeof a=="number"&&(a=St(a,o,s));var c=i.transformable;if(i.parentNode===null||!i.parentNode.transformable)n.rotateLocal(i,a);else{var l=ve();oc(l,a[0],a[1],a[2]);var u=n.getRotation(i),f=n.getRotation(i.parentNode);sc(r,f),Sf(r,r),qr(l,r,l),qr(c.localRotation,l,u),ml(c.localRotation,c.localRotation),n.dirtifyLocal(i,c)}}}(),this.rotateLocal=function(){var r=ve();return function(i,a,o,s){o===void 0&&(o=0),s===void 0&&(s=0),typeof a=="number"&&(a=St(a,o,s));var c=i.transformable;oc(r,a[0],a[1],a[2]),Zv(c.localRotation,c.localRotation,r),n.dirtifyLocal(i,c)}}(),this.setEulerAngles=function(){var r=ve();return function(i,a,o,s){o===void 0&&(o=0),s===void 0&&(s=0),typeof a=="number"&&(a=St(a,o,s));var c=i.transformable;if(i.parentNode===null||!i.parentNode.transformable)n.setLocalEulerAngles(i,a);else{oc(c.localRotation,a[0],a[1],a[2]);var l=n.getRotation(i.parentNode);sc(r,Sf(ve(),l)),Zv(c.localRotation,c.localRotation,r),n.dirtifyLocal(i,c)}}}(),this.translateLocal=function(){return function(r,i,a,o){a===void 0&&(a=0),o===void 0&&(o=0),typeof i=="number"&&(i=St(i,a,o));var s=r.transformable;vo(i,yt())||(OT(i,i,s.localRotation),ba(s.localPosition,s.localPosition,i),n.dirtifyLocal(r,s))}}(),this.setPosition=function(){var r=Nt(),i=yt();return function(a,o){var s=a.transformable;if(i[0]=o[0],i[1]=o[1],i[2]=o[2]||0,!vo(n.getPosition(a),i)){if(rn(s.position,i),a.parentNode===null||!a.parentNode.transformable)rn(s.localPosition,i);else{var c=a.parentNode.transformable;Ri(r,c.worldTransform),Wn(r,r),Oe(s.localPosition,i,r)}n.dirtifyLocal(a,s)}}}(),this.setLocalPosition=function(){var r=yt();return function(i,a){var o=i.transformable;r[0]=a[0],r[1]=a[1],r[2]=a[2]||0,!vo(o.localPosition,r)&&(rn(o.localPosition,r),n.dirtifyLocal(i,o))}}(),this.translate=function(){var r=yt(),i=yt(),a=yt();return function(o,s,c,l){c===void 0&&(c=0),l===void 0&&(l=0),typeof s=="number"&&(s=Gn(i,s,c,l)),!vo(s,r)&&(ba(a,n.getPosition(o),s),n.setPosition(o,a))}}(),this.setRotation=function(){var r=ve();return function(i,a,o,s,c){var l=i.transformable;if(typeof a=="number"&&(a=_f(a,o,s,c)),i.parentNode===null||!i.parentNode.transformable)n.setLocalRotation(i,a);else{var u=n.getRotation(i.parentNode);sc(r,u),Sf(r,r),qr(l.localRotation,r,a),ml(l.localRotation,l.localRotation),n.dirtifyLocal(i,l)}}},this.displayObjectDependencyMap=new WeakMap,this.calcLocalTransform=function(){var r=Nt(),i=yt(),a=_f(0,0,0,1);return function(o){var s=o.localSkew[0]!==0||o.localSkew[1]!==0;if(s){if(zo(o.localTransform,o.localRotation,o.localPosition,St(1,1,1),o.origin),o.localSkew[0]!==0||o.localSkew[1]!==0){var c=Rs(r);c[4]=Math.tan(o.localSkew[0]),c[1]=Math.tan(o.localSkew[1]),$e(o.localTransform,o.localTransform,c)}var l=zo(r,a,i,o.localScale,o.origin);$e(o.localTransform,o.localTransform,l)}else zo(o.localTransform,o.localRotation,o.localPosition,o.localScale,o.origin)}}()}return t.prototype.matches=function(e,n){return this.runtime.sceneGraphSelector.is(e,n)},t.prototype.querySelector=function(e,n){return this.runtime.sceneGraphSelector.selectOne(e,n)},t.prototype.querySelectorAll=function(e,n){return this.runtime.sceneGraphSelector.selectAll(e,n)},t.prototype.attach=function(e,n,r){var i,a,o=!1;e.parentNode&&(o=e.parentNode!==n,this.detach(e)),e.parentNode=n,nt(r)?e.parentNode.childNodes.push(e):e.parentNode.childNodes.splice(r,0,e);var s=n.sortable;(!((i=s==null?void 0:s.sorted)===null||i===void 0)&&i.length||!((a=e.style)===null||a===void 0)&&a.zIndex)&&(s.dirtyChildren.indexOf(e)===-1&&s.dirtyChildren.push(e),s.dirty=!0,s.dirtyReason=$a.ADDED);var c=e.transformable;c&&this.dirtifyWorld(e,c),c.frozen&&this.unfreezeParentToRoot(e),o&&e.dispatchEvent(OR)},t.prototype.detach=function(e){var n,r;if(e.parentNode){var i=e.transformable,a=e.parentNode.sortable;(!((n=a==null?void 0:a.sorted)===null||n===void 0)&&n.length||!((r=e.style)===null||r===void 0)&&r.zIndex)&&(a.dirtyChildren.indexOf(e)===-1&&a.dirtyChildren.push(e),a.dirty=!0,a.dirtyReason=$a.REMOVED);var o=e.parentNode.childNodes.indexOf(e);o>-1&&e.parentNode.childNodes.splice(o,1),i&&this.dirtifyWorld(e,i),e.parentNode=null}},t.prototype.getOrigin=function(e){return e.transformable.origin},t.prototype.setOrigin=function(e,n,r,i){r===void 0&&(r=0),i===void 0&&(i=0),typeof n=="number"&&(n=[n,r,i]);var a=e.transformable;if(!(n[0]===a.origin[0]&&n[1]===a.origin[1]&&n[2]===a.origin[2])){var o=a.origin;o[0]=n[0],o[1]=n[1],o[2]=n[2]||0,this.dirtifyLocal(e,a)}},t.prototype.setLocalEulerAngles=function(e,n,r,i){r===void 0&&(r=0),i===void 0&&(i=0),typeof n=="number"&&(n=St(n,r,i));var a=e.transformable;oc(a.localRotation,n[0],n[1],n[2]),this.dirtifyLocal(e,a)},t.prototype.scaleLocal=function(e,n){var r=e.transformable;xT(r.localScale,r.localScale,St(n[0],n[1],n[2]||1)),this.dirtifyLocal(e,r)},t.prototype.setLocalScale=function(e,n){var r=e.transformable,i=St(n[0],n[1],n[2]||r.localScale[2]);vo(i,r.localScale)||(rn(r.localScale,i),this.dirtifyLocal(e,r))},t.prototype.setLocalRotation=function(e,n,r,i,a){typeof n=="number"&&(n=_f(n,r,i,a));var o=e.transformable;sc(o.localRotation,n),this.dirtifyLocal(e,o)},t.prototype.setLocalSkew=function(e,n,r){typeof n=="number"&&(n=AT(n,r));var i=e.transformable;kT(i.localSkew,n),this.dirtifyLocal(e,i)},t.prototype.dirtifyLocal=function(e,n){n.localDirtyFlag||(n.localDirtyFlag=!0,n.dirtyFlag||this.dirtifyWorld(e,n))},t.prototype.dirtifyWorld=function(e,n){n.dirtyFlag||this.unfreezeParentToRoot(e),this.dirtifyWorldInternal(e,n),this.dirtifyToRoot(e,!0)},t.prototype.triggerPendingEvents=function(){var e=this,n=new Set,r=function(i,a){i.isConnected&&!n.has(i.entity)&&(e.boundsChangedEvent.detail=a,e.boundsChangedEvent.target=i,i.isMutationObserved?i.dispatchEvent(e.boundsChangedEvent):i.ownerDocument.defaultView.dispatchEvent(e.boundsChangedEvent,!0),n.add(i.entity))};this.pendingEvents.forEach(function(i){var a=N(i,2),o=a[0],s=a[1];s.affectChildren?o.forEach(function(c){r(c,s)}):r(o,s)}),this.clearPendingEvents(),n.clear()},t.prototype.clearPendingEvents=function(){this.pendingEvents=[]},t.prototype.dirtifyToRoot=function(e,n){n===void 0&&(n=!1);var r=e;for(r.renderable&&(r.renderable.dirty=!0);r;)ry(r),r=r.parentNode;n&&e.forEach(function(i){ry(i)}),this.informDependentDisplayObjects(e),this.pendingEvents.push([e,{affectChildren:n}])},t.prototype.updateDisplayObjectDependency=function(e,n,r,i){if(n&&n!==r){var a=this.displayObjectDependencyMap.get(n);if(a&&a[e]){var o=a[e].indexOf(i);a[e].splice(o,1)}}if(r){var s=this.displayObjectDependencyMap.get(r);s||(this.displayObjectDependencyMap.set(r,{}),s=this.displayObjectDependencyMap.get(r)),s[e]||(s[e]=[]),s[e].push(i)}},t.prototype.informDependentDisplayObjects=function(e){var n=this,r=this.displayObjectDependencyMap.get(e);r&&Object.keys(r).forEach(function(i){r[i].forEach(function(a){n.dirtifyToRoot(a,!0),a.dispatchEvent(new Gi(ht.ATTR_MODIFIED,a,n,n,i,Gi.MODIFICATION,n,n)),a.isCustomElement&&a.isConnected&&a.attributeChangedCallback&&a.attributeChangedCallback(i,n,n)})})},t.prototype.getPosition=function(e){var n=e.transformable;return gl(n.position,this.getWorldTransform(e,n))},t.prototype.getRotation=function(e){var n=e.transformable;return yl(n.rotation,this.getWorldTransform(e,n))},t.prototype.getScale=function(e){var n=e.transformable;return Aa(n.scaling,this.getWorldTransform(e,n))},t.prototype.getWorldTransform=function(e,n){return n===void 0&&(n=e.transformable),!n.localDirtyFlag&&!n.dirtyFlag||(e.parentNode&&e.parentNode.transformable&&this.getWorldTransform(e.parentNode),this.sync(e,n)),n.worldTransform},t.prototype.getLocalPosition=function(e){return e.transformable.localPosition},t.prototype.getLocalRotation=function(e){return e.transformable.localRotation},t.prototype.getLocalScale=function(e){return e.transformable.localScale},t.prototype.getLocalSkew=function(e){return e.transformable.localSkew},t.prototype.getLocalTransform=function(e){var n=e.transformable;return n.localDirtyFlag&&(this.calcLocalTransform(n),n.localDirtyFlag=!1),n.localTransform},t.prototype.setLocalTransform=function(e,n){var r=gl(yt(),n),i=yl(ve(),n),a=Aa(yt(),n);this.setLocalScale(e,a),this.setLocalPosition(e,r),this.setLocalRotation(e,i)},t.prototype.resetLocalTransform=function(e){this.setLocalScale(e,[1,1,1]),this.setLocalPosition(e,[0,0,0]),this.setLocalEulerAngles(e,[0,0,0]),this.setLocalSkew(e,[0,0])},t.prototype.getTransformedGeometryBounds=function(e,n,r){n===void 0&&(n=!1);var i=this.getGeometryBounds(e,n);if(be.isEmpty(i))return null;var a=r||new be;return a.setFromTransformedAABB(i,this.getWorldTransform(e)),a},t.prototype.getGeometryBounds=function(e,n){n===void 0&&(n=!1);var r=e.geometry,i=n?r.renderBounds:r.contentBounds||null;return i||new be},t.prototype.getBounds=function(e,n){var r=this;n===void 0&&(n=!1);var i=e.renderable;if(!i.boundsDirty&&!n&&i.bounds)return i.bounds;if(!i.renderBoundsDirty&&n&&i.renderBounds)return i.renderBounds;var a=n?i.renderBounds:i.bounds,o=this.getTransformedGeometryBounds(e,n,a),s=e.childNodes;if(s.forEach(function(u){var f=r.getBounds(u,n);f&&(o?o.add(f):(o=a||new be,o.update(f.center,f.halfExtents)))}),n){var c=Iw(e);if(c){var l=c.parsedStyle.clipPath.getBounds(n);o?l&&(o=l.intersection(o)):o=l}}return o||(o=new be),o&&(n?i.renderBounds=o:i.bounds=o),n?i.renderBoundsDirty=!1:i.boundsDirty=!1,o},t.prototype.getLocalBounds=function(e){if(e.parentNode){var n=Nt();e.parentNode.transformable&&(n=Wn(Nt(),this.getWorldTransform(e.parentNode)));var r=this.getBounds(e);if(!be.isEmpty(r)){var i=new be;return i.setFromTransformedAABB(r,n),i}}return this.getBounds(e)},t.prototype.getBoundingClientRect=function(e){var n,r,i,a=this.getGeometryBounds(e);be.isEmpty(a)||(i=new be,i.setFromTransformedAABB(a,this.getWorldTransform(e)));var o=(r=(n=e.ownerDocument)===null||n===void 0?void 0:n.defaultView)===null||r===void 0?void 0:r.getContextService().getBoundingClientRect();if(i){var s=N(i.getMin(),2),c=s[0],l=s[1],u=N(i.getMax(),2),f=u[0],d=u[1];return new Fi(c+((o==null?void 0:o.left)||0),l+((o==null?void 0:o.top)||0),f-c,d-l)}return new Fi((o==null?void 0:o.left)||0,(o==null?void 0:o.top)||0,0,0)},t.prototype.dirtifyWorldInternal=function(e,n){var r=this;if(!n.dirtyFlag){n.dirtyFlag=!0,n.frozen=!1,e.childNodes.forEach(function(a){var o=a.transformable;o.dirtyFlag||r.dirtifyWorldInternal(a,o)});var i=e.renderable;i&&(i.renderBoundsDirty=!0,i.boundsDirty=!0,i.dirty=!0)}},t.prototype.syncHierarchy=function(e){var n=e.transformable;if(!n.frozen){n.frozen=!0,(n.localDirtyFlag||n.dirtyFlag)&&this.sync(e,n);for(var r=e.childNodes,i=0;ic;--h){for(var g=0;g=l){n.isOverflowing=!0;break}g=0,p[v]="";continue}if(g>0&&g+M>d){if(v+1>=l){if(n.isOverflowing=!0,b>0&&b<=d){for(var E=p[v].length,P=0,T=E,A=0;Ad){T=A;break}P+=k}p[v]=(p[v]||"").slice(0,T)+h}break}if(v++,g=0,p[v]="",this.isBreakingSpace(O))continue;this.canBreakInLastChar(O)||(p=this.trimToBreakable(p),g=this.sumTextWidthByCache(p[v]||"",y)),this.shouldBreakByKinsokuShorui(O,_)&&(p=this.trimByKinsokuShorui(p),g+=m(S||""))}g+=M,p[v]=(p[v]||"")+O}return p.join(` +import{X as ip,d as vk,v as gk,a as yk,r as Bv,D as mk,c as bf,j as Qo,t as xf,n as yi,b as Fn,w as On,e as ho,P as Fv,o as po,L as zv,M as Gv,J as Yv,I as Wv,f as Hv,p as bk,h as xk,_ as wk}from"./index-VXjVsiiO.js";import{g as Ok,a as Sk}from"./serverInfo-UzRr_R0Z.js";import"./request-Cs8TyifY.js";const _b=()=>[["cartesian"]];_b.props={};function _k(t,e){return t=t%(2*Math.PI),e=e%(2*Math.PI),t<0&&(t=2*Math.PI+t),e<0&&(e=2*Math.PI+e),t>=e&&(e=e+2*Math.PI),{startAngle:t,endAngle:e}}const Mb=(t={})=>{const e={startAngle:-Math.PI/2,endAngle:Math.PI*3/2,innerRadius:0,outerRadius:1},n=Object.assign(Object.assign({},e),t);return Object.assign(Object.assign({},n),_k(n.startAngle,n.endAngle))},Cs=t=>{const{startAngle:e,endAngle:n,innerRadius:r,outerRadius:i}=Mb(t);return[["translate",0,.5],["reflect.y"],["translate",0,-.5],["polar",e,n,r,i]]};Cs.props={};const ap=()=>[["transpose"],["translate",.5,.5],["reflect.x"],["translate",-.5,-.5]];ap.props={transform:!0};const Mk=(t={})=>{const e={startAngle:-Math.PI/2,endAngle:Math.PI*3/2,innerRadius:0,outerRadius:1};return Object.assign(Object.assign({},e),t)},Eb=t=>{const{startAngle:e,endAngle:n,innerRadius:r,outerRadius:i}=Mk(t);return[...ap(),...Cs({startAngle:e,endAngle:n,innerRadius:r,outerRadius:i})]};Eb.props={};const Pb=(t={})=>{const e={startAngle:-Math.PI/2,endAngle:Math.PI*3/2,innerRadius:0,outerRadius:1};return Object.assign(Object.assign({},e),t)},op=t=>{const{startAngle:e,endAngle:n,innerRadius:r,outerRadius:i}=Pb(t);return[["transpose"],["translate",.5,.5],["reflect"],["translate",-.5,-.5],...Cs({startAngle:e,endAngle:n,innerRadius:r,outerRadius:i})]};op.props={};const sp=()=>[["parallel",0,1,0,1]];sp.props={};const Ab=({focusX:t=0,focusY:e=0,distortionX:n=2,distortionY:r=2,visual:i=!1})=>[["fisheye",t,e,n,r,i]];Ab.props={transform:!0};const kb=t=>{const{startAngle:e=-Math.PI/2,endAngle:n=Math.PI*3/2,innerRadius:r=0,outerRadius:i=1}=t;return[...sp(),...Cs({startAngle:e,endAngle:n,innerRadius:r,outerRadius:i})]};kb.props={};const Tb=({value:t})=>e=>e.map(()=>t);Tb.props={};const Cb=({value:t})=>e=>e.map(t);Cb.props={};const Lb=({value:t})=>e=>e.map(n=>n[t]);Lb.props={};const Nb=({value:t})=>()=>t;Nb.props={};var fl=function(t){return t!==null&&typeof t!="function"&&isFinite(t.length)};const Ve=function(t){return typeof t=="function"};var nt=function(t){return t==null},Ek={}.toString,Ls=function(t,e){return Ek.call(t)==="[object "+e+"]"};const Le=function(t){return Array.isArray?Array.isArray(t):Ls(t,"Array")},ki=function(t){var e=typeof t;return t!==null&&e==="object"||e==="function"};function cp(t,e){if(t){var n;if(Le(t))for(var r=0,i=t.length;rn?n:t},de=function(t){return Ls(t,"Number")},Tk=1e-5;function Fo(t,e,n){return n===void 0&&(n=Tk),Math.abs(t-e)r&&(n=a,r=o)}return n}},Lk=function(t,e){if(Le(t)){for(var n,r=1/0,i=0;ii&&(r=n,o(1),++e),n[s]=c}function o(s){e=0,n=Object.create(null),s||(r=Object.create(null))}return o(),{clear:o,has:function(s){return n[s]!==void 0||r[s]!==void 0},get:function(s){var c=n[s];if(c!==void 0)return c;if((c=r[s])!==void 0)return a(s,c),c},set:function(s,c){n[s]!==void 0?n[s]=c:a(s,c)}}}const Ik=function(t,e,n){if(n===void 0&&(n=128),!Ve(t))throw new TypeError("Expected a function");var r=function(){for(var i=[],a=0;ae?(r&&(clearTimeout(r),r=null),s=u,o=t.apply(i,a),r||(i=a=null)):!r&&n.trailing!==!1&&(r=setTimeout(c,f)),o};return l.cancel=function(){clearTimeout(r),s=0,r=i=a=null},l},wf=function(){};function Uv(t){return nt(t)?0:fl(t)?t.length:Object.keys(t).length}var Zt=1e-6,he=typeof Float32Array<"u"?Float32Array:Array;Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)});function Ja(){var t=new he(9);return he!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function zk(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function Gk(t){var e=new he(9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function Yk(t,e,n,r,i,a,o,s,c){var l=new he(9);return l[0]=t,l[1]=e,l[2]=n,l[3]=r,l[4]=i,l[5]=a,l[6]=o,l[7]=s,l[8]=c,l}function Wk(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],c=e[6],l=e[7],u=e[8],f=u*o-s*l,d=-u*a+s*c,h=l*a-o*c,p=n*f+r*d+i*h;return p?(p=1/p,t[0]=f*p,t[1]=(-u*r+i*l)*p,t[2]=(s*r-i*o)*p,t[3]=d*p,t[4]=(u*n-i*c)*p,t[5]=(-s*n+i*a)*p,t[6]=h*p,t[7]=(-l*n+r*c)*p,t[8]=(o*n-r*a)*p,t):null}function Hk(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],c=e[5],l=e[6],u=e[7],f=e[8],d=n[0],h=n[1],p=n[2],v=n[3],g=n[4],y=n[5],m=n[6],b=n[7],x=n[8];return t[0]=d*r+h*o+p*l,t[1]=d*i+h*s+p*u,t[2]=d*a+h*c+p*f,t[3]=v*r+g*o+y*l,t[4]=v*i+g*s+y*u,t[5]=v*a+g*c+y*f,t[6]=m*r+b*o+x*l,t[7]=m*i+b*s+x*u,t[8]=m*a+b*c+x*f,t}function Vk(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t}function Xk(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function Uk(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}var qk=Hk;function Nt(){var t=new he(16);return he!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}function lp(t){var e=new he(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function Ri(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function Kk(t,e,n,r,i,a,o,s,c,l,u,f,d,h,p,v){var g=new he(16);return g[0]=t,g[1]=e,g[2]=n,g[3]=r,g[4]=i,g[5]=a,g[6]=o,g[7]=s,g[8]=c,g[9]=l,g[10]=u,g[11]=f,g[12]=d,g[13]=h,g[14]=p,g[15]=v,g}function Td(t,e,n,r,i,a,o,s,c,l,u,f,d,h,p,v,g){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=c,t[8]=l,t[9]=u,t[10]=f,t[11]=d,t[12]=h,t[13]=p,t[14]=v,t[15]=g,t}function Rs(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function zb(t,e){if(t===e){var n=e[1],r=e[2],i=e[3],a=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=a,t[11]=e[14],t[12]=i,t[13]=o,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function Wn(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],c=e[6],l=e[7],u=e[8],f=e[9],d=e[10],h=e[11],p=e[12],v=e[13],g=e[14],y=e[15],m=n*s-r*o,b=n*c-i*o,x=n*l-a*o,w=r*c-i*s,O=r*l-a*s,S=i*l-a*c,_=u*v-f*p,M=u*g-d*p,E=u*y-h*p,P=f*g-d*v,T=f*y-h*v,A=d*y-h*g,k=m*A-b*T+x*P+w*E-O*M+S*_;return k?(k=1/k,t[0]=(s*A-c*T+l*P)*k,t[1]=(i*T-r*A-a*P)*k,t[2]=(v*S-g*O+y*w)*k,t[3]=(d*O-f*S-h*w)*k,t[4]=(c*E-o*A-l*M)*k,t[5]=(n*A-i*E+a*M)*k,t[6]=(g*x-p*S-y*b)*k,t[7]=(u*S-d*x+h*b)*k,t[8]=(o*T-s*E+l*_)*k,t[9]=(r*E-n*T-a*_)*k,t[10]=(p*O-v*x+y*m)*k,t[11]=(f*x-u*O-h*m)*k,t[12]=(s*M-o*P-c*_)*k,t[13]=(n*P-r*M+i*_)*k,t[14]=(v*b-p*w-g*m)*k,t[15]=(u*w-f*b+d*m)*k,t):null}function Zk(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],c=e[6],l=e[7],u=e[8],f=e[9],d=e[10],h=e[11],p=e[12],v=e[13],g=e[14],y=e[15];return t[0]=s*(d*y-h*g)-f*(c*y-l*g)+v*(c*h-l*d),t[1]=-(r*(d*y-h*g)-f*(i*y-a*g)+v*(i*h-a*d)),t[2]=r*(c*y-l*g)-s*(i*y-a*g)+v*(i*l-a*c),t[3]=-(r*(c*h-l*d)-s*(i*h-a*d)+f*(i*l-a*c)),t[4]=-(o*(d*y-h*g)-u*(c*y-l*g)+p*(c*h-l*d)),t[5]=n*(d*y-h*g)-u*(i*y-a*g)+p*(i*h-a*d),t[6]=-(n*(c*y-l*g)-o*(i*y-a*g)+p*(i*l-a*c)),t[7]=n*(c*h-l*d)-o*(i*h-a*d)+u*(i*l-a*c),t[8]=o*(f*y-h*v)-u*(s*y-l*v)+p*(s*h-l*f),t[9]=-(n*(f*y-h*v)-u*(r*y-a*v)+p*(r*h-a*f)),t[10]=n*(s*y-l*v)-o*(r*y-a*v)+p*(r*l-a*s),t[11]=-(n*(s*h-l*f)-o*(r*h-a*f)+u*(r*l-a*s)),t[12]=-(o*(f*g-d*v)-u*(s*g-c*v)+p*(s*d-c*f)),t[13]=n*(f*g-d*v)-u*(r*g-i*v)+p*(r*d-i*f),t[14]=-(n*(s*g-c*v)-o*(r*g-i*v)+p*(r*c-i*s)),t[15]=n*(s*d-c*f)-o*(r*d-i*f)+u*(r*c-i*s),t}function Gb(t){var e=t[0],n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],c=t[7],l=t[8],u=t[9],f=t[10],d=t[11],h=t[12],p=t[13],v=t[14],g=t[15],y=e*o-n*a,m=e*s-r*a,b=e*c-i*a,x=n*s-r*o,w=n*c-i*o,O=r*c-i*s,S=l*p-u*h,_=l*v-f*h,M=l*g-d*h,E=u*v-f*p,P=u*g-d*p,T=f*g-d*v;return y*T-m*P+b*E+x*M-w*_+O*S}function $e(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],c=e[5],l=e[6],u=e[7],f=e[8],d=e[9],h=e[10],p=e[11],v=e[12],g=e[13],y=e[14],m=e[15],b=n[0],x=n[1],w=n[2],O=n[3];return t[0]=b*r+x*s+w*f+O*v,t[1]=b*i+x*c+w*d+O*g,t[2]=b*a+x*l+w*h+O*y,t[3]=b*o+x*u+w*p+O*m,b=n[4],x=n[5],w=n[6],O=n[7],t[4]=b*r+x*s+w*f+O*v,t[5]=b*i+x*c+w*d+O*g,t[6]=b*a+x*l+w*h+O*y,t[7]=b*o+x*u+w*p+O*m,b=n[8],x=n[9],w=n[10],O=n[11],t[8]=b*r+x*s+w*f+O*v,t[9]=b*i+x*c+w*d+O*g,t[10]=b*a+x*l+w*h+O*y,t[11]=b*o+x*u+w*p+O*m,b=n[12],x=n[13],w=n[14],O=n[15],t[12]=b*r+x*s+w*f+O*v,t[13]=b*i+x*c+w*d+O*g,t[14]=b*a+x*l+w*h+O*y,t[15]=b*o+x*u+w*p+O*m,t}function Ur(t,e,n){var r=n[0],i=n[1],a=n[2],o,s,c,l,u,f,d,h,p,v,g,y;return e===t?(t[12]=e[0]*r+e[4]*i+e[8]*a+e[12],t[13]=e[1]*r+e[5]*i+e[9]*a+e[13],t[14]=e[2]*r+e[6]*i+e[10]*a+e[14],t[15]=e[3]*r+e[7]*i+e[11]*a+e[15]):(o=e[0],s=e[1],c=e[2],l=e[3],u=e[4],f=e[5],d=e[6],h=e[7],p=e[8],v=e[9],g=e[10],y=e[11],t[0]=o,t[1]=s,t[2]=c,t[3]=l,t[4]=u,t[5]=f,t[6]=d,t[7]=h,t[8]=p,t[9]=v,t[10]=g,t[11]=y,t[12]=o*r+u*i+p*a+e[12],t[13]=s*r+f*i+v*a+e[13],t[14]=c*r+d*i+g*a+e[14],t[15]=l*r+h*i+y*a+e[15]),t}function vl(t,e,n){var r=n[0],i=n[1],a=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function Qk(t,e,n,r){var i=r[0],a=r[1],o=r[2],s=Math.hypot(i,a,o),c,l,u,f,d,h,p,v,g,y,m,b,x,w,O,S,_,M,E,P,T,A,k,C;return s0?(n[0]=(s*o+u*r+c*a-l*i)*2/f,n[1]=(c*o+u*i+l*r-s*a)*2/f,n[2]=(l*o+u*a+s*i-c*r)*2/f):(n[0]=(s*o+u*r+c*a-l*i)*2,n[1]=(c*o+u*i+l*r-s*a)*2,n[2]=(l*o+u*a+s*i-c*r)*2),Hb(t,e,n),t}function gl(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function Aa(t,e){var n=e[0],r=e[1],i=e[2],a=e[4],o=e[5],s=e[6],c=e[8],l=e[9],u=e[10];return t[0]=Math.hypot(n,r,i),t[1]=Math.hypot(a,o,s),t[2]=Math.hypot(c,l,u),t}function yl(t,e){var n=new he(3);Aa(n,e);var r=1/n[0],i=1/n[1],a=1/n[2],o=e[0]*r,s=e[1]*i,c=e[2]*a,l=e[4]*r,u=e[5]*i,f=e[6]*a,d=e[8]*r,h=e[9]*i,p=e[10]*a,v=o+u+p,g=0;return v>0?(g=Math.sqrt(v+1)*2,t[3]=.25*g,t[0]=(f-h)/g,t[1]=(d-c)/g,t[2]=(s-l)/g):o>u&&o>p?(g=Math.sqrt(1+o-u-p)*2,t[3]=(f-h)/g,t[0]=.25*g,t[1]=(s+l)/g,t[2]=(d+c)/g):u>p?(g=Math.sqrt(1+u-o-p)*2,t[3]=(d-c)/g,t[0]=(s+l)/g,t[1]=.25*g,t[2]=(f+h)/g):(g=Math.sqrt(1+p-o-u)*2,t[3]=(s-l)/g,t[0]=(d+c)/g,t[1]=(f+h)/g,t[2]=.25*g),t}function aT(t,e,n,r){var i=e[0],a=e[1],o=e[2],s=e[3],c=i+i,l=a+a,u=o+o,f=i*c,d=i*l,h=i*u,p=a*l,v=a*u,g=o*u,y=s*c,m=s*l,b=s*u,x=r[0],w=r[1],O=r[2];return t[0]=(1-(p+g))*x,t[1]=(d+b)*x,t[2]=(h-m)*x,t[3]=0,t[4]=(d-b)*w,t[5]=(1-(f+g))*w,t[6]=(v+y)*w,t[7]=0,t[8]=(h+m)*O,t[9]=(v-y)*O,t[10]=(1-(f+p))*O,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function zo(t,e,n,r,i){var a=e[0],o=e[1],s=e[2],c=e[3],l=a+a,u=o+o,f=s+s,d=a*l,h=a*u,p=a*f,v=o*u,g=o*f,y=s*f,m=c*l,b=c*u,x=c*f,w=r[0],O=r[1],S=r[2],_=i[0],M=i[1],E=i[2],P=(1-(v+y))*w,T=(h+x)*w,A=(p-b)*w,k=(h-x)*O,C=(1-(d+y))*O,L=(g+m)*O,I=(p+b)*S,R=(g-m)*S,j=(1-(d+v))*S;return t[0]=P,t[1]=T,t[2]=A,t[3]=0,t[4]=k,t[5]=C,t[6]=L,t[7]=0,t[8]=I,t[9]=R,t[10]=j,t[11]=0,t[12]=n[0]+_-(P*_+k*M+I*E),t[13]=n[1]+M-(T*_+C*M+R*E),t[14]=n[2]+E-(A*_+L*M+j*E),t[15]=1,t}function dp(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n+n,s=r+r,c=i+i,l=n*o,u=r*o,f=r*s,d=i*o,h=i*s,p=i*c,v=a*o,g=a*s,y=a*c;return t[0]=1-f-p,t[1]=u+y,t[2]=d-g,t[3]=0,t[4]=u-y,t[5]=1-l-p,t[6]=h+v,t[7]=0,t[8]=d+g,t[9]=h-v,t[10]=1-l-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function oT(t,e,n,r,i,a,o){var s=1/(n-e),c=1/(i-r),l=1/(a-o);return t[0]=a*2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a*2*c,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(i+r)*c,t[10]=(o+a)*l,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*a*2*l,t[15]=0,t}function Vb(t,e,n,r,i){var a=1/Math.tan(e/2),o;return t[0]=a/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,i!=null&&i!==1/0?(o=1/(r-i),t[10]=(i+r)*o,t[14]=2*i*r*o):(t[10]=-1,t[14]=-2*r),t}var sT=Vb;function cT(t,e,n,r,i){var a=1/Math.tan(e/2),o;return t[0]=a/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,i!=null&&i!==1/0?(o=1/(r-i),t[10]=i*o,t[14]=i*r*o):(t[10]=-1,t[14]=-r),t}function lT(t,e,n,r){var i=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),c=2/(o+s),l=2/(i+a);return t[0]=c,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l,t[6]=0,t[7]=0,t[8]=-((o-s)*c*.5),t[9]=(i-a)*l*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t}function Xb(t,e,n,r,i,a,o){var s=1/(e-n),c=1/(r-i),l=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*l,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*c,t[14]=(o+a)*l,t[15]=1,t}var Ub=Xb;function qb(t,e,n,r,i,a,o){var s=1/(e-n),c=1/(r-i),l=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=l,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*c,t[14]=a*l,t[15]=1,t}function Kb(t,e,n,r){var i,a,o,s,c,l,u,f,d,h,p=e[0],v=e[1],g=e[2],y=r[0],m=r[1],b=r[2],x=n[0],w=n[1],O=n[2];return Math.abs(p-x)0&&(h=1/Math.sqrt(h),u*=h,f*=h,d*=h);var p=c*d-l*f,v=l*u-s*d,g=s*f-c*u;return h=p*p+v*v+g*g,h>0&&(h=1/Math.sqrt(h),p*=h,v*=h,g*=h),t[0]=p,t[1]=v,t[2]=g,t[3]=0,t[4]=f*g-d*v,t[5]=d*p-u*g,t[6]=u*v-f*p,t[7]=0,t[8]=u,t[9]=f,t[10]=d,t[11]=0,t[12]=i,t[13]=a,t[14]=o,t[15]=1,t}function fT(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"}function dT(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function hT(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t}function Zb(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function pT(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t}function vT(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t}function gT(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function yT(t,e){var n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8],f=t[9],d=t[10],h=t[11],p=t[12],v=t[13],g=t[14],y=t[15],m=e[0],b=e[1],x=e[2],w=e[3],O=e[4],S=e[5],_=e[6],M=e[7],E=e[8],P=e[9],T=e[10],A=e[11],k=e[12],C=e[13],L=e[14],I=e[15];return Math.abs(n-m)<=Zt*Math.max(1,Math.abs(n),Math.abs(m))&&Math.abs(r-b)<=Zt*Math.max(1,Math.abs(r),Math.abs(b))&&Math.abs(i-x)<=Zt*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(a-w)<=Zt*Math.max(1,Math.abs(a),Math.abs(w))&&Math.abs(o-O)<=Zt*Math.max(1,Math.abs(o),Math.abs(O))&&Math.abs(s-S)<=Zt*Math.max(1,Math.abs(s),Math.abs(S))&&Math.abs(c-_)<=Zt*Math.max(1,Math.abs(c),Math.abs(_))&&Math.abs(l-M)<=Zt*Math.max(1,Math.abs(l),Math.abs(M))&&Math.abs(u-E)<=Zt*Math.max(1,Math.abs(u),Math.abs(E))&&Math.abs(f-P)<=Zt*Math.max(1,Math.abs(f),Math.abs(P))&&Math.abs(d-T)<=Zt*Math.max(1,Math.abs(d),Math.abs(T))&&Math.abs(h-A)<=Zt*Math.max(1,Math.abs(h),Math.abs(A))&&Math.abs(p-k)<=Zt*Math.max(1,Math.abs(p),Math.abs(k))&&Math.abs(v-C)<=Zt*Math.max(1,Math.abs(v),Math.abs(C))&&Math.abs(g-L)<=Zt*Math.max(1,Math.abs(g),Math.abs(L))&&Math.abs(y-I)<=Zt*Math.max(1,Math.abs(y),Math.abs(I))}var Qb=$e,mT=Zb;const bT=Object.freeze(Object.defineProperty({__proto__:null,add:hT,adjoint:Zk,clone:lp,copy:Ri,create:Nt,determinant:Gb,equals:yT,exactEquals:gT,frob:dT,fromQuat:dp,fromQuat2:iT,fromRotation:tT,fromRotationTranslation:Hb,fromRotationTranslationScale:aT,fromRotationTranslationScaleOrigin:zo,fromScaling:fp,fromTranslation:up,fromValues:Kk,fromXRotation:eT,fromYRotation:nT,fromZRotation:rT,frustum:oT,getRotation:yl,getScaling:Aa,getTranslation:gl,identity:Rs,invert:Wn,lookAt:Kb,mul:Qb,multiply:$e,multiplyScalar:pT,multiplyScalarAndAdd:vT,ortho:Ub,orthoNO:Xb,orthoZO:qb,perspective:sT,perspectiveFromFieldOfView:lT,perspectiveNO:Vb,perspectiveZO:cT,rotate:Qk,rotateX:Yb,rotateY:Wb,rotateZ:Jk,scale:vl,set:Td,str:fT,sub:mT,subtract:Zb,targetTo:uT,translate:Ur,transpose:zb},Symbol.toStringTag,{value:"Module"}));function yt(){var t=new he(3);return he!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function br(t){var e=new he(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function wr(t){var e=t[0],n=t[1],r=t[2];return Math.hypot(e,n,r)}function St(t,e,n){var r=new he(3);return r[0]=t,r[1]=e,r[2]=n,r}function rn(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function Gn(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function ba(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function qv(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function xT(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function Cd(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function wT(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.hypot(n,r,i)}function Ti(t,e){var n=e[0],r=e[1],i=e[2],a=n*n+r*r+i*i;return a>0&&(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t}function nr(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function Qc(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[0],s=n[1],c=n[2];return t[0]=i*c-a*s,t[1]=a*o-r*c,t[2]=r*s-i*o,t}function Ld(t,e,n,r){var i=e[0],a=e[1],o=e[2];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t[2]=o+r*(n[2]-o),t}function Oe(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[3]*r+n[7]*i+n[11]*a+n[15];return o=o||1,t[0]=(n[0]*r+n[4]*i+n[8]*a+n[12])/o,t[1]=(n[1]*r+n[5]*i+n[9]*a+n[13])/o,t[2]=(n[2]*r+n[6]*i+n[10]*a+n[14])/o,t}function Jb(t,e,n){var r=e[0],i=e[1],a=e[2];return t[0]=r*n[0]+i*n[3]+a*n[6],t[1]=r*n[1]+i*n[4]+a*n[7],t[2]=r*n[2]+i*n[5]+a*n[8],t}function OT(t,e,n){var r=n[0],i=n[1],a=n[2],o=n[3],s=e[0],c=e[1],l=e[2],u=i*l-a*c,f=a*s-r*l,d=r*c-i*s,h=i*d-a*f,p=a*u-r*d,v=r*f-i*u,g=o*2;return u*=g,f*=g,d*=g,h*=2,p*=2,v*=2,t[0]=s+u+h,t[1]=c+f+p,t[2]=l+d+v,t}function vo(t,e){var n=t[0],r=t[1],i=t[2],a=e[0],o=e[1],s=e[2];return Math.abs(n-a)<=Zt*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-o)<=Zt*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(i-s)<=Zt*Math.max(1,Math.abs(i),Math.abs(s))}var Kv=wT,tx=wr;(function(){var t=yt();return function(e,n,r,i,a,o){var s,c;for(n||(n=3),r||(r=0),i?c=Math.min(i*n+r,e.length):c=e.length,s=r;s0&&(o=1/Math.sqrt(o)),t[0]=n*o,t[1]=r*o,t[2]=i*o,t[3]=a*o,t}function ha(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3];return t[0]=n[0]*r+n[4]*i+n[8]*a+n[12]*o,t[1]=n[1]*r+n[5]*i+n[9]*a+n[13]*o,t[2]=n[2]*r+n[6]*i+n[10]*a+n[14]*o,t[3]=n[3]*r+n[7]*i+n[11]*a+n[15]*o,t}(function(){var t=da();return function(e,n,r,i,a,o){var s,c;for(n||(n=4),r||(r=0),i?c=Math.min(i*n+r,e.length):c=e.length,s=r;sZt?(d=Math.acos(h),p=Math.sin(d),v=Math.sin((1-r)*d)/p,g=Math.sin(r*d)/p):(v=1-r,g=r),t[0]=v*i+g*c,t[1]=v*a+g*l,t[2]=v*o+g*u,t[3]=v*s+g*f,t}function Sf(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n*n+r*r+i*i+a*a,s=o?1/o:0;return t[0]=-n*s,t[1]=-r*s,t[2]=-i*s,t[3]=a*s,t}function ET(t,e){var n=e[0]+e[4]+e[8],r;if(n>0)r=Math.sqrt(n+1),t[3]=.5*r,r=.5/r,t[0]=(e[5]-e[7])*r,t[1]=(e[6]-e[2])*r,t[2]=(e[1]-e[3])*r;else{var i=0;e[4]>e[0]&&(i=1),e[8]>e[i*3+i]&&(i=2);var a=(i+1)%3,o=(i+2)%3;r=Math.sqrt(e[i*3+i]-e[a*3+a]-e[o*3+o]+1),t[i]=.5*r,r=.5/r,t[3]=(e[a*3+o]-e[o*3+a])*r,t[a]=(e[a*3+i]+e[i*3+a])*r,t[o]=(e[o*3+i]+e[i*3+o])*r}return t}function oc(t,e,n,r){var i=.5*Math.PI/180;e*=i,n*=i,r*=i;var a=Math.sin(e),o=Math.cos(e),s=Math.sin(n),c=Math.cos(n),l=Math.sin(r),u=Math.cos(r);return t[0]=a*c*u-o*s*l,t[1]=o*s*u+a*c*l,t[2]=o*c*l-a*s*u,t[3]=o*c*u+a*s*l,t}var _f=ST,sc=_T,Zv=qr,ml=MT;(function(){var t=yt(),e=St(1,0,0),n=St(0,1,0);return function(r,i,a){var o=nr(i,a);return o<-.999999?(Qc(t,e,i),tx(t)<1e-6&&Qc(t,n,i),Ti(t,t),Hr(r,t,Math.PI),r):o>.999999?(r[0]=0,r[1]=0,r[2]=0,r[3]=1,r):(Qc(t,i,a),r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=1+o,ml(r,r))}})();(function(){var t=ve(),e=ve();return function(n,r,i,a,o,s){return Of(t,r,o,s),Of(e,i,a,s),Of(n,t,e,2*s*(1-s)),n}})();(function(){var t=Ja();return function(e,n,r,i){return t[0]=r[0],t[3]=r[1],t[6]=r[2],t[1]=i[0],t[4]=i[1],t[7]=i[2],t[2]=-n[0],t[5]=-n[1],t[8]=-n[2],ml(e,ET(e,t))}})();function PT(){var t=new he(2);return he!=Float32Array&&(t[0]=0,t[1]=0),t}function AT(t,e){var n=new he(2);return n[0]=t,n[1]=e,n}function kT(t,e){return t[0]=e[0],t[1]=e[1],t}function TT(t,e){var n=e[0],r=e[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t}function CT(t,e){return t[0]*e[0]+t[1]*e[1]}function LT(t,e){return t[0]===e[0]&&t[1]===e[1]}(function(){var t=PT();return function(e,n,r,i,a,o){var s,c;for(n||(n=2),r||(r=0),i?c=Math.min(i*n+r,e.length):c=e.length,s=r;s0&&a[a.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function N(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,a=[],o;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function ex(){for(var t=0,e=0,n=arguments.length;e7){t[n].shift();for(var r=t[n],i=n;r.length;)e[n]="A",t.splice(i+=1,0,["C"].concat(r.splice(0,6)));t.splice(n,1)}}var Go={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0};function rx(t){return Array.isArray(t)&&t.every(function(e){var n=e[0].toLowerCase();return Go[n]===e.length-1&&"achlmqstvz".includes(n)})}function ix(t){return rx(t)&&t.every(function(e){var n=e[0];return n===n.toUpperCase()})}function ax(t){return ix(t)&&t.every(function(e){var n=e[0];return"ACLMQZ".includes(n)})}function Qv(t){for(var e=t.pathValue[t.segmentStart],n=e.toLowerCase(),r=t.data;r.length>=Go[n]&&(n==="m"&&r.length>2?(t.segments.push([e].concat(r.splice(0,2))),n="l",e=e==="m"?"l":"L"):t.segments.push([e].concat(r.splice(0,Go[n]))),!!Go[n]););}function RT(t){var e=t.index,n=t.pathValue,r=n.charCodeAt(e);if(r===48){t.param=0,t.index+=1;return}if(r===49){t.param=1,t.index+=1;return}t.err='[path-util]: invalid Arc flag "'+n[e]+'", expecting 0 or 1 at index '+e}function IT(t){return t>=48&&t<=57||t===43||t===45||t===46}function ea(t){return t>=48&&t<=57}function jT(t){var e=t.max,n=t.pathValue,r=t.index,i=r,a=!1,o=!1,s=!1,c=!1,l;if(i>=e){t.err="[path-util]: Invalid path value at index "+i+', "pathValue" is missing param';return}if(l=n.charCodeAt(i),(l===43||l===45)&&(i+=1,l=n.charCodeAt(i)),!ea(l)&&l!==46){t.err="[path-util]: Invalid path value at index "+i+', "'+n[i]+'" is not a number';return}if(l!==46){if(a=l===48,i+=1,l=n.charCodeAt(i),a&&i=5760&&e.includes(t)}function Jc(t){for(var e=t.pathValue,n=t.max;t.index0;o-=1){if(BT(i)&&(o===3||o===4)?RT(t):jT(t),t.err.length)return;t.data.push(t.param),Jc(t),t.index=t.max||!IT(n.charCodeAt(t.index)))break}Qv(t)}var zT=function(){function t(e){this.pathValue=e,this.segments=[],this.max=e.length,this.index=0,this.param=0,this.segmentStart=0,this.data=[],this.err=""}return t}();function GT(t){if(rx(t))return[].concat(t);var e=new zT(t);for(Jc(e);e.index1&&(E=Math.sqrt(E),d*=E,h*=E);var P=d*d,T=h*h,A=(a===o?-1:1)*Math.sqrt(Math.abs((P*T-P*M*M-T*_*_)/(P*M*M+T*_*_)));O=A*d*M/h+(u+p)/2,S=A*-h*_/d+(f+v)/2,x=Math.asin(((f-S)/h*Math.pow(10,9)>>0)/Math.pow(10,9)),w=Math.asin(((v-S)/h*Math.pow(10,9)>>0)/Math.pow(10,9)),x=uw&&(x-=Math.PI*2),!o&&w>x&&(w-=Math.PI*2)}var k=w-x;if(Math.abs(k)>g){var C=w,L=p,I=v;w=x+g*(o&&w>x?1:-1),p=O+d*Math.cos(w),v=S+h*Math.sin(w),m=hp(p,v,d,h,i,0,o,L,I,[w,C,O,S])}k=w-x;var R=Math.cos(x),j=Math.sin(x),D=Math.cos(w),$=Math.sin(w),B=Math.tan(k/4),F=4/3*d*B,Y=4/3*h*B,U=[u,f],K=[u+F*j,f-Y*R],V=[p+F*$,v-Y*D],W=[p,v];if(K[0]=2*U[0]-K[0],K[1]=2*U[1]-K[1],l)return K.concat(V,W,m);m=K.concat(V,W,m);for(var J=[],et=0,it=m.length;et=a)o={x:n,y:r};else{var s=Fr([t,e],[n,r],i/a),c=s[0],l=s[1];o={x:c,y:l}}return{length:a,point:o,min:{x:Math.min(t,n),y:Math.min(e,r)},max:{x:Math.max(t,n),y:Math.max(e,r)}}}function tg(t,e){var n=t.x,r=t.y,i=e.x,a=e.y,o=n*i+r*a,s=Math.sqrt((Math.pow(n,2)+Math.pow(r,2))*(Math.pow(i,2)+Math.pow(a,2))),c=n*a-r*i<0?-1:1,l=c*Math.acos(o/s);return l}function KT(t,e,n,r,i,a,o,s,c,l){var u=Math.abs,f=Math.sin,d=Math.cos,h=Math.sqrt,p=Math.PI,v=u(n),g=u(r),y=(i%360+360)%360,m=y*(p/180);if(t===s&&e===c)return{x:t,y:e};if(v===0||g===0)return Id(t,e,s,c,l).point;var b=(t-s)/2,x=(e-c)/2,w={x:d(m)*b+f(m)*x,y:-f(m)*b+d(m)*x},O=Math.pow(w.x,2)/Math.pow(v,2)+Math.pow(w.y,2)/Math.pow(g,2);O>1&&(v*=h(O),g*=h(O));var S=Math.pow(v,2)*Math.pow(g,2)-Math.pow(v,2)*Math.pow(w.y,2)-Math.pow(g,2)*Math.pow(w.x,2),_=Math.pow(v,2)*Math.pow(w.y,2)+Math.pow(g,2)*Math.pow(w.x,2),M=S/_;M=M<0?0:M;var E=(a!==o?1:-1)*h(M),P={x:E*(v*w.y/g),y:E*(-(g*w.x)/v)},T={x:d(m)*P.x-f(m)*P.y+(t+s)/2,y:f(m)*P.x+d(m)*P.y+(e+c)/2},A={x:(w.x-P.x)/v,y:(w.y-P.y)/g},k=tg({x:1,y:0},A),C={x:(-w.x-P.x)/v,y:(-w.y-P.y)/g},L=tg(A,C);!o&&L>0?L-=2*p:o&&L<0&&(L+=2*p),L%=2*p;var I=k+L*l,R=v*d(I),j=g*f(I),D={x:d(m)*R-f(m)*j+T.x,y:f(m)*R+d(m)*j+T.y};return D}function ZT(t,e,n,r,i,a,o,s,c,l,u){var f,d=u.bbox,h=d===void 0?!0:d,p=u.length,v=p===void 0?!0:p,g=u.sampleSize,y=g===void 0?30:g,m=typeof l=="number",b=t,x=e,w=0,O=[b,x,w],S=[b,x],_=0,M={x:0,y:0},E=[{x:b,y:x}];m&&l<=0&&(M={x:b,y:x});for(var P=0;P<=y;P+=1){if(_=P/y,f=KT(t,e,n,r,i,a,o,s,c,_),b=f.x,x=f.y,h&&E.push({x:b,y:x}),v&&(w+=nn(S,[b,x])),S=[b,x],m&&w>=l&&l>O[2]){var T=(w-l)/(w-O[2]);M={x:S[0]*(1-T)+O[0]*T,y:S[1]*(1-T)+O[1]*T}}O=[b,x,w]}return m&&l>=w&&(M={x:s,y:c}),{length:w,point:M,min:{x:Math.min.apply(null,E.map(function(A){return A.x})),y:Math.min.apply(null,E.map(function(A){return A.y}))},max:{x:Math.max.apply(null,E.map(function(A){return A.x})),y:Math.max.apply(null,E.map(function(A){return A.y}))}}}function QT(t,e,n,r,i,a,o,s,c){var l=1-c;return{x:Math.pow(l,3)*t+3*Math.pow(l,2)*c*n+3*l*Math.pow(c,2)*i+Math.pow(c,3)*o,y:Math.pow(l,3)*e+3*Math.pow(l,2)*c*r+3*l*Math.pow(c,2)*a+Math.pow(c,3)*s}}function ox(t,e,n,r,i,a,o,s,c,l){var u,f=l.bbox,d=f===void 0?!0:f,h=l.length,p=h===void 0?!0:h,v=l.sampleSize,g=v===void 0?10:v,y=typeof c=="number",m=t,b=e,x=0,w=[m,b,x],O=[m,b],S=0,_={x:0,y:0},M=[{x:m,y:b}];y&&c<=0&&(_={x:m,y:b});for(var E=0;E<=g;E+=1){if(S=E/g,u=QT(t,e,n,r,i,a,o,s,S),m=u.x,b=u.y,d&&M.push({x:m,y:b}),p&&(x+=nn(O,[m,b])),O=[m,b],y&&x>=c&&c>w[2]){var P=(x-c)/(x-w[2]);_={x:O[0]*(1-P)+w[0]*P,y:O[1]*(1-P)+w[1]*P}}w=[m,b,x]}return y&&c>=x&&(_={x:o,y:s}),{length:x,point:_,min:{x:Math.min.apply(null,M.map(function(T){return T.x})),y:Math.min.apply(null,M.map(function(T){return T.y}))},max:{x:Math.max.apply(null,M.map(function(T){return T.x})),y:Math.max.apply(null,M.map(function(T){return T.y}))}}}function JT(t,e,n,r,i,a,o){var s=1-o;return{x:Math.pow(s,2)*t+2*s*o*n+Math.pow(o,2)*i,y:Math.pow(s,2)*e+2*s*o*r+Math.pow(o,2)*a}}function t5(t,e,n,r,i,a,o,s){var c,l=s.bbox,u=l===void 0?!0:l,f=s.length,d=f===void 0?!0:f,h=s.sampleSize,p=h===void 0?10:h,v=typeof o=="number",g=t,y=e,m=0,b=[g,y,m],x=[g,y],w=0,O={x:0,y:0},S=[{x:g,y}];v&&o<=0&&(O={x:g,y});for(var _=0;_<=p;_+=1){if(w=_/p,c=JT(t,e,n,r,i,a,w),g=c.x,y=c.y,u&&S.push({x:g,y}),d&&(m+=nn(x,[g,y])),x=[g,y],v&&m>=o&&o>b[2]){var M=(m-o)/(m-b[2]);O={x:x[0]*(1-M)+b[0]*M,y:x[1]*(1-M)+b[1]*M}}b=[g,y,m]}return v&&o>=m&&(O={x:i,y:a}),{length:m,point:O,min:{x:Math.min.apply(null,S.map(function(E){return E.x})),y:Math.min.apply(null,S.map(function(E){return E.y}))},max:{x:Math.max.apply(null,S.map(function(E){return E.x})),y:Math.max.apply(null,S.map(function(E){return E.y}))}}}function sx(t,e,n){for(var r,i,a,o,s,c,l=bl(t),u=typeof e=="number",f,d=[],h,p=0,v=0,g=0,y=0,m,b=[],x=[],w=0,O={x:0,y:0},S=O,_=O,M=O,E=0,P=0,T=l.length;P=e&&(M=_),x.push(S),b.push(O),E+=w,c=h!=="Z"?m.slice(-2):[g,y],p=c[0],v=c[1];return u&&e>=E&&(M={x:p,y:v}),{length:E,point:M,min:{x:Math.min.apply(null,b.map(function(A){return A.x})),y:Math.min.apply(null,b.map(function(A){return A.y}))},max:{x:Math.max.apply(null,x.map(function(A){return A.x})),y:Math.max.apply(null,x.map(function(A){return A.y}))}}}function e5(t,e){return sx(t,void 0,z(z({},e),{bbox:!1,length:!0})).length}function n5(t){var e=t.length,n=e-1;return t.map(function(r,i){return t.map(function(a,o){var s=i+o,c;return o===0||t[s]&&t[s][0]==="M"?(c=t[s],["M"].concat(c.slice(-2))):(s>=e&&(s-=n),t[s])})})}function r5(t,e){var n=t.length-1,r=[],i=0,a=0,o=n5(t);return o.forEach(function(s,c){t.slice(1).forEach(function(l,u){a+=nn(t[(c+u)%n].slice(-2),e[u%n].slice(-2))}),r[c]=a,a=0}),i=r.indexOf(Math.min.apply(null,r)),o[i]}function i5(t,e,n,r,i,a,o,s){return 3*((s-e)*(n+i)-(o-t)*(r+a)+r*(t-i)-n*(e-a)+s*(i+t/3)-o*(a+e/3))/20}function a5(t){var e=0,n=0,r=0;return Rd(t).map(function(i){var a;switch(i[0]){case"M":return e=i[1],n=i[2],0;default:var o=i.slice(1),s=o[0],c=o[1],l=o[2],u=o[3],f=o[4],d=o[5];return r=i5(e,n,s,c,l,u,f,d),a=i.slice(-2),e=a[0],n=a[1],r}}).reduce(function(i,a){return i+a},0)}function eg(t){return a5(t)>=0}function o5(t,e,n){return sx(t,e,z(z({},n),{bbox:!1,length:!0})).point}function s5(t,e){e===void 0&&(e=.5);var n=t.slice(0,2),r=t.slice(2,4),i=t.slice(4,6),a=t.slice(6,8),o=Fr(n,r,e),s=Fr(r,i,e),c=Fr(i,a,e),l=Fr(o,s,e),u=Fr(s,c,e),f=Fr(l,u,e);return[["C"].concat(o,l,f),["C"].concat(u,c,a)]}function ng(t){return t.map(function(e,n,r){var i=n&&r[n-1].slice(-2).concat(e.slice(1)),a=n?ox(i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8],{bbox:!1}).length:0,o;return n?o=a?s5(i):[e,e]:o=[e],{s:e,ss:o,l:a}})}function cx(t,e,n){var r=ng(t),i=ng(e),a=r.length,o=i.length,s=r.filter(function(g){return g.l}).length,c=i.filter(function(g){return g.l}).length,l=r.filter(function(g){return g.l}).reduce(function(g,y){var m=y.l;return g+m},0)/s||0,u=i.filter(function(g){return g.l}).reduce(function(g,y){var m=y.l;return g+m},0)/c||0,f=n||Math.max(a,o),d=[l,u],h=[f-a,f-o],p=0,v=[r,i].map(function(g,y){return g.l===f?g.map(function(m){return m.s}):g.map(function(m,b){return p=b&&h[y]&&m.l>=d[y],h[y]-=p?1:0,p?m.ss:[m.s]}).flat()});return v[0].length===v[1].length?v:cx(v[0],v[1],f)}function rg(t){var e=document.createElement("div");e.innerHTML=t;var n=e.childNodes[0];return n&&e.contains(n)&&e.removeChild(n),n}function Wt(t,e){if(t!==null)return{type:"column",value:t,field:e}}function yu(t,e){const n=Wt(t,e);return Object.assign(Object.assign({},n),{inferred:!0})}function xl(t,e){if(t!==null)return{type:"column",value:t,field:e,visual:!0}}function c5(t,e){const n=Wt(t,e);return Object.assign(Object.assign({},n),{constant:!1})}function Kr(t,e){const n=[];for(const r of t)n[r]=e;return n}function Ot(t,e){const n=t[e];if(!n)return[null,null];const{value:r,field:i=null}=n;return[r,i]}function ts(t,...e){for(const n of e)if(typeof n=="string"){const[r,i]=Ot(t,n);if(r!==null)return[r,i]}else return[n,null];return[null,null]}function Is(t){return t instanceof Date?!1:typeof t=="object"}const js=()=>(t,e)=>{const{encode:n}=e,{y1:r}=n;return r!==void 0?[t,e]:[t,X({},e,{encode:{y1:yu(Kr(t,0))}})]};js.props={};function oe(t,e){return t==null||e==null?NaN:te?1:t>=e?0:NaN}function l5(t,e){return t==null||e==null?NaN:et?1:e>=t?0:NaN}function Ca(t){let e,n,r;t.length!==2?(e=oe,n=(s,c)=>oe(t(s),c),r=(s,c)=>t(s)-c):(e=t===oe||t===l5?t:u5,n=t,r=t);function i(s,c,l=0,u=s.length){if(l>>1;n(s[f],c)<0?l=f+1:u=f}while(l>>1;n(s[f],c)<=0?l=f+1:u=f}while(ll&&r(s[f-1],c)>-r(s[f],c)?f-1:f}return{left:i,center:o,right:a}}function u5(){return 0}function jd(t){return t===null?NaN:+t}function*f5(t,e){if(e===void 0)for(let n of t)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of t)(r=e(r,++n,t))!=null&&(r=+r)>=r&&(yield r)}}const lx=Ca(oe),d5=lx.right,h5=lx.left,p5=Ca(jd).center;function ux(t,e){let n=0;if(e===void 0)for(let r of t)r!=null&&(r=+r)>=r&&++n;else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(i=+i)>=i&&++n}return n}function v5(t,e){let n=0,r,i=0,a=0;if(e===void 0)for(let o of t)o!=null&&(o=+o)>=o&&(r=o-i,i+=r/++n,a+=r*(o-i));else{let o=-1;for(let s of t)(s=e(s,++o,t))!=null&&(s=+s)>=s&&(r=s-i,i+=r/++n,a+=r*(s-i))}if(n>1)return a/(n-1)}function fx(t,e){const n=v5(t,e);return n&&Math.sqrt(n)}function Mr(t,e){let n,r;if(e===void 0)for(const i of t)i!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r=a&&(n=r=a):(n>a&&(n=a),r0){for(o=e[--n];n>0&&(r=o,i=e[--n],o=r+i,a=i-(o-r),!a););n>0&&(a<0&&e[n-1]<0||a>0&&e[n-1]>0)&&(i=a*2,r=o+i,i==r-o&&(o=r))}return o}}let g5=class extends Map{constructor(e,n=b5){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(const[r,i]of e)this.set(r,i)}get(e){return super.get(ig(this,e))}has(e){return super.has(ig(this,e))}set(e,n){return super.set(y5(this,e),n)}delete(e){return super.delete(m5(this,e))}};function ig({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function y5({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function m5({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function b5(t){return t!==null&&typeof t=="object"?t.valueOf():t}function es(t){return t}function te(t,...e){return mu(t,es,es,e)}function pp(t,...e){return mu(t,Array.from,es,e)}function vp(t,e,...n){return mu(t,es,e,n)}function dx(t,e,...n){return mu(t,Array.from,e,n)}function mu(t,e,n,r){return function i(a,o){if(o>=r.length)return n(a);const s=new g5,c=r[o++];let l=-1;for(const u of a){const f=c(u,++l,a),d=s.get(f);d?d.push(u):s.set(f,[u])}for(const[u,f]of s)s.set(u,i(f,o));return e(s)}(t,0)}function x5(t,e){return Array.from(e,n=>t[n])}function Er(t,...e){if(typeof t[Symbol.iterator]!="function")throw new TypeError("values is not iterable");t=Array.from(t);let[n]=e;if(n&&n.length!==2||e.length>1){const r=Uint32Array.from(t,(i,a)=>a);return e.length>1?(e=e.map(i=>t.map(i)),r.sort((i,a)=>{for(const o of e){const s=ns(o[i],o[a]);if(s)return s}})):(n=t.map(n),r.sort((i,a)=>ns(n[i],n[a]))),x5(t,r)}return t.sort(hx(n))}function hx(t=oe){if(t===oe)return ns;if(typeof t!="function")throw new TypeError("compare is not a function");return(e,n)=>{const r=t(e,n);return r||r===0?r:(t(n,n)===0)-(t(e,e)===0)}}function ns(t,e){return(t==null||!(t>=t))-(e==null||!(e>=e))||(te?1:0)}function w5(t,e,n){return(e.length!==2?Er(vp(t,e,n),([r,i],[a,o])=>oe(i,o)||oe(r,a)):Er(te(t,n),([r,i],[a,o])=>e(i,o)||oe(r,a))).map(([r])=>r)}var O5=Array.prototype,S5=O5.slice;function Ef(t){return()=>t}const _5=Math.sqrt(50),M5=Math.sqrt(10),E5=Math.sqrt(2);function wl(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=_5?10:a>=M5?5:a>=E5?2:1;let s,c,l;return i<0?(l=Math.pow(10,-i)/o,s=Math.round(t*l),c=Math.round(e*l),s/le&&--c,l=-l):(l=Math.pow(10,i)*o,s=Math.round(t/l),c=Math.round(e/l),s*le&&--c),c0))return[];if(t===e)return[t];const r=e=i))return[];const s=a-i+1,c=new Array(s);if(r)if(o<0)for(let l=0;l0?(t=Math.floor(t/i)*i,e=Math.ceil(e/i)*i):i<0&&(t=Math.ceil(t*i)/i,e=Math.floor(e*i)/i),r=i}}function k5(t){return Math.max(1,Math.ceil(Math.log(ux(t))/Math.LN2)+1)}function T5(){var t=es,e=Mr,n=k5;function r(i){Array.isArray(i)||(i=Array.from(i));var a,o=i.length,s,c,l=new Array(o);for(a=0;a=d)if(b>=d&&e===Mr){const w=Dd(f,d,x);isFinite(w)&&(w>0?d=(Math.floor(d/w)+1)*w:w<0&&(d=(Math.ceil(d*-w)+1)/-w))}else h.pop()}for(var p=h.length,v=0,g=p;h[v]<=f;)++v;for(;h[g-1]>d;)--g;(v||g0?h[a-1]:f,m.x1=a0)for(a=0;a=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n=i)&&(n=i)}return n}function to(t,e){let n,r=-1,i=-1;if(e===void 0)for(const a of t)++i,a!=null&&(n=a)&&(n=a,r=i);else for(let a of t)(a=e(a,++i,t))!=null&&(n=a)&&(n=a,r=i);return r}function bn(t,e){let n;if(e===void 0)for(const r of t)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of t)(i=e(i,++r,t))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function bu(t,e){let n,r=-1,i=-1;if(e===void 0)for(const a of t)++i,a!=null&&(n>a||n===void 0&&a>=a)&&(n=a,r=i);else for(let a of t)(a=e(a,++i,t))!=null&&(n>a||n===void 0&&a>=a)&&(n=a,r=i);return r}function gp(t,e,n=0,r=1/0,i){if(e=Math.floor(e),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(t.length-1,r)),!(n<=e&&e<=r))return t;for(i=i===void 0?ns:hx(i);r>n;){if(r-n>600){const c=r-n+1,l=e-n+1,u=Math.log(c),f=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*f*(c-f)/c)*(l-c/2<0?-1:1),h=Math.max(n,Math.floor(e-l*f/c+d)),p=Math.min(r,Math.floor(e+(c-l)*f/c+d));gp(t,e,h,p,i)}const a=t[e];let o=n,s=r;for(go(t,n,e),i(t[r],a)>0&&go(t,n,r);o0;)--s}i(t[n],a)===0?go(t,n,s):(++s,go(t,s,r)),s<=e&&(n=s+1),e<=s&&(r=s-1)}return t}function go(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function C5(t,e=oe){let n,r=!1;if(e.length===1){let i;for(const a of t){const o=e(a);(r?oe(o,i)>0:oe(o,o)===0)&&(n=a,i=o,r=!0)}}else for(const i of t)(r?e(i,n)>0:e(i,i)===0)&&(n=i,r=!0);return n}function xu(t,e,n){if(t=Float64Array.from(f5(t,n)),!(!(r=t.length)||isNaN(e=+e))){if(e<=0||r<2)return bn(t);if(e>=1)return Ct(t);var r,i=(r-1)*e,a=Math.floor(i),o=Ct(gp(t,a).subarray(0,a+1)),s=bn(t.subarray(a+1));return o+(s-o)*(i-a)}}function L5(t,e,n=jd){if(!isNaN(e=+e)){if(r=Float64Array.from(t,(s,c)=>jd(n(t[c],c,t))),e<=0)return bu(r);if(e>=1)return to(r);var r,i=Uint32Array.from(t,(s,c)=>c),a=r.length-1,o=Math.floor(a*e);return gp(i,o,0,a,(s,c)=>ns(r[s],r[c])),o=C5(i.subarray(0,o+1),s=>r[s]),o>=0?o:-1}}function N5(t,e,n){const r=ux(t),i=fx(t);return r&&i?Math.ceil((n-e)*Math.cbrt(r)/(3.49*i)):1}function rs(t,e){let n=0,r=0;if(e===void 0)for(let i of t)i!=null&&(i=+i)>=i&&(++n,r+=i);else{let i=-1;for(let a of t)(a=e(a,++i,t))!=null&&(a=+a)>=a&&(++n,r+=a)}if(n)return r/n}function yp(t,e){return xu(t,.5,e)}function R5(t,e){return L5(t,.5,e)}function*I5(t){for(const e of t)yield*e}function px(t){return Array.from(I5(t))}function pa(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((e-t)/n))|0,a=new Array(i);++r(r,...i)=>n(e(r,...i),...i),ji)}function D5(t){return t.reduce((e,n)=>r=>j5(this,void 0,void 0,function*(){const i=yield e(r);return n(i)}),ji)}function bp(t){return t.replace(/( |^)[a-z]/g,e=>e.toUpperCase())}function La(t=""){throw new Error(t)}function xp(t,e){const{attributes:n}=e,r=new Set(["id","className"]);for(const[i,a]of Object.entries(n))r.has(i)||(i==="transform"&&t.attr(i,""),t.attr(i,a))}function zt(t){return t!=null&&!Number.isNaN(t)}function $5(t){const e=new Map;return n=>{if(e.has(n))return e.get(n);const r=t(n);return e.set(n,r),r}}function B5(t,e){const{transform:n}=t.style,i=(a=>a==="none"||a===void 0)(n)?"":n;t.style.transform=`${i} ${e}`.trimStart()}function Q(t,e){return vx(t,e)||{}}function vx(t,e){const n=Object.entries(t||{}).filter(([r])=>r.startsWith(e)).map(([r,i])=>[Db(r.replace(e,"").trim()),i]).filter(([r])=>!!r);return n.length===0?null:Object.fromEntries(n)}function F5(t,e){return Object.fromEntries(Object.entries(t).filter(([n])=>e.find(r=>n.startsWith(r))))}function Pf(t,...e){return Object.fromEntries(Object.entries(t).filter(([n])=>e.every(r=>!n.startsWith(r))))}function ag(t,e){if(t===void 0)return null;if(typeof t=="number")return t;const n=+t.replace("%","");return Number.isNaN(n)?null:n/100*e}function is(t){return typeof t=="object"&&!(t instanceof Date)&&t!==null&&!Array.isArray(t)}function Lr(t){return t===null||t===!1}function gx(t,e,n=5,r=0){if(!(r>=n)){for(const i of Object.keys(e)){const a=e[i];!Cr(a)||!Cr(t[i])?t[i]=a:gx(t[i],a,n,r+1)}return t}}function ai(t,e){return Object.entries(t).reduce((n,[r,i])=>(n[r]=e(i,r,t),n),{})}function Ui(t){return t.map((e,n)=>n)}function z5(t){return t[0]}function yx(t){return t[t.length-1]}function G5(t){return Array.from(new Set(t))}function mx(t,e){const n=[[],[]];return t.forEach(r=>{n[e(r)?0:1].push(r)}),n}function bx(t,e=t.length){if(e===1)return t.map(r=>[r]);const n=[];for(let r=0;r{n.push([t[r],...o])})}return n}function Y5(t){if(t.length===1)return[t];const e=[];for(let n=1;n<=t.length;n++)e.push(...bx(t,n));return e}function oi(t,e,n){const{encode:r}=n;if(t===null)return[e];const i=W5(t).map(o=>{var s;return[o,(s=Ot(r,o))===null||s===void 0?void 0:s[0]]}).filter(([,o])=>zt(o)),a=o=>i.map(([,s])=>s[o]).join("-");return Array.from(te(e,a).values())}function xx(t){return Array.isArray(t)?X5(t):typeof t=="function"?V5(t):t==="series"?H5:t==="value"?U5:t==="sum"?q5:t==="maxIndex"?K5:()=>null}function wx(t,e){for(const n of t)n.sort(e)}function Ox(t,e){return(e==null?void 0:e.domain)||Array.from(new Set(t))}function W5(t){return Array.isArray(t)?t:[t]}function H5(t,e,n){return Ds(r=>n[r])}function V5(t){return(e,n,r)=>Ds(i=>t(e[i]))}function X5(t){return(e,n,r)=>(i,a)=>t.reduce((o,s)=>o!==0?o:oe(e[i][s],e[a][s]),0)}function U5(t,e,n){return Ds(r=>e[r])}function q5(t,e,n){const r=Ui(t),i=Array.from(te(r,o=>n[+o]).entries()),a=new Map(i.map(([o,s])=>[o,s.reduce((c,l)=>c+ +e[l])]));return Ds(o=>a.get(n[o]))}function K5(t,e,n){const r=Ui(t),i=Array.from(te(r,o=>n[+o]).entries()),a=new Map(i.map(([o,s])=>[o,to(s,c=>e[c])]));return Ds(o=>a.get(n[o]))}function Ds(t){return(e,n)=>oe(t(e),t(n))}const Sx=(t={})=>{const{groupBy:e="x",orderBy:n=null,reverse:r=!1,y:i="y",y1:a="y1",series:o=!0}=t;return(s,c)=>{const{data:l,encode:u,style:f={}}=c,[d,h]=Ot(u,"y"),[p,v]=Ot(u,"y1"),[g]=o?ts(u,"series","color"):Ot(u,"color"),y=oi(e,s,c),b=xx(n)(l,d,g);b&&wx(y,b);const x=new Array(s.length),w=new Array(s.length),O=new Array(s.length),S=[],_=[];for(const A of y){r&&A.reverse();const k=p?+p[A[0]]:0,C=[],L=[];for(const F of A){const Y=O[F]=+d[F]-k;Y<0?L.push(F):Y>=0&&C.push(F)}const I=C.length>0?C:L,R=L.length>0?L:C;let j=C.length-1,D=0;for(;j>0&&d[I[j]]===0;)j--;for(;D0?B=x[F]=(w[F]=B)+Y:x[F]=w[F]=B}}const M=new Set(S),E=new Set(_),P=i==="y"?x:w,T=a==="y"?x:w;return[s,X({},c,{encode:{y0:yu(d,h),y:Wt(P,h),y1:Wt(T,v)},style:Object.assign({first:(A,k)=>M.has(k),last:(A,k)=>E.has(k)},f)})]}};Sx.props={};function yo(t){return Math.abs(t)>10?String(t):t.toString().padStart(2,"0")}function Z5(t){const e=t.getFullYear(),n=yo(t.getMonth()+1),r=yo(t.getDate()),i=`${e}-${n}-${r}`,a=t.getHours(),o=t.getMinutes(),s=t.getSeconds();return a||o||s?`${i} ${yo(a)}:${yo(o)}:${yo(s)}`:i}const wu=(t={})=>{const{channel:e="x"}=t;return(n,r)=>{const{encode:i}=r,{tooltip:a}=r;if(Lr(a))return[n,r];const{title:o}=a;if(o!==void 0)return[n,r];const s=Object.keys(i).filter(l=>l.startsWith(e)).filter(l=>!i[l].inferred).map(l=>Ot(i,l)).filter(([l])=>l).map(l=>l[0]);if(s.length===0)return[n,r];const c=[];for(const l of n)c[l]={value:s.map(u=>u[l]instanceof Date?Z5(u[l]):u[l]).join(", ")};return[n,X({},r,{tooltip:{title:c}})]}};wu.props={};const qi=()=>(t,e)=>{const{encode:n}=e,{x:r}=n;return r!==void 0?[t,e]:[t,X({},e,{encode:{x:yu(Kr(t,0))},scale:{x:{guide:null}}})]};qi.props={};const Ou=()=>(t,e)=>{const{encode:n}=e,{y:r}=n;return r!==void 0?[t,e]:[t,X({},e,{encode:{y:yu(Kr(t,0))},scale:{y:{guide:null}}})]};Ou.props={};const _x=()=>(t,e)=>{const{encode:n}=e,{size:r}=n;return r!==void 0?[t,e]:[t,X({},e,{encode:{size:xl(Kr(t,3))}})]};_x.props={};var Q5=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i(t,e)=>{const{encode:n}=e,{key:r}=n,i=Q5(n,["key"]);if(r!==void 0)return[t,e];const a=Object.values(i).map(({value:s})=>s),o=t.map(s=>a.filter(Array.isArray).map(c=>c[s]).join("-"));return[t,X({},e,{encode:{key:Wt(o)}})]};Mx.props={};const wp=()=>(t,e)=>{const{encode:n}=e,{series:r,color:i}=n;if(r!==void 0||i===void 0)return[t,e];const[a,o]=Ot(n,"color");return[t,X({},e,{encode:{series:Wt(a,o)}})]};wp.props={};const Ex=()=>(t,e)=>{const{data:n}=e;return!Array.isArray(n)||n.some(Is)?[t,e]:[t,X({},e,{encode:{y:Wt(n)}})]};Ex.props={};const Px=()=>(t,e)=>{const{data:n}=e;return!Array.isArray(n)||n.some(Is)?[t,e]:[t,X({},e,{encode:{x:Wt(n)}})]};Px.props={};const Ax=()=>(t,e)=>{const{encode:n}=e,{y1:r}=n;if(r)return[t,e];const[i]=Ot(n,"y");return[t,X({},e,{encode:{y1:Wt([...i])}})]};Ax.props={};const kx=()=>(t,e)=>{const{encode:n}=e,{x1:r}=n;if(r)return[t,e];const[i]=Ot(n,"x");return[t,X({},e,{encode:{x1:Wt([...i])}})]};kx.props={};const Tx=()=>(t,e)=>{const{data:n}=e;if(Array.isArray(n)&&(n.every(Array.isArray)||!n.some(Is))){const r=(i,a)=>Array.isArray(i[0])?i.map(o=>o[a]):[i[a]];return[t,X({},e,{encode:{x:Wt(r(n,0)),x1:Wt(r(n,1))}})]}return[t,e]};Tx.props={};const Cx=()=>(t,e)=>{const{data:n}=e;if(Array.isArray(n)&&(n.every(Array.isArray)||!n.some(Is))){const r=(i,a)=>Array.isArray(i[0])?i.map(o=>o[a]):[i[a]];return[t,X({},e,{encode:{y:Wt(r(n,0)),y1:Wt(r(n,1))}})]}return[t,e]};Cx.props={};const Su=t=>{const{channel:e}=t;return(n,r)=>{const{encode:i,tooltip:a}=r;if(Lr(a))return[n,r];const{items:o=[]}=a;if(!o||o.length>0)return[n,r];const c=(Array.isArray(e)?e:[e]).flatMap(l=>Object.keys(i).filter(u=>u.startsWith(l)).map(u=>{const{field:f,value:d,inferred:h=!1,aggregate:p}=i[u];return h?null:p&&d?{channel:u}:f?{field:f}:d?{channel:u}:null}).filter(u=>u!==null));return[n,X({},r,{tooltip:{items:c}})]}};Su.props={};const Op=()=>(t,e)=>[t,X({scale:{x:{padding:0},y:{padding:0}}},e)];Op.props={};var og=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i(t,e)=>{const{data:n,style:r={}}=e,i=og(e,["data","style"]),{x:a,y:o}=r,s=og(r,["x","y"]);if(a==null||o==null)return[t,e];const c=a||0,l=o||0;return[[0],X({},i,{data:[0],cartesian:!0,encode:{x:Wt([c]),y:Wt([l])},scale:{x:{type:"identity",independent:!0,guide:null},y:{type:"identity",independent:!0,guide:null}},style:s})]};_u.props={};const Lx=()=>(t,e)=>{const{style:n={}}=e;return[t,X({},e,{style:Object.assign(Object.assign({},n),Object.fromEntries(Object.entries(n).filter(([,r])=>typeof r=="function").map(([r,i])=>[r,()=>i])))})]};Lx.props={};const Mu=()=>(t,e)=>{const{data:n}=e;if(!Array.isArray(n)||n.some(Is))return[t,e];const r=Array.isArray(n[0])?n:[n],i=r.map(o=>o[0]),a=r.map(o=>o[1]);return[t,X({},e,{encode:{x:Wt(i),y:Wt(a)}})]};Mu.props={};const Nx=()=>(t,e)=>{const{style:n={},encode:r}=e,{series:i}=r,{gradient:a}=n;return!a||i?[t,e]:[t,X({},e,{encode:{series:xl(Kr(t,void 0))}})]};Nx.props={};var J5=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{groupBy:e="x",reverse:n=!1,orderBy:r,padding:i}=t;return J5(t,["groupBy","reverse","orderBy","padding"]),(a,o)=>{const{data:s,encode:c,scale:l}=o,{series:u}=l,[f]=Ot(c,"y"),[d]=ts(c,"series","color"),h=Ox(d,u),p=oi(e,a,o),g=xx(r)(s,f,d);g&&wx(p,g);const y=new Array(a.length);for(const m of p){n&&m.reverse();for(let b=0;b{const{groupBy:e=["x"],reducer:n=(o,s)=>s[o[0]],orderBy:r=null,reverse:i=!1,duration:a}=t;return(o,s)=>{const{encode:c}=s,u=(Array.isArray(e)?e:[e]).map(g=>[g,Ot(c,g)[0]]);if(u.length===0)return[o,s];let f=[o];for(const[,g]of u){const y=[];for(const m of f){const b=Array.from(te(m,x=>g[x]).values());y.push(...b)}f=y}if(r){const[g]=Ot(c,r);g&&f.sort((y,m)=>n(y,g)-n(m,g)),i&&f.reverse()}const d=(a||3e3)/f.length,[h]=a?[Kr(o,d)]:ts(c,"enterDuration",Kr(o,d)),[p]=ts(c,"enterDelay",Kr(o,0)),v=new Array(o.length);for(let g=0,y=0;g+h[x]);for(const x of m)v[x]=+p[x]+y;y+=b}return[o,X({},s,{encode:{enterDuration:xl(h),enterDelay:xl(v)}})]}};Ix.props={};var t3=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ibn(n,i=>r[+i]),max:(n,r)=>Ct(n,i=>r[+i]),first:(n,r)=>r[n[0]],last:(n,r)=>r[n[n.length-1]],mean:(n,r)=>rs(n,i=>r[+i]),median:(n,r)=>yp(n,i=>r[+i]),sum:(n,r)=>Cn(n,i=>r[+i]),deviation:(n,r)=>fx(n,i=>r[+i])}[t]||Ct}const jx=(t={})=>{const{groupBy:e="x",basis:n="max"}=t;return(r,i)=>{const{encode:a,tooltip:o}=i,s=t3(a,["x"]),c=Object.entries(s).filter(([p])=>p.startsWith("y")).map(([p])=>[p,Ot(a,p)[0]]),[,l]=c.find(([p])=>p==="y"),u=c.map(([p])=>[p,new Array(r.length)]),f=oi(e,r,i),d=e3(n);for(const p of f){const v=d(p,l);for(const g of p)for(let y=0;y[p,Wt(v,Ot(a,p)[1])]))},!h&&a.y0&&{tooltip:{items:[{channel:"y0"}]}}))]}};jx.props={};function Na(t,...e){return e.reduce((n,r)=>i=>n(r(i)),t)}function Ol(t,e){return e-t?n=>(n-t)/(e-t):n=>.5}function n3(t,e){const n=ee?t:e;return i=>Math.min(Math.max(n,i),r)}function Sp(t,e,n,r,i){let a=n||0,o=r||t.length;const s=i||(c=>c);for(;ae?o=c:a=c+1}return a}const $d=Math.sqrt(50),Bd=Math.sqrt(10),Fd=Math.sqrt(2);function tl(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/10**i;return i>=0?(a>=$d?10:a>=Bd?5:a>=Fd?2:1)*10**i:-(10**-i)/(a>=$d?10:a>=Bd?5:a>=Fd?2:1)}function sg(t,e,n){const r=Math.abs(e-t)/Math.max(0,n);let i=10**Math.floor(Math.log(r)/Math.LN10);const a=r/i;return a>=$d?i*=10:a>=Bd?i*=5:a>=Fd&&(i*=2),e{const r=[t,e];let i=0,a=r.length-1,o=r[i],s=r[a],c;return s0?(o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c,c=tl(o,s,n)):c<0&&(o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c,c=tl(o,s,n)),c>0?(r[i]=Math.floor(o/c)*c,r[a]=Math.ceil(s/c)*c):c<0&&(r[i]=Math.ceil(o*c)/c,r[a]=Math.floor(s*c)/c),r},as=1e3,os=as*60,ss=os*60,Di=ss*24,Yo=Di*7,$x=Di*30,Bx=Di*365;function Fe(t,e,n,r){const i=(l,u)=>{const f=h=>r(h)%u===0;let d=u;for(;d&&!f(l);)n(l,-1),d-=1;return l},a=(l,u)=>{u&&i(l,u),e(l)},o=(l,u)=>{const f=new Date(+l);return a(f,u),f},s=(l,u)=>{const f=new Date(+l-1);return a(f,u),n(f,u),a(f),f};return{ceil:s,floor:o,range:(l,u,f,d)=>{const h=[],p=Math.floor(f),v=d?s(l,f):s(l);for(let g=v;gt,(t,e=1)=>{t.setTime(+t+e)},t=>t.getTime()),i3=Fe(as,t=>{t.setMilliseconds(0)},(t,e=1)=>{t.setTime(+t+as*e)},t=>t.getSeconds()),a3=Fe(os,t=>{t.setSeconds(0,0)},(t,e=1)=>{t.setTime(+t+os*e)},t=>t.getMinutes()),o3=Fe(ss,t=>{t.setMinutes(0,0,0)},(t,e=1)=>{t.setTime(+t+ss*e)},t=>t.getHours()),s3=Fe(Di,t=>{t.setHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+Di*e)},t=>t.getDate()-1),Fx=Fe($x,t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e=1)=>{const n=t.getMonth();t.setMonth(n+e)},t=>t.getMonth()),c3=Fe(Yo,t=>{t.setDate(t.getDate()-t.getDay()%7),t.setHours(0,0,0,0)},(t,e=1)=>{t.setDate(t.getDate()+7*e)},t=>{const e=Fx.floor(t),n=new Date(+t);return Math.floor((+n-+e)/Yo)}),l3=Fe(Bx,t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e=1)=>{const n=t.getFullYear();t.setFullYear(n+e)},t=>t.getFullYear()),zx={millisecond:r3,second:i3,minute:a3,hour:o3,day:s3,week:c3,month:Fx,year:l3},u3=Fe(1,t=>t,(t,e=1)=>{t.setTime(+t+e)},t=>t.getTime()),f3=Fe(as,t=>{t.setUTCMilliseconds(0)},(t,e=1)=>{t.setTime(+t+as*e)},t=>t.getUTCSeconds()),d3=Fe(os,t=>{t.setUTCSeconds(0,0)},(t,e=1)=>{t.setTime(+t+os*e)},t=>t.getUTCMinutes()),h3=Fe(ss,t=>{t.setUTCMinutes(0,0,0)},(t,e=1)=>{t.setTime(+t+ss*e)},t=>t.getUTCHours()),p3=Fe(Di,t=>{t.setUTCHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+Di*e)},t=>t.getUTCDate()-1),Gx=Fe($x,t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e=1)=>{const n=t.getUTCMonth();t.setUTCMonth(n+e)},t=>t.getUTCMonth()),v3=Fe(Yo,t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7)%7),t.setUTCHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+Yo*e)},t=>{const e=Gx.floor(t),n=new Date(+t);return Math.floor((+n-+e)/Yo)}),g3=Fe(Bx,t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e=1)=>{const n=t.getUTCFullYear();t.setUTCFullYear(n+e)},t=>t.getUTCFullYear()),Yx={millisecond:u3,second:f3,minute:d3,hour:h3,day:p3,week:v3,month:Gx,year:g3};function y3(t){const e=t?Yx:zx,{year:n,month:r,week:i,day:a,hour:o,minute:s,second:c,millisecond:l}=e;return{tickIntervals:[[c,1],[c,5],[c,15],[c,30],[s,1],[s,5],[s,15],[s,30],[o,1],[o,3],[o,6],[o,12],[a,1],[a,2],[i,1],[r,1],[r,3],[n,1]],year:n,millisecond:l}}function Wx(t,e,n,r,i){const a=+t,o=+e,{tickIntervals:s,year:c,millisecond:l}=y3(i),u=([g,y])=>g.duration*y,f=r?(o-a)/r:n||5,d=r||(o-a)/f,h=s.length,p=Sp(s,d,0,h,u);let v;if(p===h){const g=sg(a/c.duration,o/c.duration,f);v=[c,g]}else if(p){const g=d/u(s[p-1]){const a=t>e,o=a?e:t,s=a?t:e,[c,l]=Wx(o,s,n,r,i),u=[c.floor(o,l),c.ceil(s,l)];return a?u.reverse():u};var Hx=function(t){return t!==null&&typeof t!="function"&&isFinite(t.length)},b3={}.toString,$s=function(t,e){return b3.call(t)==="[object "+e+"]"};const Vx=function(t){return $s(t,"Function")};var x3=function(t){return t==null};const Xx=function(t){return Array.isArray?Array.isArray(t):$s(t,"Array")},w3=function(t){var e=typeof t;return t!==null&&e==="object"||e==="function"};function O3(t,e){if(t){var n;if(Xx(t))for(var r=0,i=t.length;re=>-t(-e),_p=(t,e)=>{const n=Math.log(t),r=t===Math.E?Math.log:t===10?Math.log10:t===2?Math.log2:i=>Math.log(i)/n;return e?Zx(r):r},Mp=(t,e)=>{const n=t===Math.E?Math.exp:r=>t**r;return e?Zx(n):n},T3=(t,e,n,r)=>{const i=t<0,a=_p(r,i),o=Mp(r,i),s=t>e,c=s?e:t,l=s?t:e,u=[o(Math.floor(a(c))),o(Math.ceil(a(l)))];return s?u.reverse():u},C3=t=>e=>{const n=t(e);return cs(n)?Math.round(n):n};function L3(t,e){return n=>{n.prototype.rescale=function(){this.initRange(),this.nice();const[r]=this.chooseTransforms();this.composeOutput(r,this.chooseClamp(r))},n.prototype.initRange=function(){const{interpolator:r}=this.options;this.options.range=t(r)},n.prototype.composeOutput=function(r,i){const{domain:a,interpolator:o,round:s}=this.getOptions(),c=e(a.map(r)),l=s?C3(o):o;this.output=Na(l,c,i,r)},n.prototype.invert=void 0}}var Qx={exports:{}},N3={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Jx={exports:{}},R3=function(e){return!e||typeof e=="string"?!1:e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!=="String")},I3=R3,j3=Array.prototype.concat,D3=Array.prototype.slice,ug=Jx.exports=function(e){for(var n=[],r=0,i=e.length;r=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};gn.to.keyword=function(t){return e2[t.slice(0,3)]};function Zr(t,e,n){return Math.min(Math.max(e,t),n)}function uc(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}var B3=Qx.exports;const F3=ip(B3);function kf(t,e,n){let r=n;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(e-t)*6*r:r<1/2?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function z3(t){const e=t[0]/360,n=t[1]/100,r=t[2]/100,i=t[3];if(n===0)return[r*255,r*255,r*255,i];const a=r<.5?r*(1+n):r+n-r*n,o=2*r-a,s=kf(o,a,e+1/3),c=kf(o,a,e),l=kf(o,a,e-1/3);return[s*255,c*255,l*255,i]}function fg(t){const e=F3.get(t);if(!e)return null;const{model:n,value:r}=e;return n==="rgb"?r:n==="hsl"?z3(r):null}const Ra=(t,e)=>n=>t*(1-n)+e*n,G3=(t,e)=>{const n=fg(t),r=fg(e);return n===null||r===null?n?()=>t:()=>e:i=>{const a=new Array(4);for(let u=0;u<4;u+=1){const f=n[u],d=r[u];a[u]=f*(1-i)+d*i}const[o,s,c,l]=a;return`rgba(${Math.round(o)}, ${Math.round(s)}, ${Math.round(c)}, ${l})`}},Fs=(t,e)=>typeof t=="number"&&typeof e=="number"?Ra(t,e):typeof t=="string"&&typeof e=="string"?G3(t,e):()=>t,Y3=(t,e)=>{const n=Ra(t,e);return r=>Math.round(n(r))};function W3(t,e){const{second:n,minute:r,hour:i,day:a,week:o,month:s,year:c}=e;return n.floor(t)`${e}`:typeof t=="object"?e=>JSON.stringify(e):e=>e}let n2=class r2 extends zs{getDefaultOptions(){return{domain:[],range:[],unknown:Eu}}constructor(e){super(e)}map(e){return this.domainIndexMap.size===0&&pg(this.domainIndexMap,this.getDomain(),this.domainKey),vg({value:this.domainKey(e),mapper:this.domainIndexMap,from:this.getDomain(),to:this.getRange(),notFoundReturn:this.options.unknown})}invert(e){return this.rangeIndexMap.size===0&&pg(this.rangeIndexMap,this.getRange(),this.rangeKey),vg({value:this.rangeKey(e),mapper:this.rangeIndexMap,from:this.getRange(),to:this.getDomain(),notFoundReturn:this.options.unknown})}rescale(e){const[n]=this.options.domain,[r]=this.options.range;if(this.domainKey=gg(n),this.rangeKey=gg(r),!this.rangeIndexMap){this.rangeIndexMap=new Map,this.domainIndexMap=new Map;return}(!e||e.range)&&this.rangeIndexMap.clear(),(!e||e.domain||e.compare)&&(this.domainIndexMap.clear(),this.sortedDomain=void 0)}clone(){return new r2(this.options)}getRange(){return this.options.range}getDomain(){if(this.sortedDomain)return this.sortedDomain;const{domain:e,compare:n}=this.options;return this.sortedDomain=n?[...e].sort(n):e,this.sortedDomain}};function U3(t){const e=Math.min(...t);return t.map(n=>n/e)}function q3(t,e){const n=t.length,r=e-n;return r>0?[...t,...new Array(r).fill(1)]:r<0?t.slice(0,e):t}function K3(t){return Math.round(t*1e12)/1e12}function Z3(t){const{domain:e,range:n,paddingOuter:r,paddingInner:i,flex:a,round:o,align:s}=t,c=e.length,l=q3(a,c),[u,f]=n,d=f-u,h=2/c*r+1-1/c*i,p=d/h,v=p*i/c,g=p-c*v,y=U3(l),m=y.reduce((T,A)=>T+A),b=g/m,x=new hg(e.map((T,A)=>{const k=y[A]*b;return[T,o?Math.floor(k):k]})),w=new hg(e.map((T,A)=>{const C=y[A]*b+v;return[T,o?Math.floor(C):C]})),O=Array.from(w.values()).reduce((T,A)=>T+A),_=(d-(O-O/c*i))*s,M=u+_;let E=o?Math.round(M):M;const P=new Array(c);for(let T=0;Td+b*u);return{valueStep:u,valueBandWidth:f,adjustedRange:y}}let Ia=class i2 extends n2{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,paddingInner:0,paddingOuter:0,padding:0,unknown:Eu,flex:[]}}constructor(e){super(e)}clone(){return new i2(this.options)}getStep(e){return this.valueStep===void 0?1:typeof this.valueStep=="number"?this.valueStep:e===void 0?Array.from(this.valueStep.values())[0]:this.valueStep.get(e)}getBandWidth(e){return this.valueBandWidth===void 0?1:typeof this.valueBandWidth=="number"?this.valueBandWidth:e===void 0?Array.from(this.valueBandWidth.values())[0]:this.valueBandWidth.get(e)}getRange(){return this.adjustedRange}getPaddingInner(){const{padding:e,paddingInner:n}=this.options;return e>0?e:n}getPaddingOuter(){const{padding:e,paddingOuter:n}=this.options;return e>0?e:n}rescale(){super.rescale();const{align:e,domain:n,range:r,round:i,flex:a}=this.options,{adjustedRange:o,valueBandWidth:s,valueStep:c}=Q3({align:e,range:r,round:i,flex:a,paddingInner:this.getPaddingInner(),paddingOuter:this.getPaddingOuter(),domain:n});this.valueStep=c,this.valueBandWidth=s,this.adjustedRange=o}};const Bi=(t,e,n)=>{let r,i,a=t,o=e;if(a===o&&n>0)return[a];let s=tl(a,o,n);if(s===0||!Number.isFinite(s))return[];if(s>0){a=Math.ceil(a/s),o=Math.floor(o/s),i=new Array(r=Math.ceil(o-a+1));for(let c=0;c=0&&(c=1),1-s/(o-1)-n+c}function rC(t,e,n){const r=Kx(e);return 1-qx(e,t)/(r-1)-n+1}function iC(t,e,n,r,i,a){const o=(t-1)/(a-i),s=(e-1)/(Math.max(a,r)-Math.min(n,i));return 2-Math.max(o/s,s/o)}function aC(t,e){return t>=e?2-(t-1)/(e-1):1}function oC(t,e,n,r){const i=e-t;return 1-.5*((e-r)**2+(t-n)**2)/(.1*i)**2}function sC(t,e,n){const r=e-t;return n>r?1-((n-r)/2)**2/(.1*r)**2:1}function cC(){return 1}const Pp=(t,e,n=5,r=!0,i=J3,a=[.25,.2,.5,.05])=>{const o=n<0?0:Math.round(n);if(Number.isNaN(t)||Number.isNaN(e)||typeof t!="number"||typeof e!="number"||!o)return[];if(e-t<1e-15||o===1)return[t];const s={score:-2,lmin:0,lmax:0,lstep:0};let c=1;for(;c<1/0;){for(let p=0;ps.score&&(!r||T<=t&&A>=e)&&(s.lmin=T,s.lmax=A,s.lstep=k,s.score=j)}}x+=1}y+=1}}c+=1}const l=mo(s.lmax),u=mo(s.lmin),f=mo(s.lstep),d=Math.floor(eC((l-u)/f))+1,h=new Array(d);h[0]=mo(u);for(let p=1;p{const[r,i]=t,[a,o]=e;let s,c;return r{const r=Math.min(t.length,e.length)-1,i=new Array(r),a=new Array(r),o=t[0]>t[r],s=o?[...t].reverse():t,c=o?[...e].reverse():e;for(let l=0;l{const u=Sp(t,l,1,r)-1,f=i[u],d=a[u];return Na(d,f)(l)}},mg=(t,e,n,r)=>(Math.min(t.length,e.length)>2?uC:lC)(t,e,r?Y3:n);let Pu=class extends zs{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:Ra,tickCount:5}}map(e){return Sl(e)?this.output(e):this.options.unknown}invert(e){return Sl(e)?this.input(e):this.options.unknown}nice(){if(!this.options.nice)return;const[e,n,r,...i]=this.getTickMethodOptions();this.options.domain=this.chooseNice()(e,n,r,...i)}getTicks(){const{tickMethod:e}=this.options,[n,r,i,...a]=this.getTickMethodOptions();return e(n,r,i,...a)}getTickMethodOptions(){const{domain:e,tickCount:n}=this.options,r=e[0],i=e[e.length-1];return[r,i,n]}chooseNice(){return Dx}rescale(){this.nice();const[e,n]=this.chooseTransforms();this.composeOutput(e,this.chooseClamp(e)),this.composeInput(e,n,this.chooseClamp(n))}chooseClamp(e){const{clamp:n,range:r}=this.options,i=this.options.domain.map(e),a=Math.min(i.length,r.length);return n?n3(i[0],i[a-1]):$i}composeOutput(e,n){const{domain:r,range:i,round:a,interpolate:o}=this.options,s=mg(r.map(e),i,o,a);this.output=Na(s,n,e)}composeInput(e,n,r){const{domain:i,range:a}=this.options,o=mg(a,i.map(e),Ra);this.input=Na(n,r,o)}},Yt=class c2 extends Pu{getDefaultOptions(){return{domain:[0,1],range:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolate:Fs,tickMethod:Bi,tickCount:5}}chooseTransforms(){return[$i,$i]}clone(){return new c2(this.options)}},l2=class u2 extends Ia{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,padding:0,unknown:Eu,paddingInner:1,paddingOuter:0}}constructor(e){super(e)}getPaddingInner(){return 1}clone(){return new u2(this.options)}update(e){super.update(e)}getPaddingOuter(){return this.options.padding}};const fC=t=>e=>e<0?-((-e)**t):e**t,dC=t=>e=>e<0?-((-e)**(1/t)):e**(1/t),hC=t=>t<0?-Math.sqrt(-t):Math.sqrt(t);let f2=class d2 extends Pu{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,exponent:2,interpolate:Fs,tickMethod:Bi,tickCount:5}}constructor(e){super(e)}chooseTransforms(){const{exponent:e}=this.options;if(e===1)return[$i,$i];const n=e===.5?hC:fC(e),r=dC(e);return[n,r]}clone(){return new d2(this.options)}},pC=class h2 extends f2{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:Fs,tickMethod:Bi,tickCount:5,exponent:.5}}constructor(e){super(e)}update(e){super.update(e)}clone(){return new h2(this.options)}},Au=class p2 extends zs{getDefaultOptions(){return{domain:[.5],range:[0,1]}}constructor(e){super(e)}map(e){if(!Sl(e))return this.options.unknown;const n=Sp(this.thresholds,e,0,this.n);return this.options.range[n]}invert(e){const{range:n}=this.options,r=n.indexOf(e),i=this.thresholds;return[i[r-1],i[r]]}clone(){return new p2(this.options)}rescale(){const{domain:e,range:n}=this.options;this.n=Math.min(e.length,n.length-1),this.thresholds=e}};const vC=(t,e,n,r=10)=>{const i=t<0,a=Mp(r,i),o=_p(r,i),s=e=1;p-=1){const v=h*p;if(v>l)break;v>=c&&d.push(v)}}else for(;u<=f;u+=1){const h=a(u);for(let p=1;pl)break;v>=c&&d.push(v)}}d.length*2a-o);const i=[];for(let a=1;a3?0:(t-t%10!==10?1:0)*t%10]}},_C=zd({},SC),Qe=function(t,e){for(e===void 0&&(e=2),t=String(t);t.length0?"-":"+")+Qe(Math.floor(Math.abs(e)/60)*100+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+Qe(Math.floor(Math.abs(e)/60),2)+":"+Qe(Math.abs(e)%60,2)}},bg={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},EC=function(t,e,n){if(e===void 0&&(e=bg.default),n===void 0&&(n={}),typeof t=="number"&&(t=new Date(t)),Object.prototype.toString.call(t)!=="[object Date]"||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");e=bg[e]||e;var r=[];e=e.replace(xC,function(a,o){return r.push(o),"@@@"});var i=zd(zd({},_C),n);return e=e.replace(bC,function(a){return MC[a](t,i)}),e.replace(/@@@/g,function(){return r.shift()})};const PC=(t,e,n,r,i)=>{const a=t>e,o=a?e:t,s=a?t:e,[c,l]=Wx(o,s,n,r,i),u=c.range(o,new Date(+s+1),l,!0);return a?u.reverse():u};function AC(t){const e=t.getTimezoneOffset(),n=new Date(t);return n.setMinutes(n.getMinutes()+e,n.getSeconds(),n.getMilliseconds()),n}let kC=class S2 extends Pu{getDefaultOptions(){return{domain:[new Date(2e3,0,1),new Date(2e3,0,2)],range:[0,1],nice:!1,tickCount:5,tickInterval:void 0,unknown:void 0,clamp:!1,tickMethod:PC,interpolate:Ra,mask:void 0,utc:!1}}chooseTransforms(){return[r=>+r,r=>new Date(r)]}chooseNice(){return m3}getTickMethodOptions(){const{domain:e,tickCount:n,tickInterval:r,utc:i}=this.options,a=e[0],o=e[e.length-1];return[a,o,n,r,i]}getFormatter(){const{mask:e,utc:n}=this.options,r=n?Yx:zx,i=n?AC:$i;return a=>EC(i(a),e||W3(a,r))}clone(){return new S2(this.options)}};var TC=function(t,e,n,r){var i=arguments.length,a=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},Gd;function CC(t){return[t(0),t(1)]}const LC=t=>{const[e,n]=t;return Na(Ra(0,1),Ol(e,n))};let Yd=Gd=class extends Yt{getDefaultOptions(){return{domain:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolator:$i,tickMethod:Bi,tickCount:5}}constructor(e){super(e)}clone(){return new Gd(this.options)}};Yd=Gd=TC([L3(CC,LC)],Yd);function _l(t,e,n){if(t===null)return[-.5,.5];const r=Ox(t,e),a=new Ia({domain:r,range:[0,1],padding:n}).getBandWidth();return[-a/2,a/2]}function Ml(t,e,n){return e*(1-t)+n*t}const _2=(t={})=>{const{padding:e=0,paddingX:n=e,paddingY:r=e,random:i=Math.random}=t;return(a,o)=>{const{encode:s,scale:c}=o,{x:l,y:u}=c,[f]=Ot(s,"x"),[d]=Ot(s,"y"),h=_l(f,l,n),p=_l(d,u,r),v=a.map(()=>Ml(i(),...p)),g=a.map(()=>Ml(i(),...h));return[a,X({scale:{x:{padding:.5},y:{padding:.5}}},o,{encode:{dy:Wt(v),dx:Wt(g)}})]}};_2.props={};const M2=(t={})=>{const{padding:e=0,random:n=Math.random}=t;return(r,i)=>{const{encode:a,scale:o}=i,{x:s}=o,[c]=Ot(a,"x"),l=_l(c,s,e),u=r.map(()=>Ml(n(),...l));return[r,X({scale:{x:{padding:.5}}},i,{encode:{dx:Wt(u)}})]}};M2.props={};const E2=(t={})=>{const{padding:e=0,random:n=Math.random}=t;return(r,i)=>{const{encode:a,scale:o}=i,{y:s}=o,[c]=Ot(a,"y"),l=_l(c,s,e),u=r.map(()=>Ml(n(),...l));return[r,X({scale:{y:{padding:.5}}},i,{encode:{dy:Wt(u)}})]}};E2.props={};var NC=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{groupBy:e="x"}=t;return(n,r)=>{const{encode:i}=r,a=NC(i,["x"]),o=Object.entries(a).filter(([f])=>f.startsWith("y")).map(([f])=>[f,Ot(i,f)[0]]),s=o.map(([f])=>[f,new Array(n.length)]),c=oi(e,n,r),l=new Array(c.length);for(let f=0;fo.map(([,y])=>+y[g])),[p,v]=Mr(h);l[f]=(p+v)/2}const u=Math.max(...l);for(let f=0;f[f,Wt(d,Ot(i,f)[1])]))})]}};P2.props={};const A2=(t={})=>{const{groupBy:e="x",series:n=!0}=t;return(r,i)=>{const{encode:a}=i,[o]=Ot(a,"y"),[s,c]=Ot(a,"y1");n?ts(a,"series","color"):Ot(a,"color");const l=oi(e,r,i),u=new Array(r.length);for(const f of l){const d=f.map(h=>+o[h]);for(let h=0;hy!==h));u[p]=o[p]>v?v:o[p]}}return[r,X({},i,{encode:{y1:Wt(u,c)}})]}};A2.props={};function xg(t,e){return[t[0]]}function RC(t,e){const n=t.length-1;return[t[n]]}function IC(t,e){const n=to(t,r=>e[r]);return[t[n]]}function jC(t,e){const n=bu(t,r=>e[r]);return[t[n]]}function DC(t){return typeof t=="function"?t:{first:xg,last:RC,max:IC,min:jC}[t]||xg}const ku=(t={})=>{const{groupBy:e="series",channel:n,selector:r}=t;return(i,a)=>{const{encode:o}=a,s=oi(e,i,a),[c]=Ot(o,n),l=DC(r);return[s.flatMap(u=>l(u,c)),a]}};ku.props={};var $C=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{selector:e}=t,n=$C(t,["selector"]);return ku(Object.assign({channel:"x",selector:e},n))};k2.props={};var BC=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{selector:e}=t,n=BC(t,["selector"]);return ku(Object.assign({channel:"y",selector:e},n))};T2.props={};var FC=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ie===null?t:`${t} of ${e}`}function zC(t){if(typeof t=="function")return[t,null];const n={mean:GC,max:WC,count:VC,first:UC,last:qC,sum:XC,min:HC,median:YC}[t];if(!n)throw new Error(`Unknown reducer: ${t}.`);return n()}function GC(){const t=(n,r)=>rs(n,i=>+r[i]),e=si("mean");return[t,e]}function YC(){const t=(n,r)=>yp(n,i=>+r[i]),e=si("median");return[t,e]}function WC(){const t=(n,r)=>Ct(n,i=>+r[i]),e=si("max");return[t,e]}function HC(){const t=(n,r)=>bn(n,i=>+r[i]),e=si("min");return[t,e]}function VC(){const t=(n,r)=>n.length,e=si("count");return[t,e]}function XC(){const t=(n,r)=>Cn(n,i=>+r[i]),e=si("sum");return[t,e]}function UC(){const t=(n,r)=>r[n[0]],e=si("first");return[t,e]}function qC(){const t=(n,r)=>r[n[n.length-1]],e=si("last");return[t,e]}const Ap=(t={})=>{const{groupBy:e}=t,n=FC(t,["groupBy"]);return(r,i)=>{const{data:a,encode:o}=i,s=e(r,i);if(!s)return[r,i];const c=(h,p)=>{if(h)return h;const{from:v}=p;if(!v)return h;const[,g]=Ot(o,v);return g},l=Object.entries(n).map(([h,p])=>{const[v,g]=zC(p),[y,m]=Ot(o,h),b=c(m,p),x=s.map(w=>v(w,y??a));return[h,Object.assign(Object.assign({},c5(x,(g==null?void 0:g(b))||b)),{aggregate:!0})]}),u=Object.keys(o).map(h=>{const[p,v]=Ot(o,h),g=s.map(y=>p[y[0]]);return[h,Wt(g,v)]}),f=s.map(h=>a[h[0]]);return[Ui(s),X({},i,{data:f,encode:Object.fromEntries([...u,...l])})]}};Ap.props={};var KC=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{channels:e=["x","y"]}=t,n=KC(t,["channels"]),r=(i,a)=>oi(e,i,a);return Ap(Object.assign(Object.assign({},n),{groupBy:r}))};Gs.props={};const C2=(t={})=>Gs(Object.assign(Object.assign({},t),{channels:["x","color","series"]}));C2.props={};const L2=(t={})=>Gs(Object.assign(Object.assign({},t),{channels:["y","color","series"]}));L2.props={};const N2=(t={})=>Gs(Object.assign(Object.assign({},t),{channels:["color"]}));N2.props={};var R2=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);ii(o,a);if(i==="max")return o=>Ct(o,s=>+a[s]);if(i==="min")return o=>bn(o,s=>+a[s]);if(i==="sum")return o=>Cn(o,s=>+a[s]);if(i==="median")return o=>yp(o,s=>+a[s]);if(i==="mean")return o=>rs(o,s=>+a[s]);if(i==="first")return o=>a[o[0]];if(i==="last")return o=>a[o[o.length-1]];throw new Error(`Unknown reducer: ${i}`)}function QC(t,e,n){const{reverse:r,channel:i}=n,{encode:a}=e,[o]=Ot(a,i),s=Er(t,c=>o[c]);return r&&s.reverse(),[s,e]}function JC(t,e,n){if(!Array.isArray(n))return t;const r=new Set(n);return t.filter(i=>r.has(e[i]))}function tL(t,e,n){var r;const{reverse:i,slice:a,channel:o}=n,s=R2(n,["reverse","slice","channel"]),{encode:c,scale:l={}}=e,u=(r=l[o])===null||r===void 0?void 0:r.domain,[f]=Ot(c,o),d=ZC(o,s,c),h=JC(t,f,u),p=w5(h,d,y=>f[y]);i&&p.reverse();const v=typeof a=="number"?[0,a]:a,g=a?p.slice(...v):p;return[t,X(e,{scale:{[o]:{domain:g}}})]}const Tu=(t={})=>{const{reverse:e=!1,slice:n,channel:r,ordinal:i=!0}=t,a=R2(t,["reverse","slice","channel","ordinal"]);return(o,s)=>i?tL(o,s,Object.assign({reverse:e,slice:n,channel:r},a)):QC(o,s,Object.assign({reverse:e,slice:n,channel:r},a))};Tu.props={};const I2=(t={})=>Tu(Object.assign(Object.assign({},t),{channel:"x"}));I2.props={};const j2=(t={})=>Tu(Object.assign(Object.assign({},t),{channel:"color"}));j2.props={};const D2=(t={})=>Tu(Object.assign(Object.assign({},t),{channel:"y"}));D2.props={};function eL(t,e){return typeof e=="string"?t.map(n=>n[e]):t.map(e)}function nL(t,e){if(typeof t=="function")return n=>t(n,e);if(t==="sum")return n=>Cn(n,r=>+e[r]);throw new Error(`Unknown reducer: ${t}`)}const $2=(t={})=>{const{field:e,channel:n="y",reducer:r="sum"}=t;return(i,a)=>{const{data:o,encode:s}=a,[c]=Ot(s,"x"),l=e?eL(o,e):Ot(s,n)[0],u=nL(r,l),f=dx(i,u,d=>c[d]).map(d=>d[1]);return[i,X({},a,{scale:{x:{flex:f}}})]}};$2.props={};function se([t,e],[n,r]){return[t-n,e-r]}function fc([t,e],[n,r]){return[t+n,e+r]}function Jt([t,e],[n,r]){return Math.sqrt(Math.pow(t-n,2)+Math.pow(e-r,2))}function Nn([t,e]){return Math.atan2(e,t)}function ja([t,e]){return Nn([t,e])+Math.PI/2}function B2(t,e){const n=Nn(t),r=Nn(e);return n{const o=r.length;if(o===0)return[];const{innerWidth:s,innerHeight:c}=a,l=c/s;let u=Math.ceil(Math.sqrt(i/l)),f=s/u,d=Math.ceil(i/u),h=d*f;for(;h>c;)u=u+1,f=s/u,d=Math.ceil(i/u),h=d*f;const p=c-d*f,v=d<=1?0:p/(d-1),[g,y]=d<=1?[(s-o*f)/(o-1),(c-f)/2]:[0,0];return r.map((m,b)=>{const[x,w,O,S]=kp(m),_=n==="col"?b%u:Math.floor(b/d),M=n==="col"?Math.floor(b/u):b%d,E=_*f,P=(d-M-1)*f+p,T=(f-e)/O,A=(f-e)/S,k=E-x+g*_+1/2*e,C=P-w-v*M-y+1/2*e;return`translate(${k}, ${C}) scale(${T}, ${A})`})}}const z2=t=>(e,n)=>[e,X({},n,{modifier:rL(t),axis:!1})];z2.props={};var iL=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{groupChannels:e=["color"],binChannels:n=["x","y"]}=t,r=iL(t,["groupChannels","binChannels"]),i={},a=(o,s)=>{const{encode:c}=s,l=n.map(p=>{const[v]=Ot(c,p);return v}),u=Q(r,wg),f=o.filter(p=>l.every(v=>zt(v[p]))),d=[...e.map(p=>{const[v]=Ot(c,p);return v}).filter(zt).map(p=>v=>p[v]),...n.map((p,v)=>{const g=l[v],y=u[p]||aL(g),m=T5().thresholds(y).value(x=>+g[x])(f),b=new Map(m.flatMap(x=>{const{x0:w,x1:O}=x,S=`${w},${O}`;return x.map(_=>[_,S])}));return i[p]=b,x=>b.get(x)})],h=p=>d.map(v=>v(p)).join("-");return Array.from(te(f,h).values())};return Ap(Object.assign(Object.assign(Object.assign({},Object.fromEntries(Object.entries(r).filter(([o])=>!o.startsWith(wg)))),Object.fromEntries(n.flatMap(o=>{const s=([l])=>+i[o].get(l).split(",")[0],c=([l])=>+i[o].get(l).split(",")[1];return c.from=o,[[o,s],[`${o}1`,c]]}))),{groupBy:a}))};Tp.props={};const G2=(t={})=>{const{thresholds:e}=t;return Tp(Object.assign(Object.assign({},t),{thresholdsX:e,groupChannels:["color"],binChannels:["x"]}))};G2.props={};function oL(t,e,n,r){const i=t.length;if(r>=i||r===0)return t;const a=h=>e[t[h]]*1,o=h=>n[t[h]]*1,s=[],c=(i-2)/(r-2);let l=0,u,f,d;s.push(l);for(let h=0;hu&&(u=f,d=b);s.push(d),l=d}return s.push(i-1),s.map(h=>t[h])}function sL(t){if(typeof t=="function")return t;if(t==="lttb")return oL;const e={first:r=>[r[0]],last:r=>[r[r.length-1]],min:(r,i,a)=>[r[bu(r,o=>a[o])]],max:(r,i,a)=>[r[to(r,o=>a[o])]],median:(r,i,a)=>[r[R5(r,o=>a[o])]]},n=e[t]||e.median;return(r,i,a,o)=>{const s=Math.max(1,Math.floor(r.length/o));return cL(r,s).flatMap(l=>n(l,i,a))}}function cL(t,e){const n=t.length,r=[];let i=0;for(;i{const{strategy:e="median",thresholds:n=2e3,groupBy:r=["series","color"]}=t,i=sL(e);return(a,o)=>{const{encode:s}=o,c=oi(r,a,o),[l]=Ot(s,"x"),[u]=Ot(s,"y");return[c.flatMap(f=>i(f,l,u,n)),o]}};Y2.props={};function lL(t){return typeof t=="object"?[t.value,t.ordinal]:[t,!0]}const W2=(t={})=>(e,n)=>{const{encode:r,data:i}=n,a=Object.entries(t).map(([u,f])=>{const[d]=Ot(r,u);if(!d)return null;const[h,p=!0]=lL(f);if(typeof h=="function")return v=>h(d[v]);if(p){const v=Array.isArray(h)?h:[h];return v.length===0?null:g=>v.includes(d[g])}else{const[v,g]=h;return y=>d[y]>=v&&d[y]<=g}}).filter(zt);if(a.length===0)return[e,n];const o=u=>a.every(f=>f(u)),s=e.filter(o),c=s.map((u,f)=>f),l=Object.entries(r).map(([u,f])=>[u,Object.assign(Object.assign({},f),{value:c.map(d=>f.value[s[d]]).filter(d=>d!==void 0)})]);return[c,X({},n,{encode:Object.fromEntries(l),data:s.map(u=>i[u])})]};W2.props={};function Ut(t){return function(){return t}}const Og=Math.abs,Re=Math.atan2,mi=Math.cos,uL=Math.max,Tf=Math.min,qn=Math.sin,va=Math.sqrt,Ie=1e-12,ls=Math.PI,El=ls/2,fL=2*ls;function dL(t){return t>1?0:t<-1?ls:Math.acos(t)}function Sg(t){return t>=1?El:t<=-1?-El:Math.asin(t)}const Wd=Math.PI,Hd=2*Wd,_i=1e-6,hL=Hd-_i;function H2(t){this._+=t[0];for(let e=1,n=t.length;e=0))throw new Error(`invalid digits: ${t}`);if(e>15)return H2;const n=10**e;return function(r){this._+=r[0];for(let i=1,a=r.length;i_i)if(!(Math.abs(f*c-l*u)>_i)||!a)this._append`L${this._x1=e},${this._y1=n}`;else{let h=r-o,p=i-s,v=c*c+l*l,g=h*h+p*p,y=Math.sqrt(v),m=Math.sqrt(d),b=a*Math.tan((Wd-Math.acos((v+d-g)/(2*y*m)))/2),x=b/m,w=b/y;Math.abs(x-1)>_i&&this._append`L${e+x*u},${n+x*f}`,this._append`A${a},${a},0,0,${+(f*h>u*p)},${this._x1=e+w*c},${this._y1=n+w*l}`}}arc(e,n,r,i,a,o){if(e=+e,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),c=r*Math.sin(i),l=e+s,u=n+c,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${l},${u}`:(Math.abs(this._x1-l)>_i||Math.abs(this._y1-u)>_i)&&this._append`L${l},${u}`,r&&(d<0&&(d=d%Hd+Hd),d>hL?this._append`A${r},${r},0,1,${f},${e-s},${n-c}A${r},${r},0,1,${f},${this._x1=l},${this._y1=u}`:d>_i&&this._append`A${r},${r},0,${+(d>=Wd)},${f},${this._x1=e+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(e,n,r,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}};function jn(){return new Cp}jn.prototype=Cp.prototype;function Lp(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);e=r}return t},()=>new Cp(e)}function vL(t){return t.innerRadius}function gL(t){return t.outerRadius}function yL(t){return t.startAngle}function mL(t){return t.endAngle}function bL(t){return t&&t.padAngle}function xL(t,e,n,r,i,a,o,s){var c=n-t,l=r-e,u=o-i,f=s-a,d=f*c-u*l;if(!(d*dk*k+C*C&&(_=E,M=P),{cx:_,cy:M,x01:-u,y01:-f,x11:_*(i/w-1),y11:M*(i/w-1)}}function Cu(){var t=vL,e=gL,n=Ut(0),r=null,i=yL,a=mL,o=bL,s=null,c=Lp(l);function l(){var u,f,d=+t.apply(this,arguments),h=+e.apply(this,arguments),p=i.apply(this,arguments)-El,v=a.apply(this,arguments)-El,g=Og(v-p),y=v>p;if(s||(s=u=c()),hIe))s.moveTo(0,0);else if(g>fL-Ie)s.moveTo(h*mi(p),h*qn(p)),s.arc(0,0,h,p,v,!y),d>Ie&&(s.moveTo(d*mi(v),d*qn(v)),s.arc(0,0,d,v,p,y));else{var m=p,b=v,x=p,w=v,O=g,S=g,_=o.apply(this,arguments)/2,M=_>Ie&&(r?+r.apply(this,arguments):va(d*d+h*h)),E=Tf(Og(h-d)/2,+n.apply(this,arguments)),P=E,T=E,A,k;if(M>Ie){var C=Sg(M/d*qn(_)),L=Sg(M/h*qn(_));(O-=C*2)>Ie?(C*=y?1:-1,x+=C,w-=C):(O=0,x=w=(p+v)/2),(S-=L*2)>Ie?(L*=y?1:-1,m+=L,b-=L):(S=0,m=b=(p+v)/2)}var I=h*mi(m),R=h*qn(m),j=d*mi(w),D=d*qn(w);if(E>Ie){var $=h*mi(b),B=h*qn(b),F=d*mi(x),Y=d*qn(x),U;if(gIe?T>Ie?(A=dc(F,Y,I,R,h,T,y),k=dc($,B,j,D,h,T,y),s.moveTo(A.cx+A.x01,A.cy+A.y01),TIe)||!(O>Ie)?s.lineTo(j,D):P>Ie?(A=dc(j,D,$,B,d,-P,y),k=dc(I,R,F,Y,d,-P,y),s.lineTo(A.cx+A.x01,A.cy+A.y01),P=h;--p)s.point(b[p],x[p]);s.lineEnd(),s.areaEnd()}y&&(b[d]=+t(g,d,f),x[d]=+e(g,d,f),s.point(r?+r(g,d,f):b[d],n?+n(g,d,f):x[d]))}if(m)return s=null,m+""||null}function u(){return Jr().defined(i).curve(o).context(a)}return l.x=function(f){return arguments.length?(t=typeof f=="function"?f:Ut(+f),r=null,l):t},l.x0=function(f){return arguments.length?(t=typeof f=="function"?f:Ut(+f),l):t},l.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Ut(+f),l):r},l.y=function(f){return arguments.length?(e=typeof f=="function"?f:Ut(+f),n=null,l):e},l.y0=function(f){return arguments.length?(e=typeof f=="function"?f:Ut(+f),l):e},l.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Ut(+f),l):n},l.lineX0=l.lineY0=function(){return u().x(t).y(e)},l.lineY1=function(){return u().x(t).y(n)},l.lineX1=function(){return u().x(r).y(e)},l.defined=function(f){return arguments.length?(i=typeof f=="function"?f:Ut(!!f),l):i},l.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),l):o},l.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),l):a},l}var K2=Np(Ys);function Z2(t){this._curve=t}Z2.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};function Np(t){function e(n){return new Z2(t(n))}return e._curve=t,e}function Mo(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(n){return arguments.length?e(Np(n)):e()._curve},t}function wL(){return Mo(Jr().curve(K2))}function OL(){var t=Vd().curve(K2),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,a=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return Mo(n())},delete t.lineX0,t.lineEndAngle=function(){return Mo(r())},delete t.lineX1,t.lineInnerRadius=function(){return Mo(i())},delete t.lineY0,t.lineOuterRadius=function(){return Mo(a())},delete t.lineY1,t.curve=function(o){return arguments.length?e(Np(o)):e()._curve},t}function Da(){}function Xd(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Rp(t,e){this._context=t,this._k=(1-e)/6}Rp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Xd(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Xd(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(r){return new Rp(r,e)}return n.tension=function(r){return t(+r)},n})(0);function Ip(t,e){this._context=t,this._k=(1-e)/6}Ip.prototype={areaStart:Da,areaEnd:Da,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Xd(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(r){return new Ip(r,e)}return n.tension=function(r){return t(+r)},n})(0);function Q2(t,e,n){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>Ie){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>Ie){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*l+t._x1*t._l23_2a-e*t._l12_2a)/u,o=(o*l+t._y1*t._l23_2a-n*t._l12_2a)/u}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function J2(t,e){this._context=t,this._alpha=e}J2.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Q2(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};(function t(e){function n(r){return e?new J2(r,e):new Rp(r,0)}return n.alpha=function(r){return t(+r)},n})(.5);function tw(t,e){this._context=t,this._alpha=e}tw.prototype={areaStart:Da,areaEnd:Da,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,r=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Q2(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const ew=function t(e){function n(r){return e?new tw(r,e):new Ip(r,0)}return n.alpha=function(r){return t(+r)},n}(.5);function nw(t){this._context=t}nw.prototype={areaStart:Da,areaEnd:Da,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function jp(t){return new nw(t)}function _g(t){return t<0?-1:1}function Mg(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(_g(a)+_g(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Eg(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Cf(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-r)/3;t._context.bezierCurveTo(r+s,i+s*e,a-s,o-s*n,a,o)}function Pl(t){this._context=t}Pl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Cf(this,this._t0,Eg(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Cf(this,Eg(this,n=Mg(this,t,e)),n);break;default:Cf(this,this._t0,n=Mg(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function rw(t){this._context=new iw(t)}(rw.prototype=Object.create(Pl.prototype)).point=function(t,e){Pl.prototype.point.call(this,e,t)};function iw(t){this._context=t}iw.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,r,i,a){this._context.bezierCurveTo(e,t,r,n,a,i)}};function aw(t){return new Pl(t)}function ow(t){return new rw(t)}function Lu(t,e){this._context=t,this._t=e}Lu.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}}this._x=t,this._y=e}};function sw(t){return new Lu(t,.5)}function cw(t){return new Lu(t,0)}function lw(t){return new Lu(t,1)}function qt(t){const{transformations:e}=t.getOptions();return e.map(([r])=>r).filter(r=>r==="transpose").length%2!==0}function Ht(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="polar")}function Nu(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="reflect")&&e.some(([n])=>n.startsWith("transpose"))}function uw(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="helix")}function Ru(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="parallel")}function fw(t){const{transformations:e}=t.getOptions();return e.some(([n])=>n==="fisheye")}function SL(t){return Ru(t)&&Ht(t)}function eo(t){return uw(t)||Ht(t)}function _L(t){return Ht(t)&&qt(t)}function ML(t){if(eo(t)){const[e,n]=t.getSize(),r=t.getOptions().transformations.find(i=>i[0]==="polar");if(r)return Math.max(e,n)/2*r[4]}return 0}function Iu(t){const{transformations:e}=t.getOptions(),[,,,n,r]=e.find(i=>i[0]==="polar");return[+n,+r]}function Dp(t,e=!0){const{transformations:n}=t.getOptions(),[,r,i]=n.find(a=>a[0]==="polar");return e?[+r*180/Math.PI,+i*180/Math.PI]:[r,i]}function EL(t,e){const{transformations:n}=t.getOptions(),[,...r]=n.find(i=>i[0]===e);return r}var dw={exports:{}};(function(t){var e=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(c,l,u){this.fn=c,this.context=l,this.once=u||!1}function a(c,l,u,f,d){if(typeof u!="function")throw new TypeError("The listener must be a function");var h=new i(u,f||c,d),p=n?n+l:l;return c._events[p]?c._events[p].fn?c._events[p]=[c._events[p],h]:c._events[p].push(h):(c._events[p]=h,c._eventsCount++),c}function o(c,l){--c._eventsCount===0?c._events=new r:delete c._events[l]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var l=[],u,f;if(this._eventsCount===0)return l;for(f in u=this._events)e.call(u,f)&&l.push(n?f.slice(1):f);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(u)):l},s.prototype.listeners=function(l){var u=n?n+l:l,f=this._events[u];if(!f)return[];if(f.fn)return[f.fn];for(var d=0,h=f.length,p=new Array(h);d>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?hc(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?hc(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=kL.exec(t))?new yn(e[1],e[2],e[3],1):(e=TL.exec(t))?new yn(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=CL.exec(t))?hc(e[1],e[2],e[3],e[4]):(e=LL.exec(t))?hc(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=NL.exec(t))?Ng(e[1],e[2]/100,e[3]/100,1):(e=RL.exec(t))?Ng(e[1],e[2]/100,e[3]/100,e[4]):Pg.hasOwnProperty(t)?Tg(Pg[t]):t==="transparent"?new yn(NaN,NaN,NaN,0):null}function Tg(t){return new yn(t>>16&255,t>>8&255,t&255,1)}function hc(t,e,n,r){return r<=0&&(t=e=n=NaN),new yn(t,e,n,r)}function jL(t){return t instanceof Ws||(t=ju(t)),t?(t=t.rgb(),new yn(t.r,t.g,t.b,t.opacity)):new yn}function DL(t,e,n,r){return arguments.length===1?jL(t):new yn(t,e,n,r??1)}function yn(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}Bp(yn,DL,hw(Ws,{brighter:function(t){return t=t==null?Al:Math.pow(Al,t),new yn(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=t==null?us:Math.pow(us,t),new yn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Cg,formatHex:Cg,formatRgb:Lg,toString:Lg}));function Cg(){return"#"+Lf(this.r)+Lf(this.g)+Lf(this.b)}function Lg(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(t===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(t===1?")":", "+t+")")}function Lf(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function Ng(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Qn(t,e,n,r)}function pw(t){if(t instanceof Qn)return new Qn(t.h,t.s,t.l,t.opacity);if(t instanceof Ws||(t=ju(t)),!t)return new Qn;if(t instanceof Qn)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(e===a?o=(n-r)/s+(n0&&c<1?0:o,new Qn(o,s,c,t.opacity)}function $L(t,e,n,r){return arguments.length===1?pw(t):new Qn(t,e,n,r??1)}function Qn(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Bp(Qn,$L,hw(Ws,{brighter:function(t){return t=t==null?Al:Math.pow(Al,t),new Qn(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=t==null?us:Math.pow(us,t),new Qn(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new yn(Nf(t>=240?t-240:t+120,i,r),Nf(t,i,r),Nf(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(t===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(t===1?")":", "+t+")")}}));function Nf(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}function Pr(t,e,n,r){var i=t-n,a=e-r;return Math.sqrt(i*i+a*a)}function vw(t,e){var n=Math.min.apply(Math,q([],N(t),!1)),r=Math.min.apply(Math,q([],N(e),!1)),i=Math.max.apply(Math,q([],N(t),!1)),a=Math.max.apply(Math,q([],N(e),!1));return{x:n,y:r,width:i-n,height:a-r}}function BL(t,e,n){return Math.atan(-e/t*Math.tan(n))}function FL(t,e,n){return Math.atan(e/(t*Math.tan(n)))}function zL(t,e,n,r,i,a){return n*Math.cos(i)*Math.cos(a)-r*Math.sin(i)*Math.sin(a)+t}function GL(t,e,n,r,i,a){return n*Math.sin(i)*Math.cos(a)+r*Math.cos(i)*Math.sin(a)+e}function YL(t,e,n,r,i,a,o){for(var s=BL(n,r,i),c=1/0,l=-1/0,u=[a,o],f=-Math.PI*2;f<=Math.PI*2;f+=Math.PI){var d=s+f;al&&(l=h)}for(var p=FL(n,r,i),v=1/0,g=-1/0,y=[a,o],f=-Math.PI*2;f<=Math.PI*2;f+=Math.PI){var m=p+f;ag&&(g=b)}return{x:c,y:v,width:l-c,height:g-v}}var WL=1e-4;function gw(t,e,n,r,i,a){var o=-1,s=1/0,c=[n,r],l=20;a&&a>200&&(l=a/10);for(var u=1/l,f=u/10,d=0;d<=l;d++){var h=d*u,p=[i.apply(void 0,q([],N(t.concat([h])),!1)),i.apply(void 0,q([],N(e.concat([h])),!1))],v=Pr(c[0],c[1],p[0],p[1]);v=0&&v=0&&c<=1&&s.push(c));else{var f=a*a-4*i*o;Fo(f,0)?s.push(-a/(2*i)):f>0&&(u=Math.sqrt(f),c=(-a+u)/(2*i),l=(-a-u)/(2*i),c>=0&&c<=1&&s.push(c),l>=0&&l<=1&&s.push(l))}return s}function VL(t,e,n,r,i,a,o,s){for(var c=[t,o],l=[e,s],u=Rg(t,n,i,o),f=Rg(e,r,a,s),d=0;d=0?[i]:[]}function KL(t,e,n,r,i,a){var o=jg(t,n,i)[0],s=jg(e,r,a)[0],c=[t,i],l=[e,a];return o!==void 0&&c.push(qd(t,n,i,o)),s!==void 0&&l.push(qd(e,r,a,s)),vw(c,l)}function ZL(t,e,n,r,i,a,o,s){return gw([t,n,i],[e,r,a],o,s,qd)}function QL(t,e,n,r,i,a,o,s){var c=ZL(t,e,n,r,i,a,o,s);return Pr(c.x,c.y,o,s)}var JL=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},bw={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(JL,function(){function n(w,O,S,_,M){r(w,O,S||0,_||w.length-1,M||a)}function r(w,O,S,_,M){for(;_>S;){if(_-S>600){var E=_-S+1,P=O-S+1,T=Math.log(E),A=.5*Math.exp(2*T/3),k=.5*Math.sqrt(T*A*(E-A)/E)*(P-E/2<0?-1:1),C=Math.max(S,Math.floor(O-P*A/E+k)),L=Math.min(_,Math.floor(O+(E-P)*A/E+k));r(w,O,C,L,M)}var I=w[O],R=S,j=_;for(i(w,S,O),M(w[_],I)>0&&i(w,S,_);R0;)j--}M(w[S],I)===0?i(w,S,j):(j++,i(w,j,_)),j<=O&&(S=j+1),O<=j&&(_=j-1)}}function i(w,O,S){var _=w[O];w[O]=w[S],w[S]=_}function a(w,O){return wO?1:0}var o=function(O){O===void 0&&(O=9),this._maxEntries=Math.max(4,O),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()};o.prototype.all=function(){return this._all(this.data,[])},o.prototype.search=function(O){var S=this.data,_=[];if(!m(O,S))return _;for(var M=this.toBBox,E=[];S;){for(var P=0;P=0&&E[S].children.length>this._maxEntries;)this._split(E,S),S--;this._adjustParentBBoxes(M,E,S)},o.prototype._split=function(O,S){var _=O[S],M=_.children.length,E=this._minEntries;this._chooseSplitAxis(_,E,M);var P=this._chooseSplitIndex(_,E,M),T=b(_.children.splice(P,_.children.length-P));T.height=_.height,T.leaf=_.leaf,c(_,this.toBBox),c(T,this.toBBox),S?O[S-1].children.push(T):this._splitRoot(_,T)},o.prototype._splitRoot=function(O,S){this.data=b([O,S]),this.data.height=O.height+1,this.data.leaf=!1,c(this.data,this.toBBox)},o.prototype._chooseSplitIndex=function(O,S,_){for(var M,E=1/0,P=1/0,T=S;T<=_-S;T++){var A=l(O,0,T,this.toBBox),k=l(O,T,_,this.toBBox),C=g(A,k),L=h(A)+h(k);C=S;L--){var I=O.children[L];u(T,O.leaf?E(I):I),A+=p(T)}return A},o.prototype._adjustParentBBoxes=function(O,S,_){for(var M=_;M>=0;M--)u(S[M],O)},o.prototype._condense=function(O){for(var S=O.length-1,_=void 0;S>=0;S--)O[S].children.length===0?S>0?(_=O[S-1].children,_.splice(_.indexOf(O[S]),1)):this.clear():c(O[S],this.toBBox)};function s(w,O,S){if(!S)return O.indexOf(w);for(var _=0;_=w.minX&&O.maxY>=w.minY}function b(w){return{children:w,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function x(w,O,S,_,M){for(var E=[O,S];E.length;)if(S=E.pop(),O=E.pop(),!(S-O<=_)){var P=O+Math.ceil((S-O)/_/2)*_;n(w,P,O,S,M),E.push(O,P,P,S)}}return o})})(bw);var tN=bw.exports,G;(function(t){t.GROUP="g",t.CIRCLE="circle",t.ELLIPSE="ellipse",t.IMAGE="image",t.RECT="rect",t.LINE="line",t.POLYLINE="polyline",t.POLYGON="polygon",t.TEXT="text",t.PATH="path",t.HTML="html",t.MESH="mesh"})(G||(G={}));var wa;(function(t){t[t.ZERO=0]="ZERO",t[t.NEGATIVE_ONE=1]="NEGATIVE_ONE"})(wa||(wa={}));var ci=function(){function t(){this.plugins=[]}return t.prototype.addRenderingPlugin=function(e){this.plugins.push(e),this.context.renderingPlugins.push(e)},t.prototype.removeAllRenderingPlugins=function(){var e=this;this.plugins.forEach(function(n){var r=e.context.renderingPlugins.indexOf(n);r>=0&&e.context.renderingPlugins.splice(r,1)})},t}(),eN=function(){function t(e){this.clipSpaceNearZ=wa.NEGATIVE_ONE,this.plugins=[],this.config=z({enableDirtyCheck:!0,enableCulling:!1,enableAutoRendering:!0,enableDirtyRectangleRendering:!0,enableDirtyRectangleRenderingDebug:!1},e)}return t.prototype.registerPlugin=function(e){var n=this.plugins.findIndex(function(r){return r===e});n===-1&&this.plugins.push(e)},t.prototype.unregisterPlugin=function(e){var n=this.plugins.findIndex(function(r){return r===e});n>-1&&this.plugins.splice(n,1)},t.prototype.getPlugins=function(){return this.plugins},t.prototype.getPlugin=function(e){return this.plugins.find(function(n){return n.name===e})},t.prototype.getConfig=function(){return this.config},t.prototype.setConfig=function(e){Object.assign(this.config,e)},t}();function na(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function Rf(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function el(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function Dg(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function nN(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function rN(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function Oa(t){return t===void 0?0:t>360||t<-360?t%360:t}function We(t,e,n){return e===void 0&&(e=0),n===void 0&&(n=0),Array.isArray(t)&&t.length===3?br(t):de(t)?St(t,e,n):St(t[0],t[1]||e,t[2]||n)}function re(t){return t*(Math.PI/180)}function Pn(t){return t*(180/Math.PI)}function iN(t){return 360*t}function aN(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n*n,s=r*r,c=i*i,l=a*a,u=o+s+c+l,f=n*a-r*i;return f>.499995*u?(t[0]=Math.PI/2,t[1]=2*Math.atan2(r,n),t[2]=0):f<-.499995*u?(t[0]=-Math.PI/2,t[1]=2*Math.atan2(r,n),t[2]=0):(t[0]=Math.asin(2*(n*i-a*r)),t[1]=Math.atan2(2*(n*a+r*i),1-2*(c+l)),t[2]=Math.atan2(2*(n*r+i*a),1-2*(s+c))),t}function oN(t,e){var n,r,i=Math.PI*.5,a=N(Aa(yt(),e),3),o=a[0],s=a[1],c=a[2],l=Math.asin(-e[2]/o);return l-i?(n=Math.atan2(e[6]/s,e[10]/c),r=Math.atan2(e[1]/o,e[0]/o)):(r=0,n=-Math.atan2(e[4]/s,e[5]/s)):(r=0,n=Math.atan2(e[4]/s,e[5]/s)),t[0]=n,t[1]=l,t[2]=r,t}function If(t,e){return e.length===16?oN(t,e):aN(t,e)}function sN(t,e,n,r,i){var a=Math.cos(t),o=Math.sin(t);return Yk(r*a,i*o,0,-r*o,i*a,0,e,n,1)}function cN(t,e,n,r,i,a,o,s){s===void 0&&(s=!1);var c=2*a/(n-e),l=2*a/(r-i),u=(n+e)/(n-e),f=(r+i)/(r-i),d,h;return s?(d=-o/(o-a),h=-o*a/(o-a)):(d=-(o+a)/(o-a),h=-2*o*a/(o-a)),t[0]=c,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l,t[6]=0,t[7]=0,t[8]=u,t[9]=f,t[10]=d,t[11]=-1,t[12]=0,t[13]=0,t[14]=h,t[15]=0,t}function $g(t){var e=t[0],n=t[1],r=t[3],i=t[4],a=Math.sqrt(e*e+n*n),o=Math.sqrt(r*r+i*i),s=e*i-n*r;s<0&&(eft[1][2]&&(a[0]=-a[0]),ft[0][2]>ft[2][0]&&(a[1]=-a[1]),ft[1][0]>ft[0][1]&&(a[2]=-a[2]),!0}function uN(t,e){var n=e[15];if(n===0)return!1;for(var r=1/n,i=0;i<16;i++)t[i]=e[i]*r;return!0}function fN(t,e){t[0][0]=e[0],t[0][1]=e[1],t[0][2]=e[2],t[1][0]=e[4],t[1][1]=e[5],t[1][2]=e[6],t[2][0]=e[8],t[2][1]=e[9],t[2][2]=e[10]}function jf(t,e,n,r,i){t[0]=e[0]*r+n[0]*i,t[1]=e[1]*r+n[1]*i,t[2]=e[2]*r+n[2]*i}var be=function(){function t(){this.center=[0,0,0],this.halfExtents=[0,0,0],this.min=[0,0,0],this.max=[0,0,0]}return t.isEmpty=function(e){return!e||e.halfExtents[0]===0&&e.halfExtents[1]===0&&e.halfExtents[2]===0},t.prototype.update=function(e,n){na(this.center,e),na(this.halfExtents,n),Rf(this.min,this.center,this.halfExtents),el(this.max,this.center,this.halfExtents)},t.prototype.setMinMax=function(e,n){el(this.center,n,e),Dg(this.center,this.center,.5),Rf(this.halfExtents,n,e),Dg(this.halfExtents,this.halfExtents,.5),na(this.min,e),na(this.max,n)},t.prototype.getMin=function(){return this.min},t.prototype.getMax=function(){return this.max},t.prototype.add=function(e){if(!t.isEmpty(e)){if(t.isEmpty(this)){this.setMinMax(e.getMin(),e.getMax());return}var n=this.center,r=n[0],i=n[1],a=n[2],o=this.halfExtents,s=o[0],c=o[1],l=o[2],u=r-s,f=r+s,d=i-c,h=i+c,p=a-l,v=a+l,g=e.center,y=g[0],m=g[1],b=g[2],x=e.halfExtents,w=x[0],O=x[1],S=x[2],_=y-w,M=y+w,E=m-O,P=m+O,T=b-S,A=b+S;_f&&(f=M),Eh&&(h=P),Tv&&(v=A),n[0]=(u+f)*.5,n[1]=(d+h)*.5,n[2]=(p+v)*.5,o[0]=(f-u)*.5,o[1]=(h-d)*.5,o[2]=(v-p)*.5,this.min[0]=u,this.min[1]=d,this.min[2]=p,this.max[0]=f,this.max[1]=h,this.max[2]=v}},t.prototype.setFromTransformedAABB=function(e,n){var r=this.center,i=this.halfExtents,a=e.center,o=e.halfExtents,s=n[0],c=n[4],l=n[8],u=n[1],f=n[5],d=n[9],h=n[2],p=n[6],v=n[10],g=Math.abs(s),y=Math.abs(c),m=Math.abs(l),b=Math.abs(u),x=Math.abs(f),w=Math.abs(d),O=Math.abs(h),S=Math.abs(p),_=Math.abs(v);r[0]=n[12]+s*a[0]+c*a[1]+l*a[2],r[1]=n[13]+u*a[0]+f*a[1]+d*a[2],r[2]=n[14]+h*a[0]+p*a[1]+v*a[2],i[0]=g*o[0]+y*o[1]+m*o[2],i[1]=b*o[0]+x*o[1]+w*o[2],i[2]=O*o[0]+S*o[1]+_*o[2],Rf(this.min,r,i),el(this.max,r,i)},t.prototype.intersects=function(e){var n=this.getMax(),r=this.getMin(),i=e.getMax(),a=e.getMin();return r[0]<=i[0]&&n[0]>=a[0]&&r[1]<=i[1]&&n[1]>=a[1]&&r[2]<=i[2]&&n[2]>=a[2]},t.prototype.intersection=function(e){if(!this.intersects(e))return null;var n=new t,r=nN([0,0,0],this.getMin(),e.getMin()),i=rN([0,0,0],this.getMax(),e.getMax());return n.setMinMax(r,i),n},t.prototype.getNegativeFarPoint=function(e){return e.pnVertexFlag===273?na([0,0,0],this.min):e.pnVertexFlag===272?[this.min[0],this.min[1],this.max[2]]:e.pnVertexFlag===257?[this.min[0],this.max[1],this.min[2]]:e.pnVertexFlag===256?[this.min[0],this.max[1],this.max[2]]:e.pnVertexFlag===17?[this.max[0],this.min[1],this.min[2]]:e.pnVertexFlag===16?[this.max[0],this.min[1],this.max[2]]:e.pnVertexFlag===1?[this.max[0],this.max[1],this.min[2]]:[this.max[0],this.max[1],this.max[2]]},t.prototype.getPositiveFarPoint=function(e){return e.pnVertexFlag===273?na([0,0,0],this.max):e.pnVertexFlag===272?[this.max[0],this.max[1],this.min[2]]:e.pnVertexFlag===257?[this.max[0],this.min[1],this.max[2]]:e.pnVertexFlag===256?[this.max[0],this.min[1],this.min[2]]:e.pnVertexFlag===17?[this.min[0],this.max[1],this.max[2]]:e.pnVertexFlag===16?[this.min[0],this.max[1],this.min[2]]:e.pnVertexFlag===1?[this.min[0],this.min[1],this.max[2]]:[this.min[0],this.min[1],this.min[2]]},t}(),dN=function(){function t(e,n){this.distance=e||0,this.normal=n||St(0,1,0),this.updatePNVertexFlag()}return t.prototype.updatePNVertexFlag=function(){this.pnVertexFlag=(+(this.normal[0]>=0)<<8)+(+(this.normal[1]>=0)<<4)+ +(this.normal[2]>=0)},t.prototype.distanceToPoint=function(e){return nr(e,this.normal)-this.distance},t.prototype.normalize=function(){var e=1/tx(this.normal);Cd(this.normal,this.normal,e),this.distance*=e},t.prototype.intersectsLine=function(e,n,r){var i=this.distanceToPoint(e),a=this.distanceToPoint(n),o=i/(i-a),s=o>=0&&o<=1;return s&&r&&Ld(r,e,n,o),s},t}(),zr;(function(t){t[t.OUTSIDE=4294967295]="OUTSIDE",t[t.INSIDE=0]="INSIDE",t[t.INDETERMINATE=2147483647]="INDETERMINATE"})(zr||(zr={}));var hN=function(){function t(e){if(this.planes=[],e)this.planes=e;else for(var n=0;n<6;n++)this.planes.push(new dN)}return t.prototype.extractFromVPMatrix=function(e){var n=N(e,16),r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7],f=n[8],d=n[9],h=n[10],p=n[11],v=n[12],g=n[13],y=n[14],m=n[15];Gn(this.planes[0].normal,o-r,u-s,p-f),this.planes[0].distance=m-v,Gn(this.planes[1].normal,o+r,u+s,p+f),this.planes[1].distance=m+v,Gn(this.planes[2].normal,o+i,u+c,p+d),this.planes[2].distance=m+g,Gn(this.planes[3].normal,o-i,u-c,p-d),this.planes[3].distance=m-g,Gn(this.planes[4].normal,o-a,u-l,p-h),this.planes[4].distance=m-y,Gn(this.planes[5].normal,o+a,u+l,p+h),this.planes[5].distance=m+y,this.planes.forEach(function(b){b.normalize(),b.updatePNVertexFlag()})},t}(),Ee=function(){function t(e,n){e===void 0&&(e=0),n===void 0&&(n=0),this.x=0,this.y=0,this.x=e,this.y=n}return t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.copyFrom=function(e){this.x=e.x,this.y=e.y},t}(),Fi=function(){function t(e,n,r,i){this.x=e,this.y=n,this.width=r,this.height=i,this.left=e,this.right=e+r,this.top=n,this.bottom=n+i}return t.prototype.toJSON=function(){},t}(),It="Method not implemented.",ra="Use document.documentElement instead.",pN="Cannot append a destroyed element.",Tt;(function(t){t[t.ORBITING=0]="ORBITING",t[t.EXPLORING=1]="EXPLORING",t[t.TRACKING=2]="TRACKING"})(Tt||(Tt={}));var ds;(function(t){t[t.DEFAULT=0]="DEFAULT",t[t.ROTATIONAL=1]="ROTATIONAL",t[t.TRANSLATIONAL=2]="TRANSLATIONAL",t[t.CINEMATIC=3]="CINEMATIC"})(ds||(ds={}));var tn;(function(t){t[t.ORTHOGRAPHIC=0]="ORTHOGRAPHIC",t[t.PERSPECTIVE=1]="PERSPECTIVE"})(tn||(tn={}));var xw={UPDATED:"updated"},Fg=2e-4,ww=function(){function t(){this.clipSpaceNearZ=wa.NEGATIVE_ONE,this.eventEmitter=new $p,this.matrix=Nt(),this.right=St(1,0,0),this.up=St(0,1,0),this.forward=St(0,0,1),this.position=St(0,0,1),this.focalPoint=St(0,0,0),this.distanceVector=St(0,0,-1),this.distance=1,this.azimuth=0,this.elevation=0,this.roll=0,this.relAzimuth=0,this.relElevation=0,this.relRoll=0,this.dollyingStep=0,this.maxDistance=1/0,this.minDistance=-1/0,this.zoom=1,this.rotateWorld=!1,this.fov=30,this.near=.1,this.far=1e3,this.aspect=1,this.projectionMatrix=Nt(),this.projectionMatrixInverse=Nt(),this.jitteredProjectionMatrix=void 0,this.enableUpdate=!0,this.type=Tt.EXPLORING,this.trackingMode=ds.DEFAULT,this.projectionMode=tn.PERSPECTIVE,this.frustum=new hN,this.orthoMatrix=Nt()}return t.prototype.isOrtho=function(){return this.projectionMode===tn.ORTHOGRAPHIC},t.prototype.getProjectionMode=function(){return this.projectionMode},t.prototype.getPerspective=function(){return this.jitteredProjectionMatrix||this.projectionMatrix},t.prototype.getPerspectiveInverse=function(){return this.projectionMatrixInverse},t.prototype.getFrustum=function(){return this.frustum},t.prototype.getPosition=function(){return this.position},t.prototype.getFocalPoint=function(){return this.focalPoint},t.prototype.getDollyingStep=function(){return this.dollyingStep},t.prototype.getNear=function(){return this.near},t.prototype.getFar=function(){return this.far},t.prototype.getZoom=function(){return this.zoom},t.prototype.getOrthoMatrix=function(){return this.orthoMatrix},t.prototype.getView=function(){return this.view},t.prototype.setEnableUpdate=function(e){this.enableUpdate=e},t.prototype.setType=function(e,n){return this.type=e,this.type===Tt.EXPLORING?this.setWorldRotation(!0):this.setWorldRotation(!1),this._getAngles(),this.type===Tt.TRACKING&&n!==void 0&&this.setTrackingMode(n),this},t.prototype.setProjectionMode=function(e){return this.projectionMode=e,this},t.prototype.setTrackingMode=function(e){if(this.type!==Tt.TRACKING)throw new Error("Impossible to set a tracking mode if the camera is not of tracking type");return this.trackingMode=e,this},t.prototype.setWorldRotation=function(e){return this.rotateWorld=e,this._getAngles(),this},t.prototype.getViewTransform=function(){return Wn(Nt(),this.matrix)},t.prototype.getWorldTransform=function(){return this.matrix},t.prototype.jitterProjectionMatrix=function(e,n){var r=up(Nt(),[e,n,0]);this.jitteredProjectionMatrix=$e(Nt(),r,this.projectionMatrix)},t.prototype.clearJitterProjectionMatrix=function(){this.jitteredProjectionMatrix=void 0},t.prototype.setMatrix=function(e){return this.matrix=e,this._update(),this},t.prototype.setFov=function(e){return this.setPerspective(this.near,this.far,e,this.aspect),this},t.prototype.setAspect=function(e){return this.setPerspective(this.near,this.far,this.fov,e),this},t.prototype.setNear=function(e){return this.projectionMode===tn.PERSPECTIVE?this.setPerspective(e,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,e,this.far),this},t.prototype.setFar=function(e){return this.projectionMode===tn.PERSPECTIVE?this.setPerspective(this.near,e,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,e),this},t.prototype.setViewOffset=function(e,n,r,i,a,o){return this.aspect=e/n,this.view===void 0&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=n,this.view.offsetX=r,this.view.offsetY=i,this.view.width=a,this.view.height=o,this.projectionMode===tn.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this},t.prototype.clearViewOffset=function(){return this.view!==void 0&&(this.view.enabled=!1),this.projectionMode===tn.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this},t.prototype.setZoom=function(e){return this.zoom=e,this.projectionMode===tn.ORTHOGRAPHIC?this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far):this.projectionMode===tn.PERSPECTIVE&&this.setPerspective(this.near,this.far,this.fov,this.aspect),this},t.prototype.setZoomByViewportPoint=function(e,n){var r=this.canvas.viewport2Canvas({x:n[0],y:n[1]}),i=r.x,a=r.y,o=this.roll;this.rotate(0,0,-o),this.setPosition(i,a),this.setFocalPoint(i,a),this.setZoom(e),this.rotate(0,0,o);var s=this.canvas.viewport2Canvas({x:n[0],y:n[1]}),c=s.x,l=s.y,u=St(c-i,l-a,0),f=nr(u,this.right)/wr(this.right),d=nr(u,this.up)/wr(this.up);return this.pan(-f,-d),this},t.prototype.setPerspective=function(e,n,r,i){var a;this.projectionMode=tn.PERSPECTIVE,this.fov=r,this.near=e,this.far=n,this.aspect=i;var o=this.near*Math.tan(re(.5*this.fov))/this.zoom,s=2*o,c=this.aspect*s,l=-.5*c;if(!((a=this.view)===null||a===void 0)&&a.enabled){var u=this.view.fullWidth,f=this.view.fullHeight;l+=this.view.offsetX*c/u,o-=this.view.offsetY*s/f,c*=this.view.width/u,s*=this.view.height/f}return cN(this.projectionMatrix,l,l+c,o,o-s,e,this.far,this.clipSpaceNearZ===wa.ZERO),vl(this.projectionMatrix,this.projectionMatrix,St(1,-1,1)),Wn(this.projectionMatrixInverse,this.projectionMatrix),this.triggerUpdate(),this},t.prototype.setOrthographic=function(e,n,r,i,a,o){var s;this.projectionMode=tn.ORTHOGRAPHIC,this.rright=n,this.left=e,this.top=r,this.bottom=i,this.near=a,this.far=o;var c=(this.rright-this.left)/(2*this.zoom),l=(this.top-this.bottom)/(2*this.zoom),u=(this.rright+this.left)/2,f=(this.top+this.bottom)/2,d=u-c,h=u+c,p=f+l,v=f-l;if(!((s=this.view)===null||s===void 0)&&s.enabled){var g=(this.rright-this.left)/this.view.fullWidth/this.zoom,y=(this.top-this.bottom)/this.view.fullHeight/this.zoom;d+=g*this.view.offsetX,h=d+g*this.view.width,p-=y*this.view.offsetY,v=p-y*this.view.height}return this.clipSpaceNearZ===wa.NEGATIVE_ONE?Ub(this.projectionMatrix,d,h,v,p,a,o):qb(this.projectionMatrix,d,h,v,p,a,o),vl(this.projectionMatrix,this.projectionMatrix,St(1,-1,1)),Wn(this.projectionMatrixInverse,this.projectionMatrix),this._getOrthoMatrix(),this.triggerUpdate(),this},t.prototype.setPosition=function(e,n,r){n===void 0&&(n=this.position[1]),r===void 0&&(r=this.position[2]);var i=We(e,n,r);return this._setPosition(i),this.setFocalPoint(this.focalPoint),this.triggerUpdate(),this},t.prototype.setFocalPoint=function(e,n,r){n===void 0&&(n=this.focalPoint[1]),r===void 0&&(r=this.focalPoint[2]);var i=St(0,1,0);if(this.focalPoint=We(e,n,r),this.trackingMode===ds.CINEMATIC){var a=qv(yt(),this.focalPoint,this.position);e=a[0],n=a[1],r=a[2];var o=wr(a),s=Pn(Math.asin(n/o)),c=90+Pn(Math.atan2(r,e)),l=Nt();Wb(l,l,re(c)),Yb(l,l,re(s)),i=Oe(yt(),[0,1,0],l)}return Wn(this.matrix,Kb(Nt(),this.position,this.focalPoint,i)),this._getAxes(),this._getDistance(),this._getAngles(),this.triggerUpdate(),this},t.prototype.getDistance=function(){return this.distance},t.prototype.getDistanceVector=function(){return this.distanceVector},t.prototype.setDistance=function(e){if(this.distance===e||e<0)return this;this.distance=e,this.distance=Z.kEms&&e=ti.kUnitType&&this.getType()<=ti.kClampType},t}(),xN=function(t){rt(e,t);function e(n){var r=t.call(this)||this;return r.colorSpace=n,r}return e.prototype.getType=function(){return ti.kColorType},e.prototype.to=function(n){return this},e}(Du),rr;(function(t){t[t.Constant=0]="Constant",t[t.LinearGradient=1]="LinearGradient",t[t.RadialGradient=2]="RadialGradient"})(rr||(rr={}));var pc=function(t){rt(e,t);function e(n,r){var i=t.call(this)||this;return i.type=n,i.value=r,i}return e.prototype.clone=function(){return new e(this.type,this.value)},e.prototype.buildCSSText=function(n,r,i){return i},e.prototype.getType=function(){return ti.kColorType},e}(Du),sn=function(t){rt(e,t);function e(n){var r=t.call(this)||this;return r.value=n,r}return e.prototype.clone=function(){return new e(this.value)},e.prototype.getType=function(){return ti.kKeywordType},e.prototype.buildCSSText=function(n,r,i){return i+this.value},e}(Du),wN=Ne(function(t){return t===void 0&&(t=""),t.replace(/-([a-z])/g,function(e){return e[1].toUpperCase()})}),Yg=function(t){return t.split("").map(function(e,n){return e.toUpperCase()===e?"".concat(n!==0?"-":"").concat(e.toLowerCase()):e}).join("")};function ON(t){if(!t)throw new Error}function ga(t){return typeof t=="function"}function SN(t){return typeof t=="symbol"}var _N={d:{alias:"path"},strokeDasharray:{alias:"lineDash"},strokeWidth:{alias:"lineWidth"},textAnchor:{alias:"textAlign"},src:{alias:"img"}},Jd=Ne(function(t){var e=wN(t),n=_N[e];return e=(n==null?void 0:n.alias)||e,e}),MN=function(t,e){e===void 0&&(e="");var n="";return Number.isFinite(t)?(ON(Number.isNaN(t)),n="NaN"):t>0?n="infinity":n="-infinity",n+=e},th=function(t){return bN(mN(t))},jt=function(t){rt(e,t);function e(n,r){r===void 0&&(r=Z.kNumber);var i=t.call(this)||this,a;return typeof r=="string"?a=yN(r):a=r,i.unit=a,i.value=n,i}return e.prototype.clone=function(){return new e(this.value,this.unit)},e.prototype.equals=function(n){var r=n;return this.value===r.value&&this.unit===r.unit},e.prototype.getType=function(){return ti.kUnitType},e.prototype.convertTo=function(n){if(this.unit===n)return new e(this.value,this.unit);var r=th(this.unit);if(r!==th(n)||r===Z.kUnknown)return null;var i=Gg(this.unit)/Gg(n);return new e(this.value*i,n)},e.prototype.buildCSSText=function(n,r,i){var a;switch(this.unit){case Z.kUnknown:break;case Z.kInteger:a=Number(this.value).toFixed(0);break;case Z.kNumber:case Z.kPercentage:case Z.kEms:case Z.kRems:case Z.kPixels:case Z.kDegrees:case Z.kRadians:case Z.kGradians:case Z.kMilliseconds:case Z.kSeconds:case Z.kTurns:{var o=-999999,s=999999,c=this.value,l=Qd(this.unit);if(cs){var u=Qd(this.unit);!Number.isFinite(c)||Number.isNaN(c)?a=MN(c,u):a=c+(u||"")}else a="".concat(c).concat(l)}}return i+=a,i},e}(Du),we=new jt(0,"px");new jt(1,"px");var Hn=new jt(0,"deg"),Fp=function(t){rt(e,t);function e(n,r,i,a,o){a===void 0&&(a=1),o===void 0&&(o=!1);var s=t.call(this,"rgb")||this;return s.r=n,s.g=r,s.b=i,s.alpha=a,s.isNone=o,s}return e.prototype.clone=function(){return new e(this.r,this.g,this.b,this.alpha)},e.prototype.buildCSSText=function(n,r,i){return i+"rgba(".concat(this.r,",").concat(this.g,",").concat(this.b,",").concat(this.alpha,")")},e}(xN),Gt=new sn("unset"),EN=new sn("initial"),PN=new sn("inherit"),Df={"":Gt,unset:Gt,initial:EN,inherit:PN},eh=function(t){return Df[t]||(Df[t]=new sn(t)),Df[t]},nh=new Fp(0,0,0,0,!0),Ow=new Fp(0,0,0,0),AN=Ne(function(t,e,n,r){return new Fp(t,e,n,r)},function(t,e,n,r){return"rgba(".concat(t,",").concat(e,",").concat(n,",").concat(r,")")}),Ft=function(t,e){return e===void 0&&(e=Z.kNumber),new jt(t,e)},kl=new jt(50,"%"),rh;(function(t){t[t.Standard=0]="Standard"})(rh||(rh={}));var $a;(function(t){t[t.ADDED=0]="ADDED",t[t.REMOVED=1]="REMOVED",t[t.Z_INDEX_CHANGED=2]="Z_INDEX_CHANGED"})($a||($a={}));var Sw={absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:new Fi(0,0,0,0)},tt;(function(t){t.COORDINATE="",t.COLOR="",t.PAINT="",t.NUMBER="",t.ANGLE="",t.OPACITY_VALUE="",t.SHADOW_BLUR="",t.LENGTH="",t.PERCENTAGE="",t.LENGTH_PERCENTAGE=" | ",t.LENGTH_PERCENTAGE_12="[ | ]{1,2}",t.LENGTH_PERCENTAGE_14="[ | ]{1,4}",t.LIST_OF_POINTS="",t.PATH="",t.FILTER="",t.Z_INDEX="",t.OFFSET_DISTANCE="",t.DEFINED_PATH="",t.MARKER="",t.TRANSFORM="",t.TRANSFORM_ORIGIN="",t.TEXT="",t.TEXT_TRANSFORM=""})(tt||(tt={}));function kN(t){var e=t.type,n=t.value;return e==="hex"?"#".concat(n):e==="literal"?n:e==="rgb"?"rgb(".concat(n.join(","),")"):"rgba(".concat(n.join(","),")")}var TN=function(){var t={linearGradient:/^(linear\-gradient)/i,repeatingLinearGradient:/^(repeating\-linear\-gradient)/i,radialGradient:/^(radial\-gradient)/i,repeatingRadialGradient:/^(repeating\-radial\-gradient)/i,conicGradient:/^(conic\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},e="";function n(I){throw new Error(e+": "+I)}function r(){var I=i();return e.length>0&&n("Invalid input not EOF"),I}function i(){return b(a)}function a(){return o("linear-gradient",t.linearGradient,c)||o("repeating-linear-gradient",t.repeatingLinearGradient,c)||o("radial-gradient",t.radialGradient,f)||o("repeating-radial-gradient",t.repeatingRadialGradient,f)||o("conic-gradient",t.conicGradient,f)}function o(I,R,j){return s(R,function(D){var $=j();return $&&(C(t.comma)||n("Missing comma before color stops")),{type:I,orientation:$,colorStops:b(x)}})}function s(I,R){var j=C(I);if(j){C(t.startCall)||n("Missing (");var D=R(j);return C(t.endCall)||n("Missing )"),D}}function c(){return l()||u()}function l(){return k("directional",t.sideOrCorner,1)}function u(){return k("angular",t.angleValue,1)}function f(){var I,R=d(),j;return R&&(I=[],I.push(R),j=e,C(t.comma)&&(R=d(),R?I.push(R):e=j)),I}function d(){var I=h()||p();if(I)I.at=g();else{var R=v();if(R){I=R;var j=g();j&&(I.at=j)}else{var D=y();D&&(I={type:"default-radial",at:D})}}return I}function h(){var I=k("shape",/^(circle)/i,0);return I&&(I.style=A()||v()),I}function p(){var I=k("shape",/^(ellipse)/i,0);return I&&(I.style=P()||v()),I}function v(){return k("extent-keyword",t.extentKeywords,1)}function g(){if(k("position",/^at/,0)){var I=y();return I||n("Missing positioning value"),I}}function y(){var I=m();if(I.x||I.y)return{type:"position",value:I}}function m(){return{x:P(),y:P()}}function b(I){var R=I(),j=[];if(R)for(j.push(R);C(t.comma);)R=I(),R?j.push(R):n("One extra comma");return j}function x(){var I=w();return I||n("Expected color definition"),I.length=P(),I}function w(){return S()||M()||_()||O()}function O(){return k("literal",t.literalColor,0)}function S(){return k("hex",t.hexColor,1)}function _(){return s(t.rgbColor,function(){return{type:"rgb",value:b(E)}})}function M(){return s(t.rgbaColor,function(){return{type:"rgba",value:b(E)}})}function E(){return C(t.number)[1]}function P(){return k("%",t.percentageValue,1)||T()||A()}function T(){return k("position-keyword",t.positionKeywords,1)}function A(){return k("px",t.pixelValue,1)||k("em",t.emValue,1)}function k(I,R,j){var D=C(R);if(D)return{type:I,value:D[j]}}function C(I){var R=/^[\n\r\t\s]+/.exec(e);R&&L(R[0].length);var j=I.exec(e);return j&&L(j[0].length),j}function L(I){e=e.substring(I)}return function(I){return e=I,r()}}();function CN(t,e,n){var r=re(n.value),i=0,a=0,o=i+t/2,s=a+e/2,c=Math.abs(t*Math.cos(r))+Math.abs(e*Math.sin(r)),l=o-Math.cos(r)*c/2,u=s-Math.sin(r)*c/2,f=o+Math.cos(r)*c/2,d=s+Math.sin(r)*c/2;return{x1:l,y1:u,x2:f,y2:d}}function LN(t,e,n,r,i){var a=n.value,o=r.value;n.unit===Z.kPercentage&&(a=n.value/100*t),r.unit===Z.kPercentage&&(o=r.value/100*e);var s=Math.max(nn([0,0],[a,o]),nn([0,e],[a,o]),nn([t,e],[a,o]),nn([t,0],[a,o]));return i&&(i instanceof jt?s=i.value:i instanceof sn&&(i.value==="closest-side"?s=Math.min(a,t-a,o,e-o):i.value==="farthest-side"?s=Math.max(a,t-a,o,e-o):i.value==="closest-corner"&&(s=Math.min(nn([0,0],[a,o]),nn([0,e],[a,o]),nn([t,e],[a,o]),nn([t,0],[a,o]))))),{x:a,y:o,r:s}}var NN=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,RN=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,IN=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,_w=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function jN(t){var e,n,r,i=t.length;t[i-1].length=(e=t[i-1].length)!==null&&e!==void 0?e:{type:"%",value:"100"},i>1&&(t[0].length=(n=t[0].length)!==null&&n!==void 0?n:{type:"%",value:"0"});for(var a=0,o=Number(t[0].length.value),s=1;s-1||t.indexOf("radial")>-1){var n=TN(t);return n.map(function(s){var c=s.type,l=s.orientation,u=s.colorStops;jN(u);var f=u.map(function(b){return{offset:Ft(Number(b.length.value),"%"),color:kN(b)}});if(c==="linear-gradient")return new pc(rr.LinearGradient,{angle:l?$N(l):Hn,steps:f});if(c==="radial-gradient"&&(l||(l=[{type:"shape",value:"circle"}]),l[0].type==="shape"&&l[0].value==="circle")){var d=BN(l[0].at),h=d.cx,p=d.cy,v=void 0;if(l[0].style){var g=l[0].style,y=g.type,m=g.value;y==="extent-keyword"?v=eh(m):v=Ft(m,y)}return new pc(rr.RadialGradient,{cx:h,cy:p,size:v,steps:f})}})}var r=t[0];if(t[1]==="("||t[2]==="("){if(r==="l"){var i=NN.exec(t);if(i){var a=((e=i[2].match(_w))===null||e===void 0?void 0:e.map(function(s){return s.split(":")}))||[];return[new pc(rr.LinearGradient,{angle:Ft(parseFloat(i[1]),"deg"),steps:a.map(function(s){var c=N(s,2),l=c[0],u=c[1];return{offset:Ft(Number(l)*100,"%"),color:u}})})]}}else if(r==="r"){var o=zN(t);if(o)if(le(o))t=o;else return[new pc(rr.RadialGradient,o)]}else if(r==="p")return GN(t)}});function zN(t){var e,n=RN.exec(t);if(n){var r=((e=n[4].match(_w))===null||e===void 0?void 0:e.map(function(i){return i.split(":")}))||[];return{cx:Ft(50,"%"),cy:Ft(50,"%"),steps:r.map(function(i){var a=N(i,2),o=a[0],s=a[1];return{offset:Ft(Number(o)*100,"%"),color:s}})}}return null}function GN(t){var e=IN.exec(t);if(e){var n=e[1],r=e[2];switch(n){case"a":n="repeat";break;case"x":n="repeat-x";break;case"y":n="repeat-y";break;case"n":n="no-repeat";break;default:n="no-repeat"}return{image:r,repetition:n}}return null}function hs(t){return t&&!!t.image}function Tl(t){return t&&!nt(t.r)&&!nt(t.g)&&!nt(t.b)}var Ar=Ne(function(t){if(hs(t))return z({repetition:"repeat"},t);if(nt(t)&&(t=""),t==="transparent")return Ow;t==="currentColor"&&(t="black");var e=FN(t);if(e)return e;var n=ju(t),r=[0,0,0,0];return n!==null&&(r[0]=n.r||0,r[1]=n.g||0,r[2]=n.b||0,r[3]=n.opacity),AN.apply(void 0,q([],N(r),!1))});function YN(t,e){if(!(!Tl(t)||!Tl(e)))return[[Number(t.r),Number(t.g),Number(t.b),Number(t.alpha)],[Number(e.r),Number(e.g),Number(e.b),Number(e.alpha)],function(n){var r=n.slice();if(r[3])for(var i=0;i<3;i++)r[i]=Math.round(ce(r[i],0,255));return r[3]=ce(r[3],0,1),"rgba(".concat(r.join(","),")")}]}function Hs(t,e){if(nt(e))return Ft(0,"px");if(e="".concat(e).trim().toLowerCase(),isFinite(Number(e))){if("px".search(t)>=0)return Ft(Number(e),"px");if("deg".search(t)>=0)return Ft(Number(e),"deg")}var n=[];e=e.replace(t,function(i){return n.push(i),"U"+i});var r="U("+t.source+")";return n.map(function(i){return Ft(Number(e.replace(new RegExp("U"+i,"g"),"").replace(new RegExp(r,"g"),"*0")),i)})[0]}var Mw=function(t){return Hs(new RegExp("px","g"),t)},WN=Ne(Mw),HN=function(t){return Hs(new RegExp("%","g"),t)};Ne(HN);var ps=function(t){return de(t)||isFinite(Number(t))?Ft(Number(t)||0,"px"):Hs(new RegExp("px|%|em|rem","g"),t)},Ba=Ne(ps),zp=function(t){return Hs(new RegExp("deg|rad|grad|turn","g"),t)},Ew=Ne(zp);function VN(t,e,n,r,i){i===void 0&&(i=0);var a="",o=t.value||0,s=e.value||0,c=th(t.unit),l=t.convertTo(c),u=e.convertTo(c);return l&&u?(o=l.value,s=u.value,a=Qd(t.unit)):(jt.isLength(t.unit)||jt.isLength(e.unit))&&(o=dn(t,i,n),s=dn(e,i,n),a="px"),[o,s,function(f){return r&&(f=Math.max(f,0)),f+a}]}function hn(t){var e=0;return t.unit===Z.kDegrees?e=t.value:t.unit===Z.kRadians?e=Pn(Number(t.value)):t.unit===Z.kTurns&&(e=iN(Number(t.value))),e}function $f(t,e){var n;return Array.isArray(t)?n=t.map(function(r){return Number(r)}):le(t)?n=t.split(" ").map(function(r){return Number(r)}):de(t)&&(n=[t]),e===2?n.length===1?[n[0],n[0]]:[n[0],n[1]]:n.length===1?[n[0],n[0],n[0],n[0]]:n.length===2?[n[0],n[1],n[0],n[1]]:n.length===3?[n[0],n[1],n[2],n[1]]:[n[0],n[1],n[2],n[3]]}function Pw(t){return le(t)?t.split(" ").map(function(e){return Ba(e)}):t.map(function(e){return Ba(e.toString())})}function dn(t,e,n){if(t.value===0)return 0;if(t.unit===Z.kPixels)return Number(t.value);if(t.unit===Z.kPercentage&&n){var r=n.nodeName===G.GROUP?n.getLocalBounds():n.geometry.contentBounds;return t.value/100*r.halfExtents[e]*2}return 0}var XN=function(t){return Hs(/deg|rad|grad|turn|px|%/g,t)},UN=["blur","brightness","drop-shadow","contrast","grayscale","sepia","saturate","hue-rotate","invert"];function Aw(t){if(t===void 0&&(t=""),t=t.toLowerCase().trim(),t==="none")return[];for(var e=/\s*([\w-]+)\(([^)]*)\)/g,n=[],r,i=0;r=e.exec(t);){if(r.index!==i)return[];if(i=r.index+r[0].length,UN.indexOf(r[1])>-1&&n.push({name:r[1],params:r[2].split(" ").map(function(a){return XN(a)||Ar(a)})}),e.lastIndex===t.length)return n}return[]}function kw(t){return t.toString()}var no=function(t){return typeof t=="number"?Ft(t):/^\s*[-+]?(\d*\.)?\d+\s*$/.test(t)?Ft(Number(t)):Ft(0)},zi=Ne(no);Ne(function(t){return le(t)?t.split(" ").map(zi):t.map(zi)});function Gp(t,e){return[t,e,kw]}function Yp(t,e){return function(n,r){return[n,r,function(i){return kw(ce(i,t,e))}]}}function Tw(t,e){if(t.length===e.length)return[t,e,function(n){return n}]}function ih(t){return t.parsedStyle.path.totalLength===0&&(t.parsedStyle.path.totalLength=e5(t.parsedStyle.path.absolutePath)),t.parsedStyle.path.totalLength}function qN(t){for(var e=0;e0&&n.push(r),{polygons:e,polylines:n}}function Cl(t,e){return t[0]===e[0]&&t[1]===e[1]}function QN(t,e){for(var n=[],r=[],i=[],a=0;aMath.PI/2?Math.PI-l:l,u=u>Math.PI/2?Math.PI-u:u;var f={xExtra:Math.cos(c/2-l)*(e/2*(1/Math.sin(c/2)))-e/2||0,yExtra:Math.cos(u-c/2)*(e/2*(1/Math.sin(c/2)))-e/2||0};return f}function Wg(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}var Hg=function(t,e){var n=t.x*e.x+t.y*e.y,r=Math.sqrt((Math.pow(t.x,2)+Math.pow(t.y,2))*(Math.pow(e.x,2)+Math.pow(e.y,2))),i=t.x*e.y-t.y*e.x<0?-1:1,a=i*Math.acos(n/r);return a},Vg=function(t,e,n,r,i,a,o,s){e=Math.abs(e),n=Math.abs(n),r=Ib(r,360);var c=re(r);if(t.x===o.x&&t.y===o.y)return{x:t.x,y:t.y,ellipticalArcAngle:0};if(e===0||n===0)return{x:0,y:0,ellipticalArcAngle:0};var l=(t.x-o.x)/2,u=(t.y-o.y)/2,f={x:Math.cos(c)*l+Math.sin(c)*u,y:-Math.sin(c)*l+Math.cos(c)*u},d=Math.pow(f.x,2)/Math.pow(e,2)+Math.pow(f.y,2)/Math.pow(n,2);d>1&&(e=Math.sqrt(d)*e,n=Math.sqrt(d)*n);var h=Math.pow(e,2)*Math.pow(n,2)-Math.pow(e,2)*Math.pow(f.y,2)-Math.pow(n,2)*Math.pow(f.x,2),p=Math.pow(e,2)*Math.pow(f.y,2)+Math.pow(n,2)*Math.pow(f.x,2),v=h/p;v=v<0?0:v;var g=(i!==a?1:-1)*Math.sqrt(v),y={x:g*(e*f.y/n),y:g*(-(n*f.x)/e)},m={x:Math.cos(c)*y.x-Math.sin(c)*y.y+(t.x+o.x)/2,y:Math.sin(c)*y.x+Math.cos(c)*y.y+(t.y+o.y)/2},b={x:(f.x-y.x)/e,y:(f.y-y.y)/n},x=Hg({x:1,y:0},b),w={x:(-f.x-y.x)/e,y:(-f.y-y.y)/n},O=Hg(b,w);!a&&O>0?O-=2*Math.PI:a&&O<0&&(O+=2*Math.PI),O%=2*Math.PI;var S=x+O*s,_=e*Math.cos(S),M=n*Math.sin(S),E={x:Math.cos(c)*_-Math.sin(c)*M+m.x,y:Math.sin(c)*_+Math.cos(c)*M+m.y,ellipticalArcStartAngle:x,ellipticalArcEndAngle:x+O,ellipticalArcAngle:S,ellipticalArcCenter:m,resultantRx:e,resultantRy:n};return E};function JN(t){for(var e=[],n=null,r=null,i=null,a=0,o=t.length,s=0;s1&&(n*=Math.sqrt(h),r*=Math.sqrt(h));var p=n*n*(d*d)+r*r*(f*f),v=p?Math.sqrt((n*n*(r*r)-p)/p):1;a===o&&(v*=-1),isNaN(v)&&(v=0);var g=r?v*n*d/r:0,y=n?v*-r*f/n:0,m=(s+l)/2+Math.cos(i)*g-Math.sin(i)*y,b=(c+u)/2+Math.sin(i)*g+Math.cos(i)*y,x=[(f-g)/n,(d-y)/r],w=[(-1*f-g)/n,(-1*d-y)/r],O=Ug([1,0],x),S=Ug(x,w);return ah(x,w)<=-1&&(S=Math.PI),ah(x,w)>=1&&(S=0),o===0&&S>0&&(S=S-2*Math.PI),o===1&&S<0&&(S=S+2*Math.PI),{cx:m,cy:b,rx:Cl(t,[l,u])?0:n,ry:Cl(t,[l,u])?0:r,startAngle:O,endAngle:O+S,xRotation:i,arcFlag:a,sweepFlag:o}}function e4(t,e,n){var r=e.parsedStyle,i=r.defX,a=i===void 0?0:i,o=r.defY,s=o===void 0?0:o;return t.reduce(function(c,l){var u="";if(l[0]==="M"||l[0]==="L"){var f=St(l[1]-a,l[2]-s,0);n&&Oe(f,f,n),u="".concat(l[0]).concat(f[0],",").concat(f[1])}else if(l[0]==="Z")u=l[0];else if(l[0]==="C"){var d=St(l[1]-a,l[2]-s,0),h=St(l[3]-a,l[4]-s,0),p=St(l[5]-a,l[6]-s,0);n&&(Oe(d,d,n),Oe(h,h,n),Oe(p,p,n)),u="".concat(l[0]).concat(d[0],",").concat(d[1],",").concat(h[0],",").concat(h[1],",").concat(p[0],",").concat(p[1])}else if(l[0]==="A"){var v=St(l[6]-a,l[7]-s,0);n&&Oe(v,v,n),u="".concat(l[0]).concat(l[1],",").concat(l[2],",").concat(l[3],",").concat(l[4],",").concat(l[5],",").concat(v[0],",").concat(v[1])}else if(l[0]==="Q"){var d=St(l[1]-a,l[2]-s,0),h=St(l[3]-a,l[4]-s,0);n&&(Oe(d,d,n),Oe(h,h,n)),u="".concat(l[0]).concat(l[1],",").concat(l[2],",").concat(l[3],",").concat(l[4],"}")}return c+=u},"")}function n4(t,e,n,r){return[["M",t,e],["L",n,r]]}function qg(t,e,n,r){var i=(-1+Math.sqrt(2))/3*4,a=t*i,o=e*i,s=n-t,c=n+t,l=r-e,u=r+e;return[["M",s,r],["C",s,r-o,n-a,l,n,l],["C",n+a,l,c,r-o,c,r],["C",c,r+o,n+a,u,n,u],["C",n-a,u,s,r+o,s,r],["Z"]]}function r4(t,e){var n=t.map(function(r,i){return[i===0?"M":"L",r[0],r[1]]});return e&&n.push(["Z"]),n}function i4(t,e,n,r,i){if(i){var a=N(i,4),o=a[0],s=a[1],c=a[2],l=a[3],u=t>0?1:-1,f=e>0?1:-1,d=u+f!==0?1:0;return[["M",u*o+n,r],["L",t-u*s+n,r],s?["A",s,s,0,0,d,t+n,f*s+r]:null,["L",t+n,e-f*c+r],c?["A",c,c,0,0,d,t+n-u*c,e+r]:null,["L",n+u*l,e+r],l?["A",l,l,0,0,d,n,e+r-f*l]:null,["L",n,f*o+r],o?["A",o,o,0,0,d,u*o+n,r]:null,["Z"]].filter(function(h){return h})}return[["M",n,r],["L",n+t,r],["L",n+t,r+e],["L",n,r+e],["Z"]]}function Wp(t,e){e===void 0&&(e=t.getLocalTransform());var n=[];switch(t.nodeName){case G.LINE:var r=t.parsedStyle,i=r.x1,a=i===void 0?0:i,o=r.y1,s=o===void 0?0:o,c=r.x2,l=c===void 0?0:c,u=r.y2,f=u===void 0?0:u;n=n4(a,s,l,f);break;case G.CIRCLE:{var d=t.parsedStyle,h=d.r,p=h===void 0?0:h,v=d.cx,g=v===void 0?0:v,y=d.cy,m=y===void 0?0:y;n=qg(p,p,g,m);break}case G.ELLIPSE:{var b=t.parsedStyle,x=b.rx,w=x===void 0?0:x,O=b.ry,S=O===void 0?0:O,_=b.cx,g=_===void 0?0:_,M=b.cy,m=M===void 0?0:M;n=qg(w,S,g,m);break}case G.POLYLINE:case G.POLYGON:var E=t.parsedStyle.points;n=r4(E.points,t.nodeName===G.POLYGON);break;case G.RECT:var P=t.parsedStyle,T=P.width,A=T===void 0?0:T,k=P.height,C=k===void 0?0:k,L=P.x,I=L===void 0?0:L,R=P.y,j=R===void 0?0:R,D=P.radius,$=D&&D.some(function(F){return F!==0});n=i4(A,C,I,j,$&&D.map(function(F){return ce(F,0,Math.min(Math.abs(A)/2,Math.abs(C)/2))}));break;case G.PATH:var B=t.parsedStyle.path.absolutePath;n=q([],N(B),!1);break}if(n.length)return e4(n,t,e)}var Cw=function(t){if(t===""||Array.isArray(t)&&t.length===0)return{absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:{x:0,y:0,width:0,height:0}};var e;try{e=bl(t)}catch{e=bl(""),console.error("[g]: Invalid SVG Path definition: ".concat(t))}qN(e);var n=KN(e),r=ZN(e),i=r.polygons,a=r.polylines,o=JN(e),s=QN(o,0),c=s.x,l=s.y,u=s.width,f=s.height;return{absolutePath:e,hasArc:n,segments:o,polygons:i,polylines:a,totalLength:0,rect:{x:Number.isFinite(c)?c:0,y:Number.isFinite(l)?l:0,width:Number.isFinite(u)?u:0,height:Number.isFinite(f)?f:0}}},a4=Ne(Cw);function oh(t){return le(t)?a4(t):Cw(t)}function o4(t,e,n){var r=t.curve,i=e.curve;(!r||r.length===0)&&(r=Rd(t.absolutePath,!1),t.curve=r),(!i||i.length===0)&&(i=Rd(e.absolutePath,!1),e.curve=i);var a=[r,i];r.length!==i.length&&(a=cx(r,i));var o=eg(a[0])!==eg(a[1])?qT(a[0]):UT(a[0]);return[o,r5(a[1],o),function(s){return s}]}function Lw(t,e){var n;le(t)?n=t.split(" ").map(function(u){var f=N(u.split(","),2),d=f[0],h=f[1];return[Number(d),Number(h)]}):n=t;var r=[],i=0,a,o,s=qL(n);n.forEach(function(u,f){n[f+1]&&(a=[0,0],a[0]=i/s,o=yw(u[0],u[1],n[f+1][0],n[f+1][1]),i+=o,a[1]=i/s,r.push(a))});var c=Math.min.apply(Math,q([],N(n.map(function(u){return u[0]})),!1)),l=Math.min.apply(Math,q([],N(n.map(function(u){return u[1]})),!1));return e&&(e.parsedStyle.defX=c,e.parsedStyle.defY=l),{points:n,totalLength:s,segments:r}}function s4(t,e){return[t.points,e.points,function(n){return n}]}var ie=null;function Je(t){return function(e){var n=0;return t.map(function(r){return r===ie?e[n++]:r})}}function bi(t){return t}var Ll={matrix:["NNNNNN",[ie,ie,0,0,ie,ie,0,0,0,0,1,0,ie,ie,0,1],bi],matrix3d:["NNNNNNNNNNNNNNNN",bi],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",Je([ie,ie,new jt(1)]),bi],scalex:["N",Je([ie,new jt(1),new jt(1)]),Je([ie,new jt(1)])],scaley:["N",Je([new jt(1),ie,new jt(1)]),Je([new jt(1),ie])],scalez:["N",Je([new jt(1),new jt(1),ie])],scale3d:["NNN",bi],skew:["Aa",null,bi],skewx:["A",null,Je([ie,Hn])],skewy:["A",null,Je([Hn,ie])],translate:["Tt",Je([ie,ie,we]),bi],translatex:["T",Je([ie,we,we]),Je([ie,we])],translatey:["T",Je([we,ie,we]),Je([we,ie])],translatez:["L",Je([we,we,ie])],translate3d:["TTL",bi]};function Hp(t){if(t=(t||"none").toLowerCase().trim(),t==="none")return[];for(var e=/\s*(\w+)\(([^)]*)\)/g,n=[],r,i=0;r=e.exec(t);){if(r.index!==i)return[];i=r.index+r[0].length;var a=r[1],o=Ll[a];if(!o)return[];var s=r[2].split(","),c=o[0];if(c.length"].calculator(null,null,{value:n.textTransform},e,null),n.clipPath&&this.runtime.CSSPropertySyntaxFactory[""].calculator("clipPath",o,n.clipPath,e,this.runtime),n.offsetPath&&this.runtime.CSSPropertySyntaxFactory[""].calculator("offsetPath",s,n.offsetPath,e,this.runtime),n.anchor&&(e.parsedStyle.anchor=$f(n.anchor,2)),n.transform&&(e.parsedStyle.transform=Hp(n.transform)),n.transformOrigin&&(e.parsedStyle.transformOrigin=Nw(n.transformOrigin)),n.markerStart&&(e.parsedStyle.markerStart=this.runtime.CSSPropertySyntaxFactory[""].calculator(null,n.markerStart,n.markerStart,null,null)),n.markerEnd&&(e.parsedStyle.markerEnd=this.runtime.CSSPropertySyntaxFactory[""].calculator(null,n.markerEnd,n.markerEnd,null,null)),n.markerMid&&(e.parsedStyle.markerMid=this.runtime.CSSPropertySyntaxFactory[""].calculator("",n.markerMid,n.markerMid,null,null)),((e.nodeName===G.CIRCLE||e.nodeName===G.ELLIPSE)&&(!nt(n.cx)||!nt(n.cy))||(e.nodeName===G.RECT||e.nodeName===G.IMAGE||e.nodeName===G.GROUP||e.nodeName===G.HTML||e.nodeName===G.TEXT||e.nodeName===G.MESH)&&(!nt(n.x)||!nt(n.y)||!nt(n.z))||e.nodeName===G.LINE&&(!nt(n.x1)||!nt(n.y1)||!nt(n.z1)||!nt(n.x2)||!nt(n.y2)||!nt(n.z2)))&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),nt(n.zIndex)||this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),n.path&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),n.points&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),nt(n.offsetDistance)||this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),n.transform&&this.runtime.CSSPropertySyntaxFactory[""].postProcessor(e,a),c&&this.updateGeometry(e);return}var u=r.skipUpdateAttribute,f=r.skipParse,d=r.forceUpdateGeometry,h=r.usedAttributes,p=r.memoize,v=d,g=Object.keys(n);g.forEach(function(y){var m;u||(e.attributes[y]=n[y]),!v&&(!((m=Br[y])===null||m===void 0)&&m.l)&&(v=!0)}),f||g.forEach(function(y){e.computedStyle[y]=i.parseProperty(y,e.attributes[y],e,p)}),h!=null&&h.length&&(g=Array.from(new Set(g.concat(h)))),g.forEach(function(y){y in e.computedStyle&&(e.parsedStyle[y]=i.computeProperty(y,e.computedStyle[y],e,p))}),v&&this.updateGeometry(e),g.forEach(function(y){y in e.parsedStyle&&i.postProcessProperty(y,e,g)}),this.runtime.enableCSSParsing&&e.children.length&&g.forEach(function(y){y in e.parsedStyle&&i.isPropertyInheritable(y)&&e.children.forEach(function(m){m.internalSetAttribute(y,null,{skipUpdateAttribute:!0,skipParse:!0})})})},t.prototype.parseProperty=function(e,n,r,i){var a=Br[e],o=n;if((n===""||nt(n))&&(n="unset"),n==="unset"||n==="initial"||n==="inherit")o=eh(n);else if(a){var s=a.k,c=a.syntax,l=c&&this.getPropertySyntax(c);s&&s.indexOf(n)>-1?o=eh(n):l&&(!i&&l.parserUnmemoize?o=l.parserUnmemoize(n,r):l.parser&&(o=l.parser(n,r)))}return o},t.prototype.computeProperty=function(e,n,r,i){var a=Br[e],o=r.id==="g-root",s=n;if(a){var c=a.syntax,l=a.inh,u=a.d;if(n instanceof sn){var f=n.value;if(f==="unset"&&(l&&!o?f="inherit":f="initial"),f==="initial")nt(u)||(n=this.parseProperty(e,ga(u)?u(r.nodeName):u,r,i));else if(f==="inherit"){var d=this.tryToResolveProperty(r,e,{inherited:!0});if(nt(d)){this.addUnresolveProperty(r,e);return}else return d}}var h=c&&this.getPropertySyntax(c);if(h&&h.calculator){var p=r.parsedStyle[e];s=h.calculator(e,p,n,r,this.runtime)}else n instanceof sn?s=n.value:s=n}return s},t.prototype.postProcessProperty=function(e,n,r){var i=Br[e];if(i&&i.syntax){var a=i.syntax&&this.getPropertySyntax(i.syntax),o=a;o&&o.postProcessor&&o.postProcessor(n,r)}},t.prototype.addUnresolveProperty=function(e,n){var r=la.get(e);r||(la.set(e,[]),r=la.get(e)),r.indexOf(n)===-1&&r.push(n)},t.prototype.tryToResolveProperty=function(e,n,r){r===void 0&&(r={});var i=r.inherited;if(i&&e.parentElement&&m4(e.parentElement,n)){var a=e.parentElement.parsedStyle[n];return a==="unset"||a==="initial"||a==="inherit"?void 0:a}},t.prototype.recalc=function(e){var n=la.get(e);if(n&&n.length){var r={};n.forEach(function(i){r[i]=e.attributes[i]}),this.processProperties(e,r),la.delete(e)}},t.prototype.updateGeometry=function(e){var n=e.nodeName,r=this.runtime.geometryUpdaterFactory[n];if(r){var i=e.geometry;i.contentBounds||(i.contentBounds=new be),i.renderBounds||(i.renderBounds=new be);var a=e.parsedStyle,o=r.update(a,e),s=o.width,c=o.height,l=o.depth,u=l===void 0?0:l,f=o.offsetX,d=f===void 0?0:f,h=o.offsetY,p=h===void 0?0:h,v=o.offsetZ,g=v===void 0?0:v,y=[Math.abs(s)/2,Math.abs(c)/2,u/2],m=a,b=m.stroke,x=m.lineWidth,w=m.increasedLineWidthForHitTesting,O=m.shadowType,S=m.shadowColor,_=m.filter,M=_===void 0?[]:_,E=m.transformOrigin,P=a.anchor;n===G.TEXT?delete a.anchor:n===G.MESH&&(a.anchor[2]=.5);var T=[(1-(P&&P[0]||0)*2)*s/2+d,(1-(P&&P[1]||0)*2)*c/2+p,(1-(P&&P[2]||0)*2)*y[2]+g];i.contentBounds.update(T,y);var A=n===G.POLYLINE||n===G.POLYGON||n===G.PATH?Math.SQRT2:.5,k=b&&!b.isNone;if(k){var C=((x||0)+(w||0))*A;y[0]+=C,y[1]+=C}if(i.renderBounds.update(T,y),S&&O&&O!=="inner"){var L=i.renderBounds,I=L.min,R=L.max,j=a,D=j.shadowBlur,$=j.shadowOffsetX,B=j.shadowOffsetY,F=D||0,Y=$||0,U=B||0,K=I[0]-F+Y,V=R[0]+F+Y,W=I[1]-F+U,J=R[1]+F+U;I[0]=Math.min(I[0],K),R[0]=Math.max(R[0],V),I[1]=Math.min(I[1],W),R[1]=Math.max(R[1],J),i.renderBounds.setMinMax(I,R)}M.forEach(function(lt){var xt=lt.name,Et=lt.params;if(xt==="blur"){var Xt=Et[0].value;i.renderBounds.update(i.renderBounds.center,el(i.renderBounds.halfExtents,i.renderBounds.halfExtents,[Xt,Xt,0]))}else if(xt==="drop-shadow"){var ue=Et[0].value,Ke=Et[1].value,vr=Et[2].value,gi=i.renderBounds,Ge=gi.min,wn=gi.max,_t=Ge[0]-vr+ue,Pt=wn[0]+vr+ue,ee=Ge[1]-vr+Ke,kt=wn[1]+vr+Ke;Ge[0]=Math.min(Ge[0],_t),wn[0]=Math.max(wn[0],Pt),Ge[1]=Math.min(Ge[1],ee),wn[1]=Math.max(wn[1],kt),i.renderBounds.setMinMax(Ge,wn)}}),P=a.anchor;var et=s<0,it=c<0,ct=(et?-1:1)*(E?dn(E[0],0,e):0),ot=(it?-1:1)*(E?dn(E[1],1,e):0);ct=ct-(et?-1:1)*(P&&P[0]||0)*i.contentBounds.halfExtents[0]*2,ot=ot-(it?-1:1)*(P&&P[1]||0)*i.contentBounds.halfExtents[1]*2,e.setOrigin(ct,ot),this.runtime.sceneGraphService.dirtifyToRoot(e)}},t.prototype.isPropertyInheritable=function(e){var n=Br[e];return n?n.inh:!1},t}(),x4=function(){function t(){this.parser=Ew,this.parserUnmemoize=zp,this.parserWithCSSDisabled=null,this.mixer=Gp}return t.prototype.calculator=function(e,n,r,i){return hn(r)},t}(),w4=function(){function t(){}return t.prototype.calculator=function(e,n,r,i,a){return r instanceof sn&&(r=null),a.sceneGraphService.updateDisplayObjectDependency(e,n,r,i),e==="clipPath"&&i.forEach(function(o){o.childNodes.length===0&&a.sceneGraphService.dirtifyToRoot(o)}),r},t}(),O4=function(){function t(){this.parser=Ar,this.parserWithCSSDisabled=Ar,this.mixer=YN}return t.prototype.calculator=function(e,n,r,i){return r instanceof sn?r.value==="none"?nh:Ow:r},t}(),S4=function(){function t(){this.parser=Aw}return t.prototype.calculator=function(e,n,r){return r instanceof sn?[]:r},t}();function Jg(t){var e=t.parsedStyle.fontSize;return nt(e)?null:e}var Xp=function(){function t(){this.parser=Ba,this.parserUnmemoize=ps,this.parserWithCSSDisabled=null,this.mixer=Gp}return t.prototype.calculator=function(e,n,r,i,a){var o;if(de(r))return r;if(jt.isRelativeUnit(r.unit)){var s=a.styleValueRegistry;if(r.unit===Z.kPercentage)return 0;if(r.unit===Z.kEms){if(i.parentNode){var c=Jg(i.parentNode);if(c)return c*=r.value,c;s.addUnresolveProperty(i,e)}else s.addUnresolveProperty(i,e);return 0}else if(r.unit===Z.kRems){if(!((o=i==null?void 0:i.ownerDocument)===null||o===void 0)&&o.documentElement){var c=Jg(i.ownerDocument.documentElement);if(c)return c*=r.value,c;s.addUnresolveProperty(i,e)}else s.addUnresolveProperty(i,e);return 0}}else return r.value},t}(),_4=function(){function t(){this.mixer=Tw}return t.prototype.parser=function(e){var n=Pw(de(e)?[e]:e),r;return n.length===1?r=[n[0],n[0]]:r=[n[0],n[1]],r},t.prototype.calculator=function(e,n,r){return r.map(function(i){return i.value})},t}(),M4=function(){function t(){this.mixer=Tw}return t.prototype.parser=function(e){var n=Pw(de(e)?[e]:e),r;return n.length===1?r=[n[0],n[0],n[0],n[0]]:n.length===2?r=[n[0],n[1],n[0],n[1]]:n.length===3?r=[n[0],n[1],n[2],n[1]]:r=[n[0],n[1],n[2],n[3]],r},t.prototype.calculator=function(e,n,r){return r.map(function(i){return i.value})},t}(),xo=Nt();function Up(t,e){var n=e.parsedStyle.defX||0,r=e.parsedStyle.defY||0;return e.resetLocalTransform(),e.setLocalPosition(n,r),t.forEach(function(i){var a=i.t,o=i.d;if(a==="scale"){var s=(o==null?void 0:o.map(function(m){return m.value}))||[1,1];e.scaleLocal(s[0],s[1],1)}else if(a==="scalex"){var s=(o==null?void 0:o.map(function(b){return b.value}))||[1];e.scaleLocal(s[0],1,1)}else if(a==="scaley"){var s=(o==null?void 0:o.map(function(b){return b.value}))||[1];e.scaleLocal(1,s[0],1)}else if(a==="scalez"){var s=(o==null?void 0:o.map(function(b){return b.value}))||[1];e.scaleLocal(1,1,s[0])}else if(a==="scale3d"){var s=(o==null?void 0:o.map(function(b){return b.value}))||[1,1,1];e.scaleLocal(s[0],s[1],s[2])}else if(a==="translate"){var c=o||[we,we];e.translateLocal(c[0].value,c[1].value,0)}else if(a==="translatex"){var c=o||[we];e.translateLocal(c[0].value,0,0)}else if(a==="translatey"){var c=o||[we];e.translateLocal(0,c[0].value,0)}else if(a==="translatez"){var c=o||[we];e.translateLocal(0,0,c[0].value)}else if(a==="translate3d"){var c=o||[we,we,we];e.translateLocal(c[0].value,c[1].value,c[2].value)}else if(a==="rotate"){var l=o||[Hn];e.rotateLocal(0,0,hn(l[0]))}else if(a==="rotatex"){var l=o||[Hn];e.rotateLocal(hn(l[0]),0,0)}else if(a==="rotatey"){var l=o||[Hn];e.rotateLocal(0,hn(l[0]),0)}else if(a==="rotatez"){var l=o||[Hn];e.rotateLocal(0,0,hn(l[0]))}else if(a!=="rotate3d")if(a==="skew"){var u=(o==null?void 0:o.map(function(m){return m.value}))||[0,0];e.setLocalSkew(re(u[0]),re(u[1]))}else if(a==="skewx"){var u=(o==null?void 0:o.map(function(b){return b.value}))||[0];e.setLocalSkew(re(u[0]),e.getLocalSkew()[1])}else if(a==="skewy"){var u=(o==null?void 0:o.map(function(b){return b.value}))||[0];e.setLocalSkew(e.getLocalSkew()[0],re(u[0]))}else if(a==="matrix"){var f=N(o.map(function(m){return m.value}),6),d=f[0],h=f[1],p=f[2],v=f[3],g=f[4],y=f[5];e.setLocalTransform(Td(xo,d,h,0,0,p,v,0,0,0,0,1,0,g+n,y+r,0,1))}else a==="matrix3d"&&(Td.apply(bT,q([xo],N(o.map(function(m){return m.value})),!1)),xo[12]+=n,xo[13]+=r,e.setLocalTransform(xo))}),e.getLocalTransform()}var E4=function(t){rt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.postProcessor=function(n,r){var i,a,o;switch(n.nodeName){case G.CIRCLE:case G.ELLIPSE:var s=n.parsedStyle,c=s.cx,l=s.cy,u=s.cz;nt(c)||(i=c),nt(l)||(a=l),nt(u)||(o=u);break;case G.LINE:var f=n.parsedStyle,d=f.x1,h=f.x2,p=f.y1,v=f.y2,g=Math.min(d,h),y=Math.min(p,v);i=g,a=y,o=0;break;case G.RECT:case G.IMAGE:case G.GROUP:case G.HTML:case G.TEXT:case G.MESH:nt(n.parsedStyle.x)||(i=n.parsedStyle.x),nt(n.parsedStyle.y)||(a=n.parsedStyle.y),nt(n.parsedStyle.z)||(o=n.parsedStyle.z);break}n.nodeName!==G.PATH&&n.nodeName!==G.POLYLINE&&n.nodeName!==G.POLYGON&&(n.parsedStyle.defX=i||0,n.parsedStyle.defY=a||0);var m=!nt(i)||!nt(a)||!nt(o);if(m&&r.indexOf("transform")===-1){var b=n.parsedStyle.transform;if(b&&b.length)Up(b,n);else{var x=N(n.getLocalPosition(),3),w=x[0],O=x[1],S=x[2];n.setLocalPosition(nt(i)?w:i,nt(a)?O:a,nt(o)?S:o)}}},e}(Xp),P4=function(){function t(){}return t.prototype.calculator=function(e,n,r,i){r instanceof sn&&(r=null);var a=r==null?void 0:r.cloneNode(!0);return a&&(a.style.isMarker=!0),a},t}(),A4=function(){function t(){this.mixer=Gp,this.parser=zi,this.parserUnmemoize=no,this.parserWithCSSDisabled=null}return t.prototype.calculator=function(e,n,r){return r.value},t}(),k4=function(){function t(){this.parser=zi,this.parserUnmemoize=no,this.parserWithCSSDisabled=null,this.mixer=Yp(0,1)}return t.prototype.calculator=function(e,n,r){return r.value},t.prototype.postProcessor=function(e){var n=e.parsedStyle,r=n.offsetPath,i=n.offsetDistance;if(r){var a=r.nodeName;if(a===G.LINE||a===G.PATH||a===G.POLYLINE){var o=r.getPoint(i);o&&(e.parsedStyle.defX=o.x,e.parsedStyle.defY=o.y,e.setLocalPosition(o.x,o.y))}}},t}(),T4=function(){function t(){this.parser=zi,this.parserUnmemoize=no,this.parserWithCSSDisabled=null,this.mixer=Yp(0,1)}return t.prototype.calculator=function(e,n,r){return r.value},t}(),C4=function(){function t(){this.parser=oh,this.parserWithCSSDisabled=oh,this.mixer=o4}return t.prototype.calculator=function(e,n,r){return r instanceof sn&&r.value==="unset"?{absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:new Fi(0,0,0,0)}:r},t.prototype.postProcessor=function(e,n){if(e.parsedStyle.defX=e.parsedStyle.path.rect.x,e.parsedStyle.defY=e.parsedStyle.path.rect.y,e.nodeName===G.PATH&&n.indexOf("transform")===-1){var r=e.parsedStyle,i=r.defX,a=i===void 0?0:i,o=r.defY,s=o===void 0?0:o;e.setLocalPosition(a,s)}},t}(),L4=function(){function t(){this.parser=Lw,this.mixer=s4}return t.prototype.postProcessor=function(e,n){if((e.nodeName===G.POLYGON||e.nodeName===G.POLYLINE)&&n.indexOf("transform")===-1){var r=e.parsedStyle,i=r.defX,a=r.defY;e.setLocalPosition(i,a)}},t}(),N4=function(t){rt(e,t);function e(){var n=t.apply(this,q([],N(arguments),!1))||this;return n.mixer=Yp(0,1/0),n}return e}(Xp),R4=function(){function t(){}return t.prototype.calculator=function(e,n,r,i){return r instanceof sn?r.value==="unset"?"":r.value:"".concat(r)},t.prototype.postProcessor=function(e){e.nodeValue="".concat(e.parsedStyle.text)||""},t}(),I4=function(){function t(){}return t.prototype.calculator=function(e,n,r,i){var a=i.getAttribute("text");if(a){var o=a;r.value==="capitalize"?o=a.charAt(0).toUpperCase()+a.slice(1):r.value==="lowercase"?o=a.toLowerCase():r.value==="uppercase"&&(o=a.toUpperCase()),i.parsedStyle.text=o}return r.value},t}(),Gf={},j4=0;function D4(t,e){if(t){var n=typeof t=="string"?t:t.id||j4++;Gf[n]&&Gf[n].destroy(),Gf[n]=e}}var Vs=typeof window<"u"&&typeof window.document<"u";function $4(t){return!!t.getAttribute}function B4(t,e){for(var n=0,r=t.length;n>>1;Rw(t[i],e)<0?n=i+1:r=i}return n}function Rw(t,e){var n=Number(t.parsedStyle.zIndex),r=Number(e.parsedStyle.zIndex);if(n===r){var i=t.parentNode;if(i){var a=i.childNodes||[];return a.indexOf(t)-a.indexOf(e)}}return n-r}function Iw(t){var e,n=t;do{var r=(e=n.parsedStyle)===null||e===void 0?void 0:e.clipPath;if(r)return n;n=n.parentElement}while(n!==null);return null}var ty="px";function F4(t,e,n){Vs&&t.style&&(t.style.width=e+ty,t.style.height=n+ty)}function jw(t,e){if(Vs)return document.defaultView.getComputedStyle(t,null).getPropertyValue(e)}function z4(t){var e=jw(t,"width");return e==="auto"?t.offsetWidth:parseFloat(e)}function G4(t){var e=jw(t,"height");return e==="auto"?t.offsetHeight:parseFloat(e)}var Y4=1,W4={touchstart:"pointerdown",touchend:"pointerup",touchendoutside:"pointerupoutside",touchmove:"pointermove",touchcancel:"pointercancel"},sh=typeof performance=="object"&&performance.now?performance:Date;function Ki(t,e,n){var r=!1,i=!1,a=!!e&&!e.isNone,o=!!n&&!n.isNone;return t==="visiblepainted"||t==="painted"||t==="auto"?(r=a,i=o):t==="visiblefill"||t==="fill"?r=!0:t==="visiblestroke"||t==="stroke"?i=!0:(t==="visible"||t==="all")&&(r=!0,i=!0),[r,i]}var H4=1,V4=function(){return H4++},sr=typeof self=="object"&&self.self==self?self:typeof global=="object"&&global.global==global?global:{},X4=Date.now(),U4=function(){return sr.performance&&typeof sr.performance.now=="function"?sr.performance.now():Date.now()-X4},Eo={},ey=Date.now(),q4=function(t){if(typeof t!="function")throw new TypeError(t+" is not a function");var e=Date.now(),n=e-ey,r=n>16?0:16-n,i=V4();return Eo[i]=t,Object.keys(Eo).length>1||setTimeout(function(){ey=e;var a=Eo;Eo={},Object.keys(a).forEach(function(o){return a[o](U4())})},r),i},K4=function(t){delete Eo[t]},Z4=["","webkit","moz","ms","o"],Dw=function(t){return typeof t!="string"?q4:t===""?sr.requestAnimationFrame:sr[t+"RequestAnimationFrame"]},Q4=function(t){return typeof t!="string"?K4:t===""?sr.cancelAnimationFrame:sr[t+"CancelAnimationFrame"]||sr[t+"CancelRequestAnimationFrame"]},J4=function(t,e){for(var n=0;t[n]!==void 0;){if(e(t[n]))return t[n];n=n+1}},$w=J4(Z4,function(t){return!!Dw(t)}),Bw=Dw($w),Fw=Q4($w);sr.requestAnimationFrame=Bw;sr.cancelAnimationFrame=Fw;var tR=function(){function t(){this.callbacks=[]}return t.prototype.getCallbacksNum=function(){return this.callbacks.length},t.prototype.tapPromise=function(e,n){this.callbacks.push(n)},t.prototype.promise=function(){for(var e=[],n=0;n=0;c--){var l=s[c].trim();!rR.test(l)&&nR.indexOf(l)<0&&(l='"'.concat(l,'"')),s[c]=l}return"".concat(r," ").concat(i," ").concat(a," ").concat(o," ").concat(s.join(","))}var aR=function(){function t(){this.parser=Hp,this.parserUnmemoize=Kg,this.parserWithCSSDisabled=Kg,this.mixer=g4}return t.prototype.calculator=function(e,n,r,i){return r instanceof sn?[]:r},t.prototype.postProcessor=function(e){var n=e.parsedStyle.transform;Up(n,e)},t}(),oR=function(){function t(){this.parser=Nw,this.parserUnmemoize=y4}return t}(),sR=function(){function t(){this.parser=zi,this.parserUnmemoize=no}return t.prototype.calculator=function(e,n,r,i){return r.value},t.prototype.postProcessor=function(e){if(e.parentNode){var n=e.parentNode,r=n.renderable,i=n.sortable;r&&(r.dirty=!0),i&&(i.dirty=!0,i.dirtyReason=$a.Z_INDEX_CHANGED)}},t}(),cR=function(){function t(){}return t.prototype.update=function(e,n){var r=e.r,i=r*2,a=r*2;return{width:i,height:a}},t}(),lR=function(){function t(){}return t.prototype.update=function(e,n){var r=e.rx,i=e.ry,a=r*2,o=i*2;return{width:a,height:o}},t}(),uR=function(){function t(){}return t.prototype.update=function(e){var n=e.x1,r=e.y1,i=e.x2,a=e.y2,o=Math.min(n,i),s=Math.max(n,i),c=Math.min(r,a),l=Math.max(r,a),u=s-o,f=l-c;return{width:u,height:f}},t}(),fR=function(){function t(){}return t.prototype.update=function(e){var n=e.path,r=n.rect,i=r.width,a=r.height;return{width:i,height:a}},t}(),dR=function(){function t(){}return t.prototype.update=function(e){if(e.points&&Le(e.points.points)){var n=e.points.points,r=Math.min.apply(Math,q([],N(n.map(function(l){return l[0]})),!1)),i=Math.max.apply(Math,q([],N(n.map(function(l){return l[0]})),!1)),a=Math.min.apply(Math,q([],N(n.map(function(l){return l[1]})),!1)),o=Math.max.apply(Math,q([],N(n.map(function(l){return l[1]})),!1)),s=i-r,c=o-a;return{width:s,height:c}}return{width:0,height:0}},t}(),hR=function(){function t(){}return t.prototype.update=function(e,n){var r=e.img,i=e.width,a=i===void 0?0:i,o=e.height,s=o===void 0?0:o,c=a,l=s;return r&&!le(r)&&(c||(c=r.width,e.width=c),l||(l=r.height,e.height=l)),{width:c,height:l}},t}(),pR=function(){function t(e){this.globalRuntime=e}return t.prototype.isReadyToMeasure=function(e,n){var r=e.text,i=e.textAlign,a=e.textBaseline,o=e.fontSize,s=e.fontStyle,c=e.fontWeight,l=e.fontVariant,u=e.lineWidth;return r&&o&&s&&c&&l&&i&&a&&!nt(u)},t.prototype.update=function(e,n){var r,i,a=e.text,o=e.textAlign,s=e.lineWidth,c=e.textBaseline,l=e.dx,u=e.dy;if(!this.isReadyToMeasure(e,n))return e.metrics={font:"",width:0,height:0,lines:[],lineWidths:[],lineHeight:0,maxLineWidth:0,fontProperties:{ascent:0,descent:0,fontSize:0},lineMetrics:[]},{width:0,height:0,x:0,y:0,offsetX:0,offsetY:0};var f=(((i=(r=n==null?void 0:n.ownerDocument)===null||r===void 0?void 0:r.defaultView)===null||i===void 0?void 0:i.getConfig())||{}).offscreenCanvas,d=this.globalRuntime.textService.measureText(a,e,f);e.metrics=d;var h=d.width,p=d.height,v=d.lineHeight,g=d.fontProperties,y=[h/2,p/2,0],m=[0,1],b=0;o==="center"||o==="middle"?(b=s/2,m=[.5,1]):(o==="right"||o==="end")&&(b=s,m=[1,1]);var x=0;return c==="middle"?x=y[1]:c==="top"||c==="hanging"?x=y[1]*2:c==="alphabetic"?x=this.globalRuntime.enableCSSParsing?v-g.ascent:0:(c==="bottom"||c==="ideographic")&&(x=0),l&&(b+=l),u&&(x+=u),e.anchor=[m[0],m[1],0],{width:y[0]*2,height:y[1]*2,offsetX:b,offsetY:x}},t}();function vR(t){return!!t.type}var $u=function(){function t(e){this.eventPhase=t.prototype.NONE,this.bubbles=!0,this.cancelBubble=!0,this.cancelable=!1,this.defaultPrevented=!1,this.propagationStopped=!1,this.propagationImmediatelyStopped=!1,this.layer=new Ee,this.page=new Ee,this.canvas=new Ee,this.viewport=new Ee,this.composed=!1,this.NONE=0,this.CAPTURING_PHASE=1,this.AT_TARGET=2,this.BUBBLING_PHASE=3,this.manager=e}return Object.defineProperty(t.prototype,"name",{get:function(){return this.type},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"layerX",{get:function(){return this.layer.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"layerY",{get:function(){return this.layer.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageX",{get:function(){return this.page.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageY",{get:function(){return this.page.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this.canvas.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.canvas.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canvasX",{get:function(){return this.canvas.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canvasY",{get:function(){return this.canvas.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"viewportX",{get:function(){return this.viewport.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"viewportY",{get:function(){return this.viewport.y},enumerable:!1,configurable:!0}),t.prototype.composedPath=function(){return this.manager&&(!this.path||this.path[0]!==this.target)&&(this.path=this.target?this.manager.propagationPath(this.target):[]),this.path},Object.defineProperty(t.prototype,"propagationPath",{get:function(){return this.composedPath()},enumerable:!1,configurable:!0}),t.prototype.preventDefault=function(){this.nativeEvent instanceof Event&&this.nativeEvent.cancelable&&this.nativeEvent.preventDefault(),this.defaultPrevented=!0},t.prototype.stopImmediatePropagation=function(){this.propagationImmediatelyStopped=!0},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.initEvent=function(){},t.prototype.initUIEvent=function(){},t.prototype.clone=function(){throw new Error(It)},t}(),zw=function(t){rt(e,t);function e(){var n=t.apply(this,q([],N(arguments),!1))||this;return n.client=new Ee,n.movement=new Ee,n.offset=new Ee,n.global=new Ee,n.screen=new Ee,n}return Object.defineProperty(e.prototype,"clientX",{get:function(){return this.client.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clientY",{get:function(){return this.client.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"movementX",{get:function(){return this.movement.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"movementY",{get:function(){return this.movement.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offsetX",{get:function(){return this.offset.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offsetY",{get:function(){return this.offset.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"globalX",{get:function(){return this.global.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"globalY",{get:function(){return this.global.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"screenX",{get:function(){return this.screen.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"screenY",{get:function(){return this.screen.y},enumerable:!1,configurable:!0}),e.prototype.getModifierState=function(n){return"getModifierState"in this.nativeEvent&&this.nativeEvent.getModifierState(n)},e.prototype.initMouseEvent=function(){throw new Error(It)},e}($u),ch=function(t){rt(e,t);function e(){var n=t.apply(this,q([],N(arguments),!1))||this;return n.width=0,n.height=0,n.isPrimary=!1,n}return e.prototype.getCoalescedEvents=function(){return this.type==="pointermove"||this.type==="mousemove"||this.type==="touchmove"?[this]:[]},e.prototype.getPredictedEvents=function(){throw new Error("getPredictedEvents is not supported!")},e.prototype.clone=function(){return this.manager.clonePointerEvent(this)},e}(zw),lh=function(t){rt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.clone=function(){return this.manager.cloneWheelEvent(this)},e}(zw),Dt=function(t){rt(e,t);function e(n,r){var i=t.call(this,null)||this;return i.type=n,i.detail=r,Object.assign(i,r),i}return e}($u),ny=":",Gw=function(){function t(){this.emitter=new $p}return t.prototype.on=function(e,n,r){return this.addEventListener(e,n,r),this},t.prototype.addEventListener=function(e,n,r){var i=Xv(r)&&r||ki(r)&&r.capture,a=ki(r)&&r.once,o=ga(n)?void 0:n,s=!1,c="";if(e.indexOf(ny)>-1){var l=N(e.split(ny),2),u=l[0],f=l[1];e=f,c=u,s=!0}if(e=i?"".concat(e,"capture"):e,n=ga(n)?n:n.handleEvent,s){var d=n;n=function(){for(var h,p=[],v=0;v0},e.prototype.isDefaultNamespace=function(n){throw new Error(It)},e.prototype.lookupNamespaceURI=function(n){throw new Error(It)},e.prototype.lookupPrefix=function(n){throw new Error(It)},e.prototype.normalize=function(){throw new Error(It)},e.prototype.isEqualNode=function(n){return this===n},e.prototype.isSameNode=function(n){return this.isEqualNode(n)},Object.defineProperty(e.prototype,"parent",{get:function(){return this.parentNode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentElement",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstChild",{get:function(){return this.childNodes.length>0?this.childNodes[0]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.childNodes.length>0?this.childNodes[this.childNodes.length-1]:null},enumerable:!1,configurable:!0}),e.prototype.compareDocumentPosition=function(n){var r;if(n===this)return 0;for(var i=n,a=this,o=[i],s=[a];(r=i.parentNode)!==null&&r!==void 0?r:a.parentNode;)i=i.parentNode?(o.push(i.parentNode),i.parentNode):i,a=a.parentNode?(s.push(a.parentNode),a.parentNode):a;if(i!==a)return e.DOCUMENT_POSITION_DISCONNECTED|e.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|e.DOCUMENT_POSITION_PRECEDING;var c=o.length>s.length?o:s,l=c===o?s:o;if(c[c.length-l.length]===l[0])return c===o?e.DOCUMENT_POSITION_CONTAINED_BY|e.DOCUMENT_POSITION_FOLLOWING:e.DOCUMENT_POSITION_CONTAINS|e.DOCUMENT_POSITION_PRECEDING;for(var u=c.length-l.length,f=l.length-1;f>=0;f--){var d=l[f],h=c[u+f];if(h!==d){var p=d.parentNode.childNodes;return p.indexOf(d)0&&r;)r=r.parentNode,n--;return r},e.prototype.forEach=function(n,r){r===void 0&&(r=!1),n(this)||(r?this.childNodes.slice():this.childNodes).forEach(function(i){i.forEach(n)})},e.DOCUMENT_POSITION_DISCONNECTED=1,e.DOCUMENT_POSITION_PRECEDING=2,e.DOCUMENT_POSITION_FOLLOWING=4,e.DOCUMENT_POSITION_CONTAINS=8,e.DOCUMENT_POSITION_CONTAINED_BY=16,e.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32,e}(Gw),gR=2048,yR=function(){function t(e,n){var r=this;this.globalRuntime=e,this.context=n,this.emitter=new $p,this.nativeHTMLMap=new WeakMap,this.cursor="default",this.mappingTable={},this.mappingState={trackingData:{}},this.eventPool=new Map,this.tmpMatrix=Nt(),this.tmpVec3=yt(),this.onPointerDown=function(i){var a=r.createPointerEvent(i);if(r.dispatchEvent(a,"pointerdown"),a.pointerType==="touch")r.dispatchEvent(a,"touchstart");else if(a.pointerType==="mouse"||a.pointerType==="pen"){var o=a.button===2;r.dispatchEvent(a,o?"rightdown":"mousedown")}var s=r.trackingData(i.pointerId);s.pressTargetsByButton[i.button]=a.composedPath(),r.freeEvent(a)},this.onPointerUp=function(i){var a,o=sh.now(),s=r.createPointerEvent(i,void 0,void 0,r.context.config.alwaysTriggerPointerEventOnCanvas?r.rootTarget:void 0);if(r.dispatchEvent(s,"pointerup"),s.pointerType==="touch")r.dispatchEvent(s,"touchend");else if(s.pointerType==="mouse"||s.pointerType==="pen"){var c=s.button===2;r.dispatchEvent(s,c?"rightup":"mouseup")}var l=r.trackingData(i.pointerId),u=r.findMountedTarget(l.pressTargetsByButton[i.button]),f=u;if(u&&!s.composedPath().includes(u)){for(var d=u;d&&!s.composedPath().includes(d);){if(s.currentTarget=d,r.notifyTarget(s,"pointerupoutside"),s.pointerType==="touch")r.notifyTarget(s,"touchendoutside");else if(s.pointerType==="mouse"||s.pointerType==="pen"){var c=s.button===2;r.notifyTarget(s,c?"rightupoutside":"mouseupoutside")}_e.isNode(d)&&(d=d.parentNode)}delete l.pressTargetsByButton[i.button],f=d}if(f){var h=r.clonePointerEvent(s,"click");h.target=f,h.path=[],l.clicksByButton[i.button]||(l.clicksByButton[i.button]={clickCount:0,target:h.target,timeStamp:o});var p=l.clicksByButton[i.button];p.target===h.target&&o-p.timeStamp<200?++p.clickCount:p.clickCount=1,p.target=h.target,p.timeStamp=o,h.detail=p.clickCount,!((a=s.detail)===null||a===void 0)&&a.preventClick||(!r.context.config.useNativeClickEvent&&(h.pointerType==="mouse"||h.pointerType==="touch")&&r.dispatchEvent(h,"click"),r.dispatchEvent(h,"pointertap")),r.freeEvent(h)}r.freeEvent(s)},this.onPointerMove=function(i){var a=r.createPointerEvent(i,void 0,void 0,r.context.config.alwaysTriggerPointerEventOnCanvas?r.rootTarget:void 0),o=a.pointerType==="mouse"||a.pointerType==="pen",s=r.trackingData(i.pointerId),c=r.findMountedTarget(s.overTargets);if(s.overTargets&&c!==a.target){var l=i.type==="mousemove"?"mouseout":"pointerout",u=r.createPointerEvent(i,l,c||void 0);if(r.dispatchEvent(u,"pointerout"),o&&r.dispatchEvent(u,"mouseout"),!a.composedPath().includes(c)){var f=r.createPointerEvent(i,"pointerleave",c||void 0);for(f.eventPhase=f.AT_TARGET;f.target&&!a.composedPath().includes(f.target);)f.currentTarget=f.target,r.notifyTarget(f),o&&r.notifyTarget(f,"mouseleave"),_e.isNode(f.target)&&(f.target=f.target.parentNode);r.freeEvent(f)}r.freeEvent(u)}if(c!==a.target){var d=i.type==="mousemove"?"mouseover":"pointerover",h=r.clonePointerEvent(a,d);r.dispatchEvent(h,"pointerover"),o&&r.dispatchEvent(h,"mouseover");for(var p=c&&_e.isNode(c)&&c.parentNode;p&&p!==(_e.isNode(r.rootTarget)&&r.rootTarget.parentNode)&&p!==a.target;)p=p.parentNode;var v=!p||p===(_e.isNode(r.rootTarget)&&r.rootTarget.parentNode);if(v){var g=r.clonePointerEvent(a,"pointerenter");for(g.eventPhase=g.AT_TARGET;g.target&&g.target!==c&&g.target!==(_e.isNode(r.rootTarget)&&r.rootTarget.parentNode);)g.currentTarget=g.target,r.notifyTarget(g),o&&r.notifyTarget(g,"mouseenter"),_e.isNode(g.target)&&(g.target=g.target.parentNode);r.freeEvent(g)}r.freeEvent(h)}r.dispatchEvent(a,"pointermove"),a.pointerType==="touch"&&r.dispatchEvent(a,"touchmove"),o&&(r.dispatchEvent(a,"mousemove"),r.cursor=r.getCursor(a.target)),s.overTargets=a.composedPath(),r.freeEvent(a)},this.onPointerOut=function(i){var a=r.trackingData(i.pointerId);if(a.overTargets){var o=i.pointerType==="mouse"||i.pointerType==="pen",s=r.findMountedTarget(a.overTargets),c=r.createPointerEvent(i,"pointerout",s||void 0);r.dispatchEvent(c),o&&r.dispatchEvent(c,"mouseout");var l=r.createPointerEvent(i,"pointerleave",s||void 0);for(l.eventPhase=l.AT_TARGET;l.target&&l.target!==(_e.isNode(r.rootTarget)&&r.rootTarget.parentNode);)l.currentTarget=l.target,r.notifyTarget(l),o&&r.notifyTarget(l,"mouseleave"),_e.isNode(l.target)&&(l.target=l.target.parentNode);a.overTargets=null,r.freeEvent(c),r.freeEvent(l)}r.cursor=null},this.onPointerOver=function(i){var a=r.trackingData(i.pointerId),o=r.createPointerEvent(i),s=o.pointerType==="mouse"||o.pointerType==="pen";r.dispatchEvent(o,"pointerover"),s&&r.dispatchEvent(o,"mouseover"),o.pointerType==="mouse"&&(r.cursor=r.getCursor(o.target));var c=r.clonePointerEvent(o,"pointerenter");for(c.eventPhase=c.AT_TARGET;c.target&&c.target!==(_e.isNode(r.rootTarget)&&r.rootTarget.parentNode);)c.currentTarget=c.target,r.notifyTarget(c),s&&r.notifyTarget(c,"mouseenter"),_e.isNode(c.target)&&(c.target=c.target.parentNode);a.overTargets=o.composedPath(),r.freeEvent(o),r.freeEvent(c)},this.onPointerUpOutside=function(i){var a=r.trackingData(i.pointerId),o=r.findMountedTarget(a.pressTargetsByButton[i.button]),s=r.createPointerEvent(i);if(o){for(var c=o;c;)s.currentTarget=c,r.notifyTarget(s,"pointerupoutside"),s.pointerType==="touch"||(s.pointerType==="mouse"||s.pointerType==="pen")&&r.notifyTarget(s,s.button===2?"rightupoutside":"mouseupoutside"),_e.isNode(c)&&(c=c.parentNode);delete a.pressTargetsByButton[i.button]}r.freeEvent(s)},this.onWheel=function(i){var a=r.createWheelEvent(i);r.dispatchEvent(a),r.freeEvent(a)},this.onClick=function(i){if(r.context.config.useNativeClickEvent){var a=r.createPointerEvent(i);r.dispatchEvent(a),r.freeEvent(a)}},this.onPointerCancel=function(i){var a=r.createPointerEvent(i,void 0,void 0,r.context.config.alwaysTriggerPointerEventOnCanvas?r.rootTarget:void 0);r.dispatchEvent(a),r.freeEvent(a)}}return t.prototype.init=function(){this.rootTarget=this.context.renderingContext.root.parentNode,this.addEventMapping("pointerdown",this.onPointerDown),this.addEventMapping("pointerup",this.onPointerUp),this.addEventMapping("pointermove",this.onPointerMove),this.addEventMapping("pointerout",this.onPointerOut),this.addEventMapping("pointerleave",this.onPointerOut),this.addEventMapping("pointercancel",this.onPointerCancel),this.addEventMapping("pointerover",this.onPointerOver),this.addEventMapping("pointerupoutside",this.onPointerUpOutside),this.addEventMapping("wheel",this.onWheel),this.addEventMapping("click",this.onClick)},t.prototype.destroy=function(){this.emitter.removeAllListeners(),this.mappingTable={},this.mappingState={},this.eventPool.clear()},t.prototype.client2Viewport=function(e){var n=this.context.contextService.getBoundingClientRect();return new Ee(e.x-((n==null?void 0:n.left)||0),e.y-((n==null?void 0:n.top)||0))},t.prototype.viewport2Client=function(e){var n=this.context.contextService.getBoundingClientRect();return new Ee(e.x+((n==null?void 0:n.left)||0),e.y+((n==null?void 0:n.top)||0))},t.prototype.viewport2Canvas=function(e){var n=e.x,r=e.y,i=this.rootTarget.defaultView,a=i.getCamera(),o=this.context.config,s=o.width,c=o.height,l=a.getPerspectiveInverse(),u=a.getWorldTransform(),f=$e(this.tmpMatrix,u,l),d=Gn(this.tmpVec3,n/s*2-1,(1-r/c)*2-1,0);return Oe(d,d,f),new Ee(d[0],d[1])},t.prototype.canvas2Viewport=function(e){var n=this.rootTarget.defaultView,r=n.getCamera(),i=r.getPerspective(),a=r.getViewTransform(),o=$e(this.tmpMatrix,i,a),s=Gn(this.tmpVec3,e.x,e.y,0);Oe(this.tmpVec3,this.tmpVec3,o);var c=this.context.config,l=c.width,u=c.height;return new Ee((s[0]+1)/2*l,(1-(s[1]+1)/2)*u)},t.prototype.setPickHandler=function(e){this.pickHandler=e},t.prototype.addEventMapping=function(e,n){this.mappingTable[e]||(this.mappingTable[e]=[]),this.mappingTable[e].push({fn:n,priority:0}),this.mappingTable[e].sort(function(r,i){return r.priority-i.priority})},t.prototype.mapEvent=function(e){if(this.rootTarget){var n=this.mappingTable[e.type];if(n)for(var r=0,i=n.length;r=1;i--)if(e.currentTarget=r[i],this.notifyTarget(e,n),e.propagationStopped||e.propagationImmediatelyStopped)return;if(e.eventPhase=e.AT_TARGET,e.currentTarget=e.target,this.notifyTarget(e,n),!(e.propagationStopped||e.propagationImmediatelyStopped)){var a=r.indexOf(e.currentTarget);e.eventPhase=e.BUBBLING_PHASE;for(var i=a+1;ia||r>o?null:!s&&this.pickHandler(e)||this.rootTarget||null},t.prototype.isNativeEventFromCanvas=function(e){var n,r=this.context.contextService.getDomElement(),i=(n=e.nativeEvent)===null||n===void 0?void 0:n.target;if(i){if(i===r)return!0;if(r&&r.contains)return r.contains(i)}return e.nativeEvent.composedPath?e.nativeEvent.composedPath().indexOf(r)>-1:!1},t.prototype.getExistedHTML=function(e){var n,r;if(e.nativeEvent.composedPath)try{for(var i=vn(e.nativeEvent.composedPath()),a=i.next();!a.done;a=i.next()){var o=a.value,s=this.nativeHTMLMap.get(o);if(s)return s}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return null},t.prototype.pickTarget=function(e){return this.hitTest({clientX:e.clientX,clientY:e.clientY,viewportX:e.viewportX,viewportY:e.viewportY,x:e.canvasX,y:e.canvasY})},t.prototype.createPointerEvent=function(e,n,r,i){var a=this.allocateEvent(ch);this.copyPointerData(e,a),this.copyMouseData(e,a),this.copyData(e,a),a.nativeEvent=e.nativeEvent,a.originalEvent=e;var o=this.getExistedHTML(a);return a.target=r??(o||this.isNativeEventFromCanvas(a)&&this.pickTarget(a)||i),typeof n=="string"&&(a.type=n),a},t.prototype.createWheelEvent=function(e){var n=this.allocateEvent(lh);this.copyWheelData(e,n),this.copyMouseData(e,n),this.copyData(e,n),n.nativeEvent=e.nativeEvent,n.originalEvent=e;var r=this.getExistedHTML(n);return n.target=r||this.isNativeEventFromCanvas(n)&&this.pickTarget(n),n},t.prototype.trackingData=function(e){return this.mappingState.trackingData[e]||(this.mappingState.trackingData[e]={pressTargetsByButton:{},clicksByButton:{},overTarget:null}),this.mappingState.trackingData[e]},t.prototype.cloneWheelEvent=function(e){var n=this.allocateEvent(lh);return n.nativeEvent=e.nativeEvent,n.originalEvent=e.originalEvent,this.copyWheelData(e,n),this.copyMouseData(e,n),this.copyData(e,n),n.target=e.target,n.path=e.composedPath().slice(),n.type=e.type,n},t.prototype.clonePointerEvent=function(e,n){var r=this.allocateEvent(ch);return r.nativeEvent=e.nativeEvent,r.originalEvent=e.originalEvent,this.copyPointerData(e,r),this.copyMouseData(e,r),this.copyData(e,r),r.target=e.target,r.path=e.composedPath().slice(),r.type=n??r.type,r},t.prototype.copyPointerData=function(e,n){n.pointerId=e.pointerId,n.width=e.width,n.height=e.height,n.isPrimary=e.isPrimary,n.pointerType=e.pointerType,n.pressure=e.pressure,n.tangentialPressure=e.tangentialPressure,n.tiltX=e.tiltX,n.tiltY=e.tiltY,n.twist=e.twist},t.prototype.copyMouseData=function(e,n){n.altKey=e.altKey,n.button=e.button,n.buttons=e.buttons,n.ctrlKey=e.ctrlKey,n.metaKey=e.metaKey,n.shiftKey=e.shiftKey,n.client.copyFrom(e.client),n.movement.copyFrom(e.movement),n.canvas.copyFrom(e.canvas),n.screen.copyFrom(e.screen),n.global.copyFrom(e.global),n.offset.copyFrom(e.offset)},t.prototype.copyWheelData=function(e,n){n.deltaMode=e.deltaMode,n.deltaX=e.deltaX,n.deltaY=e.deltaY,n.deltaZ=e.deltaZ},t.prototype.copyData=function(e,n){n.isTrusted=e.isTrusted,n.timeStamp=sh.now(),n.type=e.type,n.detail=e.detail,n.view=e.view,n.page.copyFrom(e.page),n.viewport.copyFrom(e.viewport)},t.prototype.allocateEvent=function(e){this.eventPool.has(e)||this.eventPool.set(e,[]);var n=this.eventPool.get(e).pop()||new e(this);return n.eventPhase=n.NONE,n.currentTarget=null,n.path=[],n.target=null,n},t.prototype.freeEvent=function(e){if(e.manager!==this)throw new Error("It is illegal to free an event not managed by this EventBoundary!");var n=e.constructor;this.eventPool.has(n)||this.eventPool.set(n,[]),this.eventPool.get(n).push(e)},t.prototype.notifyTarget=function(e,n){n=n??e.type;var r=e.eventPhase===e.CAPTURING_PHASE||e.eventPhase===e.AT_TARGET?"".concat(n,"capture"):n;this.notifyListeners(e,r),e.eventPhase===e.AT_TARGET&&this.notifyListeners(e,n)},t.prototype.notifyListeners=function(e,n){var r=e.currentTarget.emitter,i=r._events[n];if(i)if("fn"in i)i.once&&r.removeListener(n,i.fn,void 0,!0),i.fn.call(e.currentTarget||i.context,e);else for(var a=0;a=0;r--){var i=e[r];if(i===this.rootTarget||_e.isNode(i)&&i.parentNode===n)n=e[r];else break}return n},t.prototype.getCursor=function(e){for(var n=e;n;){var r=$4(n)&&n.getAttribute("cursor");if(r)return r;n=_e.isNode(n)&&n.parentNode}},t}(),mR=function(){function t(){}return t.prototype.getOrCreateCanvas=function(e,n){if(this.canvas)return this.canvas;if(e||H.offscreenCanvas)this.canvas=e||H.offscreenCanvas,this.context=this.canvas.getContext("2d",z({willReadFrequently:!0},n));else try{this.canvas=new window.OffscreenCanvas(0,0),this.context=this.canvas.getContext("2d",z({willReadFrequently:!0},n)),(!this.context||!this.context.measureText)&&(this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"))}catch{this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d",z({willReadFrequently:!0},n))}return this.canvas.width=10,this.canvas.height=10,this.canvas},t.prototype.getOrCreateContext=function(e,n){return this.context?this.context:(this.getOrCreateCanvas(e,n),this.context)},t}(),Qr;(function(t){t[t.CAMERA_CHANGED=0]="CAMERA_CHANGED",t[t.DISPLAY_OBJECT_CHANGED=1]="DISPLAY_OBJECT_CHANGED",t[t.NONE=2]="NONE"})(Qr||(Qr={}));var bR=function(){function t(e,n){this.globalRuntime=e,this.context=n,this.inited=!1,this.stats={total:0,rendered:0},this.zIndexCounter=0,this.hooks={init:new Ye,initAsync:new tR,dirtycheck:new Yf,cull:new Yf,beginFrame:new Ye,beforeRender:new Ye,render:new Ye,afterRender:new Ye,endFrame:new Ye,destroy:new Ye,pick:new eR,pickSync:new Yf,pointerDown:new Ye,pointerUp:new Ye,pointerMove:new Ye,pointerOut:new Ye,pointerOver:new Ye,pointerWheel:new Ye,pointerCancel:new Ye,click:new Ye}}return t.prototype.init=function(e){var n=this,r=z(z({},this.globalRuntime),this.context);this.context.renderingPlugins.forEach(function(i){i.apply(r,n.globalRuntime)}),this.hooks.init.call(),this.hooks.initAsync.getCallbacksNum()===0?(this.inited=!0,e()):this.hooks.initAsync.promise().then(function(){n.inited=!0,e()})},t.prototype.getStats=function(){return this.stats},t.prototype.disableDirtyRectangleRendering=function(){var e=this.context.config.renderer,n=e.getConfig().enableDirtyRectangleRendering;return!n||this.context.renderingContext.renderReasons.has(Qr.CAMERA_CHANGED)},t.prototype.render=function(e,n){var r=this;this.stats.total=0,this.stats.rendered=0,this.zIndexCounter=0;var i=this.context.renderingContext;if(this.globalRuntime.sceneGraphService.syncHierarchy(i.root),this.globalRuntime.sceneGraphService.triggerPendingEvents(),i.renderReasons.size&&this.inited){i.dirtyRectangleRenderingDisabled=this.disableDirtyRectangleRendering();var a=i.renderReasons.size===1&&i.renderReasons.has(Qr.CAMERA_CHANGED),o=!e.disableRenderHooks||!(e.disableRenderHooks&&a);o&&this.renderDisplayObject(i.root,e,i),this.hooks.beginFrame.call(),o&&i.renderListCurrentFrame.forEach(function(s){r.hooks.beforeRender.call(s),r.hooks.render.call(s),r.hooks.afterRender.call(s)}),this.hooks.endFrame.call(),i.renderListCurrentFrame=[],i.renderReasons.clear(),n()}},t.prototype.renderDisplayObject=function(e,n,r){var i=this,a=n.renderer.getConfig(),o=a.enableDirtyCheck,s=a.enableCulling;this.globalRuntime.enableCSSParsing&&this.globalRuntime.styleValueRegistry.recalc(e);var c=e.renderable,l=o?c.dirty||r.dirtyRectangleRenderingDisabled?e:null:e;if(l){var u=s?this.hooks.cull.call(l,this.context.camera):l;u&&(this.stats.rendered++,r.renderListCurrentFrame.push(u))}e.renderable.dirty=!1,e.sortable.renderOrder=this.zIndexCounter++,this.stats.total++;var f=e.sortable;f.dirty&&(this.sort(e,f),f.dirty=!1,f.dirtyChildren=[],f.dirtyReason=void 0),(f.sorted||e.childNodes).forEach(function(d){i.renderDisplayObject(d,n,r)})},t.prototype.sort=function(e,n){n.sorted&&n.dirtyReason!==$a.Z_INDEX_CHANGED?n.dirtyChildren.forEach(function(r){var i=e.childNodes.indexOf(r);if(i===-1){var a=n.sorted.indexOf(r);a>=0&&n.sorted.splice(a,1)}else if(n.sorted.length===0)n.sorted.push(r);else{var o=B4(n.sorted,r);n.sorted.splice(o,0,r)}}):n.sorted=e.childNodes.slice().sort(Rw)},t.prototype.destroy=function(){this.inited=!1,this.hooks.destroy.call(),this.globalRuntime.sceneGraphService.clearPendingEvents()},t.prototype.dirtify=function(){this.context.renderingContext.renderReasons.add(Qr.DISPLAY_OBJECT_CHANGED)},t}(),xR=/\[\s*(.*)=(.*)\s*\]/,wR=function(){function t(){}return t.prototype.selectOne=function(e,n){var r=this;if(e.startsWith("."))return n.find(function(s){return((s==null?void 0:s.classList)||[]).indexOf(r.getIdOrClassname(e))>-1});if(e.startsWith("#"))return n.find(function(s){return s.id===r.getIdOrClassname(e)});if(e.startsWith("[")){var i=this.getAttribute(e),a=i.name,o=i.value;return a?n.find(function(s){return n!==s&&(a==="name"?s.name===o:r.attributeToString(s,a)===o)}):null}else return n.find(function(s){return n!==s&&s.nodeName===e})},t.prototype.selectAll=function(e,n){var r=this;if(e.startsWith("."))return n.findAll(function(s){return n!==s&&((s==null?void 0:s.classList)||[]).indexOf(r.getIdOrClassname(e))>-1});if(e.startsWith("#"))return n.findAll(function(s){return n!==s&&s.id===r.getIdOrClassname(e)});if(e.startsWith("[")){var i=this.getAttribute(e),a=i.name,o=i.value;return a?n.findAll(function(s){return n!==s&&(a==="name"?s.name===o:r.attributeToString(s,a)===o)}):[]}else return n.findAll(function(s){return n!==s&&s.nodeName===e})},t.prototype.is=function(e,n){if(e.startsWith("."))return n.className===this.getIdOrClassname(e);if(e.startsWith("#"))return n.id===this.getIdOrClassname(e);if(e.startsWith("[")){var r=this.getAttribute(e),i=r.name,a=r.value;return i==="name"?n.name===a:this.attributeToString(n,i)===a}else return n.nodeName===e},t.prototype.getIdOrClassname=function(e){return e.substring(1)},t.prototype.getAttribute=function(e){var n=e.match(xR),r="",i="";return n&&n.length>2&&(r=n[1].replace(/"/g,""),i=n[2].replace(/"/g,"")),{name:r,value:i}},t.prototype.attributeToString=function(e,n){if(!e.getAttribute)return"";var r=e.getAttribute(n);return nt(r)?"":r.toString?r.toString():""},t}(),Gi=function(t){rt(e,t);function e(n,r,i,a,o,s,c,l){var u=t.call(this,null)||this;return u.relatedNode=r,u.prevValue=i,u.newValue=a,u.attrName=o,u.attrChange=s,u.prevParsedValue=c,u.newParsedValue=l,u.type=n,u}return e.ADDITION=2,e.MODIFICATION=1,e.REMOVAL=3,e}($u),ht;(function(t){t.REPARENT="reparent",t.DESTROY="destroy",t.ATTR_MODIFIED="DOMAttrModified",t.INSERTED="DOMNodeInserted",t.REMOVED="removed",t.MOUNTED="DOMNodeInsertedIntoDocument",t.UNMOUNTED="DOMNodeRemovedFromDocument",t.BOUNDS_CHANGED="bounds-changed",t.CULLED="culled"})(ht||(ht={}));function ry(t){var e=t.renderable;e&&(e.renderBoundsDirty=!0,e.boundsDirty=!0)}var OR=new Gi(ht.REPARENT,null,"","","",0,"",""),SR=function(){function t(e){var n=this;this.runtime=e,this.pendingEvents=[],this.boundsChangedEvent=new Dt(ht.BOUNDS_CHANGED),this.rotate=function(){var r=ve();return function(i,a,o,s){o===void 0&&(o=0),s===void 0&&(s=0),typeof a=="number"&&(a=St(a,o,s));var c=i.transformable;if(i.parentNode===null||!i.parentNode.transformable)n.rotateLocal(i,a);else{var l=ve();oc(l,a[0],a[1],a[2]);var u=n.getRotation(i),f=n.getRotation(i.parentNode);sc(r,f),Sf(r,r),qr(l,r,l),qr(c.localRotation,l,u),ml(c.localRotation,c.localRotation),n.dirtifyLocal(i,c)}}}(),this.rotateLocal=function(){var r=ve();return function(i,a,o,s){o===void 0&&(o=0),s===void 0&&(s=0),typeof a=="number"&&(a=St(a,o,s));var c=i.transformable;oc(r,a[0],a[1],a[2]),Zv(c.localRotation,c.localRotation,r),n.dirtifyLocal(i,c)}}(),this.setEulerAngles=function(){var r=ve();return function(i,a,o,s){o===void 0&&(o=0),s===void 0&&(s=0),typeof a=="number"&&(a=St(a,o,s));var c=i.transformable;if(i.parentNode===null||!i.parentNode.transformable)n.setLocalEulerAngles(i,a);else{oc(c.localRotation,a[0],a[1],a[2]);var l=n.getRotation(i.parentNode);sc(r,Sf(ve(),l)),Zv(c.localRotation,c.localRotation,r),n.dirtifyLocal(i,c)}}}(),this.translateLocal=function(){return function(r,i,a,o){a===void 0&&(a=0),o===void 0&&(o=0),typeof i=="number"&&(i=St(i,a,o));var s=r.transformable;vo(i,yt())||(OT(i,i,s.localRotation),ba(s.localPosition,s.localPosition,i),n.dirtifyLocal(r,s))}}(),this.setPosition=function(){var r=Nt(),i=yt();return function(a,o){var s=a.transformable;if(i[0]=o[0],i[1]=o[1],i[2]=o[2]||0,!vo(n.getPosition(a),i)){if(rn(s.position,i),a.parentNode===null||!a.parentNode.transformable)rn(s.localPosition,i);else{var c=a.parentNode.transformable;Ri(r,c.worldTransform),Wn(r,r),Oe(s.localPosition,i,r)}n.dirtifyLocal(a,s)}}}(),this.setLocalPosition=function(){var r=yt();return function(i,a){var o=i.transformable;r[0]=a[0],r[1]=a[1],r[2]=a[2]||0,!vo(o.localPosition,r)&&(rn(o.localPosition,r),n.dirtifyLocal(i,o))}}(),this.translate=function(){var r=yt(),i=yt(),a=yt();return function(o,s,c,l){c===void 0&&(c=0),l===void 0&&(l=0),typeof s=="number"&&(s=Gn(i,s,c,l)),!vo(s,r)&&(ba(a,n.getPosition(o),s),n.setPosition(o,a))}}(),this.setRotation=function(){var r=ve();return function(i,a,o,s,c){var l=i.transformable;if(typeof a=="number"&&(a=_f(a,o,s,c)),i.parentNode===null||!i.parentNode.transformable)n.setLocalRotation(i,a);else{var u=n.getRotation(i.parentNode);sc(r,u),Sf(r,r),qr(l.localRotation,r,a),ml(l.localRotation,l.localRotation),n.dirtifyLocal(i,l)}}},this.displayObjectDependencyMap=new WeakMap,this.calcLocalTransform=function(){var r=Nt(),i=yt(),a=_f(0,0,0,1);return function(o){var s=o.localSkew[0]!==0||o.localSkew[1]!==0;if(s){if(zo(o.localTransform,o.localRotation,o.localPosition,St(1,1,1),o.origin),o.localSkew[0]!==0||o.localSkew[1]!==0){var c=Rs(r);c[4]=Math.tan(o.localSkew[0]),c[1]=Math.tan(o.localSkew[1]),$e(o.localTransform,o.localTransform,c)}var l=zo(r,a,i,o.localScale,o.origin);$e(o.localTransform,o.localTransform,l)}else zo(o.localTransform,o.localRotation,o.localPosition,o.localScale,o.origin)}}()}return t.prototype.matches=function(e,n){return this.runtime.sceneGraphSelector.is(e,n)},t.prototype.querySelector=function(e,n){return this.runtime.sceneGraphSelector.selectOne(e,n)},t.prototype.querySelectorAll=function(e,n){return this.runtime.sceneGraphSelector.selectAll(e,n)},t.prototype.attach=function(e,n,r){var i,a,o=!1;e.parentNode&&(o=e.parentNode!==n,this.detach(e)),e.parentNode=n,nt(r)?e.parentNode.childNodes.push(e):e.parentNode.childNodes.splice(r,0,e);var s=n.sortable;(!((i=s==null?void 0:s.sorted)===null||i===void 0)&&i.length||!((a=e.style)===null||a===void 0)&&a.zIndex)&&(s.dirtyChildren.indexOf(e)===-1&&s.dirtyChildren.push(e),s.dirty=!0,s.dirtyReason=$a.ADDED);var c=e.transformable;c&&this.dirtifyWorld(e,c),c.frozen&&this.unfreezeParentToRoot(e),o&&e.dispatchEvent(OR)},t.prototype.detach=function(e){var n,r;if(e.parentNode){var i=e.transformable,a=e.parentNode.sortable;(!((n=a==null?void 0:a.sorted)===null||n===void 0)&&n.length||!((r=e.style)===null||r===void 0)&&r.zIndex)&&(a.dirtyChildren.indexOf(e)===-1&&a.dirtyChildren.push(e),a.dirty=!0,a.dirtyReason=$a.REMOVED);var o=e.parentNode.childNodes.indexOf(e);o>-1&&e.parentNode.childNodes.splice(o,1),i&&this.dirtifyWorld(e,i),e.parentNode=null}},t.prototype.getOrigin=function(e){return e.transformable.origin},t.prototype.setOrigin=function(e,n,r,i){r===void 0&&(r=0),i===void 0&&(i=0),typeof n=="number"&&(n=[n,r,i]);var a=e.transformable;if(!(n[0]===a.origin[0]&&n[1]===a.origin[1]&&n[2]===a.origin[2])){var o=a.origin;o[0]=n[0],o[1]=n[1],o[2]=n[2]||0,this.dirtifyLocal(e,a)}},t.prototype.setLocalEulerAngles=function(e,n,r,i){r===void 0&&(r=0),i===void 0&&(i=0),typeof n=="number"&&(n=St(n,r,i));var a=e.transformable;oc(a.localRotation,n[0],n[1],n[2]),this.dirtifyLocal(e,a)},t.prototype.scaleLocal=function(e,n){var r=e.transformable;xT(r.localScale,r.localScale,St(n[0],n[1],n[2]||1)),this.dirtifyLocal(e,r)},t.prototype.setLocalScale=function(e,n){var r=e.transformable,i=St(n[0],n[1],n[2]||r.localScale[2]);vo(i,r.localScale)||(rn(r.localScale,i),this.dirtifyLocal(e,r))},t.prototype.setLocalRotation=function(e,n,r,i,a){typeof n=="number"&&(n=_f(n,r,i,a));var o=e.transformable;sc(o.localRotation,n),this.dirtifyLocal(e,o)},t.prototype.setLocalSkew=function(e,n,r){typeof n=="number"&&(n=AT(n,r));var i=e.transformable;kT(i.localSkew,n),this.dirtifyLocal(e,i)},t.prototype.dirtifyLocal=function(e,n){n.localDirtyFlag||(n.localDirtyFlag=!0,n.dirtyFlag||this.dirtifyWorld(e,n))},t.prototype.dirtifyWorld=function(e,n){n.dirtyFlag||this.unfreezeParentToRoot(e),this.dirtifyWorldInternal(e,n),this.dirtifyToRoot(e,!0)},t.prototype.triggerPendingEvents=function(){var e=this,n=new Set,r=function(i,a){i.isConnected&&!n.has(i.entity)&&(e.boundsChangedEvent.detail=a,e.boundsChangedEvent.target=i,i.isMutationObserved?i.dispatchEvent(e.boundsChangedEvent):i.ownerDocument.defaultView.dispatchEvent(e.boundsChangedEvent,!0),n.add(i.entity))};this.pendingEvents.forEach(function(i){var a=N(i,2),o=a[0],s=a[1];s.affectChildren?o.forEach(function(c){r(c,s)}):r(o,s)}),this.clearPendingEvents(),n.clear()},t.prototype.clearPendingEvents=function(){this.pendingEvents=[]},t.prototype.dirtifyToRoot=function(e,n){n===void 0&&(n=!1);var r=e;for(r.renderable&&(r.renderable.dirty=!0);r;)ry(r),r=r.parentNode;n&&e.forEach(function(i){ry(i)}),this.informDependentDisplayObjects(e),this.pendingEvents.push([e,{affectChildren:n}])},t.prototype.updateDisplayObjectDependency=function(e,n,r,i){if(n&&n!==r){var a=this.displayObjectDependencyMap.get(n);if(a&&a[e]){var o=a[e].indexOf(i);a[e].splice(o,1)}}if(r){var s=this.displayObjectDependencyMap.get(r);s||(this.displayObjectDependencyMap.set(r,{}),s=this.displayObjectDependencyMap.get(r)),s[e]||(s[e]=[]),s[e].push(i)}},t.prototype.informDependentDisplayObjects=function(e){var n=this,r=this.displayObjectDependencyMap.get(e);r&&Object.keys(r).forEach(function(i){r[i].forEach(function(a){n.dirtifyToRoot(a,!0),a.dispatchEvent(new Gi(ht.ATTR_MODIFIED,a,n,n,i,Gi.MODIFICATION,n,n)),a.isCustomElement&&a.isConnected&&a.attributeChangedCallback&&a.attributeChangedCallback(i,n,n)})})},t.prototype.getPosition=function(e){var n=e.transformable;return gl(n.position,this.getWorldTransform(e,n))},t.prototype.getRotation=function(e){var n=e.transformable;return yl(n.rotation,this.getWorldTransform(e,n))},t.prototype.getScale=function(e){var n=e.transformable;return Aa(n.scaling,this.getWorldTransform(e,n))},t.prototype.getWorldTransform=function(e,n){return n===void 0&&(n=e.transformable),!n.localDirtyFlag&&!n.dirtyFlag||(e.parentNode&&e.parentNode.transformable&&this.getWorldTransform(e.parentNode),this.sync(e,n)),n.worldTransform},t.prototype.getLocalPosition=function(e){return e.transformable.localPosition},t.prototype.getLocalRotation=function(e){return e.transformable.localRotation},t.prototype.getLocalScale=function(e){return e.transformable.localScale},t.prototype.getLocalSkew=function(e){return e.transformable.localSkew},t.prototype.getLocalTransform=function(e){var n=e.transformable;return n.localDirtyFlag&&(this.calcLocalTransform(n),n.localDirtyFlag=!1),n.localTransform},t.prototype.setLocalTransform=function(e,n){var r=gl(yt(),n),i=yl(ve(),n),a=Aa(yt(),n);this.setLocalScale(e,a),this.setLocalPosition(e,r),this.setLocalRotation(e,i)},t.prototype.resetLocalTransform=function(e){this.setLocalScale(e,[1,1,1]),this.setLocalPosition(e,[0,0,0]),this.setLocalEulerAngles(e,[0,0,0]),this.setLocalSkew(e,[0,0])},t.prototype.getTransformedGeometryBounds=function(e,n,r){n===void 0&&(n=!1);var i=this.getGeometryBounds(e,n);if(be.isEmpty(i))return null;var a=r||new be;return a.setFromTransformedAABB(i,this.getWorldTransform(e)),a},t.prototype.getGeometryBounds=function(e,n){n===void 0&&(n=!1);var r=e.geometry,i=n?r.renderBounds:r.contentBounds||null;return i||new be},t.prototype.getBounds=function(e,n){var r=this;n===void 0&&(n=!1);var i=e.renderable;if(!i.boundsDirty&&!n&&i.bounds)return i.bounds;if(!i.renderBoundsDirty&&n&&i.renderBounds)return i.renderBounds;var a=n?i.renderBounds:i.bounds,o=this.getTransformedGeometryBounds(e,n,a),s=e.childNodes;if(s.forEach(function(u){var f=r.getBounds(u,n);f&&(o?o.add(f):(o=a||new be,o.update(f.center,f.halfExtents)))}),n){var c=Iw(e);if(c){var l=c.parsedStyle.clipPath.getBounds(n);o?l&&(o=l.intersection(o)):o=l}}return o||(o=new be),o&&(n?i.renderBounds=o:i.bounds=o),n?i.renderBoundsDirty=!1:i.boundsDirty=!1,o},t.prototype.getLocalBounds=function(e){if(e.parentNode){var n=Nt();e.parentNode.transformable&&(n=Wn(Nt(),this.getWorldTransform(e.parentNode)));var r=this.getBounds(e);if(!be.isEmpty(r)){var i=new be;return i.setFromTransformedAABB(r,n),i}}return this.getBounds(e)},t.prototype.getBoundingClientRect=function(e){var n,r,i,a=this.getGeometryBounds(e);be.isEmpty(a)||(i=new be,i.setFromTransformedAABB(a,this.getWorldTransform(e)));var o=(r=(n=e.ownerDocument)===null||n===void 0?void 0:n.defaultView)===null||r===void 0?void 0:r.getContextService().getBoundingClientRect();if(i){var s=N(i.getMin(),2),c=s[0],l=s[1],u=N(i.getMax(),2),f=u[0],d=u[1];return new Fi(c+((o==null?void 0:o.left)||0),l+((o==null?void 0:o.top)||0),f-c,d-l)}return new Fi((o==null?void 0:o.left)||0,(o==null?void 0:o.top)||0,0,0)},t.prototype.dirtifyWorldInternal=function(e,n){var r=this;if(!n.dirtyFlag){n.dirtyFlag=!0,n.frozen=!1,e.childNodes.forEach(function(a){var o=a.transformable;o.dirtyFlag||r.dirtifyWorldInternal(a,o)});var i=e.renderable;i&&(i.renderBoundsDirty=!0,i.boundsDirty=!0,i.dirty=!0)}},t.prototype.syncHierarchy=function(e){var n=e.transformable;if(!n.frozen){n.frozen=!0,(n.localDirtyFlag||n.dirtyFlag)&&this.sync(e,n);for(var r=e.childNodes,i=0;ic;--h){for(var g=0;g=l){n.isOverflowing=!0;break}g=0,p[v]="";continue}if(g>0&&g+M>d){if(v+1>=l){if(n.isOverflowing=!0,b>0&&b<=d){for(var E=p[v].length,P=0,T=E,A=0;Ad){T=A;break}P+=k}p[v]=(p[v]||"").slice(0,T)+h}break}if(v++,g=0,p[v]="",this.isBreakingSpace(O))continue;this.canBreakInLastChar(O)||(p=this.trimToBreakable(p),g=this.sumTextWidthByCache(p[v]||"",y)),this.shouldBreakByKinsokuShorui(O,_)&&(p=this.trimByKinsokuShorui(p),g+=m(S||""))}g+=M,p[v]=(p[v]||"")+O}return p.join(` `)},t.prototype.isBreakingSpace=function(e){return typeof e!="string"?!1:xi.BreakingSpaces.indexOf(e.charCodeAt(0))>=0},t.prototype.isNewline=function(e){return typeof e!="string"?!1:xi.Newlines.indexOf(e.charCodeAt(0))>=0},t.prototype.trimToBreakable=function(e){var n=q([],N(e),!1),r=n[n.length-2],i=this.findBreakableIndex(r);if(i===-1||!r)return n;var a=r.slice(i,i+1),o=this.isBreakingSpace(a),s=i+1,c=i+(o?0:1);return n[n.length-1]+=r.slice(s,r.length),n[n.length-2]=r.slice(0,c),n},t.prototype.canBreakInLastChar=function(e){return!(e&&iy.test(e))},t.prototype.sumTextWidthByCache=function(e,n){return e.split("").reduce(function(r,i){if(!n[i])throw Error("cannot count the word without cache");return r+n[i]},0)},t.prototype.findBreakableIndex=function(e){for(var n=e.length-1;n>=0;n--)if(!iy.test(e[n]))return n;return-1},t.prototype.getFromCache=function(e,n,r,i){var a=r[e];if(typeof a!="number"){var o=e.length*n;a=i.measureText(e).width+o,r[e]=a}return a},t}(),H={},IR=function(){var t,e=new hR,n=new dR;return t={},t[G.CIRCLE]=new cR,t[G.ELLIPSE]=new lR,t[G.RECT]=e,t[G.IMAGE]=e,t[G.GROUP]=e,t[G.LINE]=new uR,t[G.TEXT]=new pR(H),t[G.POLYLINE]=n,t[G.POLYGON]=n,t[G.PATH]=new fR,t[G.HTML]=null,t[G.MESH]=null,t}(),jR=function(){var t,e=new O4,n=new Xp;return t={},t[tt.PERCENTAGE]=null,t[tt.NUMBER]=new A4,t[tt.ANGLE]=new x4,t[tt.DEFINED_PATH]=new w4,t[tt.PAINT]=e,t[tt.COLOR]=e,t[tt.FILTER]=new S4,t[tt.LENGTH]=n,t[tt.LENGTH_PERCENTAGE]=n,t[tt.LENGTH_PERCENTAGE_12]=new _4,t[tt.LENGTH_PERCENTAGE_14]=new M4,t[tt.COORDINATE]=new E4,t[tt.OFFSET_DISTANCE]=new k4,t[tt.OPACITY_VALUE]=new T4,t[tt.PATH]=new C4,t[tt.LIST_OF_POINTS]=new L4,t[tt.SHADOW_BLUR]=new N4,t[tt.TEXT]=new R4,t[tt.TEXT_TRANSFORM]=new I4,t[tt.TRANSFORM]=new aR,t[tt.TRANSFORM_ORIGIN]=new oR,t[tt.Z_INDEX]=new sR,t[tt.MARKER]=new P4,t}(),DR=function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}};H.CameraContribution=ww;H.AnimationTimeline=null;H.EasingFunction=null;H.offscreenCanvasCreator=new mR;H.sceneGraphSelector=new wR;H.sceneGraphService=new SR(H);H.textService=new RR(H);H.geometryUpdaterFactory=IR;H.CSSPropertySyntaxFactory=jR;H.styleValueRegistry=new b4(H);H.layoutRegistry=null;H.globalThis=DR();H.enableCSSParsing=!0;H.enableDataset=!1;H.enableStyleSyntax=!0;var $R=0,ay=new Gi(ht.INSERTED,null,"","","",0,"",""),oy=new Gi(ht.REMOVED,null,"","","",0,"",""),BR=new Dt(ht.DESTROY),FR=function(t){rt(e,t);function e(){var n=t.apply(this,q([],N(arguments),!1))||this;return n.entity=$R++,n.renderable={bounds:void 0,boundsDirty:!0,renderBounds:void 0,renderBoundsDirty:!0,dirtyRenderBounds:void 0,dirty:!1},n.cullable={strategy:rh.Standard,visibilityPlaneMask:-1,visible:!0,enable:!0},n.transformable={dirtyFlag:!1,localDirtyFlag:!1,frozen:!1,localPosition:[0,0,0],localRotation:[0,0,0,1],localScale:[1,1,1],localTransform:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],localSkew:[0,0],position:[0,0,0],rotation:[0,0,0,1],scaling:[1,1,1],worldTransform:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],origin:[0,0,0]},n.sortable={dirty:!1,sorted:void 0,renderOrder:0,dirtyChildren:[],dirtyReason:void 0},n.geometry={contentBounds:void 0,renderBounds:void 0},n.rBushNode={aabb:void 0},n.namespaceURI="g",n.scrollLeft=0,n.scrollTop=0,n.clientTop=0,n.clientLeft=0,n.destroyed=!1,n.style={},n.computedStyle=H.enableCSSParsing?{anchor:Gt,opacity:Gt,fillOpacity:Gt,strokeOpacity:Gt,fill:Gt,stroke:Gt,transform:Gt,transformOrigin:Gt,visibility:Gt,pointerEvents:Gt,lineWidth:Gt,lineCap:Gt,lineJoin:Gt,increasedLineWidthForHitTesting:Gt,fontSize:Gt,fontFamily:Gt,fontStyle:Gt,fontWeight:Gt,fontVariant:Gt,textAlign:Gt,textBaseline:Gt,textTransform:Gt,zIndex:Gt,filter:Gt,shadowType:Gt}:null,n.parsedStyle={},n.attributes={},n}return Object.defineProperty(e.prototype,"className",{get:function(){return this.getAttribute("class")||""},set:function(n){this.setAttribute("class",n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classList",{get:function(){return this.className.split(" ").filter(function(n){return n!==""})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.nodeName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childElementCount",{get:function(){return this.childNodes.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstElementChild",{get:function(){return this.firstChild},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastElementChild",{get:function(){return this.lastChild},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentElement",{get:function(){return this.parentNode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){if(this.parentNode){var n=this.parentNode.childNodes.indexOf(this);return this.parentNode.childNodes[n+1]||null}return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){if(this.parentNode){var n=this.parentNode.childNodes.indexOf(this);return this.parentNode.childNodes[n-1]||null}return null},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(n){throw new Error(It)},e.prototype.appendChild=function(n,r){var i;if(n.destroyed)throw new Error(pN);return H.sceneGraphService.attach(n,this,r),!((i=this.ownerDocument)===null||i===void 0)&&i.defaultView&&this.ownerDocument.defaultView.mountChildren(n),ay.relatedNode=this,n.dispatchEvent(ay),n},e.prototype.insertBefore=function(n,r){if(!r)this.appendChild(n);else{n.parentElement&&n.parentElement.removeChild(n);var i=this.childNodes.indexOf(r);i===-1?this.appendChild(n):this.appendChild(n,i)}return n},e.prototype.replaceChild=function(n,r){var i=this.childNodes.indexOf(r);return this.removeChild(r),this.appendChild(n,i),r},e.prototype.removeChild=function(n){var r;return oy.relatedNode=this,n.dispatchEvent(oy),!((r=n.ownerDocument)===null||r===void 0)&&r.defaultView&&n.ownerDocument.defaultView.unmountChildren(n),H.sceneGraphService.detach(n),n},e.prototype.removeChildren=function(){for(var n=this.childNodes.length-1;n>=0;n--){var r=this.childNodes[n];this.removeChild(r)}},e.prototype.destroyChildren=function(){for(var n=this.childNodes.length-1;n>=0;n--){var r=this.childNodes[n];r.childNodes.length&&r.destroyChildren(),r.destroy()}},e.prototype.matches=function(n){return H.sceneGraphService.matches(n,this)},e.prototype.getElementById=function(n){return H.sceneGraphService.querySelector("#".concat(n),this)},e.prototype.getElementsByName=function(n){return H.sceneGraphService.querySelectorAll('[name="'.concat(n,'"]'),this)},e.prototype.getElementsByClassName=function(n){return H.sceneGraphService.querySelectorAll(".".concat(n),this)},e.prototype.getElementsByTagName=function(n){return H.sceneGraphService.querySelectorAll(n,this)},e.prototype.querySelector=function(n){return H.sceneGraphService.querySelector(n,this)},e.prototype.querySelectorAll=function(n){return H.sceneGraphService.querySelectorAll(n,this)},e.prototype.closest=function(n){var r=this;do{if(H.sceneGraphService.matches(n,r))return r;r=r.parentElement}while(r!==null);return null},e.prototype.find=function(n){var r=this,i=null;return this.forEach(function(a){return a!==r&&n(a)?(i=a,!0):!1}),i},e.prototype.findAll=function(n){var r=this,i=[];return this.forEach(function(a){a!==r&&n(a)&&i.push(a)}),i},e.prototype.after=function(){for(var n=this,r=[],i=0;i1){var i=n[0].currentPoint,a=n[1].currentPoint,o=n[1].startTangent;r=[],o?(r.push([i[0]-o[0],i[1]-o[1]]),r.push([i[0],i[1]])):(r.push([a[0],a[1]]),r.push([i[0],i[1]]))}return r},e.prototype.getEndTangent=function(){var n=this.parsedStyle.path.segments,r=n.length,i=[];if(r>1){var a=n[r-2].currentPoint,o=n[r-1].currentPoint,s=n[r-1].endTangent;i=[],s?(i.push([o[0]-s[0],o[1]-s[1]]),i.push([o[0],o[1]])):(i.push([a[0],a[1]]),i.push([o[0],o[1]]))}return i},e}(ze),Fu=function(t){rt(e,t);function e(n){n===void 0&&(n={});var r=this,i=n.style,a=$t(n,["style"]);r=t.call(this,z({type:G.POLYGON,style:H.enableCSSParsing?z({points:"",miterLimit:"",isClosed:!0},i):z({},i),initialParsedStyle:H.enableCSSParsing?null:{points:{points:[],totalLength:0,segments:[]},miterLimit:4,isClosed:!0}},a))||this,r.markerStartAngle=0,r.markerEndAngle=0,r.markerMidList=[];var o=r.parsedStyle,s=o.markerStart,c=o.markerEnd,l=o.markerMid;return s&&Mt(s)&&(r.markerStartAngle=s.getLocalEulerAngles(),r.appendChild(s)),l&&Mt(l)&&r.placeMarkerMid(l),c&&Mt(c)&&(r.markerEndAngle=c.getLocalEulerAngles(),r.appendChild(c)),r.transformMarker(!0),r.transformMarker(!1),r}return e.prototype.attributeChangedCallback=function(n,r,i,a,o){n==="points"?(this.transformMarker(!0),this.transformMarker(!1),this.placeMarkerMid(this.parsedStyle.markerMid)):n==="markerStartOffset"||n==="markerEndOffset"?(this.transformMarker(!0),this.transformMarker(!1)):n==="markerStart"?(a&&Mt(a)&&(this.markerStartAngle=0,a.remove()),o&&Mt(o)&&(this.markerStartAngle=o.getLocalEulerAngles(),this.appendChild(o),this.transformMarker(!0))):n==="markerEnd"?(a&&Mt(a)&&(this.markerEndAngle=0,a.remove()),o&&Mt(o)&&(this.markerEndAngle=o.getLocalEulerAngles(),this.appendChild(o),this.transformMarker(!1))):n==="markerMid"&&this.placeMarkerMid(o)},e.prototype.transformMarker=function(n){var r=this.parsedStyle,i=r.markerStart,a=r.markerEnd,o=r.markerStartOffset,s=r.markerEndOffset,c=r.points,l=r.defX,u=r.defY,f=(c||{}).points,d=n?i:a;if(!(!d||!Mt(d)||!f)){var h=0,p,v,g,y,m,b;if(g=f[0][0]-l,y=f[0][1]-u,n)p=f[1][0]-f[0][0],v=f[1][1]-f[0][1],m=o||0,b=this.markerStartAngle;else{var x=f.length;this.parsedStyle.isClosed?(p=f[x-1][0]-f[0][0],v=f[x-1][1]-f[0][1]):(g=f[x-1][0]-l,y=f[x-1][1]-u,p=f[x-2][0]-f[x-1][0],v=f[x-2][1]-f[x-1][1]),m=s||0,b=this.markerEndAngle}h=Math.atan2(v,p),d.setLocalEulerAngles(h*180/Math.PI+b),d.setLocalPosition(g+Math.cos(h)*m,y+Math.sin(h)*m)}},e.prototype.placeMarkerMid=function(n){var r=this.parsedStyle,i=r.points,a=r.defX,o=r.defY,s=(i||{}).points;if(this.markerMidList.forEach(function(d){d.remove()}),this.markerMidList=[],n&&Mt(n)&&s)for(var c=1;c<(this.parsedStyle.isClosed?s.length:s.length-1);c++){var l=s[c][0]-a,u=s[c][1]-o,f=c===1?n:n.cloneNode(!0);this.markerMidList.push(f),this.appendChild(f),f.setLocalPosition(l,u)}},e}(ze),Qp=function(t){rt(e,t);function e(n){n===void 0&&(n={});var r=n.style,i=$t(n,["style"]);return t.call(this,z({type:G.POLYLINE,style:H.enableCSSParsing?z({points:"",miterLimit:"",isClosed:!1},r):z({},r),initialParsedStyle:H.enableCSSParsing?null:{points:{points:[],totalLength:0,segments:[]},miterLimit:4,isClosed:!1}},i))||this}return e.prototype.getTotalLength=function(){return this.parsedStyle.points.totalLength},e.prototype.getPointAtLength=function(n,r){return r===void 0&&(r=!1),this.getPoint(n/this.getTotalLength(),r)},e.prototype.getPoint=function(n,r){r===void 0&&(r=!1);var i=this.parsedStyle,a=i.defX,o=i.defY,s=i.points,c=s.points,l=s.segments,u=0,f=0;l.forEach(function(g,y){n>=g[0]&&n<=g[1]&&(u=(n-g[0])/(g[1]-g[0]),f=y)});var d=mw(c[f][0],c[f][1],c[f+1][0],c[f+1][1],u),h=d.x,p=d.y,v=Oe(yt(),St(h-a,p-o,0),r?this.getWorldTransform():this.getLocalTransform());return new Ee(v[0],v[1])},e.prototype.getStartTangent=function(){var n=this.parsedStyle.points.points,r=[];return r.push([n[1][0],n[1][1]]),r.push([n[0][0],n[0][1]]),r},e.prototype.getEndTangent=function(){var n=this.parsedStyle.points.points,r=n.length-1,i=[];return i.push([n[r-1][0],n[r-1][1]]),i.push([n[r][0],n[r][1]]),i},e}(Fu),Zi=function(t){rt(e,t);function e(n){n===void 0&&(n={});var r=n.style,i=$t(n,["style"]);return t.call(this,z({type:G.RECT,style:H.enableCSSParsing?z({x:"",y:"",width:"",height:"",radius:""},r):z({},r)},i))||this}return e}(ze),ei=function(t){rt(e,t);function e(n){n===void 0&&(n={});var r=n.style,i=$t(n,["style"]);return t.call(this,z({type:G.TEXT,style:H.enableCSSParsing?z({x:"",y:"",text:"",fontSize:"",fontFamily:"",fontStyle:"",fontWeight:"",fontVariant:"",textAlign:"",textBaseline:"",textTransform:"",fill:"black",letterSpacing:"",lineHeight:"",miterLimit:"",wordWrap:!1,wordWrapWidth:0,leading:0,dx:"",dy:""},r):z({fill:"black"},r),initialParsedStyle:H.enableCSSParsing?{}:{x:0,y:0,fontSize:16,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",lineHeight:0,letterSpacing:0,textBaseline:"alphabetic",textAlign:"start",wordWrap:!1,wordWrapWidth:0,leading:0,dx:0,dy:0}},i))||this}return e.prototype.getComputedTextLength=function(){var n;return((n=this.parsedStyle.metrics)===null||n===void 0?void 0:n.maxLineWidth)||0},e.prototype.getLineBoundingRects=function(){var n;return((n=this.parsedStyle.metrics)===null||n===void 0?void 0:n.lineMetrics)||[]},e.prototype.isOverflowing=function(){return!!this.parsedStyle.isOverflowing},e}(ze),HR=function(){function t(){this.registry={},this.define(G.CIRCLE,Xs),this.define(G.ELLIPSE,Kp),this.define(G.RECT,Zi),this.define(G.IMAGE,Zp),this.define(G.LINE,Us),this.define(G.GROUP,Ce),this.define(G.PATH,Xe),this.define(G.POLYGON,Fu),this.define(G.POLYLINE,Qp),this.define(G.TEXT,ei),this.define(G.HTML,Bu)}return t.prototype.define=function(e,n){this.registry[e]=n},t.prototype.get=function(e){return this.registry[e]},t}(),VR=function(t){rt(e,t);function e(){var n=t.call(this)||this;n.defaultView=null,n.ownerDocument=null,n.nodeName="document";try{n.timeline=new H.AnimationTimeline(n)}catch{}var r={};return Vp.forEach(function(i){var a=i.n,o=i.inh,s=i.d;o&&s&&(r[a]=ga(s)?s(G.GROUP):s)}),n.documentElement=new Ce({id:"g-root",style:r}),n.documentElement.ownerDocument=n,n.documentElement.parentNode=n,n.childNodes=[n.documentElement],n}return Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childElementCount",{get:function(){return this.childNodes.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firstElementChild",{get:function(){return this.firstChild},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastElementChild",{get:function(){return this.lastChild},enumerable:!1,configurable:!0}),e.prototype.createElement=function(n,r){if(n==="svg")return this.documentElement;var i=this.defaultView.customElements.get(n);i||(console.warn("Unsupported tagName: ",n),i=n==="tspan"?ei:Ce);var a=new i(r);return a.ownerDocument=this,a},e.prototype.createElementNS=function(n,r,i){return this.createElement(r,i)},e.prototype.cloneNode=function(n){throw new Error(It)},e.prototype.destroy=function(){try{this.documentElement.destroyChildren(),this.timeline.destroy()}catch{}},e.prototype.elementsFromBBox=function(n,r,i,a){var o=this.defaultView.context.rBushRoot,s=o.search({minX:n,minY:r,maxX:i,maxY:a}),c=[];return s.forEach(function(l){var u=l.displayObject,f=u.parsedStyle.pointerEvents,d=["auto","visiblepainted","visiblefill","visiblestroke","visible"].includes(f);(!d||d&&u.isVisible())&&!u.isCulled()&&u.isInteractive()&&c.push(u)}),c.sort(function(l,u){return u.sortable.renderOrder-l.sortable.renderOrder}),c},e.prototype.elementFromPointSync=function(n,r){var i=this.defaultView.canvas2Viewport({x:n,y:r}),a=i.x,o=i.y,s=this.defaultView.getConfig(),c=s.width,l=s.height;if(a<0||o<0||a>c||o>l)return null;var u=this.defaultView.viewport2Client({x:a,y:o}),f=u.x,d=u.y,h=this.defaultView.getRenderingService().hooks.pickSync.call({topmost:!0,position:{x:n,y:r,viewportX:a,viewportY:o,clientX:f,clientY:d},picked:[]}).picked;return h&&h[0]||this.documentElement},e.prototype.elementFromPoint=function(n,r){return ka(this,void 0,void 0,function(){var i,a,o,s,c,l,u,f,d,h;return Ta(this,function(p){switch(p.label){case 0:return i=this.defaultView.canvas2Viewport({x:n,y:r}),a=i.x,o=i.y,s=this.defaultView.getConfig(),c=s.width,l=s.height,a<0||o<0||a>c||o>l?[2,null]:(u=this.defaultView.viewport2Client({x:a,y:o}),f=u.x,d=u.y,[4,this.defaultView.getRenderingService().hooks.pick.promise({topmost:!0,position:{x:n,y:r,viewportX:a,viewportY:o,clientX:f,clientY:d},picked:[]})]);case 1:return h=p.sent().picked,[2,h&&h[0]||this.documentElement]}})})},e.prototype.elementsFromPointSync=function(n,r){var i=this.defaultView.canvas2Viewport({x:n,y:r}),a=i.x,o=i.y,s=this.defaultView.getConfig(),c=s.width,l=s.height;if(a<0||o<0||a>c||o>l)return[];var u=this.defaultView.viewport2Client({x:a,y:o}),f=u.x,d=u.y,h=this.defaultView.getRenderingService().hooks.pickSync.call({topmost:!1,position:{x:n,y:r,viewportX:a,viewportY:o,clientX:f,clientY:d},picked:[]}).picked;return h[h.length-1]!==this.documentElement&&h.push(this.documentElement),h},e.prototype.elementsFromPoint=function(n,r){return ka(this,void 0,void 0,function(){var i,a,o,s,c,l,u,f,d,h;return Ta(this,function(p){switch(p.label){case 0:return i=this.defaultView.canvas2Viewport({x:n,y:r}),a=i.x,o=i.y,s=this.defaultView.getConfig(),c=s.width,l=s.height,a<0||o<0||a>c||o>l?[2,[]]:(u=this.defaultView.viewport2Client({x:a,y:o}),f=u.x,d=u.y,[4,this.defaultView.getRenderingService().hooks.pick.promise({topmost:!1,position:{x:n,y:r,viewportX:a,viewportY:o,clientX:f,clientY:d},picked:[]})]);case 1:return h=p.sent().picked,h[h.length-1]!==this.documentElement&&h.push(this.documentElement),[2,h]}})})},e.prototype.appendChild=function(n,r){throw new Error(ra)},e.prototype.insertBefore=function(n,r){throw new Error(ra)},e.prototype.removeChild=function(n,r){throw new Error(ra)},e.prototype.replaceChild=function(n,r,i){throw new Error(ra)},e.prototype.append=function(){throw new Error(ra)},e.prototype.prepend=function(){throw new Error(ra)},e.prototype.getElementById=function(n){return this.documentElement.getElementById(n)},e.prototype.getElementsByName=function(n){return this.documentElement.getElementsByName(n)},e.prototype.getElementsByTagName=function(n){return this.documentElement.getElementsByTagName(n)},e.prototype.getElementsByClassName=function(n){return this.documentElement.getElementsByClassName(n)},e.prototype.querySelector=function(n){return this.documentElement.querySelector(n)},e.prototype.querySelectorAll=function(n){return this.documentElement.querySelectorAll(n)},e.prototype.find=function(n){return this.documentElement.find(n)},e.prototype.findAll=function(n){return this.documentElement.findAll(n)},e}(_e),XR=function(){function t(e){this.strategies=e}return t.prototype.apply=function(e){var n=e.camera,r=e.renderingService,i=e.renderingContext,a=this.strategies;r.hooks.cull.tap(t.tag,function(o){if(o){var s=o.cullable;return a.length===0?s.visible=i.unculledEntities.indexOf(o.entity)>-1:s.visible=a.every(function(c){return c.isVisible(n,o)}),!o.isCulled()&&o.isVisible()?o:(o.dispatchEvent(new Dt(ht.CULLED)),null)}return o}),r.hooks.afterRender.tap(t.tag,function(o){o.cullable.visibilityPlaneMask=-1})},t.tag="Culling",t}(),UR=function(){function t(){var e=this;this.autoPreventDefault=!1,this.rootPointerEvent=new ch(null),this.rootWheelEvent=new lh(null),this.onPointerMove=function(n){var r,i,a,o,s=(o=(a=e.context.renderingContext.root)===null||a===void 0?void 0:a.ownerDocument)===null||o===void 0?void 0:o.defaultView;if(!(s.supportsTouchEvents&&n.pointerType==="touch")){var c=e.normalizeToPointerEvent(n,s);try{for(var l=vn(c),u=l.next();!u.done;u=l.next()){var f=u.value,d=e.bootstrapEvent(e.rootPointerEvent,f,s,n);e.context.eventService.mapEvent(d)}}catch(h){r={error:h}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}e.setCursor(e.context.eventService.cursor)}},this.onClick=function(n){var r,i,a,o,s=(o=(a=e.context.renderingContext.root)===null||a===void 0?void 0:a.ownerDocument)===null||o===void 0?void 0:o.defaultView,c=e.normalizeToPointerEvent(n,s);try{for(var l=vn(c),u=l.next();!u.done;u=l.next()){var f=u.value,d=e.bootstrapEvent(e.rootPointerEvent,f,s,n);e.context.eventService.mapEvent(d)}}catch(h){r={error:h}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}e.setCursor(e.context.eventService.cursor)}}return t.prototype.apply=function(e){var n=this;this.context=e;var r=e.renderingService,i=this.context.renderingContext.root.ownerDocument.defaultView;this.context.eventService.setPickHandler(function(a){var o=n.context.renderingService.hooks.pickSync.call({position:a,picked:[],topmost:!0}).picked;return o[0]||null}),r.hooks.pointerWheel.tap(t.tag,function(a){var o=n.normalizeWheelEvent(a);n.context.eventService.mapEvent(o)}),r.hooks.pointerDown.tap(t.tag,function(a){var o,s;if(!(i.supportsTouchEvents&&a.pointerType==="touch")){var c=n.normalizeToPointerEvent(a,i);if(n.autoPreventDefault&&c[0].isNormalized){var l=a.cancelable||!("cancelable"in a);l&&a.preventDefault()}try{for(var u=vn(c),f=u.next();!f.done;f=u.next()){var d=f.value,h=n.bootstrapEvent(n.rootPointerEvent,d,i,a);n.context.eventService.mapEvent(h)}}catch(p){o={error:p}}finally{try{f&&!f.done&&(s=u.return)&&s.call(u)}finally{if(o)throw o.error}}n.setCursor(n.context.eventService.cursor)}}),r.hooks.pointerUp.tap(t.tag,function(a){var o,s;if(!(i.supportsTouchEvents&&a.pointerType==="touch")){var c=n.context.contextService.getDomElement(),l="outside";try{l=c&&a.target&&a.target!==c&&c.contains&&!c.contains(a.target)?"outside":""}catch{}var u=n.normalizeToPointerEvent(a,i);try{for(var f=vn(u),d=f.next();!d.done;d=f.next()){var h=d.value,p=n.bootstrapEvent(n.rootPointerEvent,h,i,a);p.type+=l,n.context.eventService.mapEvent(p)}}catch(v){o={error:v}}finally{try{d&&!d.done&&(s=f.return)&&s.call(f)}finally{if(o)throw o.error}}n.setCursor(n.context.eventService.cursor)}}),r.hooks.pointerMove.tap(t.tag,this.onPointerMove),r.hooks.pointerOver.tap(t.tag,this.onPointerMove),r.hooks.pointerOut.tap(t.tag,this.onPointerMove),r.hooks.click.tap(t.tag,this.onClick),r.hooks.pointerCancel.tap(t.tag,function(a){var o,s,c=n.normalizeToPointerEvent(a,i);try{for(var l=vn(c),u=l.next();!u.done;u=l.next()){var f=u.value,d=n.bootstrapEvent(n.rootPointerEvent,f,i,a);n.context.eventService.mapEvent(d)}}catch(h){o={error:h}}finally{try{u&&!u.done&&(s=l.return)&&s.call(l)}finally{if(o)throw o.error}}n.setCursor(n.context.eventService.cursor)})},t.prototype.getViewportXY=function(e){var n,r,i=e.offsetX,a=e.offsetY,o=e.clientX,s=e.clientY;if(this.context.config.supportsCSSTransform&&!nt(i)&&!nt(a))n=i,r=a;else{var c=this.context.eventService.client2Viewport(new Ee(o,s));n=c.x,r=c.y}return{x:n,y:r}},t.prototype.bootstrapEvent=function(e,n,r,i){e.view=r,e.originalEvent=null,e.nativeEvent=i,e.pointerId=n.pointerId,e.width=n.width,e.height=n.height,e.isPrimary=n.isPrimary,e.pointerType=n.pointerType,e.pressure=n.pressure,e.tangentialPressure=n.tangentialPressure,e.tiltX=n.tiltX,e.tiltY=n.tiltY,e.twist=n.twist,this.transferMouseData(e,n);var a=this.getViewportXY(n),o=a.x,s=a.y;e.viewport.x=o,e.viewport.y=s;var c=this.context.eventService.viewport2Canvas(e.viewport),l=c.x,u=c.y;return e.canvas.x=l,e.canvas.y=u,e.global.copyFrom(e.canvas),e.offset.copyFrom(e.canvas),e.isTrusted=i.isTrusted,e.type==="pointerleave"&&(e.type="pointerout"),e.type.startsWith("mouse")&&(e.type=e.type.replace("mouse","pointer")),e.type.startsWith("touch")&&(e.type=W4[e.type]||e.type),e},t.prototype.normalizeWheelEvent=function(e){var n=this.rootWheelEvent;this.transferMouseData(n,e),n.deltaMode=e.deltaMode,n.deltaX=e.deltaX,n.deltaY=e.deltaY,n.deltaZ=e.deltaZ;var r=this.getViewportXY(e),i=r.x,a=r.y;n.viewport.x=i,n.viewport.y=a;var o=this.context.eventService.viewport2Canvas(n.viewport),s=o.x,c=o.y;return n.canvas.x=s,n.canvas.y=c,n.global.copyFrom(n.canvas),n.offset.copyFrom(n.canvas),n.nativeEvent=e,n.type=e.type,n},t.prototype.transferMouseData=function(e,n){e.isTrusted=n.isTrusted,e.srcElement=n.srcElement,e.timeStamp=sh.now(),e.type=n.type,e.altKey=n.altKey,e.metaKey=n.metaKey,e.shiftKey=n.shiftKey,e.ctrlKey=n.ctrlKey,e.button=n.button,e.buttons=n.buttons,e.client.x=n.clientX,e.client.y=n.clientY,e.movement.x=n.movementX,e.movement.y=n.movementY,e.page.x=n.pageX,e.page.y=n.pageY,e.screen.x=n.screenX,e.screen.y=n.screenY,e.relatedTarget=null},t.prototype.setCursor=function(e){this.context.contextService.applyCursorStyle(e||this.context.config.cursor||"default")},t.prototype.normalizeToPointerEvent=function(e,n){var r=[];if(n.isTouchEvent(e))for(var i=0;i-1,s=0,c=i.length;s=1?Math.ceil(P):1,M=s||z4(a)||a.width/P,E=c||G4(a)||a.height/P),o&&(H.offscreenCanvas=o),r.devicePixelRatio=P,r.requestAnimationFrame=p??Bw.bind(H.globalThis),r.cancelAnimationFrame=v??Fw.bind(H.globalThis),r.supportsTouchEvents=m??"ontouchstart"in H.globalThis,r.supportsPointerEvents=y??!!H.globalThis.PointerEvent,r.isTouchEvent=S??function(T){return r.supportsTouchEvents&&T instanceof H.globalThis.TouchEvent},r.isMouseEvent=_??function(T){return!H.globalThis.MouseEvent||T instanceof H.globalThis.MouseEvent&&(!r.supportsPointerEvents||!(T instanceof H.globalThis.PointerEvent))},r.initRenderingContext({container:i,canvas:a,width:M,height:E,renderer:u,offscreenCanvas:o,devicePixelRatio:P,cursor:d||"default",background:f||"transparent",createImage:g,document:h,supportsCSSTransform:b,useNativeClickEvent:w,alwaysTriggerPointerEventOnCanvas:O}),r.initDefaultCamera(M,E,u.clipSpaceNearZ),r.initRenderer(u,!0),r}return e.prototype.initRenderingContext=function(n){this.context.config=n,this.context.renderingContext={root:this.document.documentElement,renderListCurrentFrame:[],unculledEntities:[],renderReasons:new Set,force:!1,dirty:!1}},e.prototype.initDefaultCamera=function(n,r,i){var a=this,o=new H.CameraContribution;o.clipSpaceNearZ=i,o.setType(Tt.EXPLORING,ds.DEFAULT).setPosition(n/2,r/2,cy).setFocalPoint(n/2,r/2,0).setOrthographic(n/-2,n/2,r/2,r/-2,QR,JR),o.canvas=this,o.eventEmitter.on(xw.UPDATED,function(){a.context.renderingContext.renderReasons.add(Qr.CAMERA_CHANGED)}),this.context.camera=o},e.prototype.getConfig=function(){return this.context.config},e.prototype.getRoot=function(){return this.document.documentElement},e.prototype.getCamera=function(){return this.context.camera},e.prototype.getContextService=function(){return this.context.contextService},e.prototype.getEventService=function(){return this.context.eventService},e.prototype.getRenderingService=function(){return this.context.renderingService},e.prototype.getRenderingContext=function(){return this.context.renderingContext},e.prototype.getStats=function(){return this.getRenderingService().getStats()},Object.defineProperty(e.prototype,"ready",{get:function(){var n=this;return this.readyPromise||(this.readyPromise=new Promise(function(r){n.resolveReadyPromise=function(){r(n)}}),this.inited&&this.resolveReadyPromise()),this.readyPromise},enumerable:!1,configurable:!0}),e.prototype.destroy=function(n,r){if(n===void 0&&(n=!0),r===void 0&&(r=!1),r||this.dispatchEvent(new Dt(an.BEFORE_DESTROY)),this.frameId){var i=this.getConfig().cancelAnimationFrame||cancelAnimationFrame;i(this.frameId)}var a=this.getRoot();this.unmountChildren(a),n&&(this.document.destroy(),this.getEventService().destroy()),this.getRenderingService().destroy(),this.getContextService().destroy(),n&&this.context.rBushRoot&&(this.context.rBushRoot.clear(),this.context.rBushRoot=null,this.context.renderingContext.root=null),r||this.dispatchEvent(new Dt(an.AFTER_DESTROY))},e.prototype.changeSize=function(n,r){this.resize(n,r)},e.prototype.resize=function(n,r){var i=this.context.config;i.width=n,i.height=r,this.getContextService().resize(n,r);var a=this.context.camera,o=a.getProjectionMode();a.setPosition(n/2,r/2,cy).setFocalPoint(n/2,r/2,0),o===tn.ORTHOGRAPHIC?a.setOrthographic(n/-2,n/2,r/2,r/-2,a.getNear(),a.getFar()):a.setAspect(n/r),this.dispatchEvent(new Dt(an.RESIZE,{width:n,height:r}))},e.prototype.appendChild=function(n,r){return this.document.documentElement.appendChild(n,r)},e.prototype.insertBefore=function(n,r){return this.document.documentElement.insertBefore(n,r)},e.prototype.removeChild=function(n){return this.document.documentElement.removeChild(n)},e.prototype.removeChildren=function(){this.document.documentElement.removeChildren()},e.prototype.destroyChildren=function(){this.document.documentElement.destroyChildren()},e.prototype.render=function(){var n=this;this.dispatchEvent(t6);var r=this.getRenderingService();r.render(this.getConfig(),function(){n.dispatchEvent(e6)}),this.dispatchEvent(n6)},e.prototype.run=function(){var n=this,r=function(){n.render(),n.frameId=n.requestAnimationFrame(r)};r()},e.prototype.initRenderer=function(n,r){var i=this;if(r===void 0&&(r=!1),!n)throw new Error("Renderer is required.");this.inited=!1,this.readyPromise=void 0,this.context.rBushRoot=new tN,this.context.renderingPlugins=[],this.context.renderingPlugins.push(new UR,new ZR,new XR([new KR])),this.loadRendererContainerModule(n),this.context.contextService=new this.context.ContextService(z(z({},H),this.context)),this.context.renderingService=new bR(H,this.context),this.context.eventService=new yR(H,this.context),this.context.eventService.init(),this.context.contextService.init?(this.context.contextService.init(),this.initRenderingService(n,r,!0)):this.context.contextService.initAsync().then(function(){i.initRenderingService(n,r)})},e.prototype.initRenderingService=function(n,r,i){var a=this;r===void 0&&(r=!1),i===void 0&&(i=!1),this.context.renderingService.init(function(){a.inited=!0,r?(i?a.requestAnimationFrame(function(){a.dispatchEvent(new Dt(an.READY))}):a.dispatchEvent(new Dt(an.READY)),a.readyPromise&&a.resolveReadyPromise()):a.dispatchEvent(new Dt(an.RENDERER_CHANGED)),r||a.getRoot().forEach(function(o){var s=o.renderable;s&&(s.renderBoundsDirty=!0,s.boundsDirty=!0,s.dirty=!0)}),a.mountChildren(a.getRoot()),n.getConfig().enableAutoRendering&&a.run()})},e.prototype.loadRendererContainerModule=function(n){var r=this,i=n.getPlugins();i.forEach(function(a){a.context=r.context,a.init(H)})},e.prototype.setRenderer=function(n){var r=this.getConfig();if(r.renderer!==n){var i=r.renderer;r.renderer=n,this.destroy(!1,!0),q([],N(i==null?void 0:i.getPlugins()),!1).reverse().forEach(function(a){a.destroy(H)}),this.initRenderer(n)}},e.prototype.setCursor=function(n){var r=this.getConfig();r.cursor=n,this.getContextService().applyCursorStyle(n)},e.prototype.unmountChildren=function(n){var r=this;n.childNodes.forEach(function(i){r.unmountChildren(i)}),this.inited&&(n.isMutationObserved?n.dispatchEvent(Hf):(Hf.target=n,this.dispatchEvent(Hf,!0)),n!==this.document.documentElement&&(n.ownerDocument=null),n.isConnected=!1),n.isCustomElement&&n.disconnectedCallback&&n.disconnectedCallback()},e.prototype.mountChildren=function(n){var r=this;this.inited?n.isConnected||(n.ownerDocument=this.document,n.isConnected=!0,n.isMutationObserved?n.dispatchEvent(Wf):(Wf.target=n,this.dispatchEvent(Wf,!0))):console.warn("[g]: You are trying to call `canvas.appendChild` before canvas' initialization finished. You can either await `canvas.ready` or listen to `CanvasEvent.READY` manually.","appended child: ",n.nodeName),n.childNodes.forEach(function(i){r.mountChildren(i)}),n.isCustomElement&&n.connectedCallback&&n.connectedCallback()},e.prototype.client2Viewport=function(n){return this.getEventService().client2Viewport(n)},e.prototype.viewport2Client=function(n){return this.getEventService().viewport2Client(n)},e.prototype.viewport2Canvas=function(n){return this.getEventService().viewport2Canvas(n)},e.prototype.canvas2Viewport=function(n){return this.getEventService().canvas2Viewport(n)},e.prototype.getPointByClient=function(n,r){return this.client2Viewport({x:n,y:r})},e.prototype.getClientByPoint=function(n,r){return this.viewport2Client({x:n,y:r})},e}(Gw),r6=function(t){rt(e,t);function e(){var n=t.apply(this,q([],N(arguments),!1))||this;return n.landmarks=[],n}return e.prototype.rotate=function(n,r,i){if(this.relElevation=Oa(r),this.relAzimuth=Oa(n),this.relRoll=Oa(i),this.elevation+=this.relElevation,this.azimuth+=this.relAzimuth,this.roll+=this.relRoll,this.type===Tt.EXPLORING){var a=Hr(ve(),[1,0,0],re((this.rotateWorld?1:-1)*this.relElevation)),o=Hr(ve(),[0,1,0],re((this.rotateWorld?1:-1)*this.relAzimuth)),s=Hr(ve(),[0,0,1],re(this.relRoll)),c=qr(ve(),o,a);c=qr(ve(),c,s);var l=dp(Nt(),c);Ur(this.matrix,this.matrix,[0,0,-this.distance]),$e(this.matrix,this.matrix,l),Ur(this.matrix,this.matrix,[0,0,this.distance])}else{if(Math.abs(this.elevation)>90)return this;this.computeMatrix()}return this._getAxes(),this.type===Tt.ORBITING||this.type===Tt.EXPLORING?this._getPosition():this.type===Tt.TRACKING&&this._getFocalPoint(),this._update(),this},e.prototype.pan=function(n,r){var i=We(n,r,0),a=br(this.position);return ba(a,a,Cd(yt(),this.right,i[0])),ba(a,a,Cd(yt(),this.up,i[1])),this._setPosition(a),this.triggerUpdate(),this},e.prototype.dolly=function(n){var r=this.forward,i=br(this.position),a=n*this.dollyingStep,o=this.distance+n*this.dollyingStep;return a=Math.max(Math.min(o,this.maxDistance),this.minDistance)-this.distance,i[0]+=a*r[0],i[1]+=a*r[1],i[2]+=a*r[2],this._setPosition(i),this.type===Tt.ORBITING||this.type===Tt.EXPLORING?this._getDistance():this.type===Tt.TRACKING&&ba(this.focalPoint,i,this.distanceVector),this.triggerUpdate(),this},e.prototype.cancelLandmarkAnimation=function(){this.landmarkAnimationID!==void 0&&this.canvas.cancelAnimationFrame(this.landmarkAnimationID)},e.prototype.createLandmark=function(n,r){var i,a,o,s;r===void 0&&(r={});var c=r.position,l=c===void 0?this.position:c,u=r.focalPoint,f=u===void 0?this.focalPoint:u,d=r.roll,h=r.zoom,p=new H.CameraContribution;p.setType(this.type,void 0),p.setPosition(l[0],(i=l[1])!==null&&i!==void 0?i:this.position[1],(a=l[2])!==null&&a!==void 0?a:this.position[2]),p.setFocalPoint(f[0],(o=f[1])!==null&&o!==void 0?o:this.focalPoint[1],(s=f[2])!==null&&s!==void 0?s:this.focalPoint[2]),p.setRoll(d??this.roll),p.setZoom(h??this.zoom);var v={name:n,matrix:lp(p.getWorldTransform()),right:br(p.right),up:br(p.up),forward:br(p.forward),position:br(p.getPosition()),focalPoint:br(p.getFocalPoint()),distanceVector:br(p.getDistanceVector()),distance:p.getDistance(),dollyingStep:p.getDollyingStep(),azimuth:p.getAzimuth(),elevation:p.getElevation(),roll:p.getRoll(),relAzimuth:p.relAzimuth,relElevation:p.relElevation,relRoll:p.relRoll,zoom:p.getZoom()};return this.landmarks.push(v),v},e.prototype.gotoLandmark=function(n,r){var i=this;r===void 0&&(r={});var a=le(n)?this.landmarks.find(function(E){return E.name===n}):n;if(a){var o=de(r)?{duration:r}:r,s=o.easing,c=s===void 0?"linear":s,l=o.duration,u=l===void 0?100:l,f=o.easingFunction,d=f===void 0?void 0:f,h=o.onfinish,p=h===void 0?void 0:h,v=o.onframe,g=v===void 0?void 0:v,y=.01;if(u===0){this.syncFromLandmark(a),p&&p();return}this.cancelLandmarkAnimation();var m=a.position,b=a.focalPoint,x=a.zoom,w=a.roll,O=d||H.EasingFunction(c),S,_=function(){i.setFocalPoint(b),i.setPosition(m),i.setRoll(w),i.setZoom(x),i.computeMatrix(),i.triggerUpdate(),p&&p()},M=function(E){S===void 0&&(S=E);var P=E-S;if(P>u){_();return}var T=O(P/u),A=yt(),k=yt(),C=1,L=0;Ld(A,i.focalPoint,b,T),Ld(k,i.position,m,T),L=i.roll*(1-T)+w*T,C=i.zoom*(1-T)+x*T,i.setFocalPoint(A),i.setPosition(k),i.setRoll(L),i.setZoom(C);var I=Kv(A,b)+Kv(k,m);if(I<=y&&x==null&&w==null){_();return}i.computeMatrix(),i.triggerUpdate(),P0&&Number(this._currentTime)>=this._totalDuration||this._playbackRate<0&&Number(this._currentTime)<=0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalDuration",{get:function(){return this._totalDuration},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_needsTick",{get:function(){return this.pending||this.playState==="running"||!this._finishedFlag},enumerable:!1,configurable:!0}),t.prototype.updatePromises=function(){var e=this.oldPlayState,n=this.pending?"pending":this.playState;return this.readyPromise&&n!==e&&(n==="idle"?(this.rejectReadyPromise(),this.readyPromise=void 0):e==="pending"?this.resolveReadyPromise():n==="pending"&&(this.readyPromise=void 0)),this.finishedPromise&&n!==e&&(n==="idle"?(this.rejectFinishedPromise(),this.finishedPromise=void 0):n==="finished"?this.resolveFinishedPromise():e==="finished"&&(this.finishedPromise=void 0)),this.oldPlayState=n,this.readyPromise||this.finishedPromise},t.prototype.play=function(){this.updatePromises(),this._paused=!1,(this._isFinished||this._idle)&&(this.rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this.ensureAlive(),this.timeline.applyDirtiedAnimation(this),this.timeline.animations.indexOf(this)===-1&&this.timeline.animations.push(this),this.updatePromises()},t.prototype.pause=function(){this.updatePromises(),this.currentTime&&(this._holdTime=this.currentTime),!this._isFinished&&!this._paused&&!this._idle?this.currentTimePending=!0:this._idle&&(this.rewind(),this._idle=!1),this._startTime=null,this._paused=!0,this.updatePromises()},t.prototype.finish=function(){this.updatePromises(),!this._idle&&(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this.currentTimePending=!1,this.timeline.applyDirtiedAnimation(this),this.updatePromises())},t.prototype.cancel=function(){var e=this;if(this.updatePromises(),!!this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this.effect.update(null),this.timeline.applyDirtiedAnimation(this),this.updatePromises(),this.oncancel)){var n=new Vf(null,this,this.currentTime,null);setTimeout(function(){e.oncancel(n)})}},t.prototype.reverse=function(){this.updatePromises();var e=this.currentTime;this.playbackRate*=-1,this.play(),e!==null&&(this.currentTime=e),this.updatePromises()},t.prototype.updatePlaybackRate=function(e){this.playbackRate=e},t.prototype.targetAnimations=function(){var e,n=(e=this.effect)===null||e===void 0?void 0:e.target;return n.getAnimations()},t.prototype.markTarget=function(){var e=this.targetAnimations();e.indexOf(this)===-1&&e.push(this)},t.prototype.unmarkTarget=function(){var e=this.targetAnimations(),n=e.indexOf(this);n!==-1&&e.splice(n,1)},t.prototype.tick=function(e,n){!this._idle&&!this._paused&&(this._startTime===null?n&&(this.startTime=e-this._currentTime/this.playbackRate):this._isFinished||this.tickCurrentTime((e-this._startTime)*this.playbackRate)),n&&(this.currentTimePending=!1,this.fireEvents(e))},t.prototype.rewind=function(){if(this.playbackRate>=0)this.currentTime=0;else if(this._totalDuration<1/0)this.currentTime=this._totalDuration;else throw new Error("Unable to rewind negative playback rate animation with infinite duration")},t.prototype.persist=function(){throw new Error(It)},t.prototype.addEventListener=function(e,n,r){throw new Error(It)},t.prototype.removeEventListener=function(e,n,r){throw new Error(It)},t.prototype.dispatchEvent=function(e){throw new Error(It)},t.prototype.commitStyles=function(){throw new Error(It)},t.prototype.ensureAlive=function(){var e,n;this.playbackRate<0&&this.currentTime===0?this._inEffect=!!(!((e=this.effect)===null||e===void 0)&&e.update(-1)):this._inEffect=!!(!((n=this.effect)===null||n===void 0)&&n.update(this.currentTime)),!this._inTimeline&&(this._inEffect||!this._finishedFlag)&&(this._inTimeline=!0,this.timeline.animations.push(this))},t.prototype.tickCurrentTime=function(e,n){e!==this._currentTime&&(this._currentTime=e,this._isFinished&&!n&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this.ensureAlive())},t.prototype.fireEvents=function(e){var n=this;if(this._isFinished){if(!this._finishedFlag){if(this.onfinish){var r=new Vf(null,this,this.currentTime,e);setTimeout(function(){n.onfinish&&n.onfinish(r)})}this._finishedFlag=!0}}else{if(this.onframe&&this.playState==="running"){var i=new Vf(null,this,this.currentTime,e);this.onframe(i)}this._finishedFlag=!1}},t}(),o6=4,s6=.001,c6=1e-7,l6=10,Po=11,yc=1/(Po-1),u6=typeof Float32Array=="function",Vw=function(t,e){return 1-3*e+3*t},Xw=function(t,e){return 3*e-6*t},Uw=function(t){return 3*t},Rl=function(t,e,n){return((Vw(e,n)*t+Xw(e,n))*t+Uw(e))*t},qw=function(t,e,n){return 3*Vw(e,n)*t*t+2*Xw(e,n)*t+Uw(e)},f6=function(t,e,n,r,i){var a,o,s=0;do o=e+(n-e)/2,a=Rl(o,r,i)-t,a>0?n=o:e=o;while(Math.abs(a)>c6&&++s=s6?d6(s,d,t,n):h===0?d:f6(s,c,c+yc,t,n)};return function(s){return s===0||s===1?s:Rl(o(s),e,r)}},h6=function(t){return t=t.replace(/([A-Z])/g,function(e){return"-".concat(e.toLowerCase())}),t.charAt(0)==="-"?t.substring(1):t},mc=function(t){return Math.pow(t,2)},bc=function(t){return Math.pow(t,3)},xc=function(t){return Math.pow(t,4)},wc=function(t){return Math.pow(t,5)},Oc=function(t){return Math.pow(t,6)},Sc=function(t){return 1-Math.cos(t*Math.PI/2)},_c=function(t){return 1-Math.sqrt(1-t*t)},Mc=function(t){return t*t*(3*t-2)},Ec=function(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((e*3-2)/22-t,2)},Pc=function(t,e){e===void 0&&(e=[]);var n=N(e,2),r=n[0],i=r===void 0?1:r,a=n[1],o=a===void 0?.5:a,s=ce(Number(i),1,10),c=ce(Number(o),.1,2);return t===0||t===1?t:-s*Math.pow(2,10*(t-1))*Math.sin((t-1-c/(Math.PI*2)*Math.asin(1/s))*(Math.PI*2)/c)},wo=function(t,e,n){e===void 0&&(e=[]);var r=N(e,4),i=r[0],a=i===void 0?1:i,o=r[1],s=o===void 0?100:o,c=r[2],l=c===void 0?10:c,u=r[3],f=u===void 0?0:u;a=ce(a,.1,1e3),s=ce(s,.1,1e3),l=ce(l,.1,1e3),f=ce(f,.1,1e3);var d=Math.sqrt(s/a),h=l/(2*Math.sqrt(s*a)),p=h<1?d*Math.sqrt(1-h*h):0,v=1,g=h<1?(h*d+-f)/p:-f+d,y=n?n*t/1e3:t;return h<1?y=Math.exp(-y*h*d)*(v*Math.cos(p*y)+g*Math.sin(p*y)):y=(v+g*y)*Math.exp(-y*d),t===0||t===1?t:1-y},Xf=function(t,e){e===void 0&&(e=[]);var n=N(e,2),r=n[0],i=r===void 0?10:r,a=n[1],o=a=="start"?Math.ceil:Math.floor;return o(ce(t,0,1)*i)/i},ly=function(t,e){e===void 0&&(e=[]);var n=N(e,4),r=n[0],i=n[1],a=n[2],o=n[3];return Jp(r,i,a,o)(t)},Ac=Jp(.42,0,1,1),Sn=function(t){return function(e,n,r){return n===void 0&&(n=[]),1-t(1-e,n,r)}},_n=function(t){return function(e,n,r){return n===void 0&&(n=[]),e<.5?t(e*2,n,r)/2:1-t(e*-2+2,n,r)/2}},Mn=function(t){return function(e,n,r){return n===void 0&&(n=[]),e<.5?(1-t(1-e*2,n,r))/2:(t(e*2-1,n,r)+1)/2}},uy={steps:Xf,"step-start":function(t){return Xf(t,[1,"start"])},"step-end":function(t){return Xf(t,[1,"end"])},linear:function(t){return t},"cubic-bezier":ly,ease:function(t){return ly(t,[.25,.1,.25,1])},in:Ac,out:Sn(Ac),"in-out":_n(Ac),"out-in":Mn(Ac),"in-quad":mc,"out-quad":Sn(mc),"in-out-quad":_n(mc),"out-in-quad":Mn(mc),"in-cubic":bc,"out-cubic":Sn(bc),"in-out-cubic":_n(bc),"out-in-cubic":Mn(bc),"in-quart":xc,"out-quart":Sn(xc),"in-out-quart":_n(xc),"out-in-quart":Mn(xc),"in-quint":wc,"out-quint":Sn(wc),"in-out-quint":_n(wc),"out-in-quint":Mn(wc),"in-expo":Oc,"out-expo":Sn(Oc),"in-out-expo":_n(Oc),"out-in-expo":Mn(Oc),"in-sine":Sc,"out-sine":Sn(Sc),"in-out-sine":_n(Sc),"out-in-sine":Mn(Sc),"in-circ":_c,"out-circ":Sn(_c),"in-out-circ":_n(_c),"out-in-circ":Mn(_c),"in-back":Mc,"out-back":Sn(Mc),"in-out-back":_n(Mc),"out-in-back":Mn(Mc),"in-bounce":Ec,"out-bounce":Sn(Ec),"in-out-bounce":_n(Ec),"out-in-bounce":Mn(Ec),"in-elastic":Pc,"out-elastic":Sn(Pc),"in-out-elastic":_n(Pc),"out-in-elastic":Mn(Pc),spring:wo,"spring-in":wo,"spring-out":Sn(wo),"spring-in-out":_n(wo),"spring-out-in":Mn(wo)},p6=function(t){return h6(t).replace(/^ease-/,"").replace(/(\(|\s).+/,"").toLowerCase().trim()},v6=function(t){return uy[p6(t)]||uy.linear},g6=function(t){return t},y6=1,m6=.5,fy=0;function dy(t,e){return function(n){if(n>=1)return 1;var r=1/t;return n+=e*r,n-n%r}}var kc="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",b6=new RegExp("cubic-bezier\\("+kc+","+kc+","+kc+","+kc+"\\)"),x6=/steps\(\s*(\d+)\s*\)/,w6=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/;function t0(t){var e=b6.exec(t);if(e)return Jp.apply(void 0,q([],N(e.slice(1).map(Number)),!1));var n=x6.exec(t);if(n)return dy(Number(n[1]),fy);var r=w6.exec(t);return r?dy(Number(r[1]),{start:y6,middle:m6,end:fy}[r[2]]):v6(t)}function O6(t){return Math.abs(S6(t)/(t.playbackRate||1))}function S6(t){var e;return t.duration===0||t.iterations===0?0:(t.duration==="auto"?0:Number(t.duration))*((e=t.iterations)!==null&&e!==void 0?e:1)}var Kw=0,e0=1,zu=2,Zw=3;function _6(t,e,n){if(e===null)return Kw;var r=n.endTime;return e=Math.min(n.delay+t+n.endDelay,r)?zu:Zw}function M6(t,e,n,r,i){switch(r){case e0:return e==="backwards"||e==="both"?0:null;case Zw:return n-i;case zu:return e==="forwards"||e==="both"?t:null;case Kw:return null}}function E6(t,e,n,r,i){var a=i;return t===0?e!==e0&&(a+=n):a+=r/t,a}function P6(t,e,n,r,i,a){var o=t===1/0?e%1:t%1;return o===0&&n===zu&&r!==0&&(i!==0||a===0)&&(o=1),o}function A6(t,e,n,r){return t===zu&&e===1/0?1/0:n===1?Math.floor(r)-1:Math.floor(r)}function k6(t,e,n){var r=t;if(t!=="normal"&&t!=="reverse"){var i=e;t==="alternate-reverse"&&(i+=1),r="normal",i!==1/0&&i%2!==0&&(r="reverse")}return r==="normal"?n:1-n}function T6(t,e,n){var r=_6(t,e,n),i=M6(t,n.fill,e,r,n.delay);if(i===null)return null;var a=n.duration==="auto"?0:n.duration,o=E6(a,r,n.iterations,i,n.iterationStart),s=P6(o,n.iterationStart,r,n.iterations,i,a),c=A6(r,n.iterations,s,o),l=k6(n.direction,c,s);return n.currentIteration=c,n.progress=l,n.easingFunction(l)}function C6(t,e,n){var r=L6(t,e),i=N6(r,n);return function(a,o){if(o!==null)i.filter(function(c){return o>=c.applyFrom&&o1)throw new Error("Keyframe offsets must be between 0 and 1.");l.computedOffset=f}}else if(u==="composite"&&["replace","add","accumulate","auto"].indexOf(f)===-1)throw new Error("".concat(f," compositing is not supported"));l[u]=f}return l.offset===void 0&&(l.offset=null),l.easing===void 0&&(l.easing=(e==null?void 0:e.easing)||"linear"),l.composite===void 0&&(l.composite="auto"),l}),r=!0,i=-1/0,a=0;a=0&&Number(c.offset)<=1});function s(){var c,l,u=n.length;n[u-1].computedOffset=Number((c=n[u-1].offset)!==null&&c!==void 0?c:1),u>1&&(n[0].computedOffset=Number((l=n[0].offset)!==null&&l!==void 0?l:0));for(var f=0,d=Number(n[0].computedOffset),h=1;hthis.createElement(e),r=[];if(this._data!==null){for(let i=0;ii,r=()=>null){const i=[],a=[],o=new Set(this._elements),s=[],c=new Set,l=new Map(this._elements.map((h,p)=>[n(h.__data__,p),h])),u=new Map(this._facetElements.map((h,p)=>[n(h.__data__,p),h])),f=te(this._elements,h=>r(h.__data__));for(let h=0;ho,n=o=>o,r=o=>o.remove(),i=o=>o,a=o=>o.remove()){const o=e(this._enter),s=n(this._update),c=r(this._exit),l=i(this._merge),u=a(this._split);return s.merge(o).merge(c).merge(l).merge(u)}remove(){for(let e=0;ei.finished)).then(()=>{this._elements[e].remove()})}else this._elements[e].remove()}return new Ae([],null,this._parent,this._document,void 0,this._transitions)}each(e){for(let n=0;nn:n;return this.each(function(i,a,o){n!==void 0&&(o[e]=r(i,a,o))})}style(e,n){const r=typeof n!="function"?()=>n:n;return this.each(function(i,a,o){n!==void 0&&(o.style[e]=r(i,a,o))})}transition(e){const n=typeof e!="function"?()=>e:e,{_transitions:r}=this;return this.each(function(i,a,o){r[a]=n(i,a,o)})}on(e,n){return this.each(function(r,i,a){a.addEventListener(e,n)}),this}call(e,...n){return e(this,...n),this}node(){return this._elements[0]}nodes(){return this._elements}transitions(){return this._transitions}parent(){return this._parent}};Il.registry={g:Ce,rect:Zi,circle:Xs,path:Xe,text:ei,ellipse:Kp,image:Zp,line:Us,polygon:Fu,polyline:Qp,html:Bu};function Tc(t,e,n){return Math.max(e,Math.min(t,n))}function jl(t,e=10){return typeof t!="number"||Math.abs(t)<1e-15?t:parseFloat(t.toFixed(e))}function at(t,e){for(const[n,r]of Object.entries(e))t.style(n,r)}function W6(t,e){return e.forEach((n,r)=>r===0?t.moveTo(n[0],n[1]):t.lineTo(n[0],n[1])),t.closePath(),t}function H6(t,e,n){const{arrowSize:r}=n,i=typeof r=="string"?+parseFloat(r)/100*Jt(t,e):r,a=Math.PI/6,o=Math.atan2(e[1]-t[1],e[0]-t[0]),s=Math.PI/2-o-a,c=[e[0]-i*Math.sin(s),e[1]-i*Math.cos(s)],l=o-a,u=[e[0]-i*Math.cos(l),e[1]-i*Math.sin(l)];return[c,u]}function vs(t,e,n,r,i){const a=Nn(se(r,e))+Math.PI,o=Nn(se(r,n))+Math.PI;return t.arc(r[0],r[1],i,a,o,o-a<0),t}function tO(t,e,n,r="y",i="between",a=!1){const o=(g,y)=>g==="y"||g===!0?y?180:90:y?90:0,s=r==="y"||r===!0?n:e,c=o(r,a),l=Ui(s),[u,f]=Mr(l,g=>s[g]),d=new Yt({domain:[u,f],range:[0,100]}),h=g=>de(s[g])&&!Number.isNaN(s[g])?d.map(s[g]):0,p={between:g=>`${t[g]} ${h(g)}%`,start:g=>g===0?`${t[g]} ${h(g)}%`:`${t[g-1]} ${h(g)}%, ${t[g]} ${h(g)}%`,end:g=>g===t.length-1?`${t[g]} ${h(g)}%`:`${t[g]} ${h(g)}%, ${t[g+1]} ${h(g)}%`},v=l.sort((g,y)=>h(g)-h(y)).map(p[i]||p.between).join(",");return`linear-gradient(${c}deg, ${v})`}function Gu(t){const[e,n,r,i]=t;return[i,e,n,r]}function Qi(t,e,n){const[r,i,,a]=qt(t)?Gu(e):e,[o,s]=n,c=t.getCenter(),l=ja(se(r,c)),u=ja(se(i,c)),f=u===l&&o!==s?u+Math.PI*2:u;return{startAngle:l,endAngle:f-l>=0?f:Math.PI*2+f,innerRadius:Jt(a,c),outerRadius:Jt(r,c)}}function eO(t){const{colorAttribute:e,opacityAttribute:n=e}=t;return`${n}Opacity`}function nO(t,e){if(!Ht(t))return"";const n=t.getCenter(),{transform:r}=e;return`translate(${n[0]}, ${n[1]}) ${r||""}`}function rO(t){if(t.length===1)return t[0];const[[e,n,r=0],[i,a,o=0]]=t;return[(e+i)/2,(n+a)/2,(r+o)/2]}var nl=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i0?P:P+A,L=k>0?T:T+k,I=Math.abs(A),R=Math.abs(k),j=C+s,D=L+c,$=I-(s+l),B=R-(c+u),F=_?Tc($,y,1/0):Tc($,v,g),Y=_?Tc(B,v,g):Tc(B,y,1/0),U=_?j:j-(F-$)/2,K=_?D-(Y-B)/2:D-(Y-B);return st(t.createElement("rect",{})).style("x",U).style("y",K).style("width",F).style("height",Y).style("radius",[h,p,d,f]).call(at,m).node()}const{y:b,y1:x}=n,w=r.getCenter(),O=Qi(r,e,[b,x]),S=Cu().cornerRadius(o).padAngle(a*Math.PI/180);return st(t.createElement("path",{})).style("path",S(O)).style("transform",`translate(${w[0]}, ${w[1]})`).style("radius",o).style("inset",a).call(at,m).node()}const qs=(t,e)=>{const{colorAttribute:n,opacityAttribute:r="fill",first:i=!0,last:a=!0}=t,o=nl(t,["colorAttribute","opacityAttribute","first","last"]),{coordinate:s,document:c}=e;return(l,u,f)=>{const{color:d,radius:h=0}=f,p=nl(f,["color","radius"]),v=p.lineWidth||1,{stroke:g,radius:y=h,radiusTopLeft:m=y,radiusTopRight:b=y,radiusBottomRight:x=y,radiusBottomLeft:w=y,innerRadius:O=0,innerRadiusTopLeft:S=O,innerRadiusTopRight:_=O,innerRadiusBottomRight:M=O,innerRadiusBottomLeft:E=O,lineWidth:P=n==="stroke"||g?v:0,inset:T=0,insetLeft:A=T,insetRight:k=T,insetBottom:C=T,insetTop:L=T,minWidth:I,maxWidth:R,minHeight:j}=o,D=nl(o,["stroke","radius","radiusTopLeft","radiusTopRight","radiusBottomRight","radiusBottomLeft","innerRadius","innerRadiusTopLeft","innerRadiusTopRight","innerRadiusBottomRight","innerRadiusBottomLeft","lineWidth","inset","insetLeft","insetRight","insetBottom","insetTop","minWidth","maxWidth","minHeight"]),{color:$=d,opacity:B}=u,F=[i?m:S,i?b:_,a?x:M,a?w:E],Y=["radiusTopLeft","radiusTopRight","radiusBottomRight","radiusBottomLeft"];qt(s)&&Y.push(Y.shift());const U=Object.assign(Object.assign({radius:y},Object.fromEntries(Y.map((K,V)=>[K,F[V]]))),{inset:T,insetLeft:A,insetRight:k,insetBottom:C,insetTop:L,minWidth:I,maxWidth:R,minHeight:j});return st(iO(c,l,u,s,U)).call(at,p).style("fill","transparent").style(n,$).style(eO(t),B).style("lineWidth",P).style("stroke",g===void 0?$:g).call(at,D).node()}};qs.props={defaultEnterAnimation:"scaleInY",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const Ji=(t,e)=>qs(Object.assign({colorAttribute:"fill"},t),e);Ji.props=Object.assign(Object.assign({},qs.props),{defaultMarker:"square"});const Yu=(t,e)=>qs(Object.assign({colorAttribute:"stroke"},t),e);Yu.props=Object.assign(Object.assign({},qs.props),{defaultMarker:"hollowSquare"});var gy=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{adjustPoints:n=V6}=t,r=gy(t,["adjustPoints"]),{coordinate:i,document:a}=e;return(o,s,c,l)=>{const{index:u}=s,{color:f}=c,d=gy(c,["color"]),h=l[u+1],p=n(o,h,i),v=!!qt(i),[g,y,m,b]=v?Gu(p):p,{color:x=f,opacity:w}=s,O=Jr().curve(jp)([g,y,m,b]);return st(a.createElement("path",{})).call(at,d).style("path",O).style("fill",x).style("fillOpacity",w).call(at,r).node()}};n0.props={defaultMarker:"square"};function X6(t,e,n){const[r,i,a,o]=t;if(qt(n)){const l=[e?e[0][0]:(i[0]+a[0])/2,i[1]],u=[e?e[3][0]:(i[0]+a[0])/2,a[1]];return[r,l,u,o]}const s=[i[0],e?e[0][1]:(i[1]+a[1])/2],c=[a[0],e?e[3][1]:(i[1]+a[1])/2];return[r,s,c,o]}const aO=(t,e)=>n0(Object.assign({adjustPoints:X6},t),e);aO.props={defaultMarker:"square"};function Fa(t){const e=typeof t=="function"?t:t.render;return class extends qp{connectedCallback(){this.draw()}attributeChangedCallback(){this.draw()}draw(){e(this)}}}var yy=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{d1:e,d2:n,style1:r,style2:i}=t.attributes,a=t.ownerDocument;st(t).maybeAppend("line",()=>a.createElement("path",{})).style("d",e).call(at,r),st(t).maybeAppend("line1",()=>a.createElement("path",{})).style("d",n).call(at,i)});function q6(t,e){const n=[],r=[];let i=!1,a=null;for(const o of t)!e(o[0])||!e(o[1])?i=!0:(n.push(o),i&&(i=!1,r.push([a,o])),a=o);return[n,r]}const Dn=(t,e)=>{const{curve:n,gradient:r=!1,gradientColor:i="between",defined:a=u=>!Number.isNaN(u)&&u!==void 0&&u!==null,connect:o=!1}=t,s=yy(t,["curve","gradient","gradientColor","defined","connect"]),{coordinate:c,document:l}=e;return(u,f,d)=>{const{color:h,lineWidth:p}=d,v=yy(d,["color","lineWidth"]),{color:g=h,size:y=p,seriesColor:m,seriesX:b,seriesY:x}=f,w=nO(c,f),O=qt(c),S=r&&m?tO(m,b,x,r,i,O):g,_=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},v),S&&{stroke:S}),y&&{lineWidth:y}),w&&{transform:w}),s);let M;if(Ht(c)){const C=c.getCenter();M=L=>wL().angle((I,R)=>ja(se(L[R],C))).radius((I,R)=>Jt(L[R],C)).defined(([I,R])=>a(I)&&a(R)).curve(n)(L)}else M=Jr().x(C=>C[0]).y(C=>C[1]).defined(([C,L])=>a(C)&&a(L)).curve(n);const[E,P]=q6(u,a),T=Q(_,"connect"),A=!!P.length;if(!A||o&&!Object.keys(T).length)return st(l.createElement("path",{})).style("d",M(E)||[]).call(at,_).node();if(A&&!o)return st(l.createElement("path",{})).style("d",M(u)).call(at,_).node();const k=C=>C.map(M).join(",");return st(new U6).style("style1",Object.assign(Object.assign({},_),T)).style("style2",_).style("d1",k(P)).style("d2",M(u)).node()}};Dn.props={defaultMarker:"smooth",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const oO=(t,e)=>{const{coordinate:n}=e;return(...r)=>{const i=Ht(n)?jp:Ys;return Dn(Object.assign({curve:i},t),e)(...r)}};oO.props=Object.assign(Object.assign({},Dn.props),{defaultMarker:"line"});var K6=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const n=K6(t,[]),{coordinate:r}=e;return(...i)=>{const a=Ht(r)?ew:qt(r)?ow:aw;return Dn(Object.assign({curve:a},n),e)(...i)}};sO.props=Object.assign(Object.assign({},Dn.props),{defaultMarker:"smooth"});const cO=(t,e)=>Dn(Object.assign({curve:lw},t),e);cO.props=Object.assign(Object.assign({},Dn.props),{defaultMarker:"hv"});const lO=(t,e)=>Dn(Object.assign({curve:cw},t),e);lO.props=Object.assign(Object.assign({},Dn.props),{defaultMarker:"vh"});const uO=(t,e)=>Dn(Object.assign({curve:sw},t),e);uO.props=Object.assign(Object.assign({},Dn.props),{defaultMarker:"hvh"});var Z6=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{document:n}=e;return(r,i,a)=>{const{seriesSize:o,color:s}=i,{color:c}=a,l=Z6(a,["color"]),u=jn();for(let f=0;f[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e],["Z"]];r0.style=["fill"];const dO=r0.bind(void 0);dO.style=["stroke","lineWidth"];const Wu=(t,e,n)=>[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]];Wu.style=["fill"];const hO=Wu.bind(void 0);hO.style=["fill"];const pO=Wu.bind(void 0);pO.style=["stroke","lineWidth"];const i0=(t,e,n)=>{const r=n*.618;return[["M",t-r,e],["L",t,e-n],["L",t+r,e],["L",t,e+n],["Z"]]};i0.style=["fill"];const vO=i0.bind(void 0);vO.style=["stroke","lineWidth"];const a0=(t,e,n)=>{const r=n*Math.sin(.3333333333333333*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]};a0.style=["fill"];const gO=a0.bind(void 0);gO.style=["stroke","lineWidth"];const o0=(t,e,n)=>{const r=n*Math.sin(.3333333333333333*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]};o0.style=["fill"];const yO=o0.bind(void 0);yO.style=["stroke","lineWidth"];const s0=(t,e,n)=>{const r=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]};s0.style=["fill"];const mO=s0.bind(void 0);mO.style=["stroke","lineWidth"];const c0=(t,e,n)=>{const r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["Z"]]};c0.style=["fill"];const bO=c0.bind(void 0);bO.style=["stroke","lineWidth"];const xO=(t,e,n)=>[["M",t,e+n],["L",t,e-n]];xO.style=["stroke","lineWidth"];const wO=(t,e,n)=>[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]];wO.style=["stroke","lineWidth"];const OO=(t,e,n)=>[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]];OO.style=["stroke","lineWidth"];const SO=(t,e,n)=>[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]];SO.style=["stroke","lineWidth"];const _O=(t,e,n)=>[["M",t-n,e],["L",t+n,e]];_O.style=["stroke","lineWidth"];const l0=(t,e,n)=>[["M",t-n,e],["L",t+n,e]];l0.style=["stroke","lineWidth"];const MO=l0.bind(void 0);MO.style=["stroke","lineWidth"];const EO=(t,e,n)=>[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]];EO.style=["stroke","lineWidth"];const PO=(t,e,n)=>[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]];PO.style=["stroke","lineWidth"];const AO=(t,e,n)=>[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]];AO.style=["stroke","lineWidth"];const kO=(t,e,n)=>[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]];kO.style=["stroke","lineWidth"];const TO=(t,e,n)=>[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]];TO.style=["stroke","lineWidth"];const Dl=new Map([["bowtie",c0],["cross",wO],["dash",MO],["diamond",i0],["dot",l0],["hexagon",s0],["hollowBowtie",bO],["hollowDiamond",vO],["hollowHexagon",mO],["hollowPoint",dO],["hollowSquare",pO],["hollowTriangle",gO],["hollowTriangleDown",yO],["hv",PO],["hvh",kO],["hyphen",_O],["line",xO],["plus",SO],["point",r0],["rect",hO],["smooth",EO],["square",Wu],["tick",OO],["triangleDown",o0],["triangle",a0],["vh",AO],["vhv",TO]]);function tI(t,e){var{d:n,fill:r,strokeWidth:i,path:a,stroke:o,lineWidth:s,color:c}=e,l=J6(e,["d","fill","strokeWidth","path","stroke","lineWidth","color"]);const u=Dl.get(t)||Dl.get("point");return(...f)=>new Xe({style:Object.assign(Object.assign({},l),{path:u(...f),stroke:u.style.includes("stroke")?c||o:"",fill:u.style.includes("fill")?c||r:"",lineWidth:u.style.includes("lineWidth")?s||s||2:0})})}var eI=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{colorAttribute:n,symbol:r,mode:i="auto"}=t,a=eI(t,["colorAttribute","symbol","mode"]),o=Dl.get(r)||Dl.get("point"),{coordinate:s,document:c}=e;return(l,u,f)=>{const{lineWidth:d,color:h}=f,p=a.stroke?d||1:d,{color:v=h,transform:g,opacity:y}=u,[m,b]=rO(l),w=nI(i,l,u,s)||a.r||f.r;return st(c.createElement("path",{})).call(at,f).style("fill","transparent").style("d",o(m,b,w)).style("lineWidth",p).style("transform",g).style("stroke",v).style(eO(t),y).style(n,v).call(at,a).node()}};bt.props={defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};const CO=(t,e)=>bt(Object.assign({colorAttribute:"stroke",symbol:"bowtie"},t),e);CO.props=Object.assign({defaultMarker:"hollowBowtie"},bt.props);const LO=(t,e)=>bt(Object.assign({colorAttribute:"stroke",symbol:"diamond"},t),e);LO.props=Object.assign({defaultMarker:"hollowDiamond"},bt.props);const NO=(t,e)=>bt(Object.assign({colorAttribute:"stroke",symbol:"hexagon"},t),e);NO.props=Object.assign({defaultMarker:"hollowHexagon"},bt.props);const RO=(t,e)=>bt(Object.assign({colorAttribute:"stroke",symbol:"point"},t),e);RO.props=Object.assign({defaultMarker:"hollowPoint"},bt.props);const IO=(t,e)=>bt(Object.assign({colorAttribute:"stroke",symbol:"square"},t),e);IO.props=Object.assign({defaultMarker:"hollowSquare"},bt.props);const jO=(t,e)=>bt(Object.assign({colorAttribute:"stroke",symbol:"triangle"},t),e);jO.props=Object.assign({defaultMarker:"hollowTriangle"},bt.props);const DO=(t,e)=>bt(Object.assign({colorAttribute:"stroke",symbol:"triangle-down"},t),e);DO.props=Object.assign({defaultMarker:"hollowTriangleDown"},bt.props);const $O=(t,e)=>bt(Object.assign({colorAttribute:"fill",symbol:"bowtie"},t),e);$O.props=Object.assign({defaultMarker:"bowtie"},bt.props);const BO=(t,e)=>bt(Object.assign({colorAttribute:"stroke",symbol:"cross"},t),e);BO.props=Object.assign({defaultMarker:"cross"},bt.props);const FO=(t,e)=>bt(Object.assign({colorAttribute:"fill",symbol:"diamond"},t),e);FO.props=Object.assign({defaultMarker:"diamond"},bt.props);const zO=(t,e)=>bt(Object.assign({colorAttribute:"fill",symbol:"hexagon"},t),e);zO.props=Object.assign({defaultMarker:"hexagon"},bt.props);const GO=(t,e)=>bt(Object.assign({colorAttribute:"stroke",symbol:"hyphen"},t),e);GO.props=Object.assign({defaultMarker:"hyphen"},bt.props);const YO=(t,e)=>bt(Object.assign({colorAttribute:"stroke",symbol:"line"},t),e);YO.props=Object.assign({defaultMarker:"line"},bt.props);const WO=(t,e)=>bt(Object.assign({colorAttribute:"stroke",symbol:"plus"},t),e);WO.props=Object.assign({defaultMarker:"plus"},bt.props);const HO=(t,e)=>bt(Object.assign({colorAttribute:"fill",symbol:"point"},t),e);HO.props=Object.assign({defaultMarker:"point"},bt.props);const VO=(t,e)=>bt(Object.assign({colorAttribute:"fill",symbol:"square"},t),e);VO.props=Object.assign({defaultMarker:"square"},bt.props);const XO=(t,e)=>bt(Object.assign({colorAttribute:"stroke",symbol:"tick"},t),e);XO.props=Object.assign({defaultMarker:"tick"},bt.props);const UO=(t,e)=>bt(Object.assign({colorAttribute:"fill",symbol:"triangle"},t),e);UO.props=Object.assign({defaultMarker:"triangle"},bt.props);const qO=(t,e)=>bt(Object.assign({colorAttribute:"fill",symbol:"triangle-down"},t),e);qO.props=Object.assign({defaultMarker:"triangleDown"},bt.props);var my=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i{const{arrow:n=!0,arrowSize:r="40%"}=t,i=my(t,["arrow","arrowSize"]),{document:a}=e;return(o,s,c)=>{const{defaultColor:l}=c,u=my(c,["defaultColor"]),{color:f=l,transform:d}=s,[h,p]=o,v=jn();if(v.moveTo(...h),v.lineTo(...p),n){const[g,y]=H6(h,p,{arrowSize:r});v.moveTo(...p),v.lineTo(...g),v.moveTo(...p),v.lineTo(...y)}return st(a.createElement("path",{})).call(at,u).style("d",v.toString()).style("stroke",f).style("transform",d).call(at,i).node()}};u0.props={defaultMarker:"line",defaultEnterAnimation:"fadeIn",defaultUpdateAnimation:"morphing",defaultExitAnimation:"fadeOut"};function KO(t,e){e(t),t.children&&t.children.forEach(function(n){n&&KO(n,e)})}function Ks(t){Hu(t,!0)}function li(t){Hu(t,!1)}function Hu(t,e){var n=e?"visible":"hidden";KO(t,function(r){r.attr("visibility",n)})}var rI=function(t){rt(e,t);function e(){for(var n=[],r=0;r=this.left&&e<=this.right&&n>=this.top&&n<=this.bottom},t}();function Rn(t,e){return Ve(t)?t.apply(void 0,q([],N(e),!1)):t}var $n=function(t,e){var n=function(i){return"".concat(e,"-").concat(i)},r=Object.fromEntries(Object.entries(t).map(function(i){var a=N(i,2),o=a[0],s=a[1],c=n(s);return[o,{name:c,class:".".concat(c),id:"#".concat(c),toString:function(){return c}}]}));return Object.assign(r,{prefix:n}),r},aI=5,JO=function(t,e,n,r){n===void 0&&(n=0),r===void 0&&(r=aI),Object.entries(e).forEach(function(i){var a=N(i,2),o=a[0],s=a[1],c=t;Object.prototype.hasOwnProperty.call(e,o)&&(s?Cr(s)?(Cr(t[o])||(c[o]={}),ne&&tr&&(r=d),h>i&&(i=h)}return new Qt(e,n,r-e,i-n)}var hI=function(t,e,n){var r=t.width,i=t.height,a=n.flexDirection,o=a===void 0?"row":a;n.flexWrap;var s=n.justifyContent,c=s===void 0?"flex-start":s;n.alignContent;var l=n.alignItems,u=l===void 0?"flex-start":l,f=o==="row",d=o==="row"||o==="column",h=f?d?[1,0]:[-1,0]:d?[0,1]:[0,-1],p=N([0,0],2),v=p[0],g=p[1],y=e.map(function(_){var M,E=_.width,P=_.height,T=N([v,g],2),A=T[0],k=T[1];return M=N([v+E*h[0],g+P*h[1]],2),v=M[0],g=M[1],new Qt(A,k,E,P)}),m=by(y),b={"flex-start":0,"flex-end":f?r-m.width:i-m.height,center:f?(r-m.width)/2:(i-m.height)/2},x=y.map(function(_){var M=_.x,E=_.y,P=Qt.fromRect(_);return P.x=f?M+b[c]:M,P.y=f?E:E+b[c],P});by(x);var w=function(_){var M=N(f?["height",i]:["width",r],2),E=M[0],P=M[1];switch(u){case"flex-start":return 0;case"flex-end":return P-_[E];case"center":return P/2-_[E]/2;default:return 0}},O=x.map(function(_){var M=_.x,E=_.y,P=Qt.fromRect(_);return P.x=f?M:M+w(P),P.y=f?E+w(P):E,P}),S=O.map(function(_){var M,E,P=Qt.fromRect(_);return P.x+=(M=t.x)!==null&&M!==void 0?M:0,P.y+=(E=t.y)!==null&&E!==void 0?E:0,P});return S},pI=function(t,e,n){return[]};const vI=function(t,e,n){if(e.length===0)return[];var r={flex:hI,grid:pI},i=n.display in r?r[n.display]:null;return(i==null?void 0:i.call(null,t,e,n))||[]};function Or(t,e){return[t[0]*e,t[1]*e]}function Ao(t,e){return[t[0]+e[0],t[1]+e[1]]}function Uf(t,e){return[t[0]-e[0],t[1]-e[1]]}function wi(t,e){return[Math.min(t[0],e[0]),Math.min(t[1],e[1])]}function Oi(t,e){return[Math.max(t[0],e[0]),Math.max(t[1],e[1])]}function gs(t,e){return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2))}function iS(t){if(t[0]===0&&t[1]===0)return[0,0];var e=Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2));return[t[0]/e,t[1]/e]}function gI(t,e){return e?[t[1],-t[0]]:[-t[1],t[0]]}function fh(t,e){return+t.toPrecision(e)}function xy(t,e){var n={},r=Array.isArray(e)?e:[e];for(var i in t)r.includes(i)||(n[i]=t[i]);return n}function yI(t,e,n,r){var i,a=[],o=!!r,s,c,l=[1/0,1/0],u=[-1/0,-1/0],f,d,h;if(o){i=N(r,2),l=i[0],u=i[1];for(var p=0,v=t.length;p="A"&&n<="Z"};function vt(t,e,n){n===void 0&&(n=!1);var r={};return Object.entries(t).forEach(function(i){var a=N(i,2),o=a[0],s=a[1];if(!(o==="className"||o==="class")){if(Lc(o,"show")&&Lc(Sy(o,"show"),e)!==n)o===kI(e,"show")?r[o]=s:r[o.replace(new RegExp(p0(e)),"")]=s;else if(!Lc(o,"show")&&Lc(o,e)!==n){var c=Sy(o,e);c==="filter"&&typeof s=="function"||(r[c]=s)}}}),r}function Jn(t,e){return Object.entries(t).reduce(function(n,r){var i=N(r,2),a=i[0],o=i[1];return a.startsWith("show")?n["show".concat(e).concat(a.slice(4))]=o:n["".concat(e).concat(p0(a))]=o,n},{})}function Rr(t,e){e===void 0&&(e=["x","y","class","className"]);var n=["transform","transformOrigin","anchor","visibility","pointerEvents","zIndex","cursor","clipPath","clipPathTargets","offsetPath","offsetPathTargets","offsetDistance","draggable","droppable"],r={},i={};return Object.entries(t).forEach(function(a){var o=N(a,2),s=o[0],c=o[1];e.includes(s)||(n.indexOf(s)!==-1?i[s]=c:r[s]=c)}),[r,i]}function CI(t,e,n){var r=t.getBBox(),i=r.width,a=r.height,o=N([e,n].map(function(l,u){var f;return l.includes("%")?parseFloat(((f=l.match(/[+-]?([0-9]*[.])?[0-9]+/))===null||f===void 0?void 0:f[0])||"0")/100*(u===0?i:a):l}),2),s=o[0],c=o[1];return[s,c]}function Bl(t,e){if(e)try{var n=/translate\(([+-]*[\d]+[%]*),[ ]*([+-]*[\d]+[%]*)\)/g,r=e.replace(n,function(i,a,o){return"translate(".concat(CI(t,a,o),")")});t.attr("transform",r)}catch{}}function LI(t){var e;return((e=t[0])===null||e===void 0?void 0:e.map(function(n,r){return t.map(function(i){return i[r]})}))||[]}function NI(){Hu(this,this.attributes.visibility!=="hidden")}var Pe=function(t){rt(e,t);function e(n,r){r===void 0&&(r={});var i=t.call(this,Nr({},{style:r},n))||this;return i.initialized=!1,i._defaultOptions=r,i}return Object.defineProperty(e.prototype,"offscreenGroup",{get:function(){return this._offscreen||(this._offscreen=ZO(this)),this._offscreen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"defaultOptions",{get:function(){return this._defaultOptions},enumerable:!1,configurable:!0}),e.prototype.connectedCallback=function(){this.render(this.attributes,this),this.bindEvents(this.attributes,this),this.initialized=!0},e.prototype.disconnectedCallback=function(){var n;(n=this._offscreen)===null||n===void 0||n.destroy()},e.prototype.attributeChangedCallback=function(n){n==="visibility"&&NI.call(this)},e.prototype.update=function(n,r){var i;return this.attr(Nr({},this.attributes,n||{})),(i=this.render)===null||i===void 0?void 0:i.call(this,this.attributes,this,r)},e.prototype.clear=function(){this.removeChildren()},e.prototype.bindEvents=function(n,r){},e}(qp),aS=function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e],["Z"]]},RI=aS,II=function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},jI=function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},DI=function(t,e,n){var r=n*Math.sin(.3333333333333333*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]},$I=function(t,e,n){var r=n*Math.sin(.3333333333333333*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]},BI=function(t,e,n){var r=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]},FI=function(t,e,n){var r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["Z"]]},oS=function(t,e,n){return[["M",t,e+n],["L",t,e-n]]},zI=function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]},GI=function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},YI=function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]},WI=function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},sS=function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},HI=sS,VI=function(t,e,n){return[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]]},XI=function(t,e,n){return[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]]},UI=function(t,e,n){return[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]]},qI=function(t,e,n){return[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]]};function KI(t,e){return[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]]}var ZI=function(t,e,n){return[["M",t-n,e-n],["L",t+n,e],["L",t-n,e+n],["Z"]]};function QI(t){var e="default";if(ki(t)&&t instanceof Image)e="image";else if(Ve(t))e="symbol";else if(le(t)){var n=new RegExp("data:(image|text)");t.match(n)?e="base64":/^(https?:\/\/(([a-zA-Z0-9]+-?)+[a-zA-Z0-9]+\.)+[a-zA-Z]+)(:\d+)?(\/.*)?(\?.*)?(#.*)?$/.test(t)?e="url":e="symbol"}return e}function JI(t){var e=QI(t);return["base64","url","image"].includes(e)?"image":t&&e==="symbol"?"path":null}var Bt=function(t){rt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(n,r){var i=n.symbol,a=n.size,o=a===void 0?16:a,s=$t(n,["symbol","size"]),c=JI(i);on(!!c,dt(r),function(l){l.maybeAppendByClassName("marker",c).attr("className","marker ".concat(c,"-marker")).call(function(u){if(c==="image"){var f=o*2;u.styles({img:i,width:f,height:f,x:-o,y:-o})}else{var f=o/2,d=Ve(i)?i:e.getSymbol(i);u.styles(z({path:d==null?void 0:d(0,0,f)},s))}})})},e.MARKER_SYMBOL_MAP=new Map,e.registerSymbol=function(n,r){e.MARKER_SYMBOL_MAP.set(n,r)},e.getSymbol=function(n){return e.MARKER_SYMBOL_MAP.get(n)},e.getSymbols=function(){return Array.from(e.MARKER_SYMBOL_MAP.keys())},e}(Pe);Bt.registerSymbol("cross",zI);Bt.registerSymbol("hyphen",WI);Bt.registerSymbol("line",oS);Bt.registerSymbol("plus",YI);Bt.registerSymbol("tick",GI);Bt.registerSymbol("circle",aS);Bt.registerSymbol("point",RI);Bt.registerSymbol("bowtie",FI);Bt.registerSymbol("hexagon",BI);Bt.registerSymbol("square",II);Bt.registerSymbol("diamond",jI);Bt.registerSymbol("triangle",DI);Bt.registerSymbol("triangle-down",$I);Bt.registerSymbol("line",oS);Bt.registerSymbol("dot",sS);Bt.registerSymbol("dash",HI);Bt.registerSymbol("smooth",VI);Bt.registerSymbol("hv",XI);Bt.registerSymbol("vh",UI);Bt.registerSymbol("hvh",qI);Bt.registerSymbol("vhv",KI);var t8=function(t){rt(e,t);function e(n){var r=this,i=n.style,a=$t(n,["style"]);return r=t.call(this,X({},{type:"column"},z({style:i},a)))||this,r.columnsGroup=new Ce({name:"columns"}),r.appendChild(r.columnsGroup),r.render(),r}return e.prototype.render=function(){var n=this.attributes.columns;dt(this.columnsGroup).selectAll(".column").data(n.flat()).join(function(r){return r.append("rect").attr("className","column").each(function(i){this.attr(i)})},function(r){return r.each(function(i){this.attr(i)})},function(r){return r.remove()})},e.prototype.update=function(n){this.attr(Nr({},this.attributes,n)),this.render()},e.prototype.clear=function(){this.removeChildren()},e}(ze),e8=function(t){rt(e,t);function e(n){var r=this,i=n.style,a=$t(n,["style"]);return r=t.call(this,X({},{type:"lines"},z({style:i},a)))||this,r.linesGroup=r.appendChild(new Ce),r.areasGroup=r.appendChild(new Ce),r.render(),r}return e.prototype.render=function(){var n=this.attributes,r=n.lines,i=n.areas;r&&this.renderLines(r),i&&this.renderAreas(i)},e.prototype.clear=function(){this.linesGroup.removeChildren(),this.areasGroup.removeChildren()},e.prototype.update=function(n){this.attr(Nr({},this.attributes,n)),this.render()},e.prototype.renderLines=function(n){dt(this.linesGroup).selectAll(".line").data(n).join(function(r){return r.append("path").attr("className","line").each(function(i){this.attr(i)})},function(r){return r.each(function(i){this.attr(i)})},function(r){return r.remove()})},e.prototype.renderAreas=function(n){dt(this.linesGroup).selectAll(".area").data(n).join(function(r){return r.append("path").attr("className","area").each(function(i){this.attr(i)})},function(r){return r.each(function(i){this.style(i)})},function(r){return r.remove()})},e}(ze);function n8(t,e){var n,r=e.x,i=e.y,a=N(i.getOptions().range||[0,0],2),o=a[0],s=a[1];return s>o&&(n=N([o,s],2),s=n[0],o=n[1]),t.map(function(c){var l=c.map(function(u,f){return[r.map(f),ce(i.map(u),s,o)]});return l})}function ys(t,e){e===void 0&&(e=!1);var n=e?t.length-1:0,r=t.map(function(i,a){return q([a===n?"M":"L"],N(i),!1)});return e?r.reverse():r}function Fl(t,e){if(e===void 0&&(e=!1),t.length<=2)return ys(t);for(var n=[],r=t.length,i=0;i=0;i-=1){var a=t[i],o=ys(a),s=void 0;if(i===0)s=v0(o,e,n);else{var c=t[i-1],l=ys(c,!0);l[0][0]="L",s=q(q(q([],N(o),!1),N(l),!1),[["Z"]],!1)}r.push(s)}return r}function a8(t,e,n){for(var r=[],i=t.length-1;i>=0;i-=1){var a=t[i],o=Fl(a),s=void 0;if(i===0)s=v0(o,e,n);else{var c=t[i-1],l=Fl(c,!0),u=a[0];l[0][0]="L",s=q(q(q([],N(o),!1),N(l),!1),[q(["M"],N(u),!1),["Z"]],!1)}r.push(s)}return r}function _y(t){return t.length===0?[0,0]:[hl(Lk(t,function(e){return hl(e)||0})),dl(Ck(t,function(e){return dl(e)||0}))]}function My(t){for(var e=Jo(t),n=e[0].length,r=N([Array(n).fill(0),Array(n).fill(0)],2),i=r[0],a=r[1],o=0;o=0?(s[c]+=i[c],i[c]=s[c]):(s[c]+=a[c],a[c]=s[c]);return e}var o8=function(t){rt(e,t);function e(n){return t.call(this,n,{type:"line",width:200,height:20,isStack:!1,color:["#83daad","#edbf45","#d2cef9","#e290b3","#6f63f4"],smooth:!0,lineLineWidth:1,areaOpacity:0,isGroup:!1,columnLineWidth:1,columnStroke:"#fff",scale:1,spacing:0})||this}return Object.defineProperty(e.prototype,"rawData",{get:function(){var n=this.attributes.data;if(!n||(n==null?void 0:n.length)===0)return[[]];var r=Jo(n);return de(r[0])?[r]:r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this.attributes.isStack?My(this.rawData):this.rawData},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scales",{get:function(){return this.createScales(this.data)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"baseline",{get:function(){var n=this.scales.y,r=N(n.getOptions().domain||[0,0],2),i=r[0],a=r[1];return a<0?n.map(a):n.map(i<0?0:i)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"containerShape",{get:function(){var n=this.attributes,r=n.width,i=n.height;return{width:r,height:i}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"linesStyle",{get:function(){var n=this,r=this.attributes,i=r.type,a=r.isStack,o=r.smooth;if(i!=="line")throw new Error("linesStyle can only be used in line type");var s=vt(this.attributes,"area"),c=vt(this.attributes,"line"),l=this.containerShape.width,u=this.data;if(u[0].length===0)return{lines:[],areas:[]};var f=this.scales,d=f.x,h=f.y,p=n8(u,{type:"line",x:d,y:h}),v=[];if(s){var g=this.baseline;a?v=o?a8(p,l,g):i8(p,l,g):v=r8(p,o,l,g)}return{lines:p.map(function(y,m){return z({stroke:n.getColor(m),path:o?Fl(y):ys(y)},c)}),areas:v.map(function(y,m){return z({path:y,fill:n.getColor(m)},s)})}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columnsStyle",{get:function(){var n=this,r=vt(this.attributes,"column"),i=this.attributes,a=i.isStack,o=i.type,s=i.scale;if(o!=="column")throw new Error("columnsStyle can only be used in column type");var c=this.containerShape.height,l=this.rawData;if(!l)return{columns:[]};a&&(l=My(l));var u=this.createScales(l),f=u.x,d=u.y,h=N(_y(l),2),p=h[0],v=h[1],g=new Yt({domain:[0,v-(p>0?0:p)],range:[0,c*s]}),y=f.getBandWidth(),m=this.rawData;return{columns:l.map(function(b,x){return b.map(function(w,O){var S=y/l.length,_=function(){return{x:f.map(O)+S*x,y:w>=0?d.map(w):d.map(0),width:S,height:g.map(Math.abs(w))}},M=function(){return{x:f.map(O),y:d.map(w),width:y,height:g.map(m[x][O])}};return z(z({fill:n.getColor(x)},r),a?M():_())})})}},enumerable:!1,configurable:!0}),e.prototype.render=function(n,r){MI(r,".container","rect").attr("className","container").node();var i=n.type,a="spark".concat(i),o=i==="line"?this.linesStyle:this.columnsStyle;dt(r).selectAll(".spark").data([i]).join(function(s){return s.append(function(c){return c==="line"?new e8({className:a,style:o}):new t8({className:a,style:o})}).attr("className","spark ".concat(a))},function(s){return s.update(o)},function(s){return s.remove()})},e.prototype.getColor=function(n){var r=this.attributes.color;return Le(r)?r[n%r.length]:Ve(r)?r.call(null,n):r},e.prototype.createScales=function(n){var r,i,a=this.attributes,o=a.type,s=a.scale,c=a.range,l=c===void 0?[]:c,u=a.spacing,f=this.containerShape,d=f.width,h=f.height,p=N(_y(n),2),v=p[0],g=p[1],y=new Yt({domain:[(r=l[0])!==null&&r!==void 0?r:v,(i=l[1])!==null&&i!==void 0?i:g],range:[h,h*(1-s)]});return o==="line"?{type:o,x:new Yt({domain:[0,n[0].length-1],range:[0,d]}),y}:{type:o,x:new Ia({domain:n[0].map(function(m,b){return b}),range:[0,d],paddingInner:u,paddingOuter:u/2,align:.5}),y}},e.tag="sparkline",e}(Pe);function s8(t){return typeof t=="boolean"?!1:"enter"in t&&"update"in t&&"exit"in t}function Ey(t){if(!t)return{enter:!1,update:!1,exit:!1};var e=["enter","update","exit"],n=Object.fromEntries(Object.entries(t).filter(function(r){var i=N(r,1),a=i[0];return!e.includes(a)}));return Object.fromEntries(e.map(function(r){return s8(t)?t[r]===!1?[r,!1]:[r,z(z({},t[r]),n)]:[r,n]}))}function ro(t,e){t?t.finished.then(e):e()}function c8(t,e){t.length===0?e():Promise.all(t.map(function(n){return n==null?void 0:n.finished})).then(e)}function cS(t,e){"update"in t?t.update(e):t.attr(e)}function lS(t,e,n){if(e.length===0)return null;if(!n){var r=e.slice(-1)[0];return cS(t,{style:r}),null}return t.animate(e,n)}function l8(t,e){return!(t.nodeName!=="text"||e.nodeName!=="text"||t.attributes.text!==e.attributes.text)}function u8(t,e,n,r){if(r===void 0&&(r="destroy"),l8(t,e))return t.remove(),[null];var i=function(){r==="destroy"?t.destroy():r==="hide"&&li(t),e.isVisible()&&Ks(e)};if(!n)return i(),[null];var a=n.duration,o=a===void 0?0:a,s=n.delay,c=s===void 0?0:s,l=Math.ceil(+o/2),u=+o/4,f=function(P){if(P.nodeName==="circle"){var T=N(P.getLocalPosition(),2),A=T[0],k=T[1],C=P.attr("r");return[A-C,k-C]}return P.getLocalPosition()},d=N(f(t),2),h=d[0],p=d[1],v=N(f(e),2),g=v[0],y=v[1],m=N([(h+g)/2-h,(p+y)/2-p],2),b=m[0],x=m[1],w=t.style.opacity,O=w===void 0?1:w,S=e.style.opacity,_=S===void 0?1:S,M=t.animate([{opacity:O,transform:"translate(0, 0)"},{opacity:0,transform:"translate(".concat(b,", ").concat(x,")")}],z(z({fill:"both"},n),{duration:c+l+u})),E=e.animate([{opacity:0,transform:"translate(".concat(-b,", ").concat(-x,")"),offset:.01},{opacity:_,transform:"translate(0, 0)"}],z(z({fill:"both"},n),{duration:l+u,delay:c+l-u}));return ro(E,i),[M,E]}function Vn(t,e,n){var r={},i={};return Object.entries(e).forEach(function(a){var o=N(a,2),s=o[0],c=o[1];if(!nt(c)){var l=t.style[s]||t.parsedStyle[s]||0;l!==c&&(r[s]=l,i[s]=c)}}),n?lS(t,[r,i],z({fill:"both"},n)):(cS(t,i),null)}function Vu(t,e){return t.style.opacity||(t.style.opacity=1),Vn(t,{opacity:0},e)}var uS={fill:"#fff",lineWidth:1,radius:2,size:10,stroke:"#bfbfbf",strokeOpacity:1,zIndex:0},fS={fill:"#000",fillOpacity:.45,fontSize:12,textAlign:"center",textBaseline:"middle",zIndex:1},dS={orientation:"horizontal",showLabel:!0,type:"start"},Zn=$n({foreground:"foreground",handle:"handle",selection:"selection",sparkline:"sparkline",sparklineGroup:"sparkline-group",track:"track",brushArea:"brush-area"},"slider"),Yr=$n({labelGroup:"label-group",label:"label",iconGroup:"icon-group",icon:"icon",iconRect:"icon-rect",iconLine:"icon-line"},"handle"),f8=function(t){rt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(n,r){var i=n.size,a=i===void 0?10:i,o=n.radius,s=o===void 0?a/4:o,c=n.orientation,l=$t(n,["size","radius","orientation"]),u=a,f=u*2.4,d=dt(r).maybeAppendByClassName(Yr.iconRect,"rect").styles(z(z({},l),{width:u,height:f,radius:s,x:-u/2,y:-f/2})),h=1/3*u,p=2/3*u,v=1/4*f,g=3/4*f;d.maybeAppendByClassName("".concat(Yr.iconLine,"-1"),"line").styles(z({x1:h,x2:h,y1:v,y2:g},l)),d.maybeAppendByClassName("".concat(Yr.iconLine,"-2"),"line").styles(z({x1:p,x2:p,y1:v,y2:g},l)),d.node().setOrigin(u/2,f/2),c==="vertical"?r.setLocalEulerAngles(90):r.setLocalEulerAngles(0)},e}(Pe),hS=function(t){rt(e,t);function e(n){return t.call(this,n,dS)||this}return e.prototype.renderLabel=function(n){var r=this,i=this.attributes.showLabel,a=vt(this.attributes,"label"),o=a.transform,s=$t(a,["transform"]),c=N(Rr(s,[]),2),l=c[0],u=c[1],f=dt(n).maybeAppendByClassName(Yr.labelGroup,"g").styles(u),d=z(z({},fS),l),h=d.text,p=$t(d,["text"]);on(!!i,f,function(v){r.label=v.maybeAppendByClassName(Yr.label,"text").styles(z(z({},p),{transform:o,text:"".concat(h)})),r.label.on("mousedown",function(g){g.stopPropagation()}),r.label.on("touchstart",function(g){g.stopPropagation()})})},e.prototype.renderIcon=function(n){var r=this.attributes,i=r.orientation,a=r.type,o=z(z({orientation:i},uS),vt(this.attributes,"icon")),s=this.attributes.iconShape,c=s===void 0?function(){return new f8({style:o})}:s,l=dt(n).maybeAppendByClassName(Yr.iconGroup,"g");l.selectAll(Yr.icon.class).data([c]).join(function(u){return u.append(typeof c=="string"?c:function(){return c(a)}).attr("className",Yr.icon.name)},function(u){return u.update(o)},function(u){return u.remove()})},e.prototype.render=function(n,r){this.renderIcon(r),this.renderLabel(r)},e}(Pe),pS=function(t){rt(e,t);function e(n){var r=t.call(this,n,z(z(z({animate:{duration:100,fill:"both"},brushable:!0,formatter:function(i){return i.toString()},handleSpacing:2,orientation:"horizontal",padding:0,autoFitLabel:!0,scrollable:!0,selectionFill:"#5B8FF9",selectionFillOpacity:.45,selectionZIndex:2,showHandle:!0,showLabel:!0,slidable:!0,trackFill:"#416180",trackLength:200,trackOpacity:.05,trackSize:20,trackZIndex:-1,values:[0,1],type:"range",selectionType:"select",handleIconOffset:0},Jn(dS,"handle")),Jn(uS,"handleIcon")),Jn(fS,"handleLabel")))||this;return r.range=[0,1],r.onDragStart=function(i){return function(a){a.stopPropagation(),r.target=i,r.prevPos=r.getOrientVal($l(a));var o=r.availableSpace,s=o.x,c=o.y,l=r.getBBox(),u=l.x,f=l.y;r.selectionStartPos=r.getRatio(r.prevPos-r.getOrientVal([s,c])-r.getOrientVal([+u,+f])),r.selectionWidth=0,document.addEventListener("pointermove",r.onDragging),document.addEventListener("pointerup",r.onDragEnd)}},r.onDragging=function(i){var a=r.attributes,o=a.slidable,s=a.brushable,c=a.type;i.stopPropagation();var l=r.getOrientVal($l(i)),u=l-r.prevPos;if(u){var f=r.getRatio(u);switch(r.target){case"start":o&&r.setValuesOffset(f);break;case"end":o&&r.setValuesOffset(0,f);break;case"selection":o&&r.setValuesOffset(f,f);break;case"track":if(!s)return;r.selectionWidth+=f,c==="range"?r.innerSetValues([r.selectionStartPos,r.selectionStartPos+r.selectionWidth].sort(),!0):r.innerSetValues([0,r.selectionStartPos+r.selectionWidth],!0);break}r.prevPos=l}},r.onDragEnd=function(){document.removeEventListener("pointermove",r.onDragging),document.removeEventListener("pointermove",r.onDragging),document.removeEventListener("pointerup",r.onDragEnd),r.target="",r.updateHandlesPosition(!1)},r.onValueChange=function(i){var a=r.attributes,o=a.onChange,s=a.type,c=s==="range"?i:i[1],l=s==="range"?r.getValues():r.getValues()[1],u=new Dt("valuechange",{detail:{oldValue:c,value:l}});r.dispatchEvent(u),o==null||o(l)},r.selectionStartPos=0,r.selectionWidth=0,r.prevPos=0,r.target="",r}return Object.defineProperty(e.prototype,"values",{get:function(){return this.attributes.values},set:function(n){this.attributes.values=this.clampValues(n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sparklineStyle",{get:function(){var n=this.attributes.orientation;if(n!=="horizontal")return null;var r=vt(this.attributes,"sparkline");return z(z({zIndex:0},this.availableSpace),r)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shape",{get:function(){var n=this.attributes,r=n.trackLength,i=n.trackSize,a=N(this.getOrientVal([[r,i],[i,r]]),2),o=a[0],s=a[1];return{width:o,height:s}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"availableSpace",{get:function(){var n=this.attributes.padding,r=N(Te(n),4),i=r[0],a=r[1],o=r[2],s=r[3],c=this.shape,l=c.width,u=c.height;return{x:s,y:i,width:l-(s+a),height:u-(i+o)}},enumerable:!1,configurable:!0}),e.prototype.getValues=function(){return this.values},e.prototype.setValues=function(n,r){n===void 0&&(n=[0,0]),r===void 0&&(r=!1),this.attributes.values=n;var i=r===!1?!1:this.attributes.animate;this.updateSelectionArea(i),this.updateHandlesPosition(i)},e.prototype.updateSelectionArea=function(n){var r=this.calcSelectionArea();this.foregroundGroup.selectAll(Zn.selection.class).each(function(i,a){Vn(this,r[a],n)})},e.prototype.updateHandlesPosition=function(n){this.attributes.showHandle&&(this.startHandle&&Vn(this.startHandle,this.getHandleStyle("start"),n),this.endHandle&&Vn(this.endHandle,this.getHandleStyle("end"),n))},e.prototype.innerSetValues=function(n,r){n===void 0&&(n=[0,0]),r===void 0&&(r=!1);var i=this.values,a=this.clampValues(n);this.attributes.values=a,this.setValues(a),r&&this.onValueChange(i)},e.prototype.renderTrack=function(n){var r=vt(this.attributes,"track");this.trackShape=dt(n).maybeAppendByClassName(Zn.track,"rect").styles(z(z({},this.shape),r))},e.prototype.renderBrushArea=function(n){var r=this.attributes.brushable;this.brushArea=dt(n).maybeAppendByClassName(Zn.brushArea,"rect").styles(z({fill:"transparent",cursor:r?"crosshair":"default"},this.shape))},e.prototype.renderSparkline=function(n){var r=this,i=this.attributes.orientation,a=dt(n).maybeAppendByClassName(Zn.sparklineGroup,"g");on(i==="horizontal",a,function(o){var s=r.sparklineStyle;o.maybeAppendByClassName(Zn.sparkline,function(){return new o8({style:s})}).update(s)})},e.prototype.renderHandles=function(){var n=this,r,i=this.attributes,a=i.showHandle,o=i.type,s=o==="range"?["start","end"]:["end"],c=a?s:[],l=this;(r=this.foregroundGroup)===null||r===void 0||r.selectAll(Zn.handle.class).data(c.map(function(u){return{type:u}}),function(u){return u.type}).join(function(u){return u.append(function(f){var d=f.type;return new hS({style:n.getHandleStyle(d)})}).each(function(f){var d=f.type;this.attr("class","".concat(Zn.handle.name," ").concat(d,"-handle"));var h="".concat(d,"Handle");l[h]=this,this.addEventListener("pointerdown",l.onDragStart(d))})},function(u){return u.each(function(f){var d=f.type;this.update(l.getHandleStyle(d))})},function(u){return u.each(function(f){var d=f.type,h="".concat(d,"Handle");l[h]=void 0}).remove()})},e.prototype.renderSelection=function(n){var r=this.attributes,i=r.type,a=r.selectionType;this.foregroundGroup=dt(n).maybeAppendByClassName(Zn.foreground,"g");var o=vt(this.attributes,"selection"),s=function(l){return l.style("visibility",function(u){return u.show?"visible":"hidden"}).style("cursor",function(u){return a==="select"?"grab":a==="invert"?"crosshair":"default"}).styles(o)},c=this;this.foregroundGroup.selectAll(Zn.selection.class).data(i==="value"?[]:this.calcSelectionArea().map(function(l,u){return{style:z({},l),index:u,show:a==="select"?u===1:u!==1}}),function(l){return l.index}).join(function(l){return l.append("rect").attr("className",Zn.selection.name).call(s).each(function(u,f){var d=this;f===1?(c.selectionShape=dt(this),this.on("pointerdown",function(h){d.attr("cursor","grabbing"),c.onDragStart("selection")(h)}),c.dispatchCustomEvent(this,"pointerenter","selectionMouseenter"),c.dispatchCustomEvent(this,"pointerleave","selectionMouseleave"),c.dispatchCustomEvent(this,"click","selectionClick"),this.addEventListener("pointerdown",function(){d.attr("cursor","grabbing")}),this.addEventListener("pointerup",function(){d.attr("cursor","pointer")}),this.addEventListener("pointerover",function(){d.attr("cursor","pointer")})):this.on("pointerdown",c.onDragStart("track"))})},function(l){return l.call(s)},function(l){return l.remove()}),this.updateSelectionArea(!1),this.renderHandles()},e.prototype.render=function(n,r){this.renderTrack(r),this.renderSparkline(r),this.renderBrushArea(r),this.renderSelection(r)},e.prototype.clampValues=function(n,r){var i;r===void 0&&(r=4);var a=N(this.range,2),o=a[0],s=a[1],c=N(this.getValues().map(function(g){return fh(g,r)}),2),l=c[0],u=c[1],f=Array.isArray(n)?n:[l,n??u],d=N((f||[l,u]).map(function(g){return fh(g,r)}),2),h=d[0],p=d[1];if(this.attributes.type==="value")return[0,ce(p,o,s)];h>p&&(i=N([p,h],2),h=i[0],p=i[1]);var v=p-h;return v>s-o?[o,s]:hs?u===s&&l===h?[h,s]:[s-v,s]:[h,p]},e.prototype.calcSelectionArea=function(n){var r=N(this.clampValues(n),2),i=r[0],a=r[1],o=this.availableSpace,s=o.x,c=o.y,l=o.width,u=o.height;return this.getOrientVal([[{y:c,height:u,x:s,width:i*l},{y:c,height:u,x:i*l+s,width:(a-i)*l},{y:c,height:u,x:a*l,width:(1-a)*l}],[{x:s,width:l,y:c,height:i*u},{x:s,width:l,y:i*u+c,height:(a-i)*u},{x:s,width:l,y:a*u,height:(1-a)*u}]])},e.prototype.calcHandlePosition=function(n){var r=this.attributes.handleIconOffset,i=this.availableSpace,a=i.x,o=i.y,s=i.width,c=i.height,l=N(this.clampValues(),2),u=l[0],f=l[1],d=n==="start"?-r:r,h=(n==="start"?u:f)*this.getOrientVal([s,c])+d;return{x:a+this.getOrientVal([h,s/2]),y:o+this.getOrientVal([c/2,h])}},e.prototype.inferTextStyle=function(n){var r=this.attributes.orientation;return r==="horizontal"?{}:n==="start"?{transform:"rotate(90)",textAlign:"start"}:n==="end"?{transform:"rotate(90)",textAlign:"end"}:{}},e.prototype.calcHandleText=function(n){var r,i=this.attributes,a=i.type,o=i.orientation,s=i.formatter,c=i.autoFitLabel,l=vt(this.attributes,"handle"),u=vt(l,"label"),f=l.spacing,d=this.getHandleSize(),h=this.clampValues(),p=n==="start"?h[0]:h[1],v=s(p),g=new f0({style:z(z(z({},u),this.inferTextStyle(n)),{text:v})}),y=g.getBBox(),m=y.width,b=y.height;if(g.destroy(),!c){if(a==="value")return{text:v,x:0,y:-b-f};var x=f+d+(o==="horizontal"?m/2:0);return r={text:v},r[o==="horizontal"?"x":"y"]=n==="start"?-x:x,r}var w=0,O=0,S=this.availableSpace,_=S.width,M=S.height,E=this.calcSelectionArea()[1],P=E.x,T=E.y,A=E.width,k=E.height,C=f+d;if(o==="horizontal"){var L=C+m/2;if(n==="start"){var I=P-C-m;w=I>0?-L:L}else{var R=_-P-A-C>m;w=R?L:-L}}else{var j=C,D=b+C;n==="start"?O=T-d>b?-D:j:O=M-(T+k)-d>b?D:-j}return{x:w,y:O,text:v}},e.prototype.getHandleLabelStyle=function(n){var r=vt(this.attributes,"handleLabel");return z(z(z({},r),this.calcHandleText(n)),this.inferTextStyle(n))},e.prototype.getHandleIconStyle=function(){var n=this.attributes.handleIconShape,r=vt(this.attributes,"handleIcon"),i=this.getOrientVal(["ew-resize","ns-resize"]),a=this.getHandleSize();return z({cursor:i,shape:n,size:a},r)},e.prototype.getHandleStyle=function(n){var r=this.attributes,i=r.showLabel,a=r.showLabelOnInteraction,o=r.orientation,s=this.calcHandlePosition(n),c=this.calcHandleText(n),l=i;return!i&&a&&(this.target?l=!0:l=!1),z(z(z(z({},Jn(this.getHandleIconStyle(),"icon")),Jn(z(z({},this.getHandleLabelStyle(n)),c),"label")),s),{orientation:o,showLabel:l,type:n,zIndex:3})},e.prototype.getHandleSize=function(){var n=this.attributes,r=n.handleIconSize,i=n.width,a=n.height;return r||Math.floor((this.getOrientVal([+a,+i])+4)/2.4)},e.prototype.getOrientVal=function(n){var r=N(n,2),i=r[0],a=r[1],o=this.attributes.orientation;return o==="horizontal"?i:a},e.prototype.setValuesOffset=function(n,r,i){r===void 0&&(r=0),i===void 0&&(i=!1);var a=this.attributes.type,o=N(this.getValues(),2),s=o[0],c=o[1],l=a==="range"?n:0,u=[s+l,c+r].sort();i?this.setValues(u):this.innerSetValues(u,!0)},e.prototype.getRatio=function(n){var r=this.availableSpace,i=r.width,a=r.height;return n/this.getOrientVal([i,a])},e.prototype.dispatchCustomEvent=function(n,r,i){var a=this;n.on(r,function(o){o.stopPropagation(),a.dispatchEvent(new Dt(i,{detail:o}))})},e.prototype.bindEvents=function(){this.addEventListener("wheel",this.onScroll);var n=this.brushArea;this.dispatchCustomEvent(n,"click","trackClick"),this.dispatchCustomEvent(n,"pointerenter","trackMouseenter"),this.dispatchCustomEvent(n,"pointerleave","trackMouseleave"),n.on("pointerdown",this.onDragStart("track"))},e.prototype.onScroll=function(n){var r=this.attributes.scrollable;if(r){var i=n.deltaX,a=n.deltaY,o=a||i,s=this.getRatio(o);this.setValuesOffset(s,s,!0)}},e.tag="slider",e}(Pe),d8=function(t){rt(e,t);function e(n){var r=t.call(this,n,{isRound:!0,orientation:"vertical",padding:[2,2,2,2],scrollable:!0,slidable:!0,thumbCursor:"default",trackSize:10,value:0})||this;return r.range=[0,1],r.onValueChange=function(i){var a=r.attributes.value;if(i!==a){var o={detail:{oldValue:i,value:a}};r.dispatchEvent(new Dt("scroll",o)),r.dispatchEvent(new Dt("valuechange",o))}},r.onTrackClick=function(i){var a=r.attributes.slidable;if(a){var o=N(r.getLocalPosition(),2),s=o[0],c=o[1],l=N(r.padding,4),u=l[0],f=l[3],d=r.getOrientVal([s+f,c+u]),h=r.getOrientVal($l(i)),p=(h-d)/r.trackLength;r.setValue(p,!0)}},r.onThumbMouseenter=function(i){r.dispatchEvent(new Dt("thumbMouseenter",{detail:i.detail}))},r.onTrackMouseenter=function(i){r.dispatchEvent(new Dt("trackMouseenter",{detail:i.detail}))},r.onThumbMouseleave=function(i){r.dispatchEvent(new Dt("thumbMouseleave",{detail:i.detail}))},r.onTrackMouseleave=function(i){r.dispatchEvent(new Dt("trackMouseleave",{detail:i.detail}))},r}return Object.defineProperty(e.prototype,"padding",{get:function(){var n=this.attributes.padding;return Te(n)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){var n=this.attributes.value,r=N(this.range,2),i=r[0],a=r[1];return ce(n,i,a)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trackLength",{get:function(){var n=this.attributes,r=n.viewportLength,i=n.trackLength,a=i===void 0?r:i;return a},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"availableSpace",{get:function(){var n=this.attributes.trackSize,r=this.trackLength,i=N(this.padding,4),a=i[0],o=i[1],s=i[2],c=i[3],l=N(this.getOrientVal([[r,n],[n,r]]),2),u=l[0],f=l[1];return{x:c,y:a,width:+u-(c+o),height:+f-(a+s)}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"trackRadius",{get:function(){var n=this.attributes,r=n.isRound,i=n.trackSize;return r?i/2:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"thumbRadius",{get:function(){var n=this.attributes,r=n.isRound,i=n.thumbRadius;if(!r)return 0;var a=this.availableSpace,o=a.width,s=a.height;return i||this.getOrientVal([s,o])/2},enumerable:!1,configurable:!0}),e.prototype.getValues=function(n){n===void 0&&(n=this.value);var r=this.attributes,i=r.viewportLength,a=r.contentLength,o=i/a,s=N(this.range,2),c=s[0],l=s[1],u=n*(l-c-o);return[u,u+o]},e.prototype.getValue=function(){return this.value},e.prototype.renderSlider=function(n){var r=this.attributes,i=r.orientation,a=r.trackSize,o=r.padding,s=r.slidable,c=vt(this.attributes,"track"),l=vt(this.attributes,"thumb"),u=z(z({brushable:!1,orientation:i,padding:o,selectionRadius:this.thumbRadius,showHandle:!1,slidable:s,trackLength:this.trackLength,trackRadius:this.trackRadius,trackSize:a,values:this.getValues()},Jn(c,"track")),Jn(l,"selection"));this.slider=dt(n).maybeAppendByClassName("scrollbar",function(){return new pS({style:u})}).update(u).node()},e.prototype.render=function(n,r){this.renderSlider(r)},e.prototype.setValue=function(n,r){r===void 0&&(r=!1);var i=this.attributes.value,a=N(this.range,2),o=a[0],s=a[1];this.slider.setValues(this.getValues(ce(n,o,s)),r),this.onValueChange(i)},e.prototype.bindEvents=function(){var n=this;this.slider.addEventListener("trackClick",function(r){r.stopPropagation(),n.onTrackClick(r.detail)}),this.onHover()},e.prototype.getOrientVal=function(n){var r=this.attributes.orientation;return r==="horizontal"?n[0]:n[1]},e.prototype.onHover=function(){this.slider.addEventListener("selectionMouseenter",this.onThumbMouseenter),this.slider.addEventListener("trackMouseenter",this.onTrackMouseenter),this.slider.addEventListener("selectionMouseleave",this.onThumbMouseleave),this.slider.addEventListener("trackMouseleave",this.onTrackMouseleave)},e.tag="scrollbar",e}(Pe),g0={data:[],animate:{enter:!1,update:{duration:100,easing:"ease-in-out-sine",fill:"both"},exit:{duration:100,fill:"both"}},showArrow:!0,showGrid:!0,showLabel:!0,showLine:!0,showTick:!0,showTitle:!0,showTrunc:!1,dataThreshold:100,lineLineWidth:1,lineStroke:"black",crossPadding:10,titleFill:"black",titleFontSize:12,titlePosition:"lb",titleSpacing:0,titleTextAlign:"center",titleTextBaseline:"middle",lineArrow:function(){return new Xe({style:{path:[["M",10,10],["L",-10,0],["L",10,-10],["L",0,0],["L",10,10],["Z"]],anchor:"0.5 0.5",fill:"black",transformOrigin:"center"}})},labelAlign:"parallel",labelDirection:"positive",labelFontSize:12,labelSpacing:0,gridConnect:"line",gridControlAngles:[],gridDirection:"positive",gridLength:0,gridType:"segment",lineArrowOffset:15,lineArrowSize:10,tickDirection:"positive",tickLength:5,tickLineWidth:1,tickStroke:"black",labelOverlap:[]};X({},g0,{style:{type:"arc"}});X({},g0,{style:{}});var Rt=$n({mainGroup:"main-group",gridGroup:"grid-group",grid:"grid",lineGroup:"line-group",line:"line",tickGroup:"tick-group",tick:"tick",tickItem:"tick-item",labelGroup:"label-group",label:"label",labelItem:"label-item",titleGroup:"title-group",title:"title",lineFirst:"line-first",lineSecond:"line-second"},"axis"),Ga=$n({lineGroup:"line-group",line:"line",regionGroup:"region-group",region:"region"},"grid");function vS(t){return t.reduce(function(e,n,r){return e.push(q([r===0?"M":"L"],N(n),!1)),e},[])}function h8(t,e,n){var r=e.connect,i=r===void 0?"line":r,a=e.center;if(i==="line")return vS(t);if(!a)return[];var o=gs(t[0],a),s=n?0:1;return t.reduce(function(c,l,u){return u===0?c.push(q(["M"],N(l),!1)):c.push(q(["A",o,o,0,0,s],N(l),!1)),c},[])}function dh(t,e,n){return e.type==="surround"?h8(t,e,n):vS(t)}function p8(t,e,n){var r=n.type,i=n.connect,a=n.center,o=n.closed,s=o?[["Z"]]:[],c=N([dh(t,n),dh(e.slice().reverse(),n,!0)],2),l=c[0],u=c[1],f=N([t[0],e.slice(-1)[0]],2),d=f[0],h=f[1],p=function(m,b){return[l,m,u,b,s].flat()};if(i==="line"||r==="surround")return p([q(["L"],N(h),!1)],[q(["L"],N(d),!1)]);if(!a)throw new Error("Arc grid need to specified center");var v=N([gs(h,a),gs(d,a)],2),g=v[0],y=v[1];return p([q(["A",g,g,0,0,1],N(h),!1),q(["L"],N(h),!1)],[q(["A",y,y,0,0,0],N(d),!1),q(["L"],N(d),!1)])}function v8(t,e,n,r){var i=n.animate,a=n.isBillboard,o=e.map(function(s,c){return{id:s.id||"grid-line-".concat(c),path:dh(s.points,n)}});return t.selectAll(Ga.line.class).data(o,function(s){return s.id}).join(function(s){return s.append("path").each(function(c,l){var u=Rn(wy(z({path:c.path},r)),[c,l,o]);this.attr(z({class:Ga.line.name,stroke:"#D9D9D9",lineWidth:1,lineDash:[4,4],isBillboard:a},u))})},function(s){return s.transition(function(c,l){var u=Rn(wy(z({path:c.path},r)),[c,l,o]);return Vn(this,u,i.update)})},function(s){return s.transition(function(){var c=this,l=Vu(this,i.exit);return ro(l,function(){return c.remove()}),l})}).transitions()}function g8(t,e,n){var r=n.animate,i=n.connect,a=n.areaFill;if(e.length<2||!a||!i)return[];for(var o=Array.isArray(a)?a:[a,"transparent"],s=function(p){return o[p%o.length]},c=[],l=0;l180?1:0,_=t>e?0:1;return"M".concat(p,",").concat(v,",A").concat(s,",").concat(c,",0,").concat(S,",").concat(_,",").concat(y,",").concat(m)}function w8(t){var e=t.attributes,n=e.startAngle,r=e.endAngle,i=e.center,a=e.radius;return q(q([n,r],N(i),!1),[a],!1)}function O8(t,e,n,r){var i=e.startAngle,a=e.endAngle,o=e.center,s=e.radius;return t.selectAll(Rt.line.class).data([{path:Py.apply(void 0,q(q([i,a],N(o),!1),[s],!1))}],function(c,l){return l}).join(function(c){return c.append("path").attr("className",Rt.line.name).styles(e).styles({path:function(l){return l.path}})},function(c){return c.transition(function(){var l=this,u=dI(this,w8(this),q(q([i,a],N(o),!1),[s],!1),r.update);if(u){var f=function(){var d=je(l.attributes,"__keyframe_data__");l.style.path=Py.apply(void 0,q([],N(d),!1))};u.onframe=f,u.onfinish=f}return u}).styles(e)},function(c){return c.remove()}).styles(n).transitions()}function S8(t,e){e.truncRange,e.truncShape,e.lineExtension}function _8(t,e,n){n===void 0&&(n=[0,0]);var r=N([t,e,n],3),i=N(r[0],2),a=i[0],o=i[1],s=N(r[1],2),c=s[0],l=s[1],u=N(r[2],2),f=u[0],d=u[1],h=N([c-a,l-o],2),p=h[0],v=h[1],g=Math.sqrt(Math.pow(p,2)+Math.pow(v,2)),y=N([-f/g,d/g],2),m=y[0],b=y[1];return[m*p,m*v,b*p,b*v]}function Ay(t){var e=N(t,2),n=N(e[0],2),r=n[0],i=n[1],a=N(e[1],2),o=a[0],s=a[1];return{x1:r,y1:i,x2:o,y2:s}}function M8(t,e,n,r){var i=e.showTrunc,a=e.startPos,o=e.endPos,s=e.truncRange,c=e.lineExtension,l=N([a,o],2),u=N(l[0],2),f=u[0],d=u[1],h=N(l[1],2),p=h[0],v=h[1],g=N(c?_8(a,o,c):new Array(4).fill(0),4),y=g[0],m=g[1],b=g[2],x=g[3],w=function(R){return t.selectAll(Rt.line.class).data(R,function(j,D){return D}).join(function(j){return j.append("line").attr("className",function(D){return"".concat(Rt.line.name," ").concat(D.className)}).styles(n).transition(function(D){return Vn(this,Ay(D.line),!1)})},function(j){return j.styles(n).transition(function(D){var $=D.line;return Vn(this,Ay($),r.update)})},function(j){return j.remove()}).transitions()};if(!i||!s)return w([{line:[[f+y,d+m],[p+b,v+x]],className:Rt.line.name}]);var O=N(s,2),S=O[0],_=O[1],M=p-f,E=v-d,P=N([f+M*S,d+E*S],2),T=P[0],A=P[1],k=N([f+M*_,d+E*_],2),C=k[0],L=k[1],I=w([{line:[[f+y,d+m],[T,A]],className:Rt.lineFirst.name},{line:[[C,L],[p+b,v+x]],className:Rt.lineSecond.name}]);return S8(t,e),I}function E8(t,e,n,r){var i=n.showArrow,a=n.showTrunc,o=n.lineArrow,s=n.lineArrowOffset,c=n.lineArrowSize,l;if(e==="arc"?l=t.select(Rt.line.class):a?l=t.select(Rt.lineSecond.class):l=t.select(Rt.line.class),!i||!o||n.type==="arc"&&xS(n.startAngle,n.endAngle)){var u=l.node();u&&(u.style.markerEnd=void 0);return}var f=Yi(o);f.attr(r),h0(f,c,!0),l.style("markerEnd",f).style("markerEndOffset",-s)}function P8(t,e,n){var r=e.type,i,a=vt(e,"line");return r==="linear"?i=M8(t,e,xy(a,"arrow"),n):i=O8(t,e,xy(a,"arrow"),n),E8(t,r,e,a),i}function A8(t,e){return m0(t,e.gridDirection,e)}function wS(t){var e=t.type,n=t.gridCenter;return e==="linear"?n:n||t.center}function k8(t,e){var n=e.gridLength;return t.map(function(r,i){var a=r.value,o=N(Uu(a,e),2),s=o[0],c=o[1],l=N(Or(A8(a,e),n),2),u=l[0],f=l[1];return{id:i,points:[[s,c],[s+u,c+f]]}})}function T8(t,e){var n=e.gridControlAngles,r=wS(e);if(!r)throw new Error("grid center is not provide");if(t.length<2)throw new Error("Invalid grid data");if(!n||n.length===0)throw new Error("Invalid gridControlAngles");var i=N(r,2),a=i[0],o=i[1];return t.map(function(s,c){var l=s.value,u=N(Uu(l,e),2),f=u[0],d=u[1],h=N([f-a,d-o],2),p=h[0],v=h[1],g=[];return n.forEach(function(y){var m=za(y),b=N([Math.cos(m),Math.sin(m)],2),x=b[0],w=b[1],O=p*x-v*w+a,S=p*w+v*x+o;g.push([O,S])}),{points:g,id:c}})}function C8(t,e,n,r){var i=vt(n,"grid"),a=i.type,o=i.areaFill,s=wS(n),c=y0(e,n.gridFilter),l=a==="segment"?k8(c,n):T8(c,n),u=z(z({},i),{center:s,areaFill:Ve(o)?c.map(function(f,d){return Rn(o,[f,d,c])}):o,animate:r,data:l});return t.selectAll(Rt.grid.class).data([1]).join(function(f){return f.append(function(){return new m8({style:u})}).attr("className",Rt.grid.name)},function(f){return f.transition(function(){return this.update(u)})},function(f){return f.remove()}).transitions()}var hh=function(){function t(e,n,r,i){this.set(e,n,r,i)}return Object.defineProperty(t.prototype,"left",{get:function(){return this.x1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.y1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.x2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.y2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.defined("x2")&&this.defined("x1")?this.x2-this.x1:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.defined("y2")&&this.defined("y1")?this.y2-this.y1:void 0},enumerable:!1,configurable:!0}),t.prototype.rotatedPoints=function(e,n,r){var i=this,a=i.x1,o=i.y1,s=i.x2,c=i.y2,l=Math.cos(e),u=Math.sin(e),f=n-n*l+r*u,d=r-n*u-r*l,h=[[l*a-u*c+f,u*a+l*c+d],[l*s-u*c+f,u*s+l*c+d],[l*a-u*o+f,u*a+l*o+d],[l*s-u*o+f,u*s+l*o+d]];return h},t.prototype.set=function(e,n,r,i){return r0,m=r-c,b=i-l,x=d*b-h*m;if(x<0===y)return!1;var w=p*b-v*m;return!(w<0===y||x>g===y||w>g===y)}function D8(t,e){var n=[[t[0],t[1],t[2],t[3]],[t[2],t[3],t[4],t[5]],[t[4],t[5],t[6],t[7]],[t[6],t[7],t[0],t[1]]];return n.some(function(r){return j8(e,r)})}function $8(t,e,n){var r,i,a=ph(t,n).flat(1),o=ph(e,n).flat(1),s=[[a[0],a[1],a[2],a[3]],[a[0],a[1],a[4],a[5]],[a[4],a[5],a[6],a[7]],[a[2],a[3],a[6],a[7]]];try{for(var c=vn(s),l=c.next();!l.done;l=c.next()){var u=l.value;if(D8(o,u))return!0}}catch(f){r={error:f}}finally{try{l&&!l.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}return!1}function B8(t,e){var n=t.type,r=t.labelDirection,i=t.crossSize;if(!i)return!1;if(n==="arc"){var a=t.center,o=t.radius,s=N(a,2),c=s[0],l=s[1],u=r==="negative"?0:i,f=-o-u,d=o+u,h=N(Te(e),4),p=h[0],v=h[1],g=h[2],y=h[3];return new hh(c+f-y,l+f-p,c+d+v,l+d+g)}var m=N(t.startPos,2),b=m[0],x=m[1],w=N(t.endPos,2),O=w[0],S=w[1],_=N(bS(t)?[-e,0,e,0]:[0,e,0,-e],4),M=_[0],E=_[1],P=_[2],T=_[3],A=Zs(0,t),k=Or(A,i),C=new hh(b,x,O,S);return C.x1+=T,C.y1+=M,C.x2+=E+k[0],C.y2+=P+k[1],C}function qu(t,e,n){var r,i,a=e.crossPadding,o=new Set,s=null,c=B8(e,a),l=function(p){return c?I8(c,p):!0},u=function(p,v){return p?!$8(p,v,Te(n)):!0};try{for(var f=vn(t),d=f.next();!d.done;d=f.next()){var h=d.value;l(h)?!s||u(s,h)?s=h:(o.add(s),o.add(h)):o.add(h)}}catch(p){r={error:p}}finally{try{d&&!d.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}return Array.from(o)}function qf(t,e){return e===void 0&&(e={}),nt(t)?0:typeof t=="number"?t:Math.floor(oI(t,e))}function F8(t,e,n,r){if(!(t.length<=1)){var i=e.suffix,a=i===void 0?"...":i,o=e.minLength,s=e.maxLength,c=s===void 0?1/0:s,l=e.step,u=l===void 0?" ":l,f=e.margin,d=f===void 0?[0,0,0,0]:f,h=eS(r.getTextShape(t[0])),p=qf(u,h),v=o?qf(o,h):p,g=qf(c,h);(nt(g)||g===1/0)&&(g=Math.max.apply(null,t.map(function(O){return b0(O).width})));var y=t.slice(),m=N(d,4);m[0],m[1],m[2],m[3];for(var b=function(O){if(y.forEach(function(S){r.ellipsis(r.getTextShape(S),O,a)}),y=qu(t,n,d),y.length<1)return{value:void 0}},x=g;x>v+p;x-=p){var w=b(x);if(typeof w=="object")return w.value}}}var z8={parity:function(t,e){var n=e.seq,r=n===void 0?2:n;return t.filter(function(i,a){return a%r?(li(i),!1):!0})}},G8=function(t){return t.filter(tS)};function Y8(t,e,n,r){var i=t.length,a=e.keepHeader,o=e.keepTail;if(!(i<=1||i===2&&a&&o)){var s=z8.parity,c=function(b){return b.forEach(r.show),b},l=2,u=t.slice(),f=t.slice(),d=Math.min.apply(Math,q([1],N(t.map(function(b){return b0(b).width})),!1));if(n.type==="linear"&&(mS(n)||bS(n))){var h=Oy(t[0]).left,p=Oy(t[i-1]).right,v=Math.abs(p-h)||1;l=Math.max(Math.floor(i*d/v),l)}var g,y;for(a&&(g=u.splice(0,1)[0]),o&&(y=u.splice(-1,1)[0],u.reverse()),c(u);ls)){for(var y=h;y<=s;y++)if(g(y),p())return;l&&g(d)}}var X8=new Map([["hide",Y8],["rotate",W8],["ellipsis",F8],["wrap",V8]]);function U8(t,e,n){return e.labelOverlap.length<1?!1:n==="hide"?!iI(t[0]):n==="rotate"?!t.some(function(r){var i;return!!(!((i=r.attr("transform"))===null||i===void 0)&&i.includes("rotate"))}):n==="ellipsis"||n==="wrap"?t.filter(function(r){return r.querySelector("text")}).length>1:!0}function q8(t,e,n){var r=e.labelOverlap,i=r===void 0?[]:r;i.length&&i.forEach(function(a){var o=a.type,s=X8.get(o);U8(t,e,o)&&(s==null||s(t,a,e,n))})}function K8(){for(var t=[],e=0;e2?[t[0]]:t.split("")}function sj(t,e){var n=t.attributes,r=n.position,i=n.spacing,a=n.inset,o=n.text,s=t.getBBox(),c=e.getBBox(),l=Ku(r),u=N(Te(o?i:0),4),f=u[0],d=u[1],h=u[2],p=u[3],v=N(Te(a),4),g=v[0],y=v[1],m=v[2],b=v[3],x=N([p+d,f+h],2),w=x[0],O=x[1],S=N([b+y,g+m],2),_=S[0],M=S[1];if(l[0]==="l")return new Qt(s.x,s.y,c.width+s.width+w+_,Math.max(c.height+M,s.height));if(l[0]==="t")return new Qt(s.x,s.y,Math.max(c.width+_,s.width),c.height+s.height+O+M);var E=N([e.attributes.width||c.width,e.attributes.height||c.height],2),P=E[0],T=E[1];return new Qt(c.x,c.y,P+s.width+w+_,T+s.height+O+M)}function cj(t,e){var n=Object.entries(e).reduce(function(r,i){var a=N(i,2),o=a[0],s=a[1],c=t.node().attr(o);return c||(r[o]=s),r},{});t.styles(n)}function lj(t){var e,n,r,i,a=t,o=a.width,s=a.height,c=a.position,l=N([+o/2,+s/2],2),u=l[0],f=l[1],d=N([+u,+f,"center","middle"],4),h=d[0],p=d[1],v=d[2],g=d[3],y=Ku(c);return y.includes("l")&&(e=N([0,"start"],2),h=e[0],v=e[1]),y.includes("r")&&(n=N([+o,"end"],2),h=n[0],v=n[1]),y.includes("t")&&(r=N([0,"top"],2),p=r[0],g=r[1]),y.includes("b")&&(i=N([+s,"bottom"],2),p=i[0],g=i[1]),{x:h,y:p,textAlign:v,textBaseline:g}}var MS=function(t){rt(e,t);function e(n){return t.call(this,n,{text:"",width:0,height:0,fill:"#4a505a",fontWeight:"bold",fontSize:12,fontFamily:"sans-serif",inset:0,spacing:0,position:"top-left"})||this}return e.prototype.getAvailableSpace=function(){var n=this,r=this.attributes,i=r.width,a=r.height,o=r.position,s=r.spacing,c=r.inset,l=n.querySelector(Ry.text.class);if(!l)return new Qt(0,0,+i,+a);var u=l.getBBox(),f=u.width,d=u.height,h=N(Te(s),4),p=h[0],v=h[1],g=h[2],y=h[3],m=N([0,0,+i,+a],4),b=m[0],x=m[1],w=m[2],O=m[3],S=Ku(o);if(S.includes("i"))return new Qt(b,x,w,O);S.forEach(function(L,I){var R,j,D,$;L==="t"&&(R=N(I===0?[d+g,+a-d-g]:[0,+a],2),x=R[0],O=R[1]),L==="r"&&(j=N([+i-f-y],1),w=j[0]),L==="b"&&(D=N([+a-d-p],1),O=D[0]),L==="l"&&($=N(I===0?[f+v,+i-f-v]:[0,+i],2),b=$[0],w=$[1])});var _=N(Te(c),4),M=_[0],E=_[1],P=_[2],T=_[3],A=N([T+E,M+P],2),k=A[0],C=A[1];return new Qt(b+T,x+M,w-k,O-C)},e.prototype.getBBox=function(){return this.title?this.title.getBBox():new Qt(0,0,0,0)},e.prototype.render=function(n,r){var i=this;n.width,n.height,n.position,n.spacing;var a=$t(n,["width","height","position","spacing"]),o=N(Rr(a),1),s=o[0],c=lj(n),l=c.x,u=c.y,f=c.textAlign,d=c.textBaseline;on(!!a.text,dt(r),function(h){i.title=h.maybeAppendByClassName(Ry.text,"text").styles(s).call(cj,{x:l,y:u,textAlign:f,textBaseline:d}).node()})},e}(Pe);function uj(t,e,n){var r=n.titlePosition,i=r===void 0?"lb":r,a=n.titleSpacing,o=Ku(i),s=t.node().getLocalBounds(),c=N(s.min,2),l=c[0],u=c[1],f=N(s.halfExtents,2),d=f[0],h=f[1],p=N(e.node().getLocalBounds().halfExtents,2),v=p[0],g=p[1],y=N([l+d,u+h],2),m=y[0],b=y[1],x=N(Te(a),4),w=x[0],O=x[1],S=x[2],_=x[3];if(["start","end"].includes(i)&&n.type==="linear"){var M=n.startPos,E=n.endPos,P=N(i==="start"?[M,E]:[E,M],2),T=P[0],A=P[1],k=iS([-A[0]+T[0],-A[1]+T[1]]),C=N(Or(k,w),2),L=C[0],I=C[1];return{x:T[0]+L,y:T[1]+I}}return o.includes("t")&&(b-=h+g+w),o.includes("r")&&(m+=d+v+O),o.includes("l")&&(m-=d+v*2+_),o.includes("b")&&(b+=h+g*2+S),{x:m,y:b}}function fj(t,e,n){var r=t.cloneNode(!0);r.style.transform="scale(1, 1)",r.style.transform="none";var i=r.getBBox().height;if(e==="vertical"){if(n==="left")return"rotate(-90) translate(0, ".concat(i/2,")");if(n==="right")return"rotate(-90) translate(0, -".concat(i/2,")")}return""}function Iy(t,e,n,r,i){var a=vt(r,"title"),o=N(Rr(a),2),s=o[0],c=o[1],l=c.transform,u=$t(c,["transform"]);t.styles(s),e.styles(u);var f=l||fj(t.node(),s.direction,s.position);Bl(t.node(),f);var d=uj(dt(n._offscreen||n.querySelector(Rt.mainGroup.class)),e,r),h=d.x,p=d.y,v=Vn(e.node(),{x:h,y:p},i);return Bl(t.node(),f),v}function dj(t,e,n,r){var i=n.titleText;return t.selectAll(Rt.title.class).data([{title:i}].filter(function(a){return!!a.title}),function(a,o){return a.title}).join(function(a){return a.append(function(){return Yi(i)}).attr("className",Rt.title.name).transition(function(){return Iy(dt(this),t,e,n,r.enter)})},function(a){return a.transition(function(){return Iy(dt(this),t,e,n,r.update)})},function(a){return a.remove()}).transitions()}function jy(t,e,n,r){var i=t.showLine,a=t.showTick,o=t.showLabel,s=e.maybeAppendByClassName(Rt.lineGroup,"g"),c=on(i,s,function(h){return P8(h,t,r)})||[],l=e.maybeAppendByClassName(Rt.tickGroup,"g"),u=on(a,l,function(h){return oj(h,n,t,r)})||[],f=e.maybeAppendByClassName(Rt.labelGroup,"g"),d=on(o,f,function(h){return ej(h,n,t,r)})||[];return q(q(q([],N(c),!1),N(u),!1),N(d),!1).filter(function(h){return!!h})}var x0=function(t){rt(e,t);function e(n){return t.call(this,n,g0)||this}return e.prototype.render=function(n,r,i){var a=this,o=n.titleText,s=n.data,c=n.animate,l=n.showTitle,u=n.showGrid,f=n.dataThreshold,d=n.truncRange,h=wI(s,f).filter(function(w){var O=w.value;return!(d&&O>d[0]&&O1?{width:55,height:0}:{width:0,height:0}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pageShape",{get:function(){var n=this.pageViews,r=N(LI(n.map(function(f){var d=f.getBBox(),h=d.width,p=d.height;return[h,p]})).map(function(f){return Math.max.apply(Math,q([],N(f),!1))}),2),i=r[0],a=r[1],o=this.attributes,s=o.pageWidth,c=s===void 0?i:s,l=o.pageHeight,u=l===void 0?a:l;return{pageWidth:c,pageHeight:u}},enumerable:!1,configurable:!0}),e.prototype.getContainer=function(){return this.playWindow},Object.defineProperty(e.prototype,"totalPages",{get:function(){return this.pageViews.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currPage",{get:function(){return this.innerCurrPage},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var n=t.prototype.getBBox.call(this),r=n.x,i=n.y,a=this.controllerShape,o=this.pageShape,s=o.pageWidth,c=o.pageHeight;return new Qt(r,i,s+a.width,c)},e.prototype.goTo=function(n){var r=this,i=this.attributes.animate,a=this,o=a.currPage,s=a.playState,c=a.playWindow,l=a.pageViews;if(s!=="idle"||n<0||l.length<=0||n>=l.length)return null;l[o].setLocalPosition(0,0),this.prepareFollowingPage(n);var u=N(this.getFollowingPageDiff(n),2),f=u[0],d=u[1];this.playState="running";var h=lS(c,[{transform:"translate(0, 0)"},{transform:"translate(".concat(-f,", ").concat(-d,")")}],i);return ro(h,function(){r.innerCurrPage=n,r.playState="idle",r.setVisiblePages([n]),r.updatePageInfo()}),h},e.prototype.prev=function(){var n=this.attributes.loop,r=this.pageViews.length,i=this.currPage;if(!n&&i<=0)return null;var a=n?(i-1+r)%r:ce(i-1,0,r);return this.goTo(a)},e.prototype.next=function(){var n=this.attributes.loop,r=this.pageViews.length,i=this.currPage;if(!n&&i>=r-1)return null;var a=n?(i+1)%r:ce(i+1,0,r);return this.goTo(a)},e.prototype.renderClipPath=function(n){var r=this.pageShape,i=r.pageWidth,a=r.pageHeight;if(!i||!a){this.contentGroup.style.clipPath=void 0;return}this.clipPath=n.maybeAppendByClassName(En.clipPath,"rect").styles({width:i,height:a}),this.contentGroup.attr("clipPath",this.clipPath.node())},e.prototype.setVisiblePages=function(n){this.playWindow.children.forEach(function(r,i){n.includes(i)?Ks(r):li(r)})},e.prototype.adjustControllerLayout=function(){var n=this,r=n.prevBtnGroup,i=n.nextBtnGroup,a=n.pageInfoGroup,o=this.attributes,s=o.orientation,c=o.controllerPadding,l=a.getBBox(),u=l.width;l.height;var f=N(s==="horizontal"?[-180,0]:[-90,90],2),d=f[0],h=f[1];r.setLocalEulerAngles(d),i.setLocalEulerAngles(h);var p=r.getBBox(),v=p.width,g=p.height,y=i.getBBox(),m=y.width,b=y.height,x=Math.max(v,u,m),w=s==="horizontal"?{offset:[[0,0],[v/2+c,0],[v+u+c*2,0]],textAlign:"start"}:{offset:[[x/2,-g-c],[x/2,0],[x/2,b+c]],textAlign:"center"},O=N(w.offset,3),S=N(O[0],2),_=S[0],M=S[1],E=N(O[1],2),P=E[0],T=E[1],A=N(O[2],2),k=A[0],C=A[1],L=w.textAlign,I=a.querySelector("text");I&&(I.style.textAlign=L),r.setLocalPosition(_,M),a.setLocalPosition(P,T),i.setLocalPosition(k,C)},e.prototype.updatePageInfo=function(){var n,r=this,i=r.currPage,a=r.pageViews,o=r.attributes.formatter;a.length<2||((n=this.pageInfoGroup.querySelector(En.pageInfo.class))===null||n===void 0||n.attr("text",o(i+1,a.length)),this.adjustControllerLayout())},e.prototype.getFollowingPageDiff=function(n){var r=this.currPage;if(r===n)return[0,0];var i=this.attributes.orientation,a=this.pageShape,o=a.pageWidth,s=a.pageHeight,c=n=2,l=n.maybeAppendByClassName(En.controller,"g");if(Hu(l.node(),c),!!c){var u=vt(this.attributes,"button"),f=vt(this.attributes,"pageNum"),d=N(Rr(u),2),h=d[0],p=d[1],v=h.size,g=$t(h,["size"]),y=!l.select(En.prevBtnGroup.class).node(),m=l.maybeAppendByClassName(En.prevBtnGroup,"g").styles(p);this.prevBtnGroup=m.node();var b=m.maybeAppendByClassName(En.prevBtn,"path"),x=l.maybeAppendByClassName(En.nextBtnGroup,"g").styles(p);this.nextBtnGroup=x.node();var w=x.maybeAppendByClassName(En.nextBtn,"path");[b,w].forEach(function(S){S.styles(z(z({},g),{transformOrigin:"center"})),h0(S.node(),v,!0)});var O=l.maybeAppendByClassName(En.pageInfoGroup,"g");this.pageInfoGroup=O.node(),O.maybeAppendByClassName(En.pageInfo,"text").styles(f),this.updatePageInfo(),l.node().setLocalPosition(o+i,s/2),y&&(this.prevBtnGroup.addEventListener("click",function(){r.prev()}),this.nextBtnGroup.addEventListener("click",function(){r.next()}))}},e.prototype.render=function(n,r){var i=dt(r);this.renderClipPath(i),this.renderController(i),this.setVisiblePages([this.defaultPage]),this.goTo(this.defaultPage)},e.prototype.bindEvents=function(){var n=this,r=$b(function(){return n.render(n.attributes,n)},50);this.playWindow.addEventListener(ht.INSERTED,r),this.playWindow.addEventListener(ht.REMOVED,r)},e}(Pe);function pj(t,e,n){var r=Math.round((t-n)/e);return n+r*e}function vj(t,e,n){var r=1.4,i=r*n;return[["M",t-n,e-i],["L",t+n,e-i],["L",t+n,e+i],["L",t-n,e+i],["Z"]]}var ES=1.4,PS=.4;function gj(t,e,n){var r=n,i=r*ES,a=r/2,o=r/6,s=t+i*PS;return[["M",t,e],["L",s,e+a],["L",t+i,e+a],["L",t+i,e-a],["L",s,e-a],["Z"],["M",s,e+o],["L",t+i-2,e+o],["M",s,e-o],["L",t+i-2,e-o]]}function yj(t,e,n){var r=n,i=r*ES,a=r/2,o=r/6,s=e+i*PS;return[["M",t,e],["L",t-a,s],["L",t-a,e+i],["L",t+a,e+i],["L",t+a,s],["Z"],["M",t-o,s],["L",t-o,e+i-2],["M",t+o,s],["L",t+o,e+i-2]]}Bt.registerSymbol("hiddenHandle",vj);Bt.registerSymbol("verticalHandle",gj);Bt.registerSymbol("horizontalHandle",yj);function mj(t,e,n,r){var i,a=N(t,2),o=a[0],s=a[1],c=N(e,2),l=c[0],u=c[1],f=N(n,2),d=f[0],h=f[1],p=N([l,u],2),v=p[0],g=p[1],y=g-v;return v>g&&(i=N([g,v],2),v=i[0],g=i[1]),y>s-o?[o,s]:vs?h===s&&d===v?[v,s]:[s-y,s]:[v,g]}function ir(t,e,n){return t===void 0&&(t="horizontal"),t==="horizontal"?e:n}var un=$n({layout:"flex",markerGroup:"marker-group",marker:"marker",labelGroup:"label-group",label:"label",valueGroup:"value-group",value:"value",backgroundGroup:"background-group",background:"background"},"legend-category-item");function bj(t){var e=t.querySelector(un.marker.class);return e?e.style:{}}var xj=function(t){rt(e,t);function e(n){return t.call(this,n,{span:[1,1],marker:function(){return new Xs({style:{r:6}})},markerSize:10,labelFill:"#646464",valueFill:"#646464",labelFontSize:12,valueFontSize:12,labelTextBaseline:"middle",valueTextBaseline:"middle"})||this}return Object.defineProperty(e.prototype,"showValue",{get:function(){var n=this.attributes.valueText;return n?typeof n=="string"||typeof n=="number"?n!=="":typeof n=="function"?!0:n.attr("text")!=="":!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"actualSpace",{get:function(){var n=this.labelGroup,r=this.valueGroup,i=this.attributes.markerSize,a=n.node().getBBox(),o=a.width,s=a.height,c=r.node().getBBox(),l=c.width,u=c.height;return{markerWidth:i,labelWidth:o,valueWidth:l,height:Math.max(i,s,u)}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"span",{get:function(){var n=this.attributes.span;if(!n)return[1,1];var r=N(Te(n),2),i=r[0],a=r[1],o=this.showValue?a:0,s=i+o;return[i/s,o/s]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shape",{get:function(){var n,r=this.attributes,i=r.markerSize,a=r.width,o=this.actualSpace,s=o.markerWidth,c=o.height,l=this.actualSpace,u=l.labelWidth,f=l.valueWidth,d=N(this.spacing,2),h=d[0],p=d[1];if(a){var v=a-i-h-p,g=N(this.span,2),y=g[0],m=g[1];n=N([y*v,m*v],2),u=n[0],f=n[1]}var b=s+u+f+h+p;return{width:b,height:c,markerWidth:s,labelWidth:u,valueWidth:f}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"spacing",{get:function(){var n=this.attributes.spacing;if(!n)return[0,0];var r=N(Te(n),2),i=r[0],a=r[1];return this.showValue?[i,a]:[i,0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"layout",{get:function(){var n=this.shape,r=n.markerWidth,i=n.labelWidth,a=n.valueWidth,o=n.width,s=n.height,c=N(this.spacing,2),l=c[0],u=c[1];return{height:s,width:o,markerWidth:r,labelWidth:i,valueWidth:a,position:[r/2,r+l,r+i+l+u]}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"scaleSize",{get:function(){var n=bj(this.markerGroup.node()),r=this.attributes,i=r.markerSize,a=r.markerStrokeWidth,o=a===void 0?n.strokeWidth:a,s=r.markerLineWidth,c=s===void 0?n.lineWidth:s,l=r.markerStroke,u=l===void 0?n.stroke:l,f=+(o||c||(u?1:0))*Math.sqrt(2),d=this.markerGroup.node().getBBox(),h=d.width,p=d.height;return(1-f/Math.max(h,p))*i},enumerable:!1,configurable:!0}),e.prototype.renderMarker=function(n){var r=this,i=this.attributes.marker,a=vt(this.attributes,"marker");this.markerGroup=n.maybeAppendByClassName(un.markerGroup,"g").style("zIndex",0),on(!!i,this.markerGroup,function(){var o=r.markerGroup.node(),s=o.getElementsByClassName(un.marker.name)[0],c=i();s?c.nodeName===s.nodeName?(PI(s,c),dt(s).styles(a)):(s.remove(),dt(c).attr("className",un.marker.name).styles(a),o.appendChild(c)):(dt(c).attr("className",un.marker.name).styles(a),o.appendChild(c)),r.markerGroup.node().scale(1/r.markerGroup.node().getScale()[0]),h0(r.markerGroup.node(),r.scaleSize,!0)})},e.prototype.renderLabel=function(n){var r=vt(this.attributes,"label"),i=r.text,a=$t(r,["text"]);this.labelGroup=n.maybeAppendByClassName(un.labelGroup,"g").style("zIndex",0),this.labelGroup.maybeAppendByClassName(un.label,function(){return Yi(i)}).styles(a)},e.prototype.renderValue=function(n){var r=this,i=vt(this.attributes,"value"),a=i.text,o=$t(i,["text"]);this.valueGroup=n.maybeAppendByClassName(un.valueGroup,"g").style("zIndex",0),on(this.showValue,this.valueGroup,function(){r.valueGroup.maybeAppendByClassName(un.value,function(){return Yi(a)}).styles(o)})},e.prototype.renderBackground=function(n){var r=this.shape,i=r.width,a=r.height,o=vt(this.attributes,"background");this.background=n.maybeAppendByClassName(un.backgroundGroup,"g").style("zIndex",-1),this.background.maybeAppendByClassName(un.background,"rect").styles(z({width:i,height:a},o))},e.prototype.adjustLayout=function(){var n=this.layout,r=n.labelWidth,i=n.valueWidth,a=n.height,o=N(n.position,3),s=o[0],c=o[1],l=o[2],u=a/2;this.markerGroup.styles({x:s,y:u}),this.labelGroup.styles({x:c,y:u}),uh(this.labelGroup.select(un.label.class).node(),Math.ceil(r)),this.showValue&&(this.valueGroup.styles({x:l,y:u}),uh(this.valueGroup.select(un.value.class).node(),Math.ceil(i)))},e.prototype.render=function(n,r){var i=dt(r);this.renderMarker(i),this.renderLabel(i),this.renderValue(i),this.renderBackground(i),this.adjustLayout()},e}(Pe),Si=$n({page:"item-page",navigator:"navigator",item:"item"},"items"),Dy=function(t,e,n){return n===void 0&&(n=!0),t?e(t):n},wj=function(t){rt(e,t);function e(n){var r=t.call(this,n,{data:[],gridRow:1/0,gridCol:void 0,padding:0,width:1e3,height:100,rowPadding:0,colPadding:0,layout:"flex",orientation:"horizontal",click:wf,mouseenter:wf,mouseleave:wf})||this;return r.navigatorShape=[0,0],r}return Object.defineProperty(e.prototype,"pageViews",{get:function(){return this.navigator.getContainer()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"grid",{get:function(){var n=this.attributes,r=n.gridRow,i=n.gridCol,a=n.data;if(!r&&!i)throw new Error("gridRow and gridCol can not be set null at the same time");return r&&i?[r,i]:r?[r,a.length]:[a.length,i]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderData",{get:function(){var n=this.attributes,r=n.data,i=n.layout,a=vt(this.attributes,"item"),o=r.map(function(s,c){var l=s.id,u=l===void 0?c:l,f=s.label,d=s.value;return{id:"".concat(u),index:c,style:z({layout:i,labelText:f,valueText:d},Object.fromEntries(Object.entries(a).map(function(h){var p=N(h,2),v=p[0],g=p[1];return[v,Rn(g,[s,c,r])]})))}});return o},enumerable:!1,configurable:!0}),e.prototype.getGridLayout=function(){var n=this,r=this.attributes,i=r.orientation,a=r.width,o=r.rowPadding,s=r.colPadding,c=N(this.navigatorShape,1),l=c[0],u=N(this.grid,2),f=u[0],d=u[1],h=d*f,p=0;return this.pageViews.children.map(function(v,g){var y,m,b=Math.floor(g/h),x=g%h,w=n.ifHorizontal(d,f),O=[Math.floor(x/w),x%w];i==="vertical"&&O.reverse();var S=N(O,2),_=S[0],M=S[1],E=(a-l-(d-1)*s)/d,P=v.getBBox().height,T=N([0,0],2),A=T[0],k=T[1];return i==="horizontal"?(y=N([p,_*(P+o)],2),A=y[0],k=y[1],p=M===d-1?0:p+E+s):(m=N([M*(E+s),p],2),A=m[0],k=m[1],p=_===f-1?0:p+P+o),{page:b,index:g,row:_,col:M,pageIndex:x,width:E,height:P,x:A,y:k}})},e.prototype.getFlexLayout=function(){var n=this.attributes,r=n.width,i=n.height,a=n.rowPadding,o=n.colPadding,s=N(this.navigatorShape,1),c=s[0],l=N(this.grid,2),u=l[0],f=l[1],d=N([r-c,i],2),h=d[0],p=d[1],v=N([0,0,0,0,0,0,0,0],8),g=v[0],y=v[1],m=v[2],b=v[3],x=v[4],w=v[5],O=v[6],S=v[7];return this.pageViews.children.map(function(_,M){var E,P,T,A,k=_.getBBox(),C=k.width,L=k.height,I=O===0?0:o,R=O+I+C;if(R<=h&&Dy(x,function(D){return D0?(this.navigatorShape=[55,0],n.call(this)):r},enumerable:!1,configurable:!0}),e.prototype.ifHorizontal=function(n,r){var i=this.attributes.orientation;return ir(i,n,r)},e.prototype.flattenPage=function(n){n.querySelectorAll(Si.item.class).forEach(function(r){n.appendChild(r)}),n.querySelectorAll(Si.page.class).forEach(function(r){var i=n.removeChild(r);i.destroy()})},e.prototype.renderItems=function(n){var r=this.attributes,i=r.click,a=r.mouseenter,o=r.mouseleave;this.flattenPage(n);var s=this.dispatchCustomEvent.bind(this);dt(n).selectAll(Si.item.class).data(this.renderData,function(c){return c.id}).join(function(c){return c.append(function(l){var u=l.style;return new xj({style:u})}).attr("className",Si.item.name).on("click",function(){i==null||i(this),s("itemClick",{item:this})}).on("pointerenter",function(){a==null||a(this),s("itemMouseenter",{item:this})}).on("pointerleave",function(){o==null||o(this),s("itemMouseleave",{item:this})})},function(c){return c.each(function(l){var u=l.style;this.update(u)})},function(c){return c.remove()})},e.prototype.relayoutNavigator=function(){var n,r=this.attributes,i=r.layout,a=r.width,o=((n=this.pageViews.children[0])===null||n===void 0?void 0:n.getBBox().height)||0,s=N(this.navigatorShape,2),c=s[0],l=s[1];this.navigator.update(i==="grid"?{pageWidth:a-c,pageHeight:o-l}:{})},e.prototype.adjustLayout=function(){var n=this,r=Object.entries(cI(this.itemsLayout,"page")).map(function(a){var o=N(a,2),s=o[0],c=o[1];return{page:s,layouts:c}}),i=q([],N(this.navigator.getContainer().children),!1);r.forEach(function(a){var o=a.layouts,s=n.pageViews.appendChild(new Ce({className:Si.page.name}));o.forEach(function(c){var l=c.x,u=c.y,f=c.index,d=c.width,h=c.height,p=i[f];s.appendChild(p),$k(p,"__layout__",c),p.update({x:l,y:u,width:d,height:h})})}),this.relayoutNavigator()},e.prototype.renderNavigator=function(n){var r=this.attributes.orientation,i=vt(this.attributes,"nav"),a=Nr({orientation:r},i),o=this;return n.selectAll(Si.navigator.class).data(["nav"]).join(function(s){return s.append(function(){return new hj({style:a})}).attr("className",Si.navigator.name).each(function(){o.navigator=this})},function(s){return s.each(function(){this.update(a)})},function(s){return s.remove()}),this.navigator},e.prototype.getBBox=function(){return this.navigator.getBBox()},e.prototype.render=function(n,r){var i=this.attributes.data;if(!(!i||i.length===0)){var a=this.renderNavigator(dt(r));this.renderItems(a.getContainer()),this.adjustLayout()}},e.prototype.dispatchCustomEvent=function(n,r){var i=new Dt(n,{detail:r});this.dispatchEvent(i)},e}(Pe),Oo=$n({markerGroup:"marker-group",marker:"marker",labelGroup:"label-group",label:"label"},"handle"),AS={showLabel:!0,formatter:function(t){return t.toString()},markerSize:25,markerStroke:"#c5c5c5",markerFill:"#fff",markerLineWidth:1,labelFontSize:12,labelFill:"#c5c5c5",labelText:"",orientation:"vertical",spacing:0},Oj=function(t){rt(e,t);function e(n){return t.call(this,n,AS)||this}return e.prototype.render=function(n,r){var i=dt(r).maybeAppendByClassName(Oo.markerGroup,"g");this.renderMarker(i);var a=dt(r).maybeAppendByClassName(Oo.labelGroup,"g");this.renderLabel(a)},e.prototype.renderMarker=function(n){var r=this,i=this.attributes,a=i.orientation,o=i.markerSymbol,s=o===void 0?ir(a,"horizontalHandle","verticalHandle"):o;on(!!s,n,function(c){var l=vt(r.attributes,"marker"),u=z({symbol:s},l);r.marker=c.maybeAppendByClassName(Oo.marker,function(){return new Bt({style:u})}).update(u)})},e.prototype.renderLabel=function(n){var r=this,i=this.attributes,a=i.showLabel,o=i.orientation,s=i.spacing,c=s===void 0?0:s,l=i.formatter;on(a,n,function(u){var f,d=vt(r.attributes,"label"),h=d.text,p=$t(d,["text"]),v=((f=u.select(Oo.marker.class))===null||f===void 0?void 0:f.node().getBBox())||{},g=v.width,y=g===void 0?0:g,m=v.height,b=m===void 0?0:m,x=N(ir(o,[0,b+c,"center","top"],[y+c,0,"start","middle"]),4),w=x[0],O=x[1],S=x[2],_=x[3];u.maybeAppendByClassName(Oo.label,"text").styles(z(z({},p),{x:w,y:O,text:l(h).toString(),textAlign:S,textBaseline:_}))})},e}(Pe),kS={showTitle:!0,padding:0,orientation:"horizontal",backgroundFill:"transparent",titleText:"",titleSpacing:4,titlePosition:"top-left",titleFill:"#2C3542",titleFontWeight:"bold",titleFontFamily:"sans-serif",titleFontSize:12},Sj=Nr({},kS,{}),_j=Nr({},kS,Jn(AS,"handle"),{color:["#d0e3fa","#acc7f6","#8daaf2","#6d8eea","#4d73cd","#325bb1","#5a3e75","#8c3c79","#e23455","#e7655b"],indicatorBackgroundFill:"#262626",indicatorLabelFill:"white",indicatorLabelFontSize:12,indicatorVisibility:"hidden",labelAlign:"value",labelDirection:"positive",labelSpacing:5,showHandle:!0,showIndicator:!0,showLabel:!0,slidable:!0,titleText:"",type:"continuous"}),Mj=.01,Me=$n({title:"title",titleGroup:"title-group",items:"items",itemsGroup:"items-group",contentGroup:"content-group",ribbonGroup:"ribbon-group",ribbon:"ribbon",handlesGroup:"handles-group",handle:"handle",startHandle:"start-handle",endHandle:"end-handle",labelGroup:"label-group",label:"label",indicator:"indicator"},"legend"),Ej=function(t){rt(e,t);function e(n){return t.call(this,n,Sj)||this}return e.prototype.renderTitle=function(n,r,i){var a=this.attributes,o=a.showTitle,s=a.titleText,c=vt(this.attributes,"title"),l=N(Rr(c),2),u=l[0],f=l[1];this.titleGroup=n.maybeAppendByClassName(Me.titleGroup,"g").styles(f);var d=z(z({width:r,height:i},u),{text:o?s:""});this.title=this.titleGroup.maybeAppendByClassName(Me.title,function(){return new MS({style:d})}).update(d)},e.prototype.renderItems=function(n,r){var i=r.x,a=r.y,o=r.width,s=r.height,c=vt(this.attributes,"title",!0),l=N(Rr(c),2),u=l[0],f=l[1],d=z(z({},u),{width:o,height:s,x:0,y:0});this.itemsGroup=n.maybeAppendByClassName(Me.itemsGroup,"g").styles(z({x:i,y:a},f));var h=this;this.itemsGroup.selectAll(Me.items.class).data(["items"]).join(function(p){return p.append(function(){return new wj({style:d})}).attr("className",Me.items.name).each(function(){h.items=dt(this)})},function(p){return p.update(d)},function(p){return p.remove()})},e.prototype.adjustLayout=function(){var n=this.attributes.showTitle;if(n){var r=this.title.node().getAvailableSpace(),i=r.x,a=r.y;this.itemsGroup.node().setLocalPosition(i,a)}},Object.defineProperty(e.prototype,"availableSpace",{get:function(){var n=this.attributes,r=n.showTitle,i=n.width,a=n.height;return r?this.title.node().getAvailableSpace():new Qt(0,0,i,a)},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var n,r,i=(n=this.title)===null||n===void 0?void 0:n.node(),a=(r=this.items)===null||r===void 0?void 0:r.node();return!i||!a?t.prototype.getBBox.call(this):sj(i,a)},e.prototype.render=function(n,r){var i=n.width,a=n.height,o=dt(r);this.renderTitle(o,i,a),this.renderItems(o,this.availableSpace),this.adjustLayout()},e}(Pe),Pj={backgroundFill:"#262626",backgroundLineCap:"round",backgroundLineWidth:1,backgroundStroke:"#333",backgroundZIndex:-1,formatter:function(t){return t.toString()},labelFill:"#fff",labelFontSize:12,labelTextBaseline:"middle",padding:[2,4],position:"right",radius:0,zIndex:999},Kf=$n({background:"background",labelGroup:"label-group",label:"label"},"indicator"),Aj=function(t){rt(e,t);function e(n){var r=t.call(this,n,Pj)||this;return r.point=[0,0],r.group=r.appendChild(new Ce({})),r.isMutationObserved=!0,r}return e.prototype.renderBackground=function(){if(this.label){var n=this.attributes,r=n.position,i=n.padding,a=N(Te(i),4),o=a[0],s=a[1],c=a[2],l=a[3],u=this.label.node().getLocalBounds(),f=u.min,d=u.max,h=new Qt(f[0]-l,f[1]-o,d[0]+s-f[0]+l,d[1]+c-f[1]+o),p=this.getPath(r,h),v=vt(this.attributes,"background");this.background=dt(this.group).maybeAppendByClassName(Kf.background,"path").styles(z(z({},v),{path:p})),this.group.appendChild(this.label.node())}},e.prototype.renderLabel=function(){var n=this.attributes,r=n.formatter,i=n.labelText,a=vt(this.attributes,"label"),o=N(Rr(a),2),s=o[0],c=o[1];s.text;var l=$t(s,["text"]);if(this.label=dt(this.group).maybeAppendByClassName(Kf.labelGroup,"g").styles(c),!!i){var u=this.label.maybeAppendByClassName(Kf.label,function(){return Yi(r(i))}).style("text",r(i).toString());u.selectAll("text").styles(l)}},e.prototype.adjustLayout=function(){var n=N(this.point,2),r=n[0],i=n[1];this.group.attr("x",-r).attr("y",-i)},e.prototype.getPath=function(n,r){var i=this.attributes.radius,a=r.x,o=r.y,s=r.width,c=r.height,l=[["M",a+i,o],["L",a+s-i,o],["A",i,i,0,0,1,a+s,o+i],["L",a+s,o+c-i],["A",i,i,0,0,1,a+s-i,o+c],["L",a+i,o+c],["A",i,i,0,0,1,a,o+c-i],["L",a,o+i],["A",i,i,0,0,1,a+i,o],["Z"]],u={top:4,right:6,bottom:0,left:2},f=u[n],d=this.createCorner([l[f].slice(-2),l[f+1].slice(-2)]);return l.splice.apply(l,q([f+1,1],N(d),!1)),l[0][0]="M",l},e.prototype.createCorner=function(n,r){r===void 0&&(r=10);var i=.8,a=EI.apply(void 0,q([],N(n),!1)),o=N(n,2),s=N(o[0],2),c=s[0],l=s[1],u=N(o[1],2),f=u[0],d=u[1],h=N(a?[f-c,[c,f]]:[d-l,[l,d]],2),p=h[0],v=N(h[1],2),g=v[0],y=v[1],m=p/2,b=p/Math.abs(p),x=r*b,w=x/2,O=x*Math.sqrt(3)/2*i,S=N([g,g+m-w,g+m,g+m+w,y],5),_=S[0],M=S[1],E=S[2],P=S[3],T=S[4];return a?(this.point=[E,l-O],[["L",_,l],["L",M,l],["L",E,l-O],["L",P,l],["L",T,l]]):(this.point=[c+O,E],[["L",c,_],["L",c,M],["L",c+O,E],["L",c,P],["L",c,T]])},e.prototype.applyVisibility=function(){var n=this.attributes.visibility;n==="hidden"?li(this):Ks(this)},e.prototype.bindEvents=function(){this.label.on(ht.BOUNDS_CHANGED,this.renderBackground)},e.prototype.render=function(){this.renderLabel(),this.renderBackground(),this.adjustLayout(),this.applyVisibility()},e}(Pe);function kj(t,e){for(var n=1;n=r&&e<=i)return[r,i]}return[e,e]}function Tj(t,e,n){var r=Array.from(e),i=t.length;return new Array(i).fill(0).reduce(function(a,o,s){var c=r[s%r.length];return a+=" ".concat(t[s],":").concat(c).concat(s(r+i)/2?i:r,range:[r,i]}}var ms=$n({trackGroup:"background-group",track:"background",selectionGroup:"ribbon-group",selection:"ribbon",clipPath:"clip-path"},"ribbon");function TS(t){var e=t.orientation,n=t.size,r=t.length;return ir(e,[r,n],[n,r])}function CS(t){var e=t.type,n=N(TS(t),2),r=n[0],i=n[1];return e==="size"?[["M",0,i],["L",0+r,0],["L",0+r,i],["Z"]]:[["M",0,i],["L",0,0],["L",0+r,0],["L",0+r,i],["Z"]]}function Cj(t){return CS(t)}function Lj(t){var e=t.orientation,n=t.color,r=t.block,i=t.partition,a;if(Ve(n)){var o=20;a=new Array(o).fill(0).map(function(l,u,f){return n(u/(f.length-1))})}else a=n;var s=a.length,c=a.map(function(l){return Ar(l).toString()});return s?s===1?c[0]:r?Tj(i,c,e):c.reduce(function(l,u,f){return l+=" ".concat(f/(s-1),":").concat(u)},"l(".concat(ir(e,"0","270"),")")):""}function Nj(t){var e=t.orientation,n=t.range;if(!n)return[];var r=N(TS(t),2),i=r[0],a=r[1],o=N(n,2),s=o[0],c=o[1],l=ir(e,s*i,0),u=ir(e,0,s*a),f=ir(e,c*i,i),d=ir(e,a,c*a);return[["M",l,u],["L",l,d],["L",f,d],["L",f,u],["Z"]]}function Rj(t,e){var n=vt(e,"track");t.maybeAppendByClassName(ms.track,"path").styles(z({path:CS(e)},n))}function Ij(t,e){var n=vt(e,"selection"),r=Lj(e),i=t.maybeAppendByClassName(ms.selection,"path").styles(z({path:Cj(e),fill:r},n)),a=i.maybeAppendByClassName(ms.clipPath,"path").styles({path:Nj(e)}).node();i.style("clip-path",a)}var jj=function(t){rt(e,t);function e(n){return t.call(this,n,{type:"color",orientation:"horizontal",size:30,range:[0,1],length:200,block:!1,partition:[],color:["#fff","#000"],trackFill:"#e5e5e5"})||this}return e.prototype.render=function(n,r){var i=dt(r).maybeAppendByClassName(ms.trackGroup,"g");Rj(i,n);var a=dt(r).maybeAppendByClassName(ms.selectionGroup,"g");Ij(a,n)},e}(Pe);function Dj(t){return{min:Math.min.apply(Math,q([],N(t.map(function(e){return e.value})),!1)),max:Math.max.apply(Math,q([],N(t.map(function(e){return e.value})),!1))}}var $j=function(t){rt(e,t);function e(n){var r=t.call(this,n,_j)||this;return r.eventToOffsetScale=new Yt({}),r.innerRibbonScale=new Yt({}),r.cacheLabelBBox=null,r.cacheHandleBBox=null,r.onHovering=function(i){var a=r.attributes,o=a.data,s=a.block;i.stopPropagation();var c=r.getValueByCanvasPoint(i);if(s){var l=$y(o.map(function(f){var d=f.value;return d}),c).range;r.showIndicator((l[0]+l[1])/2,"".concat(l[0],"-").concat(l[1])),r.dispatchIndicated(c,l)}else{var u=r.getTickValue(c);r.showIndicator(u),r.dispatchIndicated(u)}},r.onDragStart=function(i){return function(a){a.stopPropagation(),r.attributes.slidable&&(r.target=i,r.prevValue=r.getTickValue(r.getValueByCanvasPoint(a)),document.addEventListener("mousemove",r.onDragging),document.addEventListener("touchmove",r.onDragging),document.addEventListener("mouseleave",r.onDragEnd),document.addEventListener("mouseup",r.onDragEnd),document.addEventListener("mouseup",r.onDragEnd),document.addEventListener("touchend",r.onDragEnd))}},r.onDragging=function(i){var a=r.target;r.updateMouse();var o=N(r.selection,2),s=o[0],c=o[1],l=r.getTickValue(r.getValueByCanvasPoint(i)),u=l-r.prevValue;a==="start"?s!==l&&r.updateSelection(l,c):a==="end"?c!==l&&r.updateSelection(s,l):a==="ribbon"&&u!==0&&(r.prevValue=l,r.updateSelection(u,u,!0))},r.onDragEnd=function(){r.style.cursor="pointer",document.removeEventListener("mousemove",r.onDragging),document.removeEventListener("touchmove",r.onDragging),document.removeEventListener("mouseup",r.onDragEnd),document.removeEventListener("touchend",r.onDragEnd)},r}return Object.defineProperty(e.prototype,"handleOffsetRatio",{get:function(){return this.ifHorizontal(.5,.5)},enumerable:!1,configurable:!0}),e.prototype.getBBox=function(){var n=this.attributes,r=n.width,i=n.height;return new Qt(0,0,r,i)},e.prototype.render=function(n,r){var i=this,a=n.showLabel;this.renderTitle(dt(r));var o=this.availableSpace,s=o.x,c=o.y,l=dt(r).maybeAppendByClassName(Me.contentGroup,"g").styles({x:s,y:c}),u=l.maybeAppendByClassName(Me.labelGroup,"g").styles({zIndex:1});on(!!a,u,function(d){i.renderLabel(d)});var f=l.maybeAppendByClassName(Me.ribbonGroup,"g").styles({zIndex:0});this.handlesGroup=l.maybeAppendByClassName(Me.handlesGroup,"g").styles({zIndex:2}),this.renderHandles(),this.renderRibbon(f),this.renderIndicator(l),this.adjustLabel(),this.adjustHandles()},Object.defineProperty(e.prototype,"range",{get:function(){var n=this.attributes,r=n.data,i=n.domain;return i?{min:i[0],max:i[1]}:Dj(r)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ribbonScale",{get:function(){var n=this.range,r=n.min,i=n.max;return this.innerRibbonScale.update({domain:[r,i],range:[0,1]}),this.innerRibbonScale},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ribbonRange",{get:function(){var n=N(this.selection,2),r=n[0],i=n[1],a=this.ribbonScale;return[a.map(r),a.map(i)]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selection",{get:function(){var n=this.range,r=n.min,i=n.max,a=this.attributes.defaultValue,o=a===void 0?[r,i]:a,s=N(o,2),c=s[0],l=s[1];return[c,l]},enumerable:!1,configurable:!0}),e.prototype.ifHorizontal=function(n,r){return ir(this.attributes.orientation,typeof n=="function"?n():n,typeof r=="function"?r():r)},e.prototype.renderTitle=function(n){var r=this.attributes,i=r.showTitle,a=r.titleText,o=r.width,s=r.height,c=vt(this.attributes,"title"),l=z(z({},c),{width:o,height:s,text:a}),u=this;n.selectAll(Me.title.class).data(i?[a]:[]).join(function(f){return f.append(function(){return new MS({style:l})}).attr("className",Me.title.name).each(function(){u.title=this})},function(f){return f.update(l)},function(f){return f.each(function(){u.title=void 0}).remove()})},Object.defineProperty(e.prototype,"availableSpace",{get:function(){if(this.title)return this.title.getAvailableSpace();var n=this.attributes,r=n.width,i=n.height;return new Qt(0,0,r,i)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelFixedSpacing",{get:function(){var n=this.attributes.showTick;return n?5:0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelPosition",{get:function(){var n=this.attributes,r=n.orientation,i=n.labelDirection,a={vertical:{positive:"right",negative:"left"},horizontal:{positive:"bottom",negative:"top"}};return a[r][i]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelBBox",{get:function(){var n,r=this.attributes.showLabel;if(!r)return new Qt(0,0,0,0);if(this.cacheLabelBBox)return this.cacheLabelBBox;var i=((n=this.label.querySelector(Rt.labelGroup.class))===null||n===void 0?void 0:n.children.slice(-1)[0]).getBBox(),a=i.width,o=i.height;return this.cacheLabelBBox=new Qt(0,0,a,o),this.cacheLabelBBox},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelShape",{get:function(){var n=this.attributes,r=n.showLabel,i=n.labelSpacing,a=i===void 0?0:i;if(!r)return{width:0,height:0,size:0,length:0};var o=this.labelBBox,s=o.width,c=o.height,l=this.ifHorizontal(c,s)+a+this.labelFixedSpacing,u=this.ifHorizontal(s,c);return{width:s,height:c,size:l,length:u}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ribbonBBox",{get:function(){var n=this.attributes,r=n.showHandle,i=n.ribbonSize,a=this.availableSpace,o=a.width,s=a.height,c=this.labelShape,l=c.size,u=c.length,f=N(this.ifHorizontal([s,o],[o,s]),2),d=f[0],h=f[1],p=r?this.handleShape:{size:0,length:0},v=p.size,g=p.length,y=this.handleOffsetRatio,m=0,b=this.labelPosition;i?m=i:["bottom","right"].includes(b)?m=Math.min(d-l,(d-v)/y):d*(1-y)>v?m=Math.max(d-l,0):m=Math.max((d-l-v)/y,0);var x=Math.max(g,u),w=h-x,O=N(this.ifHorizontal([w,m],[m,w]),2),S=O[0],_=O[1],M=["top","left"].includes(b)?l:0,E=N(this.ifHorizontal([x/2,M],[M,x/2]),2),P=E[0],T=E[1];return new Qt(P,T,S,_)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ribbonShape",{get:function(){var n=this.ribbonBBox,r=n.width,i=n.height;return this.ifHorizontal({size:i,length:r},{size:r,length:i})},enumerable:!1,configurable:!0}),e.prototype.renderRibbon=function(n){var r=this.attributes,i=r.data,a=r.type,o=r.orientation,s=r.color,c=r.block,l=vt(this.attributes,"ribbon"),u=this.range,f=u.min,d=u.max,h=this.ribbonBBox,p=h.x,v=h.y,g=this.ribbonShape,y=g.length,m=g.size,b=Nr({x:p,y:v,length:y,size:m,type:a,orientation:o,color:s,block:c,partition:i.map(function(x){return(x.value-f)/(d-f)}),range:this.ribbonRange},l);this.ribbon=n.maybeAppendByClassName(Me.ribbon,function(){return new jj({style:b})}).update(b)},e.prototype.getHandleClassName=function(n){return"".concat(Me.prefix("".concat(n,"-handle")))},e.prototype.renderHandles=function(){var n=this.attributes,r=n.showHandle,i=n.orientation,a=vt(this.attributes,"handle"),o=N(this.selection,2),s=o[0],c=o[1],l=z(z({},a),{orientation:i}),u=a.shape,f=u===void 0?"slider":u,d=f==="basic"?Oj:hS,h=this;this.handlesGroup.selectAll(Me.handle.class).data(r?[{value:s,type:"start"},{value:c,type:"end"}]:[],function(p){return p.type}).join(function(p){return p.append(function(){return new d({style:l})}).attr("className",function(v){var g=v.type;return"".concat(Me.handle," ").concat(h.getHandleClassName(g))}).each(function(v){var g=v.type,y=v.value;this.update({labelText:y});var m="".concat(g,"Handle");h[m]=this,this.addEventListener("pointerdown",h.onDragStart(g))})},function(p){return p.update(l).each(function(v){var g=v.value;this.update({labelText:g})})},function(p){return p.each(function(v){var g=v.type,y="".concat(g,"Handle");h[y]=void 0}).remove()})},e.prototype.adjustHandles=function(){var n=N(this.selection,2),r=n[0],i=n[1];this.setHandlePosition("start",r),this.setHandlePosition("end",i)},e.prototype.adjustTitle=function(){var n=this.attributes,r=n.titlePosition,i=n.orientation,a=N(this.getElementsByClassName(Me.title.name),1),o=a[0],s=this.handlesGroup.select(".".concat(this.getHandleClassName("start"))).node();if(!(!o||!s)&&!(r!=="top-left"||i!=="horizontal")){var c=N(s.getLocalBounds().min,1),l=c[0],u=N(o.getLocalBounds().min,1),f=u[0],d=l-f;o.style.x=+(this.style.x||0)+d}},Object.defineProperty(e.prototype,"handleBBox",{get:function(){if(this.cacheHandleBBox)return this.cacheHandleBBox;if(!this.attributes.showHandle)return new Qt(0,0,0,0);var n=this.startHandle.getBBox(),r=n.width,i=n.height,a=this.endHandle.getBBox(),o=a.width,s=a.height,c=N([Math.max(r,o),Math.max(i,s)],2),l=c[0],u=c[1];return this.cacheHandleBBox=new Qt(0,0,l,u),this.cacheHandleBBox},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"handleShape",{get:function(){var n=this.handleBBox,r=n.width,i=n.height,a=N(this.ifHorizontal([i,r],[r,i]),2),o=a[0],s=a[1];return{width:r,height:i,size:o,length:s}},enumerable:!1,configurable:!0}),e.prototype.setHandlePosition=function(n,r){var i=this.attributes.handleFormatter,a=this.ribbonBBox,o=a.x,s=a.y,c=this.ribbonShape.size,l=this.getOffset(r),u=N(this.ifHorizontal([o+l,s+c*this.handleOffsetRatio],[o+c*this.handleOffsetRatio,s+l]),2),f=u[0],d=u[1],h=this.handlesGroup.select(".".concat(this.getHandleClassName(n))).node();h==null||h.update({x:f,y:d,formatter:i})},e.prototype.renderIndicator=function(n){var r=vt(this.attributes,"indicator");this.indicator=n.maybeAppendByClassName(Me.indicator,function(){return new Aj({})}).update(r)},Object.defineProperty(e.prototype,"labelData",{get:function(){var n=this,r=this.attributes.data;return r.reduce(function(i,a,o,s){var c,l,u=(c=a==null?void 0:a.id)!==null&&c!==void 0?c:o.toString();if(i.push(z(z({},a),{id:u,index:o,type:"value",label:(l=a==null?void 0:a.label)!==null&&l!==void 0?l:a.value.toString(),value:n.ribbonScale.map(a.value)})),o'),title:'
'),item:'
  • diff --git a/app/dubbo-ui/dist/admin/assets/index-jbm-YZ4W.js b/app/dubbo-ui/dist/admin/assets/index-A0xyoYIe.js similarity index 86% rename from app/dubbo-ui/dist/admin/assets/index-jbm-YZ4W.js rename to app/dubbo-ui/dist/admin/assets/index-A0xyoYIe.js index 6e09439a..f2e5bf9b 100644 --- a/app/dubbo-ui/dist/admin/assets/index-jbm-YZ4W.js +++ b/app/dubbo-ui/dist/admin/assets/index-A0xyoYIe.js @@ -1 +1 @@ -import{d as N,v as g,a as w,r as b,D,F as S,c as n,b as _,w as l,n as p,P as v,U as V,e as q,o as t,L as y,M as C,J as h,f as d,t as c,Y as R,j as A,I as E,T as B,z as M,_ as O}from"./index-3zDsduUv.js";import{s as T}from"./app-mdoSebGq.js";import{S as Y,a as F,s as x}from"./SearchUtil-bfid3zNl.js";import"./request-3an337VF.js";const L={class:"__container_resources_application_index"},P=["onClick"],J=N({__name:"index",setup($){g(e=>({d89413de:p(v)}));let u=w(),k=u.query.query,f=[{title:"appName",key:"appName",dataIndex:"appName",sorter:(e,s)=>x(e.appName,s.appName),width:140,ellipsis:!0},{title:"applicationDomain.instanceCount",key:"instanceCount",dataIndex:"instanceCount",width:100,sorter:(e,s)=>x(e.instanceCount,s.instanceCount)},{title:"applicationDomain.deployClusters",key:"deployClusters",dataIndex:"deployClusters",width:120},{title:"applicationDomain.registryClusters",key:"registryClusters",dataIndex:"registryClusters",width:200}];const a=b(new Y([{label:"appName",param:"keywords",defaultValue:k,placeholder:"typeAppName",style:{width:"200px"}}],T,f));return D(()=>{a.onSearch(),a.tableStyle={scrollX:"100",scrollY:"367px"}}),V(M.SEARCH_DOMAIN,a),S(u,(e,s)=>{a.queryForm.keywords=e.query.query,a.onSearch(),console.log(e)}),(e,s)=>{const m=q("a-tag");return t(),n("div",L,[_(F,{"search-domain":a},{bodyCell:l(({text:i,record:I,index:j,column:r})=>[r.dataIndex==="registryClusters"?(t(!0),n(y,{key:0},C(i,o=>(t(),h(m,null,{default:l(()=>[d(c(o),1)]),_:2},1024))),256)):r.dataIndex==="deployClusters"?(t(!0),n(y,{key:1},C(i,o=>(t(),h(m,null,{default:l(()=>[d(c(o),1)]),_:2},1024))),256)):r.dataIndex==="appName"?(t(),n("span",{key:2,class:"app-link",onClick:o=>p(R).push(`/resources/applications/detail/${I[r.key]}`)},[A("b",null,[_(p(E),{style:{"margin-bottom":"-2px"},icon:"material-symbols:attach-file-rounded"}),d(" "+c(i),1)])],8,P)):B("",!0)]),_:1},8,["search-domain"])])}}}),X=O(J,[["__scopeId","data-v-2d6e7df7"]]);export{X as default}; +import{d as N,v as g,a as w,r as b,D,F as S,c as n,b as _,w as l,n as p,P as v,U as V,e as q,o as t,L as y,M as C,J as h,f as d,t as c,Y as R,j as A,I as E,T as B,z as M,_ as O}from"./index-VXjVsiiO.js";import{s as T}from"./app-tPR0CJiV.js";import{S as Y,a as F,s as x}from"./SearchUtil-ETsp-Y5a.js";import"./request-Cs8TyifY.js";const L={class:"__container_resources_application_index"},P=["onClick"],J=N({__name:"index",setup($){g(e=>({d89413de:p(v)}));let u=w(),k=u.query.query,f=[{title:"appName",key:"appName",dataIndex:"appName",sorter:(e,s)=>x(e.appName,s.appName),width:140,ellipsis:!0},{title:"applicationDomain.instanceCount",key:"instanceCount",dataIndex:"instanceCount",width:100,sorter:(e,s)=>x(e.instanceCount,s.instanceCount)},{title:"applicationDomain.deployClusters",key:"deployClusters",dataIndex:"deployClusters",width:120},{title:"applicationDomain.registryClusters",key:"registryClusters",dataIndex:"registryClusters",width:200}];const a=b(new Y([{label:"appName",param:"keywords",defaultValue:k,placeholder:"typeAppName",style:{width:"200px"}}],T,f));return D(()=>{a.onSearch(),a.tableStyle={scrollX:"100",scrollY:"367px"}}),V(M.SEARCH_DOMAIN,a),S(u,(e,s)=>{a.queryForm.keywords=e.query.query,a.onSearch(),console.log(e)}),(e,s)=>{const m=q("a-tag");return t(),n("div",L,[_(F,{"search-domain":a},{bodyCell:l(({text:i,record:I,index:j,column:r})=>[r.dataIndex==="registryClusters"?(t(!0),n(y,{key:0},C(i,o=>(t(),h(m,null,{default:l(()=>[d(c(o),1)]),_:2},1024))),256)):r.dataIndex==="deployClusters"?(t(!0),n(y,{key:1},C(i,o=>(t(),h(m,null,{default:l(()=>[d(c(o),1)]),_:2},1024))),256)):r.dataIndex==="appName"?(t(),n("span",{key:2,class:"app-link",onClick:o=>p(R).push(`/resources/applications/detail/${I[r.key]}`)},[A("b",null,[_(p(E),{style:{"margin-bottom":"-2px"},icon:"material-symbols:attach-file-rounded"}),d(" "+c(i),1)])],8,P)):B("",!0)]),_:1},8,["search-domain"])])}}}),X=O(J,[["__scopeId","data-v-2d6e7df7"]]);export{X as default}; diff --git a/app/dubbo-ui/dist/admin/assets/index-gNarHmYQ.js b/app/dubbo-ui/dist/admin/assets/index-ISYayNem.js similarity index 67% rename from app/dubbo-ui/dist/admin/assets/index-gNarHmYQ.js rename to app/dubbo-ui/dist/admin/assets/index-ISYayNem.js index 86328fb0..5a68c292 100644 --- a/app/dubbo-ui/dist/admin/assets/index-gNarHmYQ.js +++ b/app/dubbo-ui/dist/admin/assets/index-ISYayNem.js @@ -1 +1 @@ -import{_ as e,c,o}from"./index-3zDsduUv.js";const n={},_={class:"__container_common_index"};function t(r,s){return o(),c("div",_,"placeholder demo")}const d=e(n,[["render",t]]);export{d as default}; +import{_ as e,c,o}from"./index-VXjVsiiO.js";const n={},_={class:"__container_common_index"};function t(r,s){return o(),c("div",_,"placeholder demo")}const d=e(n,[["render",t]]);export{d as default}; diff --git a/app/dubbo-ui/dist/admin/assets/index-ytKGiqRq.js b/app/dubbo-ui/dist/admin/assets/index-JzQrTLUW.js similarity index 93% rename from app/dubbo-ui/dist/admin/assets/index-ytKGiqRq.js rename to app/dubbo-ui/dist/admin/assets/index-JzQrTLUW.js index aac9d8f3..87c44cf2 100644 --- a/app/dubbo-ui/dist/admin/assets/index-ytKGiqRq.js +++ b/app/dubbo-ui/dist/admin/assets/index-JzQrTLUW.js @@ -1 +1 @@ -import{d as D,v as T,u as S,y as E,z as N,r as k,D as R,c as o,b as t,w as n,n as r,P as V,U as $,e as x,o as s,f as i,j as G,I as O,t as C,T as p,L as h,_ as A}from"./index-3zDsduUv.js";import{i as B,j as P}from"./traffic-dHGZ6qwp.js";import{S as Y,a as j,s as f}from"./SearchUtil-bfid3zNl.js";import"./request-3an337VF.js";const M={class:"__container_traffic_config_index"},F=["onClick"],J=D({__name:"index",setup(K){T(e=>({"2f10a2da":r(V)}));const c=S(),v=E(N.PROVIDE_INJECT_KEY);v.dynamicConfigForm=k({});let I=[{title:"ruleName",key:"ruleName",dataIndex:"ruleName",sorter:(e,a)=>f(e.appName,a.appName),width:200,ellipsis:!0},{title:"ruleGranularity",key:"ruleGranularity",dataIndex:"ruleGranularity",render:(e,a)=>a.isService?"服务":"应用",width:100,sorter:(e,a)=>f(e.instanceNum,a.instanceNum)},{title:"createTime",key:"createTime",dataIndex:"createTime",width:200,sorter:(e,a)=>f(e.instanceNum,a.instanceNum)},{title:"enabled",key:"enabled",dataIndex:"enabled",render:(e,a)=>a.enabled?"是":"否",width:120,sorter:(e,a)=>f(e.instanceNum,a.instanceNum)},{title:"operation",key:"operation",dataIndex:"operation",width:200}];const l=k(new Y([{label:"serviceGovernance",param:"serviceGovernance",placeholder:"typeRoutingRules",style:{width:"200px"}}],B,I)),g=()=>{c.push("/traffic/dynamicConfig/formview/_tmp/1")};R(async()=>{await l.onSearch()});const w=async e=>{await P({name:e.ruleName}),await l.onSearch()};return $(N.SEARCH_DOMAIN,l),(e,a)=>{const d=x("a-button"),b=x("a-popconfirm");return s(),o("div",M,[t(j,{"search-domain":l},{customOperation:n(()=>[t(d,{type:"primary",onClick:g},{default:n(()=>[i("新增动态配置")]),_:1})]),bodyCell:n(({text:_,column:m,record:u})=>[m.dataIndex==="ruleName"?(s(),o("span",{key:0,class:"config-link",onClick:y=>r(c).push(`/traffic/dynamicConfig/formview/${u.ruleName}/0`)},[G("b",null,[t(r(O),{style:{"margin-bottom":"-2px"},icon:"material-symbols:attach-file-rounded"}),i(" "+C(_),1)])],8,F)):p("",!0),m.dataIndex==="ruleGranularity"?(s(),o(h,{key:1},[i(C(_?"服务":"应用"),1)],64)):p("",!0),m.dataIndex==="enabled"?(s(),o(h,{key:2},[i(C(_?"启用":"禁用"),1)],64)):p("",!0),m.dataIndex==="operation"?(s(),o(h,{key:3},[t(d,{type:"link",onClick:y=>r(c).push(`/traffic/dynamicConfig/formview/${u.ruleName}/0`)},{default:n(()=>[i("查看")]),_:2},1032,["onClick"]),t(d,{type:"link",onClick:y=>r(c).push(`/traffic/dynamicConfig/formview/${u.ruleName}/1`)},{default:n(()=>[i(" 修改 ")]),_:2},1032,["onClick"]),t(b,{title:"确认删除该动态配置?","ok-text":"Yes","cancel-text":"No",onConfirm:y=>w(u)},{default:n(()=>[t(d,{type:"link"},{default:n(()=>[i("删除")]),_:1})]),_:2},1032,["onConfirm"])],64)):p("",!0)]),_:1},8,["search-domain"])])}}}),q=A(J,[["__scopeId","data-v-25acc517"]]);export{q as default}; +import{d as D,v as T,u as S,y as E,z as N,r as k,D as R,c as o,b as t,w as n,n as r,P as V,U as $,e as x,o as s,f as i,j as G,I as O,t as C,T as p,L as h,_ as A}from"./index-VXjVsiiO.js";import{i as B,j as P}from"./traffic-W0fp5Gf-.js";import{S as Y,a as j,s as f}from"./SearchUtil-ETsp-Y5a.js";import"./request-Cs8TyifY.js";const M={class:"__container_traffic_config_index"},F=["onClick"],J=D({__name:"index",setup(K){T(e=>({"2f10a2da":r(V)}));const c=S(),v=E(N.PROVIDE_INJECT_KEY);v.dynamicConfigForm=k({});let I=[{title:"ruleName",key:"ruleName",dataIndex:"ruleName",sorter:(e,a)=>f(e.appName,a.appName),width:200,ellipsis:!0},{title:"ruleGranularity",key:"ruleGranularity",dataIndex:"ruleGranularity",render:(e,a)=>a.isService?"服务":"应用",width:100,sorter:(e,a)=>f(e.instanceNum,a.instanceNum)},{title:"createTime",key:"createTime",dataIndex:"createTime",width:200,sorter:(e,a)=>f(e.instanceNum,a.instanceNum)},{title:"enabled",key:"enabled",dataIndex:"enabled",render:(e,a)=>a.enabled?"是":"否",width:120,sorter:(e,a)=>f(e.instanceNum,a.instanceNum)},{title:"operation",key:"operation",dataIndex:"operation",width:200}];const l=k(new Y([{label:"serviceGovernance",param:"serviceGovernance",placeholder:"typeRoutingRules",style:{width:"200px"}}],B,I)),g=()=>{c.push("/traffic/dynamicConfig/formview/_tmp/1")};R(async()=>{await l.onSearch()});const w=async e=>{await P({name:e.ruleName}),await l.onSearch()};return $(N.SEARCH_DOMAIN,l),(e,a)=>{const d=x("a-button"),b=x("a-popconfirm");return s(),o("div",M,[t(j,{"search-domain":l},{customOperation:n(()=>[t(d,{type:"primary",onClick:g},{default:n(()=>[i("新增动态配置")]),_:1})]),bodyCell:n(({text:_,column:m,record:u})=>[m.dataIndex==="ruleName"?(s(),o("span",{key:0,class:"config-link",onClick:y=>r(c).push(`/traffic/dynamicConfig/formview/${u.ruleName}/0`)},[G("b",null,[t(r(O),{style:{"margin-bottom":"-2px"},icon:"material-symbols:attach-file-rounded"}),i(" "+C(_),1)])],8,F)):p("",!0),m.dataIndex==="ruleGranularity"?(s(),o(h,{key:1},[i(C(_?"服务":"应用"),1)],64)):p("",!0),m.dataIndex==="enabled"?(s(),o(h,{key:2},[i(C(_?"启用":"禁用"),1)],64)):p("",!0),m.dataIndex==="operation"?(s(),o(h,{key:3},[t(d,{type:"link",onClick:y=>r(c).push(`/traffic/dynamicConfig/formview/${u.ruleName}/0`)},{default:n(()=>[i("查看")]),_:2},1032,["onClick"]),t(d,{type:"link",onClick:y=>r(c).push(`/traffic/dynamicConfig/formview/${u.ruleName}/1`)},{default:n(()=>[i(" 修改 ")]),_:2},1032,["onClick"]),t(b,{title:"确认删除该动态配置?","ok-text":"Yes","cancel-text":"No",onConfirm:y=>w(u)},{default:n(()=>[t(d,{type:"link"},{default:n(()=>[i("删除")]),_:1})]),_:2},1032,["onConfirm"])],64)):p("",!0)]),_:1},8,["search-domain"])])}}}),q=A(J,[["__scopeId","data-v-25acc517"]]);export{q as default}; diff --git a/app/dubbo-ui/dist/admin/assets/index-tIlk8-2z.js b/app/dubbo-ui/dist/admin/assets/index-TH_CWM0S.js similarity index 91% rename from app/dubbo-ui/dist/admin/assets/index-tIlk8-2z.js rename to app/dubbo-ui/dist/admin/assets/index-TH_CWM0S.js index 3bccca41..81d6d7d6 100644 --- a/app/dubbo-ui/dist/admin/assets/index-tIlk8-2z.js +++ b/app/dubbo-ui/dist/admin/assets/index-TH_CWM0S.js @@ -1 +1 @@ -import{d as b,u as d,c as u,f as o,b as s,w as r,n as _,j as t,e as c,o as i}from"./index-3zDsduUv.js";const h={class:"__container_tab_index"},p=t("br",null,null,-1),f=t("a",{href:"/admin/common/tab/tab1/pathId1"},"to tab1 by href",-1),m=t("br",null,null,-1),x=t("a",{href:"tab2/pathId1"},"to tab2 by href",-1),C=t("br",null,null,-1),k=t("br",null,null,-1),B=b({__name:"index",setup(v){const n=d();return(y,e)=>{const a=c("a-button");return i(),u("div",h,[o(" tab page "),p,f,m,x,C,s(a,{onClick:e[0]||(e[0]=l=>_(n).push("/common/tab/tab1/pathId1"))},{default:r(()=>[o("to tab1 by href")]),_:1}),k,s(a,{onClick:e[1]||(e[1]=l=>_(n).push("tab2/pathId1"))},{default:r(()=>[o("to tab2 by href")]),_:1})])}}});export{B as default}; +import{d as b,u as d,c as u,f as o,b as s,w as r,n as _,j as t,e as c,o as i}from"./index-VXjVsiiO.js";const h={class:"__container_tab_index"},p=t("br",null,null,-1),f=t("a",{href:"/admin/common/tab/tab1/pathId1"},"to tab1 by href",-1),m=t("br",null,null,-1),x=t("a",{href:"tab2/pathId1"},"to tab2 by href",-1),C=t("br",null,null,-1),k=t("br",null,null,-1),B=b({__name:"index",setup(v){const n=d();return(y,e)=>{const a=c("a-button");return i(),u("div",h,[o(" tab page "),p,f,m,x,C,s(a,{onClick:e[0]||(e[0]=l=>_(n).push("/common/tab/tab1/pathId1"))},{default:r(()=>[o("to tab1 by href")]),_:1}),k,s(a,{onClick:e[1]||(e[1]=l=>_(n).push("tab2/pathId1"))},{default:r(()=>[o("to tab2 by href")]),_:1})])}}});export{B as default}; diff --git a/app/dubbo-ui/dist/admin/assets/index-3zDsduUv.js b/app/dubbo-ui/dist/admin/assets/index-VXjVsiiO.js similarity index 99% rename from app/dubbo-ui/dist/admin/assets/index-3zDsduUv.js rename to app/dubbo-ui/dist/admin/assets/index-VXjVsiiO.js index 978fe3f9..b3cbfac2 100644 --- a/app/dubbo-ui/dist/admin/assets/index-3zDsduUv.js +++ b/app/dubbo-ui/dist/admin/assets/index-VXjVsiiO.js @@ -520,7 +520,7 @@ __p += '`),sn&&(Ge+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+Ge+`return __p -}`;var Qt=p4(function(){return fn(de,yt+"return "+Ge).apply(n,Ce)});if(Qt.source=Ge,vS(Qt))throw Qt;return Qt}function Vq(p){return hn(p).toLowerCase()}function Kq(p){return hn(p).toUpperCase()}function Uq(p,C,T){if(p=hn(p),p&&(T||C===n))return $T(p);if(!p||!(C=qr(C)))return p;var U=Ui(p),Q=Ui(C),de=xT(U,Q),Ce=wT(U,Q)+1;return Vl(U,de,Ce).join("")}function Gq(p,C,T){if(p=hn(p),p&&(T||C===n))return p.slice(0,OT(p)+1);if(!p||!(C=qr(C)))return p;var U=Ui(p),Q=wT(U,Ui(C))+1;return Vl(U,0,Q).join("")}function Yq(p,C,T){if(p=hn(p),p&&(T||C===n))return p.replace(We,"");if(!p||!(C=qr(C)))return p;var U=Ui(p),Q=xT(U,Ui(C));return Vl(U,Q).join("")}function Xq(p,C){var T=R,U=A;if(Kn(C)){var Q="separator"in C?C.separator:Q;T="length"in C?Xt(C.length):T,U="omission"in C?qr(C.omission):U}p=hn(p);var de=p.length;if(gu(p)){var Ce=Ui(p);de=Ce.length}if(T>=de)return p;var we=T-vu(U);if(we<1)return U;var Me=Ce?Vl(Ce,0,we).join(""):p.slice(0,we);if(Q===n)return Me+U;if(Ce&&(we+=Me.length-we),mS(Q)){if(p.slice(we).search(Q)){var ze,je=Me;for(Q.global||(Q=R1(Q.source,hn(qo.exec(Q))+"g")),Q.lastIndex=0;ze=Q.exec(je);)var Ge=ze.index;Me=Me.slice(0,Ge===n?we:Ge)}}else if(p.indexOf(qr(Q),we)!=we){var ot=Me.lastIndexOf(Q);ot>-1&&(Me=Me.slice(0,ot))}return Me+U}function qq(p){return p=hn(p),p&&Vn.test(p)?p.replace(jt,_K):p}var Zq=xu(function(p,C,T){return p+(T?" ":"")+C.toUpperCase()}),SS=hE("toUpperCase");function f4(p,C,T){return p=hn(p),C=T?n:C,C===n?SK(p)?PK(p):dK(p):p.match(C)||[]}var p4=Jt(function(p,C){try{return Yr(p,n,C)}catch(T){return vS(T)?T:new Wt(T)}}),Qq=Ga(function(p,C){return vi(C,function(T){T=ba(T),Ka(p,T,hS(p[T],p))}),p});function Jq(p){var C=p==null?0:p.length,T=Tt();return p=C?Fn(p,function(U){if(typeof U[1]!="function")throw new mi(a);return[T(U[0]),U[1]]}):[],Jt(function(U){for(var Q=-1;++QL)return[];var T=G,U=er(p,G);C=Tt(C),p-=G;for(var Q=E1(U,C);++T0||C<0)?new on(T):(p<0?T=T.takeRight(-p):p&&(T=T.drop(p)),C!==n&&(C=Xt(C),T=C<0?T.dropRight(-C):T.take(C-p)),T)},on.prototype.takeRightWhile=function(p){return this.reverse().takeWhile(p).reverse()},on.prototype.toArray=function(){return this.take(G)},va(on.prototype,function(p,C){var T=/^(?:filter|find|map|reject)|While$/.test(C),U=/^(?:head|last)$/.test(C),Q=ce[U?"take"+(C=="last"?"Right":""):C],de=U||/^find/.test(C);Q&&(ce.prototype[C]=function(){var Ce=this.__wrapped__,we=U?[1]:arguments,Me=Ce instanceof on,ze=we[0],je=Me||Kt(Ce),Ge=function(tn){var sn=Q.apply(ce,Bl([tn],we));return U&&ot?sn[0]:sn};je&&T&&typeof ze=="function"&&ze.length!=1&&(Me=je=!1);var ot=this.__chain__,yt=!!this.__actions__.length,Et=de&&!ot,Qt=Me&&!yt;if(!de&&je){Ce=Qt?Ce:new on(this);var At=p.apply(Ce,we);return At.__actions__.push({func:Xg,args:[Ge],thisArg:n}),new bi(At,ot)}return Et&&Qt?p.apply(this,we):(At=this.thru(Ge),Et?U?At.value()[0]:At.value():At)})}),vi(["pop","push","shift","sort","splice","unshift"],function(p){var C=Cg[p],T=/^(?:push|sort|unshift)$/.test(p)?"tap":"thru",U=/^(?:pop|shift)$/.test(p);ce.prototype[p]=function(){var Q=arguments;if(U&&!this.__chain__){var de=this.value();return C.apply(Kt(de)?de:[],Q)}return this[T](function(Ce){return C.apply(Kt(Ce)?Ce:[],Q)})}}),va(on.prototype,function(p,C){var T=ce[C];if(T){var U=T.name+"";vn.call(Su,U)||(Su[U]=[]),Su[U].push({name:C,func:T})}}),Su[jg(n,b).name]=[{name:"wrapper",func:n}],on.prototype.clone=qK,on.prototype.reverse=ZK,on.prototype.value=QK,ce.prototype.at=IY,ce.prototype.chain=PY,ce.prototype.commit=TY,ce.prototype.next=EY,ce.prototype.plant=MY,ce.prototype.reverse=RY,ce.prototype.toJSON=ce.prototype.valueOf=ce.prototype.value=DY,ce.prototype.first=ce.prototype.head,_f&&(ce.prototype[_f]=AY),ce},mu=TK();Hs?((Hs.exports=mu)._=mu,$1._=mu):Ho._=mu}).call(Lr)})(eb,eb.exports);var HRe=eb.exports;const Fp=Ba(HRe),zRe="#17b392",Jj="LOCAL_STORAGE_LOCALE",jRe="LOCAL_STORAGE_THEME";let WRe=localStorage.getItem(jRe);function VRe(e){e=e.replace("#","");const t=parseInt(e.substring(0,2),16),n=parseInt(e.substring(2,4),16),o=parseInt(e.substring(4,6),16),[r,i,a]=[t,n,o].map(s=>{const c=s/255;return c<=.03928?c/12.92:Math.pow((c+.055)/1.055,2.4)});return .2126*r+.7152*i+.0722*a>.5?"#131313":"#e3e1e1"}const Oh=he(WRe||zRe),_He=e=>M(()=>Oh.value+e),OHe=M(()=>VRe(Oh.value)),IHe={HEALTHY:"green",REGISTED:"green"},KRe={functional:!0,props:["route"],render:(e,t,n)=>{var i,a,l;let o=n.route,r=(a=(i=o.meta)==null?void 0:i.slots)==null?void 0:a.header;return Ni(r)||Ni("div",(l=o.params)==null?void 0:l.pathId)}},PHe={RUNNING:"green",PENDING:"yellow",TERMINATING:"red",CRASHING:"darkRed"},Lu="__PROVIDE_INJECT_KEY_",eW={LAYOUT_ROUTE_KEY:Lu+"LAYOUT_ROUTE_KEY",LOCALE:Lu+"LOCALE",GRAFANA:Lu+"GRAFANA",SEARCH_DOMAIN:Lu+"SEARCH_DOMAIN",COLLAPSED:Lu+"COLLAPSED",TAB_LAYOUT_STATE:Lu+"TAB_LAYOUT_STATE"},URe={class:"__container_router_tab_index"},GRe={key:0,class:"header"},YRe={id:"layout-tab-body",style:{transition:"scroll-top 0.5s ease",overflow:"auto",height:"calc(100vh - 300px)","padding-bottom":"20px"}},XRe=pe({__name:"layout_tab",setup(e){ON(c=>({"6b871b3a":It(Oh)}));const t=St({});ft(eW.PROVIDE_INJECT_KEY,t);const n=kj(),o=Ml();o.meta;const r=M(()=>{var u,d;let c=o.meta;return(d=(u=c==null?void 0:c.parent)==null?void 0:u.children)==null?void 0:d.filter(f=>f.meta.tab)}),i=M(()=>o.name+"_"+Fp.uniqueId());let a=he(o.name),l=he(!1),s=Fp.uniqueId("__tab_page");return n.beforeEach((c,u,d)=>{s=Fp.uniqueId("__tab_page"),l.value=!0,a.value=c.name,d(),setTimeout(()=>{l.value=!1},500)}),(c,u)=>{const d=Nt("a-col"),f=Nt("a-row"),h=Nt("a-tab-pane"),m=Nt("a-tabs"),v=Nt("router-view"),y=Nt("a-spin");return ht(),qt("div",URe,[(ht(),qt("div",{key:It(s)},[It(o).meta.tab?(ht(),qt("div",GRe,[g(f,null,{default:bn(()=>[g(d,{span:1},{default:bn(()=>[tt("span",{onClick:u[0]||(u[0]=b=>It(n).replace(It(o).meta.back||"../")),style:{float:"left"}},[g(It(S5),{icon:"material-symbols:keyboard-backspace-rounded",class:"back"})])]),_:1}),g(d,{span:18},{default:bn(()=>[g(It(KRe),{route:It(o)},null,8,["route"])]),_:1})]),_:1}),g(m,{onChange:u[1]||(u[1]=b=>It(n).push({name:It(a)||""})),activeKey:It(a),"onUpdate:activeKey":u[2]||(u[2]=b=>Wn(a)?a.value=b:a=b)},{default:bn(()=>[(ht(!0),qt(Je,null,Cd(r.value.filter(b=>!b.meta.hidden),b=>(ht(),jn(h,{key:b.name},{tab:bn(()=>[tt("span",null,[g(It(S5),{style:{"margin-bottom":"-2px"},icon:b.meta.icon},null,8,["icon"]),Do(" "+Uo(c.$t(b.name)),1)])]),_:2},1024))),128))]),_:1},8,["activeKey"])])):zn("",!0),g(y,{class:"tab-spin",spinning:It(l)},{default:bn(()=>[tt("div",YRe,[It(l)?zn("",!0):(ht(),jn(v,{key:i.value}))])]),_:1},8,["spinning"])]))])}}}),fa=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},qi=fa(XRe,[["__scopeId","data-v-e3c1cda1"]]),qRe={class:"__container_AppTabHeaderSlot"},ZRe={class:"header-desc"},QRe=pe({__name:"AppTabHeaderSlot",setup(e){const t=Ml();return(n,o)=>{const r=Nt("a-col"),i=Nt("a-row");return ht(),qt("div",qRe,[g(i,null,{default:bn(()=>[g(r,{span:12},{default:bn(()=>{var a;return[tt("span",ZRe,Uo(n.$t("applicationDomain.name"))+": "+Uo((a=It(t).params)==null?void 0:a.pathId),1)]}),_:1})]),_:1})])}}}),JRe=fa(QRe,[["__scopeId","data-v-d9202124"]]),e5e={class:"__container_ServiceTabHeaderSlot"},t5e={class:"header-desc"},n5e=pe({__name:"ServiceTabHeaderSlot",setup(e){const t=Ml();return(n,o)=>{var r;return ht(),qt("div",e5e,[tt("span",t5e,Uo(n.$t("serviceDomain.name"))+": "+Uo((r=It(t).params)==null?void 0:r.pathId),1)])}}}),o5e=fa(n5e,[["__scopeId","data-v-3de51f62"]]),r5e={class:"__container_AppTabHeaderSlot"},i5e={class:"header-desc"},a5e=pe({__name:"InstanceTabHeaderSlot",setup(e){const t=Ml();return(n,o)=>{const r=Nt("a-col"),i=Nt("a-row");return ht(),qt("div",r5e,[g(i,null,{default:bn(()=>[g(r,{span:12},{default:bn(()=>{var a;return[tt("span",i5e,Uo(n.$t("instanceDomain.name"))+": "+Uo((a=It(t).params)==null?void 0:a.pathId),1)]}),_:1})]),_:1})])}}}),l5e=fa(a5e,[["__scopeId","data-v-945638c8"]]),s5e={},c5e=e=>(Ps("data-v-0f2e35af"),e=e(),Ts(),e),u5e={class:"__container_AppTabHeaderSlot"},d5e=c5e(()=>tt("span",{class:"header-desc"}," 新增条件路由 ",-1));function f5e(e,t){const n=Nt("a-col"),o=Nt("a-row");return ht(),qt("div",u5e,[g(o,null,{default:bn(()=>[g(n,{span:12},{default:bn(()=>[d5e]),_:1})]),_:1})])}const p5e=fa(s5e,[["render",f5e],["__scopeId","data-v-0f2e35af"]]),h5e={class:"__container_AppTabHeaderSlot"},g5e={class:"header-desc"},v5e=pe({__name:"conditionRuleDetailTabHeaderSlot",setup(e){const t=Ml();return(n,o)=>{const r=Nt("a-col"),i=Nt("a-row");return ht(),qt("div",h5e,[g(i,null,{default:bn(()=>[g(r,{span:12},{default:bn(()=>{var a;return[tt("span",g5e,Uo((a=It(t).params)==null?void 0:a.ruleName),1)]}),_:1})]),_:1})])}}}),m5e=fa(v5e,[["__scopeId","data-v-8b847dc2"]]),b5e={class:"__container_AppTabHeaderSlot"},y5e={class:"header-desc"},S5e=pe({__name:"updateConditionRuleTabHeaderSlot",setup(e){const t=Ml();return(n,o)=>{const r=Nt("a-col"),i=Nt("a-row");return ht(),qt("div",b5e,[g(i,null,{default:bn(()=>[g(r,{span:12},{default:bn(()=>{var a;return[tt("span",y5e," 修改 "+Uo((a=It(t).params)==null?void 0:a.ruleName),1)]}),_:1})]),_:1})])}}}),C5e=fa(S5e,[["__scopeId","data-v-9e571c17"]]),$5e={},x5e=e=>(Ps("data-v-0f780945"),e=e(),Ts(),e),w5e={class:"__container_AppTabHeaderSlot"},_5e=x5e(()=>tt("span",{class:"header-desc"}," 新增标签路由 ",-1));function O5e(e,t){const n=Nt("a-col"),o=Nt("a-row");return ht(),qt("div",w5e,[g(o,null,{default:bn(()=>[g(n,{span:12},{default:bn(()=>[_5e]),_:1})]),_:1})])}const I5e=fa($5e,[["render",O5e],["__scopeId","data-v-0f780945"]]),P5e={class:"__container_AppTabHeaderSlot"},T5e={class:"header-desc"},E5e=pe({__name:"tagRuleDetailTabHeaderSlot",setup(e){const t=Ml();return(n,o)=>{const r=Nt("a-col"),i=Nt("a-row");return ht(),qt("div",P5e,[g(i,null,{default:bn(()=>[g(r,{span:12},{default:bn(()=>{var a;return[tt("span",T5e,Uo((a=It(t).params)==null?void 0:a.ruleName),1)]}),_:1})]),_:1})])}}}),A5e=fa(E5e,[["__scopeId","data-v-49f86476"]]),M5e={class:"__container_AppTabHeaderSlot"},R5e={class:"header-desc"},D5e=pe({__name:"updateTagRuleTabHeaderSlot",setup(e){const t=Ml();return(n,o)=>{const r=Nt("a-col"),i=Nt("a-row");return ht(),qt("div",M5e,[g(i,null,{default:bn(()=>[g(r,{span:12},{default:bn(()=>{var a;return[tt("span",R5e," 修改 "+Uo((a=It(t).params)==null?void 0:a.ruleName),1)]}),_:1})]),_:1})])}}}),L5e=fa(D5e,[["__scopeId","data-v-91777569"]]),N5e={class:"__container_AppTabHeaderSlot"},k5e={class:"header-desc"},B5e=pe({__name:"updateDCTabHeaderSlot",setup(e){const t=Ml();return(n,o)=>{const r=Nt("a-col"),i=Nt("a-row");return ht(),qt("div",N5e,[g(i,null,{default:bn(()=>[g(r,{span:20},{default:bn(()=>{var a,l;return[tt("span",k5e,Uo(((a=It(t).params)==null?void 0:a.isEdit)==="1"?n.$t("dynamicConfigDomain.updateByFormView"):n.$t("dynamicConfigDomain.detailByFormView"))+" "+Uo((l=It(t).params)==null?void 0:l.pathId),1)]}),_:1})]),_:1})])}}}),C5=fa(B5e,[["__scopeId","data-v-4d4ee463"]]),tW=[{path:"/login",name:"Login",component:()=>Ht(()=>import("./Login-QsM7tdlI.js"),__vite__mapDeps([0,1,2,3])),meta:{skip:!0},children:[]},{path:"/",name:"Root",redirect:"/home",component:()=>Ht(()=>import("./index-ECEQf-Fc.js"),__vite__mapDeps([4,5,2,6,7,1,8])),meta:{skip:!0},children:[{path:"/home",name:"homePage",component:()=>Ht(()=>import("./index-PuhA8qFJ.js"),__vite__mapDeps([9,10,2,11])),meta:{icon:"carbon:web-services-cluster"}},{path:"/resources",name:"resources",meta:{icon:"carbon:web-services-cluster"},children:[{path:"/applications",name:"applications",component:qi,redirect:"list",meta:{tab_parent:!0,slots:{header:JRe}},children:[{path:"/list",name:"router.resource.app.list",component:()=>Ht(()=>import("./index-jbm-YZ4W.js"),__vite__mapDeps([12,5,2,13,14,15])),meta:{hidden:!0}},{path:"/detail/:pathId",name:"applicationDomain.detail",component:()=>Ht(()=>import("./detail-NWi5D_Jp.js"),__vite__mapDeps([16,5,2,17])),meta:{tab:!0,icon:"tabler:list-details",back:"/resources/applications/list"}},{path:"/instance/:pathId",name:"applicationDomain.instance",component:()=>Ht(()=>import("./instance-u5IY96cv.js"),__vite__mapDeps([18,13,14,5,2,19,20,21,22])),meta:{tab:!0,icon:"ooui:instance-ltr",back:"/resources/applications/list"}},{path:"/service/:pathId",name:"applicationDomain.service",component:()=>Ht(()=>import("./service-LECfslfz.js"),__vite__mapDeps([23,10,2,13,14,5,20,24])),meta:{tab:!0,icon:"carbon:web-services-definition",back:"/resources/applications/list"}},{path:"/monitor/:pathId",name:"applicationDomain.monitor",component:()=>Ht(()=>import("./monitor-kZ_wOjob.js"),__vite__mapDeps([25,26,27,5,2])),meta:{tab:!0,icon:"material-symbols-light:monitor-heart-outline",back:"/resources/applications/list"}},{path:"/tracing/:pathId",name:"applicationDomain.tracing",component:()=>Ht(()=>import("./tracing-egUve7nj.js"),__vite__mapDeps([28,26,27,5,2])),meta:{tab:!0,icon:"game-icons:digital-trace",back:"/resources/applications/list"}},{path:"/config/:pathId",name:"applicationDomain.config",component:()=>Ht(()=>import("./config-iPQQ4Osw.js"),__vite__mapDeps([29,30,31,5,2,32])),meta:{tab:!0,icon:"material-symbols:settings",back:"/resources/applications/list"}},{path:"/event/:pathId",name:"applicationDomain.event",component:()=>Ht(()=>import("./event-ZoLBaQpy.js"),__vite__mapDeps([33,5,2,34])),meta:{tab:!0,hidden:!0,icon:"material-symbols:date-range",back:"/resources/applications/list"}}]},{path:"/instances",name:"instances",component:qi,redirect:"list",meta:{tab_parent:!0,slots:{header:l5e}},children:[{path:"/list",name:"router.resource.ins.list",component:()=>Ht(()=>import("./index-fU57L0AQ.js"),__vite__mapDeps([35,6,2,13,14,20,21,36])),meta:{hidden:!0}},{path:"/detail/:appName/:pathId?",name:"instanceDomain.details",component:()=>Ht(()=>import("./detail-IPVQRAO3.js"),__vite__mapDeps([37,17,6,2,19])),meta:{tab:!0,icon:"tabler:list-details",back:"/resources/instances/list"}},{path:"/monitor/:pathId/:appName",name:"instanceDomain.monitor",component:()=>Ht(()=>import("./monitor-Yx9RU22f.js"),__vite__mapDeps([38,26,27,6,2])),meta:{tab:!0,icon:"ooui:instance-ltr",back:"/resources/instances/list"}},{path:"/linktracking/:pathId/:appName",name:"instanceDomain.linkTracking",component:()=>Ht(()=>import("./linkTracking-gLhWXj25.js"),__vite__mapDeps([39,26,27,6,2])),meta:{tab:!0,icon:"material-symbols-light:monitor-heart-outline",back:"/resources/instances/list"}},{path:"/configuration/:pathId/:appName",name:"instanceDomain.configuration",component:()=>Ht(()=>import("./configuration-um3mt9hU.js"),__vite__mapDeps([40,30,31,6,2])),meta:{tab:!0,icon:"material-symbols:settings",back:"/resources/instances/list"}},{path:"/event/:pathId/:appName",name:"instanceDomain.event",component:()=>Ht(()=>import("./event-Di8PmXwq.js"),__vite__mapDeps([])),meta:{tab:!0,hidden:!0,icon:"material-symbols:date-range",back:"/resources/instances/list"}}]},{path:"/services",name:"services",redirect:"list",component:qi,meta:{tab_parent:!0,slots:{header:o5e}},children:[{path:"/list",name:"router.resource.svc.list",component:()=>Ht(()=>import("./search-c0Szb99-.js"),__vite__mapDeps([41,7,2,13,14,20,42])),meta:{hidden:!0}},{path:"/distribution/:pathId/:group?/:version?",name:"distribution",component:()=>Ht(()=>import("./distribution-WSPxFnjE.js"),__vite__mapDeps([43,7,2,19,44])),meta:{tab:!0,back:"/resources/services/list"}},{path:"/monitor/:pathId/:group?/:version?",name:"monitor",component:()=>Ht(()=>import("./monitor-JE2IXQk_.js"),__vite__mapDeps([45,26,27,7,2])),meta:{tab:!0,back:"/resources/services/list"}},{path:"/tracing/:pathId/:group?/:version?",name:"tracing",component:()=>Ht(()=>import("./tracing-DAAA17XP.js"),__vite__mapDeps([46,26,27,7,2])),meta:{tab:!0,back:"/resources/services/list"}},{path:"/sceneConfig/:pathId/:group?/:version?",name:"sceneConfig",component:()=>Ht(()=>import("./sceneConfig-wKVgfCMN.js"),__vite__mapDeps([47,30,31,7,2,48])),meta:{tab:!0,back:"/resources/services/list"}},{path:"/event/:pathId/:group?/:version?",name:"event",component:()=>Ht(()=>import("./event-IjH1CTVp.js"),__vite__mapDeps([49,50])),meta:{tab:!0,hidden:!0,back:"/resources/services/list"}}]}]},{path:"/traffic",name:"trafficManagement",meta:{icon:"eos-icons:cluster-management"},children:[{path:"/routingRule",name:"routingRule",redirect:"index",component:qi,meta:{tab_parent:!0,slots:{header:m5e}},children:[{path:"/index",name:"routingRuleIndex",component:()=>Ht(()=>import("./index-9Tpk6WxM.js"),__vite__mapDeps([51,52,2,13,14,19,53])),meta:{hidden:!0}},{path:"/formview/:ruleName",name:"routingRuleDomain.formView",component:()=>Ht(()=>import("./formView-RlUvRzIB.js"),__vite__mapDeps([54,17,52,2,55])),meta:{tab:!0,icon:"oui:apm-trace"}},{path:"/yamlview/:ruleName",name:"routingRuleDomain.YAMLView",component:()=>Ht(()=>import("./YAMLView-mXrxtewG.js"),__vite__mapDeps([56,57,58,52,2,59])),meta:{tab:!0,icon:"oui:app-console"}}]},{path:"/addRoutingRule",name:"addRoutingRule",component:qi,redirect:"addByFormView",meta:{tab_parent:!0,hidden:!0,slots:{header:p5e}},children:[{path:"/addByFormView",name:"addRoutingRuleDomain.formView",component:()=>Ht(()=>import("./addByFormView-suZAGsdv.js"),__vite__mapDeps([60,17,52,2,61])),meta:{tab:!0,icon:"oui:apm-trace"}},{path:"/addByYamlView",name:"addRoutingRuleDomain.YAMLView",component:()=>Ht(()=>import("./addByYAMLView-fC-hqbkM.js"),__vite__mapDeps([62,57,58,52,2,63])),meta:{tab:!0,icon:"oui:app-console"}}]},{path:"/updateRoutingRule",name:"updateRoutingRule",component:qi,meta:{tab_parent:!0,hidden:!0,slots:{header:C5e}},children:[{path:"/updateByFormView/:ruleName",name:"updateRoutingRuleDomain.formView",component:()=>Ht(()=>import("./updateByFormView-ySWJqpjX.js"),__vite__mapDeps([64,17,52,2,65])),meta:{tab:!0}},{path:"/updateByYAMLView/:ruleName",name:"updateRoutingRuleDomain.YAMLView",component:()=>Ht(()=>import("./updateByYAMLView--nyJvxZJ.js"),__vite__mapDeps([66,57,58,52,2,67])),meta:{tab:!0}}]},{path:"/tagRule",name:"tagRule",redirect:"index",component:qi,meta:{tab_parent:!0,slots:{header:A5e}},children:[{path:"/index",name:"tagRuleIndex",component:()=>Ht(()=>import("./index-VDeT_deC.js"),__vite__mapDeps([68,52,2,13,14,19,69])),meta:{hidden:!0}},{path:"/formview/:ruleName",name:"tagRuleDomain.formView",component:()=>Ht(()=>import("./formView-2KzX11dd.js"),__vite__mapDeps([70,17,52,2,71])),meta:{tab:!0,icon:"oui:apm-trace",back:"/traffic/tagRule"}},{path:"/yamlview/:ruleName",name:"tagRuleDomain.YAMLView",component:()=>Ht(()=>import("./YAMLView-s3WMf-Uo.js"),__vite__mapDeps([72,57,58,52,2,73])),meta:{tab:!0,icon:"oui:app-console"}}]},{path:"/addTagRule",name:"addTagRule",component:qi,meta:{tab_parent:!0,hidden:!0,slots:{header:I5e}},children:[{path:"/addByFormView",name:"addTagRuleDomain.formView",component:()=>Ht(()=>import("./addByFormView-Ia4T74MU.js"),__vite__mapDeps([74,17,52,2,75])),meta:{tab:!0,icon:"oui:apm-trace"}},{path:"/addByYAMLView",name:"addTagRuleDomain.YAMLView",component:()=>Ht(()=>import("./addByYAMLView--WjgktlZ.js"),__vite__mapDeps([76,57,58,52,2,77])),meta:{tab:!0,icon:"oui:app-console"}}]},{path:"/updateTagRule",name:"updateTagRule",component:qi,meta:{tab_parent:!0,hidden:!0,slots:{header:L5e}},children:[{path:"/updateByFormView/:ruleName",name:"updateTagRuleDomain.formView",component:()=>Ht(()=>import("./updateByFormView-mbEXmvrc.js"),__vite__mapDeps([78,17,52,2,79])),meta:{tab:!0}},{path:"/updateByYAMLView/:ruleName",name:"updateTagRuleDomain.YAMLView",component:()=>Ht(()=>import("./updateByYAMLView-X3vjkbCV.js"),__vite__mapDeps([80,57,58,52,2,81])),meta:{tab:!0}}]},{path:"/dynamicConfig",name:"dynamicConfig",redirect:"index",component:qi,meta:{tab_parent:!0},children:[{path:"/index",name:"dynamicConfigIndex",component:()=>Ht(()=>import("./index-ytKGiqRq.js"),__vite__mapDeps([82,52,2,13,14,83])),meta:{hidden:!0}},{path:"/formview/:pathId/:isEdit",name:"dynamicConfigDomain.formView",component:()=>Ht(()=>import("./formView-vzcbtWy_.js"),__vite__mapDeps([84,17,52,2,85,86])),meta:{tab:!0,icon:"oui:apm-trace",back:"/traffic/dynamicConfig",slots:{header:C5}}},{path:"/yamlview/:pathId/:isEdit",name:"dynamicConfigDomain.YAMLView",component:()=>Ht(()=>import("./YAMLView-TcLqiDOf.js"),__vite__mapDeps([87,57,58,52,2,85,88])),meta:{tab:!0,icon:"oui:app-console",back:"/traffic/dynamicConfig",slots:{header:C5}}}]}]},{path:"/common",name:"commonDemo",redirect:"tab",meta:{hidden:!0,icon:"tdesign:play-demo"},children:[{path:"/tab",name:"tabDemo",component:qi,redirect:"index",meta:{tab_parent:!0},children:[{path:"/index",name:"tab_demo_index",component:()=>Ht(()=>import("./index-tIlk8-2z.js"),__vite__mapDeps([])),meta:{hidden:!0}},{path:"/tab1/:pathId",name:"tab1",component:()=>Ht(()=>import("./tab1-Erm3qhoK.js"),__vite__mapDeps([])),meta:{icon:"simple-icons:podman",tab:!0}},{path:"/tab2/:pathId",name:"tab2",component:()=>Ht(()=>import("./tab2-gYKBqlWv.js"),__vite__mapDeps([])),meta:{icon:"fontisto:docker",tab:!0}}]},{path:"/placeholder",name:"placeholder_demo",component:()=>Ht(()=>import("./index-gNarHmYQ.js"),__vite__mapDeps([])),meta:{}}]}]},{path:"/:catchAll(.*)",name:"notFound",component:()=>Ht(()=>import("./notFound-hYD9Tscu.js"),__vite__mapDeps([89,90])),meta:{skip:!0}}];function $5(...e){return e.join("/").replace(/\/+/g,"/")}function nW(e,t){if(e)for(const n of e)t&&(n.path=$5(t==null?void 0:t.path,n.path)),n.redirect&&(n.redirect=$5(n.path,n.redirect||"")),n.meta?(n.meta._router_key=Fp.uniqueId("__router_key"),n.meta.parent=t,n.meta.skip=n.meta.skip===!0):n.meta={_router_key:Fp.uniqueId("__router_key"),skip:!1},nW(n.children,n)}nW(tW,void 0);const F5e={history:e8e("/admin"),routes:tW},oW=k8e(F5e),H5e={locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH时mm分ss秒",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"},z5e=H5e,j5e={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},rW=j5e,iW={lang:S({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},z5e),timePickerLocale:S({},rW)};iW.lang.ok="确定";const x5=iW,oi="${label}不是一个有效的${type}",W5e={locale:"zh-cn",Pagination:zH,DatePicker:x5,TimePicker:rW,Calendar:x5,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开"},PageHeader:{back:"返回"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:oi,method:oi,array:oi,object:oi,number:oi,date:oi,boolean:oi,integer:oi,float:oi,regexp:oi,email:oi,url:oi,hex:oi},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码已过期",refresh:"点击刷新",scanned:"已扫描"}},V5e=W5e;var aW={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Lr,function(){var n=1e3,o=6e4,r=36e5,i="millisecond",a="second",l="minute",s="hour",c="day",u="week",d="month",f="quarter",h="year",m="date",v="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,$={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(W){var D=["th","st","nd","rd"],B=W%100;return"["+W+(D[(B-20)%10]||D[B]||D[0])+"]"}},x=function(W,D,B){var k=String(W);return!k||k.length>=D?W:""+Array(D+1-k.length).join(B)+W},_={s:x,z:function(W){var D=-W.utcOffset(),B=Math.abs(D),k=Math.floor(B/60),L=B%60;return(D<=0?"+":"-")+x(k,2,"0")+":"+x(L,2,"0")},m:function W(D,B){if(D.date()1)return W(K[0])}else{var G=D.name;I[G]=D,L=G}return!k&&L&&(w=L),L||!k&&w},R=function(W,D){if(P(W))return W.clone();var B=typeof D=="object"?D:{};return B.date=W,B.args=arguments,new N(B)},A=_;A.l=E,A.i=P,A.w=function(W,D){return R(W,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var N=function(){function W(B){this.$L=E(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[O]=!0}var D=W.prototype;return D.parse=function(B){this.$d=function(k){var L=k.date,z=k.utc;if(L===null)return new Date(NaN);if(A.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var K=L.match(y);if(K){var G=K[2]-1||0,Y=(K[7]||"0").substring(0,3);return z?new Date(Date.UTC(K[1],G,K[3]||1,K[4]||0,K[5]||0,K[6]||0,Y)):new Date(K[1],G,K[3]||1,K[4]||0,K[5]||0,K[6]||0,Y)}}return new Date(L)}(B),this.init()},D.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},D.$utils=function(){return A},D.isValid=function(){return this.$d.toString()!==v},D.isSame=function(B,k){var L=R(B);return this.startOf(k)<=L&&L<=this.endOf(k)},D.isAfter=function(B,k){return R(B)=de)return p;var we=T-vu(U);if(we<1)return U;var Me=Ce?Vl(Ce,0,we).join(""):p.slice(0,we);if(Q===n)return Me+U;if(Ce&&(we+=Me.length-we),mS(Q)){if(p.slice(we).search(Q)){var ze,je=Me;for(Q.global||(Q=R1(Q.source,hn(qo.exec(Q))+"g")),Q.lastIndex=0;ze=Q.exec(je);)var Ge=ze.index;Me=Me.slice(0,Ge===n?we:Ge)}}else if(p.indexOf(qr(Q),we)!=we){var ot=Me.lastIndexOf(Q);ot>-1&&(Me=Me.slice(0,ot))}return Me+U}function qq(p){return p=hn(p),p&&Vn.test(p)?p.replace(jt,_K):p}var Zq=xu(function(p,C,T){return p+(T?" ":"")+C.toUpperCase()}),SS=hE("toUpperCase");function f4(p,C,T){return p=hn(p),C=T?n:C,C===n?SK(p)?PK(p):dK(p):p.match(C)||[]}var p4=Jt(function(p,C){try{return Yr(p,n,C)}catch(T){return vS(T)?T:new Wt(T)}}),Qq=Ga(function(p,C){return vi(C,function(T){T=ba(T),Ka(p,T,hS(p[T],p))}),p});function Jq(p){var C=p==null?0:p.length,T=Tt();return p=C?Fn(p,function(U){if(typeof U[1]!="function")throw new mi(a);return[T(U[0]),U[1]]}):[],Jt(function(U){for(var Q=-1;++QL)return[];var T=G,U=er(p,G);C=Tt(C),p-=G;for(var Q=E1(U,C);++T0||C<0)?new on(T):(p<0?T=T.takeRight(-p):p&&(T=T.drop(p)),C!==n&&(C=Xt(C),T=C<0?T.dropRight(-C):T.take(C-p)),T)},on.prototype.takeRightWhile=function(p){return this.reverse().takeWhile(p).reverse()},on.prototype.toArray=function(){return this.take(G)},va(on.prototype,function(p,C){var T=/^(?:filter|find|map|reject)|While$/.test(C),U=/^(?:head|last)$/.test(C),Q=ce[U?"take"+(C=="last"?"Right":""):C],de=U||/^find/.test(C);Q&&(ce.prototype[C]=function(){var Ce=this.__wrapped__,we=U?[1]:arguments,Me=Ce instanceof on,ze=we[0],je=Me||Kt(Ce),Ge=function(tn){var sn=Q.apply(ce,Bl([tn],we));return U&&ot?sn[0]:sn};je&&T&&typeof ze=="function"&&ze.length!=1&&(Me=je=!1);var ot=this.__chain__,yt=!!this.__actions__.length,Et=de&&!ot,Qt=Me&&!yt;if(!de&&je){Ce=Qt?Ce:new on(this);var At=p.apply(Ce,we);return At.__actions__.push({func:Xg,args:[Ge],thisArg:n}),new bi(At,ot)}return Et&&Qt?p.apply(this,we):(At=this.thru(Ge),Et?U?At.value()[0]:At.value():At)})}),vi(["pop","push","shift","sort","splice","unshift"],function(p){var C=Cg[p],T=/^(?:push|sort|unshift)$/.test(p)?"tap":"thru",U=/^(?:pop|shift)$/.test(p);ce.prototype[p]=function(){var Q=arguments;if(U&&!this.__chain__){var de=this.value();return C.apply(Kt(de)?de:[],Q)}return this[T](function(Ce){return C.apply(Kt(Ce)?Ce:[],Q)})}}),va(on.prototype,function(p,C){var T=ce[C];if(T){var U=T.name+"";vn.call(Su,U)||(Su[U]=[]),Su[U].push({name:C,func:T})}}),Su[jg(n,b).name]=[{name:"wrapper",func:n}],on.prototype.clone=qK,on.prototype.reverse=ZK,on.prototype.value=QK,ce.prototype.at=IY,ce.prototype.chain=PY,ce.prototype.commit=TY,ce.prototype.next=EY,ce.prototype.plant=MY,ce.prototype.reverse=RY,ce.prototype.toJSON=ce.prototype.valueOf=ce.prototype.value=DY,ce.prototype.first=ce.prototype.head,_f&&(ce.prototype[_f]=AY),ce},mu=TK();Hs?((Hs.exports=mu)._=mu,$1._=mu):Ho._=mu}).call(Lr)})(eb,eb.exports);var HRe=eb.exports;const Fp=Ba(HRe),zRe="#17b392",Jj="LOCAL_STORAGE_LOCALE",jRe="LOCAL_STORAGE_THEME";let WRe=localStorage.getItem(jRe);function VRe(e){e=e.replace("#","");const t=parseInt(e.substring(0,2),16),n=parseInt(e.substring(2,4),16),o=parseInt(e.substring(4,6),16),[r,i,a]=[t,n,o].map(s=>{const c=s/255;return c<=.03928?c/12.92:Math.pow((c+.055)/1.055,2.4)});return .2126*r+.7152*i+.0722*a>.5?"#131313":"#e3e1e1"}const Oh=he(WRe||zRe),_He=e=>M(()=>Oh.value+e),OHe=M(()=>VRe(Oh.value)),IHe={HEALTHY:"green",REGISTED:"green"},KRe={functional:!0,props:["route"],render:(e,t,n)=>{var i,a,l;let o=n.route,r=(a=(i=o.meta)==null?void 0:i.slots)==null?void 0:a.header;return Ni(r)||Ni("div",(l=o.params)==null?void 0:l.pathId)}},PHe={RUNNING:"green",PENDING:"yellow",TERMINATING:"red",CRASHING:"darkRed"},Lu="__PROVIDE_INJECT_KEY_",eW={LAYOUT_ROUTE_KEY:Lu+"LAYOUT_ROUTE_KEY",LOCALE:Lu+"LOCALE",GRAFANA:Lu+"GRAFANA",SEARCH_DOMAIN:Lu+"SEARCH_DOMAIN",COLLAPSED:Lu+"COLLAPSED",TAB_LAYOUT_STATE:Lu+"TAB_LAYOUT_STATE"},URe={class:"__container_router_tab_index"},GRe={key:0,class:"header"},YRe={id:"layout-tab-body",style:{transition:"scroll-top 0.5s ease",overflow:"auto",height:"calc(100vh - 300px)","padding-bottom":"20px"}},XRe=pe({__name:"layout_tab",setup(e){ON(c=>({"6b871b3a":It(Oh)}));const t=St({});ft(eW.PROVIDE_INJECT_KEY,t);const n=kj(),o=Ml();o.meta;const r=M(()=>{var u,d;let c=o.meta;return(d=(u=c==null?void 0:c.parent)==null?void 0:u.children)==null?void 0:d.filter(f=>f.meta.tab)}),i=M(()=>o.name+"_"+Fp.uniqueId());let a=he(o.name),l=he(!1),s=Fp.uniqueId("__tab_page");return n.beforeEach((c,u,d)=>{s=Fp.uniqueId("__tab_page"),l.value=!0,a.value=c.name,d(),setTimeout(()=>{l.value=!1},500)}),(c,u)=>{const d=Nt("a-col"),f=Nt("a-row"),h=Nt("a-tab-pane"),m=Nt("a-tabs"),v=Nt("router-view"),y=Nt("a-spin");return ht(),qt("div",URe,[(ht(),qt("div",{key:It(s)},[It(o).meta.tab?(ht(),qt("div",GRe,[g(f,null,{default:bn(()=>[g(d,{span:1},{default:bn(()=>[tt("span",{onClick:u[0]||(u[0]=b=>It(n).replace(It(o).meta.back||"../")),style:{float:"left"}},[g(It(S5),{icon:"material-symbols:keyboard-backspace-rounded",class:"back"})])]),_:1}),g(d,{span:18},{default:bn(()=>[g(It(KRe),{route:It(o)},null,8,["route"])]),_:1})]),_:1}),g(m,{onChange:u[1]||(u[1]=b=>It(n).push({name:It(a)||""})),activeKey:It(a),"onUpdate:activeKey":u[2]||(u[2]=b=>Wn(a)?a.value=b:a=b)},{default:bn(()=>[(ht(!0),qt(Je,null,Cd(r.value.filter(b=>!b.meta.hidden),b=>(ht(),jn(h,{key:b.name},{tab:bn(()=>[tt("span",null,[g(It(S5),{style:{"margin-bottom":"-2px"},icon:b.meta.icon},null,8,["icon"]),Do(" "+Uo(c.$t(b.name)),1)])]),_:2},1024))),128))]),_:1},8,["activeKey"])])):zn("",!0),g(y,{class:"tab-spin",spinning:It(l)},{default:bn(()=>[tt("div",YRe,[It(l)?zn("",!0):(ht(),jn(v,{key:i.value}))])]),_:1},8,["spinning"])]))])}}}),fa=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n},qi=fa(XRe,[["__scopeId","data-v-e3c1cda1"]]),qRe={class:"__container_AppTabHeaderSlot"},ZRe={class:"header-desc"},QRe=pe({__name:"AppTabHeaderSlot",setup(e){const t=Ml();return(n,o)=>{const r=Nt("a-col"),i=Nt("a-row");return ht(),qt("div",qRe,[g(i,null,{default:bn(()=>[g(r,{span:12},{default:bn(()=>{var a;return[tt("span",ZRe,Uo(n.$t("applicationDomain.name"))+": "+Uo((a=It(t).params)==null?void 0:a.pathId),1)]}),_:1})]),_:1})])}}}),JRe=fa(QRe,[["__scopeId","data-v-d9202124"]]),e5e={class:"__container_ServiceTabHeaderSlot"},t5e={class:"header-desc"},n5e=pe({__name:"ServiceTabHeaderSlot",setup(e){const t=Ml();return(n,o)=>{var r;return ht(),qt("div",e5e,[tt("span",t5e,Uo(n.$t("serviceDomain.name"))+": "+Uo((r=It(t).params)==null?void 0:r.pathId),1)])}}}),o5e=fa(n5e,[["__scopeId","data-v-3de51f62"]]),r5e={class:"__container_AppTabHeaderSlot"},i5e={class:"header-desc"},a5e=pe({__name:"InstanceTabHeaderSlot",setup(e){const t=Ml();return(n,o)=>{const r=Nt("a-col"),i=Nt("a-row");return ht(),qt("div",r5e,[g(i,null,{default:bn(()=>[g(r,{span:12},{default:bn(()=>{var a;return[tt("span",i5e,Uo(n.$t("instanceDomain.name"))+": "+Uo((a=It(t).params)==null?void 0:a.pathId),1)]}),_:1})]),_:1})])}}}),l5e=fa(a5e,[["__scopeId","data-v-945638c8"]]),s5e={},c5e=e=>(Ps("data-v-0f2e35af"),e=e(),Ts(),e),u5e={class:"__container_AppTabHeaderSlot"},d5e=c5e(()=>tt("span",{class:"header-desc"}," 新增条件路由 ",-1));function f5e(e,t){const n=Nt("a-col"),o=Nt("a-row");return ht(),qt("div",u5e,[g(o,null,{default:bn(()=>[g(n,{span:12},{default:bn(()=>[d5e]),_:1})]),_:1})])}const p5e=fa(s5e,[["render",f5e],["__scopeId","data-v-0f2e35af"]]),h5e={class:"__container_AppTabHeaderSlot"},g5e={class:"header-desc"},v5e=pe({__name:"conditionRuleDetailTabHeaderSlot",setup(e){const t=Ml();return(n,o)=>{const r=Nt("a-col"),i=Nt("a-row");return ht(),qt("div",h5e,[g(i,null,{default:bn(()=>[g(r,{span:12},{default:bn(()=>{var a;return[tt("span",g5e,Uo((a=It(t).params)==null?void 0:a.ruleName),1)]}),_:1})]),_:1})])}}}),m5e=fa(v5e,[["__scopeId","data-v-8b847dc2"]]),b5e={class:"__container_AppTabHeaderSlot"},y5e={class:"header-desc"},S5e=pe({__name:"updateConditionRuleTabHeaderSlot",setup(e){const t=Ml();return(n,o)=>{const r=Nt("a-col"),i=Nt("a-row");return ht(),qt("div",b5e,[g(i,null,{default:bn(()=>[g(r,{span:12},{default:bn(()=>{var a;return[tt("span",y5e," 修改 "+Uo((a=It(t).params)==null?void 0:a.ruleName),1)]}),_:1})]),_:1})])}}}),C5e=fa(S5e,[["__scopeId","data-v-9e571c17"]]),$5e={},x5e=e=>(Ps("data-v-0f780945"),e=e(),Ts(),e),w5e={class:"__container_AppTabHeaderSlot"},_5e=x5e(()=>tt("span",{class:"header-desc"}," 新增标签路由 ",-1));function O5e(e,t){const n=Nt("a-col"),o=Nt("a-row");return ht(),qt("div",w5e,[g(o,null,{default:bn(()=>[g(n,{span:12},{default:bn(()=>[_5e]),_:1})]),_:1})])}const I5e=fa($5e,[["render",O5e],["__scopeId","data-v-0f780945"]]),P5e={class:"__container_AppTabHeaderSlot"},T5e={class:"header-desc"},E5e=pe({__name:"tagRuleDetailTabHeaderSlot",setup(e){const t=Ml();return(n,o)=>{const r=Nt("a-col"),i=Nt("a-row");return ht(),qt("div",P5e,[g(i,null,{default:bn(()=>[g(r,{span:12},{default:bn(()=>{var a;return[tt("span",T5e,Uo((a=It(t).params)==null?void 0:a.ruleName),1)]}),_:1})]),_:1})])}}}),A5e=fa(E5e,[["__scopeId","data-v-49f86476"]]),M5e={class:"__container_AppTabHeaderSlot"},R5e={class:"header-desc"},D5e=pe({__name:"updateTagRuleTabHeaderSlot",setup(e){const t=Ml();return(n,o)=>{const r=Nt("a-col"),i=Nt("a-row");return ht(),qt("div",M5e,[g(i,null,{default:bn(()=>[g(r,{span:12},{default:bn(()=>{var a;return[tt("span",R5e," 修改 "+Uo((a=It(t).params)==null?void 0:a.ruleName),1)]}),_:1})]),_:1})])}}}),L5e=fa(D5e,[["__scopeId","data-v-91777569"]]),N5e={class:"__container_AppTabHeaderSlot"},k5e={class:"header-desc"},B5e=pe({__name:"updateDCTabHeaderSlot",setup(e){const t=Ml();return(n,o)=>{const r=Nt("a-col"),i=Nt("a-row");return ht(),qt("div",N5e,[g(i,null,{default:bn(()=>[g(r,{span:20},{default:bn(()=>{var a,l;return[tt("span",k5e,Uo(((a=It(t).params)==null?void 0:a.isEdit)==="1"?n.$t("dynamicConfigDomain.updateByFormView"):n.$t("dynamicConfigDomain.detailByFormView"))+" "+Uo((l=It(t).params)==null?void 0:l.pathId),1)]}),_:1})]),_:1})])}}}),C5=fa(B5e,[["__scopeId","data-v-4d4ee463"]]),tW=[{path:"/login",name:"Login",component:()=>Ht(()=>import("./Login-apvEdPeM.js"),__vite__mapDeps([0,1,2,3])),meta:{skip:!0},children:[]},{path:"/",name:"Root",redirect:"/home",component:()=>Ht(()=>import("./index-zWoOz8p-.js"),__vite__mapDeps([4,5,2,6,7,1,8])),meta:{skip:!0},children:[{path:"/home",name:"homePage",component:()=>Ht(()=>import("./index-7eDR2syK.js"),__vite__mapDeps([9,10,2,11])),meta:{icon:"carbon:web-services-cluster"}},{path:"/resources",name:"resources",meta:{icon:"carbon:web-services-cluster"},children:[{path:"/applications",name:"applications",component:qi,redirect:"list",meta:{tab_parent:!0,slots:{header:JRe}},children:[{path:"/list",name:"router.resource.app.list",component:()=>Ht(()=>import("./index-A0xyoYIe.js"),__vite__mapDeps([12,5,2,13,14,15])),meta:{hidden:!0}},{path:"/detail/:pathId",name:"applicationDomain.detail",component:()=>Ht(()=>import("./detail-hHkagtGn.js"),__vite__mapDeps([16,5,2,17])),meta:{tab:!0,icon:"tabler:list-details",back:"/resources/applications/list"}},{path:"/instance/:pathId",name:"applicationDomain.instance",component:()=>Ht(()=>import("./instance-ELqpziUu.js"),__vite__mapDeps([18,13,14,5,2,19,20,21,22])),meta:{tab:!0,icon:"ooui:instance-ltr",back:"/resources/applications/list"}},{path:"/service/:pathId",name:"applicationDomain.service",component:()=>Ht(()=>import("./service-BVuTRmeo.js"),__vite__mapDeps([23,10,2,13,14,5,20,24])),meta:{tab:!0,icon:"carbon:web-services-definition",back:"/resources/applications/list"}},{path:"/monitor/:pathId",name:"applicationDomain.monitor",component:()=>Ht(()=>import("./monitor-f6PTaT1D.js"),__vite__mapDeps([25,26,27,5,2])),meta:{tab:!0,icon:"material-symbols-light:monitor-heart-outline",back:"/resources/applications/list"}},{path:"/tracing/:pathId",name:"applicationDomain.tracing",component:()=>Ht(()=>import("./tracing-RzrHmcJX.js"),__vite__mapDeps([28,26,27,5,2])),meta:{tab:!0,icon:"game-icons:digital-trace",back:"/resources/applications/list"}},{path:"/config/:pathId",name:"applicationDomain.config",component:()=>Ht(()=>import("./config-K0lc03RB.js"),__vite__mapDeps([29,30,31,5,2,32])),meta:{tab:!0,icon:"material-symbols:settings",back:"/resources/applications/list"}},{path:"/event/:pathId",name:"applicationDomain.event",component:()=>Ht(()=>import("./event-l9CyPMBv.js"),__vite__mapDeps([33,5,2,34])),meta:{tab:!0,hidden:!0,icon:"material-symbols:date-range",back:"/resources/applications/list"}}]},{path:"/instances",name:"instances",component:qi,redirect:"list",meta:{tab_parent:!0,slots:{header:l5e}},children:[{path:"/list",name:"router.resource.ins.list",component:()=>Ht(()=>import("./index-tUWFIllr.js"),__vite__mapDeps([35,6,2,13,14,20,21,36])),meta:{hidden:!0}},{path:"/detail/:appName/:pathId?",name:"instanceDomain.details",component:()=>Ht(()=>import("./detail-IBCpA_Em.js"),__vite__mapDeps([37,17,6,2,19])),meta:{tab:!0,icon:"tabler:list-details",back:"/resources/instances/list"}},{path:"/monitor/:pathId/:appName",name:"instanceDomain.monitor",component:()=>Ht(()=>import("./monitor-_tgN0LKd.js"),__vite__mapDeps([38,26,27,6,2])),meta:{tab:!0,icon:"ooui:instance-ltr",back:"/resources/instances/list"}},{path:"/linktracking/:pathId/:appName",name:"instanceDomain.linkTracking",component:()=>Ht(()=>import("./linkTracking-dZ2NlVl4.js"),__vite__mapDeps([39,26,27,6,2])),meta:{tab:!0,icon:"material-symbols-light:monitor-heart-outline",back:"/resources/instances/list"}},{path:"/configuration/:pathId/:appName",name:"instanceDomain.configuration",component:()=>Ht(()=>import("./configuration-wTm-Omst.js"),__vite__mapDeps([40,30,31,6,2])),meta:{tab:!0,icon:"material-symbols:settings",back:"/resources/instances/list"}},{path:"/event/:pathId/:appName",name:"instanceDomain.event",component:()=>Ht(()=>import("./event-sMTqQXIA.js"),__vite__mapDeps([])),meta:{tab:!0,hidden:!0,icon:"material-symbols:date-range",back:"/resources/instances/list"}}]},{path:"/services",name:"services",redirect:"list",component:qi,meta:{tab_parent:!0,slots:{header:o5e}},children:[{path:"/list",name:"router.resource.svc.list",component:()=>Ht(()=>import("./search-s6dK7Hvb.js"),__vite__mapDeps([41,7,2,13,14,20,42])),meta:{hidden:!0}},{path:"/distribution/:pathId/:group?/:version?",name:"distribution",component:()=>Ht(()=>import("./distribution-F7A0tJhh.js"),__vite__mapDeps([43,7,2,19,44])),meta:{tab:!0,back:"/resources/services/list"}},{path:"/monitor/:pathId/:group?/:version?",name:"monitor",component:()=>Ht(()=>import("./monitor-m-tZutaB.js"),__vite__mapDeps([45,26,27,7,2])),meta:{tab:!0,back:"/resources/services/list"}},{path:"/tracing/:pathId/:group?/:version?",name:"tracing",component:()=>Ht(()=>import("./tracing-anN8lSRs.js"),__vite__mapDeps([46,26,27,7,2])),meta:{tab:!0,back:"/resources/services/list"}},{path:"/sceneConfig/:pathId/:group?/:version?",name:"sceneConfig",component:()=>Ht(()=>import("./sceneConfig-a1lGx6QL.js"),__vite__mapDeps([47,30,31,7,2,48])),meta:{tab:!0,back:"/resources/services/list"}},{path:"/event/:pathId/:group?/:version?",name:"event",component:()=>Ht(()=>import("./event-QUEx89TK.js"),__vite__mapDeps([49,50])),meta:{tab:!0,hidden:!0,back:"/resources/services/list"}}]}]},{path:"/traffic",name:"trafficManagement",meta:{icon:"eos-icons:cluster-management"},children:[{path:"/routingRule",name:"routingRule",redirect:"index",component:qi,meta:{tab_parent:!0,slots:{header:m5e}},children:[{path:"/index",name:"routingRuleIndex",component:()=>Ht(()=>import("./index-pwExdCno.js"),__vite__mapDeps([51,52,2,13,14,19,53])),meta:{hidden:!0}},{path:"/formview/:ruleName",name:"routingRuleDomain.formView",component:()=>Ht(()=>import("./formView-VeEGspOH.js"),__vite__mapDeps([54,17,52,2,55])),meta:{tab:!0,icon:"oui:apm-trace"}},{path:"/yamlview/:ruleName",name:"routingRuleDomain.YAMLView",component:()=>Ht(()=>import("./YAMLView-vlB4A6zH.js"),__vite__mapDeps([56,57,58,52,2,59])),meta:{tab:!0,icon:"oui:app-console"}}]},{path:"/addRoutingRule",name:"addRoutingRule",component:qi,redirect:"addByFormView",meta:{tab_parent:!0,hidden:!0,slots:{header:p5e}},children:[{path:"/addByFormView",name:"addRoutingRuleDomain.formView",component:()=>Ht(()=>import("./addByFormView-34FuqdBQ.js"),__vite__mapDeps([60,17,52,2,61])),meta:{tab:!0,icon:"oui:apm-trace"}},{path:"/addByYamlView",name:"addRoutingRuleDomain.YAMLView",component:()=>Ht(()=>import("./addByYAMLView-2m0Rtfoo.js"),__vite__mapDeps([62,57,58,52,2,63])),meta:{tab:!0,icon:"oui:app-console"}}]},{path:"/updateRoutingRule",name:"updateRoutingRule",component:qi,meta:{tab_parent:!0,hidden:!0,slots:{header:C5e}},children:[{path:"/updateByFormView/:ruleName",name:"updateRoutingRuleDomain.formView",component:()=>Ht(()=>import("./updateByFormView-uGRMm5vo.js"),__vite__mapDeps([64,17,52,2,65])),meta:{tab:!0}},{path:"/updateByYAMLView/:ruleName",name:"updateRoutingRuleDomain.YAMLView",component:()=>Ht(()=>import("./updateByYAMLView-zhO2idIo.js"),__vite__mapDeps([66,57,58,52,2,67])),meta:{tab:!0}}]},{path:"/tagRule",name:"tagRule",redirect:"index",component:qi,meta:{tab_parent:!0,slots:{header:A5e}},children:[{path:"/index",name:"tagRuleIndex",component:()=>Ht(()=>import("./index-r9WGZhl7.js"),__vite__mapDeps([68,52,2,13,14,19,69])),meta:{hidden:!0}},{path:"/formview/:ruleName",name:"tagRuleDomain.formView",component:()=>Ht(()=>import("./formView-pYzBQ4Sn.js"),__vite__mapDeps([70,17,52,2,71])),meta:{tab:!0,icon:"oui:apm-trace",back:"/traffic/tagRule"}},{path:"/yamlview/:ruleName",name:"tagRuleDomain.YAMLView",component:()=>Ht(()=>import("./YAMLView-j-cMdOnQ.js"),__vite__mapDeps([72,57,58,52,2,73])),meta:{tab:!0,icon:"oui:app-console"}}]},{path:"/addTagRule",name:"addTagRule",component:qi,meta:{tab_parent:!0,hidden:!0,slots:{header:I5e}},children:[{path:"/addByFormView",name:"addTagRuleDomain.formView",component:()=>Ht(()=>import("./addByFormView-9BUfLGgu.js"),__vite__mapDeps([74,17,52,2,75])),meta:{tab:!0,icon:"oui:apm-trace"}},{path:"/addByYAMLView",name:"addTagRuleDomain.YAMLView",component:()=>Ht(()=>import("./addByYAMLView-vqAGps1J.js"),__vite__mapDeps([76,57,58,52,2,77])),meta:{tab:!0,icon:"oui:app-console"}}]},{path:"/updateTagRule",name:"updateTagRule",component:qi,meta:{tab_parent:!0,hidden:!0,slots:{header:L5e}},children:[{path:"/updateByFormView/:ruleName",name:"updateTagRuleDomain.formView",component:()=>Ht(()=>import("./updateByFormView-A6KtnX7-.js"),__vite__mapDeps([78,17,52,2,79])),meta:{tab:!0}},{path:"/updateByYAMLView/:ruleName",name:"updateTagRuleDomain.YAMLView",component:()=>Ht(()=>import("./updateByYAMLView-7gcgx026.js"),__vite__mapDeps([80,57,58,52,2,81])),meta:{tab:!0}}]},{path:"/dynamicConfig",name:"dynamicConfig",redirect:"index",component:qi,meta:{tab_parent:!0},children:[{path:"/index",name:"dynamicConfigIndex",component:()=>Ht(()=>import("./index-JzQrTLUW.js"),__vite__mapDeps([82,52,2,13,14,83])),meta:{hidden:!0}},{path:"/formview/:pathId/:isEdit",name:"dynamicConfigDomain.formView",component:()=>Ht(()=>import("./formView-E0GrG_45.js"),__vite__mapDeps([84,17,52,2,85,86])),meta:{tab:!0,icon:"oui:apm-trace",back:"/traffic/dynamicConfig",slots:{header:C5}}},{path:"/yamlview/:pathId/:isEdit",name:"dynamicConfigDomain.YAMLView",component:()=>Ht(()=>import("./YAMLView--IIYIIAz.js"),__vite__mapDeps([87,57,58,52,2,85,88])),meta:{tab:!0,icon:"oui:app-console",back:"/traffic/dynamicConfig",slots:{header:C5}}}]}]},{path:"/common",name:"commonDemo",redirect:"tab",meta:{hidden:!0,icon:"tdesign:play-demo"},children:[{path:"/tab",name:"tabDemo",component:qi,redirect:"index",meta:{tab_parent:!0},children:[{path:"/index",name:"tab_demo_index",component:()=>Ht(()=>import("./index-TH_CWM0S.js"),__vite__mapDeps([])),meta:{hidden:!0}},{path:"/tab1/:pathId",name:"tab1",component:()=>Ht(()=>import("./tab1-RXoFVKwY.js"),__vite__mapDeps([])),meta:{icon:"simple-icons:podman",tab:!0}},{path:"/tab2/:pathId",name:"tab2",component:()=>Ht(()=>import("./tab2-ecRDfL1A.js"),__vite__mapDeps([])),meta:{icon:"fontisto:docker",tab:!0}}]},{path:"/placeholder",name:"placeholder_demo",component:()=>Ht(()=>import("./index-ISYayNem.js"),__vite__mapDeps([])),meta:{}}]}]},{path:"/:catchAll(.*)",name:"notFound",component:()=>Ht(()=>import("./notFound-IlnBM5cq.js"),__vite__mapDeps([89,90])),meta:{skip:!0}}];function $5(...e){return e.join("/").replace(/\/+/g,"/")}function nW(e,t){if(e)for(const n of e)t&&(n.path=$5(t==null?void 0:t.path,n.path)),n.redirect&&(n.redirect=$5(n.path,n.redirect||"")),n.meta?(n.meta._router_key=Fp.uniqueId("__router_key"),n.meta.parent=t,n.meta.skip=n.meta.skip===!0):n.meta={_router_key:Fp.uniqueId("__router_key"),skip:!1},nW(n.children,n)}nW(tW,void 0);const F5e={history:e8e("/admin"),routes:tW},oW=k8e(F5e),H5e={locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",yearFormat:"YYYY年",dayFormat:"D日",dateFormat:"YYYY年M月D日",dateTimeFormat:"YYYY年M月D日 HH时mm分ss秒",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"},z5e=H5e,j5e={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},rW=j5e,iW={lang:S({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},z5e),timePickerLocale:S({},rW)};iW.lang.ok="确定";const x5=iW,oi="${label}不是一个有效的${type}",W5e={locale:"zh-cn",Pagination:zH,DatePicker:x5,TimePicker:rW,Calendar:x5,global:{placeholder:"请选择"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckall:"全选",filterSearchPlaceholder:"在筛选项中搜索",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开"},PageHeader:{back:"返回"},Form:{optional:"(可选)",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:oi,method:oi,array:oi,object:oi,number:oi,date:oi,boolean:oi,integer:oi,float:oi,regexp:oi,email:oi,url:oi,hex:oi},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码已过期",refresh:"点击刷新",scanned:"已扫描"}},V5e=W5e;var aW={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(Lr,function(){var n=1e3,o=6e4,r=36e5,i="millisecond",a="second",l="minute",s="hour",c="day",u="week",d="month",f="quarter",h="year",m="date",v="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,$={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(W){var D=["th","st","nd","rd"],B=W%100;return"["+W+(D[(B-20)%10]||D[B]||D[0])+"]"}},x=function(W,D,B){var k=String(W);return!k||k.length>=D?W:""+Array(D+1-k.length).join(B)+W},_={s:x,z:function(W){var D=-W.utcOffset(),B=Math.abs(D),k=Math.floor(B/60),L=B%60;return(D<=0?"+":"-")+x(k,2,"0")+":"+x(L,2,"0")},m:function W(D,B){if(D.date()1)return W(K[0])}else{var G=D.name;I[G]=D,L=G}return!k&&L&&(w=L),L||!k&&w},R=function(W,D){if(P(W))return W.clone();var B=typeof D=="object"?D:{};return B.date=W,B.args=arguments,new N(B)},A=_;A.l=E,A.i=P,A.w=function(W,D){return R(W,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var N=function(){function W(B){this.$L=E(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[O]=!0}var D=W.prototype;return D.parse=function(B){this.$d=function(k){var L=k.date,z=k.utc;if(L===null)return new Date(NaN);if(A.u(L))return new Date;if(L instanceof Date)return new Date(L);if(typeof L=="string"&&!/Z$/i.test(L)){var K=L.match(y);if(K){var G=K[2]-1||0,Y=(K[7]||"0").substring(0,3);return z?new Date(Date.UTC(K[1],G,K[3]||1,K[4]||0,K[5]||0,K[6]||0,Y)):new Date(K[1],G,K[3]||1,K[4]||0,K[5]||0,K[6]||0,Y)}}return new Date(L)}(B),this.init()},D.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},D.$utils=function(){return A},D.isValid=function(){return this.$d.toString()!==v},D.isSame=function(B,k){var L=R(B);return this.startOf(k)<=L&&L<=this.endOf(k)},D.isAfter=function(B,k){return R(B)LV=e,NV=Symbol();function Zw(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Up;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Up||(Up={}));function vHe(){const e=o2(!0),t=e.run(()=>he({}));let n=[],o=[];const r=$b({install(i){v1(r),r._a=i,i.provide(NV,r),i.config.globalProperties.$pinia=r,o.forEach(a=>n.push(a)),o=[]},use(i){return!this._a&&!GLe?o.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const kV=()=>{};function yL(e,t,n,o=kV){e.push(t);const r=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),o())};return!n&&Sb()&&r2(r),r}function ju(e,...t){e.slice().forEach(n=>{n(...t)})}const mHe=e=>e();function Qw(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,o)=>e.set(o,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],r=e[n];Zw(r)&&Zw(o)&&e.hasOwnProperty(n)&&!Wn(o)&&!gs(o)?e[n]=Qw(r,o):e[n]=o}return e}const bHe=Symbol();function yHe(e){return!Zw(e)||!e.hasOwnProperty(bHe)}const{assign:ts}=Object;function SHe(e){return!!(Wn(e)&&e.effect)}function CHe(e,t,n,o){const{state:r,actions:i,getters:a}=t,l=n.state.value[e];let s;function c(){l||(n.state.value[e]=r?r():{});const u=oa(n.state.value[e]);return ts(u,i,Object.keys(a||{}).reduce((d,f)=>(d[f]=$b(M(()=>{v1(n);const h=n._s.get(e);return a[f].call(h,h)})),d),{}))}return s=BV(e,c,t,n,o,!0),s}function BV(e,t,n={},o,r,i){let a;const l=ts({actions:{}},n),s={deep:!0};let c,u,d=[],f=[],h;const m=o.state.value[e];!i&&!m&&(o.state.value[e]={}),he({});let v;function y(P){let E;c=u=!1,typeof P=="function"?(P(o.state.value[e]),E={type:Up.patchFunction,storeId:e,events:h}):(Qw(o.state.value[e],P),E={type:Up.patchObject,payload:P,storeId:e,events:h});const R=v=Symbol();wt().then(()=>{v===R&&(c=!0)}),u=!0,ju(d,E,o.state.value[e])}const b=i?function(){const{state:E}=n,R=E?E():{};this.$patch(A=>{ts(A,R)})}:kV;function $(){a.stop(),d=[],f=[],o._s.delete(e)}function x(P,E){return function(){v1(o);const R=Array.from(arguments),A=[],N=[];function F(B){A.push(B)}function W(B){N.push(B)}ju(f,{args:R,name:P,store:w,after:F,onError:W});let D;try{D=E.apply(this&&this.$id===e?this:w,R)}catch(B){throw ju(N,B),B}return D instanceof Promise?D.then(B=>(ju(A,B),B)).catch(B=>(ju(N,B),Promise.reject(B))):(ju(A,D),D)}}const _={_p:o,$id:e,$onAction:yL.bind(null,f),$patch:y,$reset:b,$subscribe(P,E={}){const R=yL(d,P,E.detached,()=>A()),A=a.run(()=>Ie(()=>o.state.value[e],N=>{(E.flush==="sync"?u:c)&&P({storeId:e,type:Up.direct,events:h},N)},ts({},s,E)));return R},$dispose:$},w=St(_);o._s.set(e,w);const O=(o._a&&o._a.runWithContext||mHe)(()=>o._e.run(()=>(a=o2()).run(t)));for(const P in O){const E=O[P];if(Wn(E)&&!SHe(E)||gs(E))i||(m&&yHe(E)&&(Wn(E)?E.value=m[P]:Qw(E,m[P])),o.state.value[e][P]=E);else if(typeof E=="function"){const R=x(P,E);O[P]=R,l.actions[P]=E}}return ts(w,O),ts($t(w),O),Object.defineProperty(w,"$state",{get:()=>o.state.value[e],set:P=>{y(E=>{ts(E,P)})}}),o._p.forEach(P=>{ts(w,a.run(()=>P({store:w,app:o._a,pinia:o,options:l})))}),m&&i&&n.hydrate&&n.hydrate(w.$state,m),c=!0,u=!0,w}function RHe(e,t,n){let o,r;const i=typeof t=="function";typeof e=="string"?(o=e,r=i?n:t):(r=e,o=e.id);function a(l,s){const c=rJ();return l=l||(c?it(NV,null):null),l&&v1(l),l=LV,l._s.has(o)||(i?BV(o,t,r,l):CHe(o,r,l)),l._s.get(o)}return a.$id=o,a}const $He=AN(ULe),FV=vHe();FV.use(gHe);$He.use(N6e).use(uHe).use(FV).use(xP).use(oW).mount("#app");oW.beforeEach((e,t,n)=>{const o=KLe();o!=null&&o.state||e.path.startsWith("/login")?n():n({path:`/login?redirect=${t.path}`})});export{Ln as $,Ot as A,he as B,MW as C,lt as D,KLe as E,Ie as F,THe as G,HRe as H,S5 as I,jn as J,wHe as K,Je as L,Cd as M,Wn as N,jRe as O,Oh as P,zRe as Q,AHe as R,cy as S,zn as T,ft as U,so as V,O4 as W,Ba as X,oW as Y,_He as Z,fa as _,Ml as a,Y3e as a0,Bo as a1,PHe as a2,IHe as a3,wt as a4,xHe as a5,sH as a6,Oo as a7,ej as a8,GQ as a9,d8 as aa,p8 as ab,w5 as ac,Lr as ad,RHe as ae,vo as af,n3 as ag,Ht as ah,wo as ai,g as b,qt as c,pe as d,Nt as e,Do as f,EHe as g,Ts as h,xP as i,tt as j,Nn as k,M as l,GO as m,It as n,ht as o,Ps as p,tW as q,St as r,Ni as s,Uo as t,kj as u,ON as v,bn as w,OHe as x,it as y,eW as z}; + */let LV;const v1=e=>LV=e,NV=Symbol();function Zw(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Up;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Up||(Up={}));function vHe(){const e=o2(!0),t=e.run(()=>he({}));let n=[],o=[];const r=$b({install(i){v1(r),r._a=i,i.provide(NV,r),i.config.globalProperties.$pinia=r,o.forEach(a=>n.push(a)),o=[]},use(i){return!this._a&&!GLe?o.push(i):n.push(i),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const kV=()=>{};function yL(e,t,n,o=kV){e.push(t);const r=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),o())};return!n&&Sb()&&r2(r),r}function ju(e,...t){e.slice().forEach(n=>{n(...t)})}const mHe=e=>e();function Qw(e,t){e instanceof Map&&t instanceof Map&&t.forEach((n,o)=>e.set(o,n)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],r=e[n];Zw(r)&&Zw(o)&&e.hasOwnProperty(n)&&!Wn(o)&&!gs(o)?e[n]=Qw(r,o):e[n]=o}return e}const bHe=Symbol();function yHe(e){return!Zw(e)||!e.hasOwnProperty(bHe)}const{assign:ts}=Object;function SHe(e){return!!(Wn(e)&&e.effect)}function CHe(e,t,n,o){const{state:r,actions:i,getters:a}=t,l=n.state.value[e];let s;function c(){l||(n.state.value[e]=r?r():{});const u=oa(n.state.value[e]);return ts(u,i,Object.keys(a||{}).reduce((d,f)=>(d[f]=$b(M(()=>{v1(n);const h=n._s.get(e);return a[f].call(h,h)})),d),{}))}return s=BV(e,c,t,n,o,!0),s}function BV(e,t,n={},o,r,i){let a;const l=ts({actions:{}},n),s={deep:!0};let c,u,d=[],f=[],h;const m=o.state.value[e];!i&&!m&&(o.state.value[e]={}),he({});let v;function y(P){let E;c=u=!1,typeof P=="function"?(P(o.state.value[e]),E={type:Up.patchFunction,storeId:e,events:h}):(Qw(o.state.value[e],P),E={type:Up.patchObject,payload:P,storeId:e,events:h});const R=v=Symbol();wt().then(()=>{v===R&&(c=!0)}),u=!0,ju(d,E,o.state.value[e])}const b=i?function(){const{state:E}=n,R=E?E():{};this.$patch(A=>{ts(A,R)})}:kV;function $(){a.stop(),d=[],f=[],o._s.delete(e)}function x(P,E){return function(){v1(o);const R=Array.from(arguments),A=[],N=[];function F(B){A.push(B)}function W(B){N.push(B)}ju(f,{args:R,name:P,store:w,after:F,onError:W});let D;try{D=E.apply(this&&this.$id===e?this:w,R)}catch(B){throw ju(N,B),B}return D instanceof Promise?D.then(B=>(ju(A,B),B)).catch(B=>(ju(N,B),Promise.reject(B))):(ju(A,D),D)}}const _={_p:o,$id:e,$onAction:yL.bind(null,f),$patch:y,$reset:b,$subscribe(P,E={}){const R=yL(d,P,E.detached,()=>A()),A=a.run(()=>Ie(()=>o.state.value[e],N=>{(E.flush==="sync"?u:c)&&P({storeId:e,type:Up.direct,events:h},N)},ts({},s,E)));return R},$dispose:$},w=St(_);o._s.set(e,w);const O=(o._a&&o._a.runWithContext||mHe)(()=>o._e.run(()=>(a=o2()).run(t)));for(const P in O){const E=O[P];if(Wn(E)&&!SHe(E)||gs(E))i||(m&&yHe(E)&&(Wn(E)?E.value=m[P]:Qw(E,m[P])),o.state.value[e][P]=E);else if(typeof E=="function"){const R=x(P,E);O[P]=R,l.actions[P]=E}}return ts(w,O),ts($t(w),O),Object.defineProperty(w,"$state",{get:()=>o.state.value[e],set:P=>{y(E=>{ts(E,P)})}}),o._p.forEach(P=>{ts(w,a.run(()=>P({store:w,app:o._a,pinia:o,options:l})))}),m&&i&&n.hydrate&&n.hydrate(w.$state,m),c=!0,u=!0,w}function RHe(e,t,n){let o,r;const i=typeof t=="function";typeof e=="string"?(o=e,r=i?n:t):(r=e,o=e.id);function a(l,s){const c=rJ();return l=l||(c?it(NV,null):null),l&&v1(l),l=LV,l._s.has(o)||(i?BV(o,t,r,l):CHe(o,r,l)),l._s.get(o)}return a.$id=o,a}const $He=AN(ULe),FV=vHe();FV.use(gHe);$He.use(N6e).use(uHe).use(FV).use(xP).use(oW).mount("#app");oW.beforeEach((e,t,n)=>{const o=KLe();o!=null&&o.state||e.path.startsWith("/login")?n():n({path:`/login?redirect=${e.path}`})});export{Ln as $,Ot as A,he as B,MW as C,lt as D,KLe as E,Ie as F,THe as G,HRe as H,S5 as I,jn as J,wHe as K,Je as L,Cd as M,Wn as N,jRe as O,Oh as P,zRe as Q,AHe as R,cy as S,zn as T,ft as U,so as V,O4 as W,Ba as X,oW as Y,_He as Z,fa as _,Ml as a,Y3e as a0,Bo as a1,PHe as a2,IHe as a3,wt as a4,xHe as a5,sH as a6,Oo as a7,ej as a8,GQ as a9,d8 as aa,p8 as ab,w5 as ac,Lr as ad,RHe as ae,vo as af,n3 as ag,Ht as ah,wo as ai,g as b,qt as c,pe as d,Nt as e,Do as f,EHe as g,Ts as h,xP as i,tt as j,Nn as k,M as l,GO as m,It as n,ht as o,Ps as p,tW as q,St as r,Ni as s,Uo as t,kj as u,ON as v,bn as w,OHe as x,it as y,eW as z}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/Login-QsM7tdlI.js","assets/globalSearch--VMQnq3S.js","assets/request-3an337VF.js","assets/Login-85H3mqPu.css","assets/index-ECEQf-Fc.js","assets/app-mdoSebGq.js","assets/instance-qriYfOrq.js","assets/service-Hb3ldtV6.js","assets/index-0bxuOvJ7.css","assets/index-PuhA8qFJ.js","assets/serverInfo-F5PlCBPJ.js","assets/index-bVXendlO.css","assets/index-jbm-YZ4W.js","assets/SearchUtil-bfid3zNl.js","assets/SearchUtil-Fi_1zs66.css","assets/index-ymIevjDI.css","assets/detail-NWi5D_Jp.js","assets/index-HdnVQEsT.js","assets/instance-u5IY96cv.js","assets/DateUtil-QXt7LnE3.js","assets/PromQueryUtil-4K1j3sa5.js","assets/ByteUtil-YdHlSEeW.js","assets/instance-q0PmH8ZQ.css","assets/service-LECfslfz.js","assets/service-ExPGSUQV.css","assets/monitor-kZ_wOjob.js","assets/GrafanaPage-tT3NMW70.js","assets/GrafanaPage-RVDi4ROE.css","assets/tracing-egUve7nj.js","assets/config-iPQQ4Osw.js","assets/ConfigPage-Onvd_SY6.js","assets/ConfigPage-cVEIcX7I.css","assets/config-c0xW8oe-.css","assets/event-ZoLBaQpy.js","assets/event-0p00qhH9.css","assets/index-fU57L0AQ.js","assets/index-ZwzA_cjG.css","assets/detail-IPVQRAO3.js","assets/monitor-Yx9RU22f.js","assets/linkTracking-gLhWXj25.js","assets/configuration-um3mt9hU.js","assets/search-c0Szb99-.js","assets/search-WG_H-dj7.css","assets/distribution-WSPxFnjE.js","assets/distribution-6xS25HWj.css","assets/monitor-JE2IXQk_.js","assets/tracing-DAAA17XP.js","assets/sceneConfig-wKVgfCMN.js","assets/sceneConfig-ym7dtk3_.css","assets/event-IjH1CTVp.js","assets/event-lmBmBbXg.css","assets/index-9Tpk6WxM.js","assets/traffic-dHGZ6qwp.js","assets/index-frGZziTc.css","assets/formView-RlUvRzIB.js","assets/formView-vPzA7v6e.css","assets/YAMLView-mXrxtewG.js","assets/js-yaml-eElisXzH.js","assets/js-yaml-TGthJqWD.css","assets/YAMLView-pRLW5CcG.css","assets/addByFormView-suZAGsdv.js","assets/addByFormView-dOXVpw6L.css","assets/addByYAMLView-fC-hqbkM.js","assets/addByYAMLView-BhMg41Un.css","assets/updateByFormView-ySWJqpjX.js","assets/updateByFormView-xj5SSwKL.css","assets/updateByYAMLView--nyJvxZJ.js","assets/updateByYAMLView--JNoYLc_.css","assets/index-VDeT_deC.js","assets/index-DgO44mZ7.css","assets/formView-2KzX11dd.js","assets/formView-94FyHCnm.css","assets/YAMLView-s3WMf-Uo.js","assets/YAMLView-aVJMfs-Z.css","assets/addByFormView-Ia4T74MU.js","assets/addByFormView-WZtXwxTg.css","assets/addByYAMLView--WjgktlZ.js","assets/addByYAMLView-JtG8ss_3.css","assets/updateByFormView-mbEXmvrc.js","assets/updateByFormView-4kEkTPi2.css","assets/updateByYAMLView-X3vjkbCV.js","assets/updateByYAMLView-p2OY6kUu.css","assets/index-ytKGiqRq.js","assets/index-sqj_NuZt.css","assets/formView-vzcbtWy_.js","assets/ConfigModel-IgPiU3B2.js","assets/formView-IqMlu-2J.css","assets/YAMLView-TcLqiDOf.js","assets/YAMLView-G9GNoDTj.css","assets/notFound-hYD9Tscu.js","assets/notFound-DMLJUJ6x.css"] + __vite__mapDeps.viteFileDeps = ["assets/Login-apvEdPeM.js","assets/globalSearch-6GNf4A56.js","assets/request-Cs8TyifY.js","assets/Login-85H3mqPu.css","assets/index-zWoOz8p-.js","assets/app-tPR0CJiV.js","assets/instance-dqyT8xOu.js","assets/service-146hGzKC.js","assets/index-0bxuOvJ7.css","assets/index-7eDR2syK.js","assets/serverInfo-UzRr_R0Z.js","assets/index-bVXendlO.css","assets/index-A0xyoYIe.js","assets/SearchUtil-ETsp-Y5a.js","assets/SearchUtil-Fi_1zs66.css","assets/index-ymIevjDI.css","assets/detail-hHkagtGn.js","assets/index-Y8bti_iA.js","assets/instance-ELqpziUu.js","assets/DateUtil-Hh_Zud1i.js","assets/PromQueryUtil-wquMeYdL.js","assets/ByteUtil-YdHlSEeW.js","assets/instance-q0PmH8ZQ.css","assets/service-BVuTRmeo.js","assets/service-ExPGSUQV.css","assets/monitor-f6PTaT1D.js","assets/GrafanaPage-emfN7XhQ.js","assets/GrafanaPage-RVDi4ROE.css","assets/tracing-RzrHmcJX.js","assets/config-K0lc03RB.js","assets/ConfigPage-Uqug3gMA.js","assets/ConfigPage-cVEIcX7I.css","assets/config-c0xW8oe-.css","assets/event-l9CyPMBv.js","assets/event-0p00qhH9.css","assets/index-tUWFIllr.js","assets/index-ZwzA_cjG.css","assets/detail-IBCpA_Em.js","assets/monitor-_tgN0LKd.js","assets/linkTracking-dZ2NlVl4.js","assets/configuration-wTm-Omst.js","assets/search-s6dK7Hvb.js","assets/search-WG_H-dj7.css","assets/distribution-F7A0tJhh.js","assets/distribution-6xS25HWj.css","assets/monitor-m-tZutaB.js","assets/tracing-anN8lSRs.js","assets/sceneConfig-a1lGx6QL.js","assets/sceneConfig-ym7dtk3_.css","assets/event-QUEx89TK.js","assets/event-lmBmBbXg.css","assets/index-pwExdCno.js","assets/traffic-W0fp5Gf-.js","assets/index-frGZziTc.css","assets/formView-VeEGspOH.js","assets/formView-vPzA7v6e.css","assets/YAMLView-vlB4A6zH.js","assets/js-yaml-EQlPfOK8.js","assets/js-yaml-TGthJqWD.css","assets/YAMLView-pRLW5CcG.css","assets/addByFormView-34FuqdBQ.js","assets/addByFormView-dOXVpw6L.css","assets/addByYAMLView-2m0Rtfoo.js","assets/addByYAMLView-BhMg41Un.css","assets/updateByFormView-uGRMm5vo.js","assets/updateByFormView-xj5SSwKL.css","assets/updateByYAMLView-zhO2idIo.js","assets/updateByYAMLView--JNoYLc_.css","assets/index-r9WGZhl7.js","assets/index-DgO44mZ7.css","assets/formView-pYzBQ4Sn.js","assets/formView-94FyHCnm.css","assets/YAMLView-j-cMdOnQ.js","assets/YAMLView-aVJMfs-Z.css","assets/addByFormView-9BUfLGgu.js","assets/addByFormView-WZtXwxTg.css","assets/addByYAMLView-vqAGps1J.js","assets/addByYAMLView-JtG8ss_3.css","assets/updateByFormView-A6KtnX7-.js","assets/updateByFormView-4kEkTPi2.css","assets/updateByYAMLView-7gcgx026.js","assets/updateByYAMLView-p2OY6kUu.css","assets/index-JzQrTLUW.js","assets/index-sqj_NuZt.css","assets/formView-E0GrG_45.js","assets/ConfigModel-28QrmMMG.js","assets/formView-IqMlu-2J.css","assets/YAMLView--IIYIIAz.js","assets/YAMLView-G9GNoDTj.css","assets/notFound-IlnBM5cq.js","assets/notFound-DMLJUJ6x.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } diff --git a/app/dubbo-ui/dist/admin/assets/index-HdnVQEsT.js b/app/dubbo-ui/dist/admin/assets/index-Y8bti_iA.js similarity index 99% rename from app/dubbo-ui/dist/admin/assets/index-HdnVQEsT.js rename to app/dubbo-ui/dist/admin/assets/index-Y8bti_iA.js index 71b1aa4b..f78b5ee0 100644 --- a/app/dubbo-ui/dist/admin/assets/index-HdnVQEsT.js +++ b/app/dubbo-ui/dist/admin/assets/index-Y8bti_iA.js @@ -1,4 +1,4 @@ -import{X as $,ad as J}from"./index-3zDsduUv.js";var M={exports:{}};/*! +import{X as $,ad as J}from"./index-VXjVsiiO.js";var M={exports:{}};/*! * clipboard.js v2.0.11 * https://clipboardjs.com/ * diff --git a/app/dubbo-ui/dist/admin/assets/index-9Tpk6WxM.js b/app/dubbo-ui/dist/admin/assets/index-pwExdCno.js similarity index 91% rename from app/dubbo-ui/dist/admin/assets/index-9Tpk6WxM.js rename to app/dubbo-ui/dist/admin/assets/index-pwExdCno.js index 85ece6ec..9d51b0d9 100644 --- a/app/dubbo-ui/dist/admin/assets/index-9Tpk6WxM.js +++ b/app/dubbo-ui/dist/admin/assets/index-pwExdCno.js @@ -1 +1 @@ -import{d as w,v as T,y as S,z as h,r as g,D as E,c as l,b as n,w as o,n as r,P as V,U as D,e as C,o as c,Y as p,f as a,j as $,I as A,t as _,T as u,L as f,_ as B}from"./index-3zDsduUv.js";import{s as G,d as O}from"./traffic-dHGZ6qwp.js";import{S as Y,a as P,s as y}from"./SearchUtil-bfid3zNl.js";import{f as F}from"./DateUtil-QXt7LnE3.js";import"./request-3an337VF.js";const M={class:"routing-rule-container"},j=["onClick"],J=w({__name:"index",setup(K){T(e=>({"5abc36e7":r(V)}));const N=S(h.PROVIDE_INJECT_KEY);let I=[{title:"ruleName",key:"ruleName",dataIndex:"ruleName",sorter:(e,t)=>y(e.appName,t.appName),width:140},{title:"ruleGranularity",key:"ruleGranularity",dataIndex:"ruleGranularity",render:(e,t)=>t.isService?"服务":"应用",width:100,sorter:(e,t)=>y(e.instanceNum,t.instanceNum)},{title:"createTime",key:"createTime",dataIndex:"createTime",width:120,sorter:(e,t)=>y(e.instanceNum,t.instanceNum)},{title:"enabled",key:"enabled",dataIndex:"enabled",width:120,sorter:(e,t)=>y(e.instanceNum,t.instanceNum)},{title:"operation",key:"operation",dataIndex:"operation",width:200}];const d=g(new Y([{label:"serviceGovernance",param:"serviceGovernance",placeholder:"typeRoutingRules",style:{width:"200px"}}],G,I)),v=async e=>{(await O(e)).code===200&&await d.onSearch()};E(()=>{N.conditionRule=null,N.addConditionRuleSate=null,d.onSearch(),d.tableStyle={scrollX:"100",scrollY:"367px"}});const R=e=>{v(e)};return D(h.SEARCH_DOMAIN,d),(e,t)=>{const m=C("a-button"),b=C("a-popconfirm");return c(),l("div",M,[n(P,{"search-domain":d},{customOperation:o(()=>[n(m,{type:"primary",onClick:t[0]||(t[0]=k=>r(p).push("/traffic/addRoutingRule/addByFormView"))},{default:o(()=>[a("新增条件路由规则 ")]),_:1})]),bodyCell:o(({text:k,column:i,record:s})=>[i.dataIndex==="ruleName"?(c(),l("span",{key:0,class:"rule-link",onClick:x=>r(p).push(`formview/${s[i.key]}`)},[$("b",null,[n(r(A),{style:{"margin-bottom":"-2px"},icon:"material-symbols:attach-file-rounded"}),a(" "+_(k),1)])],8,j)):u("",!0),i.dataIndex==="ruleGranularity"?(c(),l(f,{key:1},[a(_(s.scope==="service"?"服务":"应用"),1)],64)):u("",!0),i.dataIndex==="enabled"?(c(),l(f,{key:2},[a(_(k?"启用":"禁用"),1)],64)):u("",!0),i.dataIndex==="createTime"?(c(),l(f,{key:3},[a(_(r(F)(s.createTime)),1)],64)):u("",!0),i.dataIndex==="operation"?(c(),l(f,{key:4},[n(m,{type:"link",onClick:x=>r(p).push(`formview/${s.ruleName}`)},{default:o(()=>[a(" 查看 ")]),_:2},1032,["onClick"]),n(m,{type:"link",onClick:x=>r(p).push(`/traffic/updateRoutingRule/updateByFormView/${s.ruleName}`)},{default:o(()=>[a(" 修改 ")]),_:2},1032,["onClick"]),n(b,{title:"确认删除该条件路由规则?","ok-text":"Yes","cancel-text":"No",onConfirm:x=>R(s.ruleName)},{default:o(()=>[n(m,{type:"link"},{default:o(()=>[a(" 删除")]),_:1})]),_:2},1032,["onConfirm"])],64)):u("",!0)]),_:1},8,["search-domain"])])}}}),q=B(J,[["__scopeId","data-v-142b26f8"]]);export{q as default}; +import{d as w,v as T,y as S,z as h,r as g,D as E,c as l,b as n,w as o,n as r,P as V,U as D,e as C,o as c,Y as p,f as a,j as $,I as A,t as _,T as u,L as f,_ as B}from"./index-VXjVsiiO.js";import{s as G,d as O}from"./traffic-W0fp5Gf-.js";import{S as Y,a as P,s as y}from"./SearchUtil-ETsp-Y5a.js";import{f as F}from"./DateUtil-Hh_Zud1i.js";import"./request-Cs8TyifY.js";const M={class:"routing-rule-container"},j=["onClick"],J=w({__name:"index",setup(K){T(e=>({"5abc36e7":r(V)}));const N=S(h.PROVIDE_INJECT_KEY);let I=[{title:"ruleName",key:"ruleName",dataIndex:"ruleName",sorter:(e,t)=>y(e.appName,t.appName),width:140},{title:"ruleGranularity",key:"ruleGranularity",dataIndex:"ruleGranularity",render:(e,t)=>t.isService?"服务":"应用",width:100,sorter:(e,t)=>y(e.instanceNum,t.instanceNum)},{title:"createTime",key:"createTime",dataIndex:"createTime",width:120,sorter:(e,t)=>y(e.instanceNum,t.instanceNum)},{title:"enabled",key:"enabled",dataIndex:"enabled",width:120,sorter:(e,t)=>y(e.instanceNum,t.instanceNum)},{title:"operation",key:"operation",dataIndex:"operation",width:200}];const d=g(new Y([{label:"serviceGovernance",param:"serviceGovernance",placeholder:"typeRoutingRules",style:{width:"200px"}}],G,I)),v=async e=>{(await O(e)).code===200&&await d.onSearch()};E(()=>{N.conditionRule=null,N.addConditionRuleSate=null,d.onSearch(),d.tableStyle={scrollX:"100",scrollY:"367px"}});const R=e=>{v(e)};return D(h.SEARCH_DOMAIN,d),(e,t)=>{const m=C("a-button"),b=C("a-popconfirm");return c(),l("div",M,[n(P,{"search-domain":d},{customOperation:o(()=>[n(m,{type:"primary",onClick:t[0]||(t[0]=k=>r(p).push("/traffic/addRoutingRule/addByFormView"))},{default:o(()=>[a("新增条件路由规则 ")]),_:1})]),bodyCell:o(({text:k,column:i,record:s})=>[i.dataIndex==="ruleName"?(c(),l("span",{key:0,class:"rule-link",onClick:x=>r(p).push(`formview/${s[i.key]}`)},[$("b",null,[n(r(A),{style:{"margin-bottom":"-2px"},icon:"material-symbols:attach-file-rounded"}),a(" "+_(k),1)])],8,j)):u("",!0),i.dataIndex==="ruleGranularity"?(c(),l(f,{key:1},[a(_(s.scope==="service"?"服务":"应用"),1)],64)):u("",!0),i.dataIndex==="enabled"?(c(),l(f,{key:2},[a(_(k?"启用":"禁用"),1)],64)):u("",!0),i.dataIndex==="createTime"?(c(),l(f,{key:3},[a(_(r(F)(s.createTime)),1)],64)):u("",!0),i.dataIndex==="operation"?(c(),l(f,{key:4},[n(m,{type:"link",onClick:x=>r(p).push(`formview/${s.ruleName}`)},{default:o(()=>[a(" 查看 ")]),_:2},1032,["onClick"]),n(m,{type:"link",onClick:x=>r(p).push(`/traffic/updateRoutingRule/updateByFormView/${s.ruleName}`)},{default:o(()=>[a(" 修改 ")]),_:2},1032,["onClick"]),n(b,{title:"确认删除该条件路由规则?","ok-text":"Yes","cancel-text":"No",onConfirm:x=>R(s.ruleName)},{default:o(()=>[n(m,{type:"link"},{default:o(()=>[a(" 删除")]),_:1})]),_:2},1032,["onConfirm"])],64)):u("",!0)]),_:1},8,["search-domain"])])}}}),q=B(J,[["__scopeId","data-v-142b26f8"]]);export{q as default}; diff --git a/app/dubbo-ui/dist/admin/assets/index-VDeT_deC.js b/app/dubbo-ui/dist/admin/assets/index-r9WGZhl7.js similarity index 90% rename from app/dubbo-ui/dist/admin/assets/index-VDeT_deC.js rename to app/dubbo-ui/dist/admin/assets/index-r9WGZhl7.js index 2d835b01..be269e25 100644 --- a/app/dubbo-ui/dist/admin/assets/index-VDeT_deC.js +++ b/app/dubbo-ui/dist/admin/assets/index-r9WGZhl7.js @@ -1 +1 @@ -import{d as R,v as g,y as D,z as C,D as N,a as S,r as $,c as l,b as t,w as n,n as o,P as E,U as V,e as b,o as c,Y as p,f as r,j as A,I as B,t as y,T as f,L as k,_ as O}from"./index-3zDsduUv.js";import{b as Y,c as P}from"./traffic-dHGZ6qwp.js";import{S as F,a as M,s as h}from"./SearchUtil-bfid3zNl.js";import{f as j}from"./DateUtil-QXt7LnE3.js";import"./request-3an337VF.js";const G={class:"tag-rule-container"},J=["onClick"],K=R({__name:"index",setup(L){g(e=>({c2298156:o(E)}));const I=D(C.PROVIDE_INJECT_KEY);N(()=>{I.tagRule=null}),S();let v=[{title:"ruleName",key:"ruleName",dataIndex:"ruleName",sorter:(e,a)=>h(e.appName,a.appName),width:140},{title:"createTime",key:"createTime",dataIndex:"createTime",width:120,sorter:(e,a)=>h(e.instanceNum,a.instanceNum)},{title:"enable",key:"enabled",dataIndex:"enabled",width:120,sorter:(e,a)=>h(e.instanceNum,a.instanceNum)},{title:"operation",key:"operation",dataIndex:"operation",width:200}];const s=$(new F([{label:"serviceGovernance",param:"serviceGovernance",placeholder:"typeRoutingRules",style:{width:"200px"}}],Y,v)),x=async e=>{(await P(e)).code===200&&await s.onSearch()};N(()=>{s.onSearch(),s.tableStyle={scrollX:"100",scrollY:"367px"}});const T=e=>{x(e)};return V(C.SEARCH_DOMAIN,s),(e,a)=>{const d=b("a-button"),w=b("a-popconfirm");return c(),l("div",G,[t(M,{"search-domain":s},{customOperation:n(()=>[t(d,{type:"primary",onClick:a[0]||(a[0]=m=>o(p).push("/traffic/addTagRule/addByFormView"))},{default:n(()=>[r(" 新增标签路由规则 ")]),_:1})]),bodyCell:n(({text:m,column:i,record:u})=>[i.dataIndex==="ruleName"?(c(),l("span",{key:0,class:"rule-link",onClick:_=>o(p).push(`/traffic/tagRule/formview/${u[i.key]}`)},[A("b",null,[t(o(B),{style:{"margin-bottom":"-2px"},icon:"material-symbols:attach-file-rounded"}),r(" "+y(m),1)])],8,J)):f("",!0),i.dataIndex==="createTime"?(c(),l(k,{key:1},[r(y(o(j)(m)),1)],64)):f("",!0),i.dataIndex==="enabled"?(c(),l(k,{key:2},[r(y(m?e.$t("flowControlDomain.enabled"):e.$t("flowControlDomain.disabled")),1)],64)):f("",!0),i.dataIndex==="operation"?(c(),l(k,{key:3},[t(d,{type:"link",onClick:_=>o(p).push(`formview/${u.ruleName}`)},{default:n(()=>[r(" 查看 ")]),_:2},1032,["onClick"]),t(d,{onClick:_=>o(p).push(`/traffic/updateTagRule/updateByFormView/${u.ruleName}`),type:"link"},{default:n(()=>[r(" 修改 ")]),_:2},1032,["onClick"]),t(w,{title:"确认删除该标签路由规则?","ok-text":"Yes","cancel-text":"No",onConfirm:_=>T(u.ruleName)},{default:n(()=>[t(d,{type:"link"},{default:n(()=>[r(" 删除 ")]),_:1})]),_:2},1032,["onConfirm"])],64)):f("",!0)]),_:1},8,["search-domain"])])}}}),Q=O(K,[["__scopeId","data-v-8b7bd8e7"]]);export{Q as default}; +import{d as R,v as g,y as D,z as C,D as N,a as S,r as $,c as l,b as t,w as n,n as o,P as E,U as V,e as b,o as c,Y as p,f as r,j as A,I as B,t as y,T as f,L as k,_ as O}from"./index-VXjVsiiO.js";import{b as Y,c as P}from"./traffic-W0fp5Gf-.js";import{S as F,a as M,s as h}from"./SearchUtil-ETsp-Y5a.js";import{f as j}from"./DateUtil-Hh_Zud1i.js";import"./request-Cs8TyifY.js";const G={class:"tag-rule-container"},J=["onClick"],K=R({__name:"index",setup(L){g(e=>({c2298156:o(E)}));const I=D(C.PROVIDE_INJECT_KEY);N(()=>{I.tagRule=null}),S();let v=[{title:"ruleName",key:"ruleName",dataIndex:"ruleName",sorter:(e,a)=>h(e.appName,a.appName),width:140},{title:"createTime",key:"createTime",dataIndex:"createTime",width:120,sorter:(e,a)=>h(e.instanceNum,a.instanceNum)},{title:"enable",key:"enabled",dataIndex:"enabled",width:120,sorter:(e,a)=>h(e.instanceNum,a.instanceNum)},{title:"operation",key:"operation",dataIndex:"operation",width:200}];const s=$(new F([{label:"serviceGovernance",param:"serviceGovernance",placeholder:"typeRoutingRules",style:{width:"200px"}}],Y,v)),x=async e=>{(await P(e)).code===200&&await s.onSearch()};N(()=>{s.onSearch(),s.tableStyle={scrollX:"100",scrollY:"367px"}});const T=e=>{x(e)};return V(C.SEARCH_DOMAIN,s),(e,a)=>{const d=b("a-button"),w=b("a-popconfirm");return c(),l("div",G,[t(M,{"search-domain":s},{customOperation:n(()=>[t(d,{type:"primary",onClick:a[0]||(a[0]=m=>o(p).push("/traffic/addTagRule/addByFormView"))},{default:n(()=>[r(" 新增标签路由规则 ")]),_:1})]),bodyCell:n(({text:m,column:i,record:u})=>[i.dataIndex==="ruleName"?(c(),l("span",{key:0,class:"rule-link",onClick:_=>o(p).push(`/traffic/tagRule/formview/${u[i.key]}`)},[A("b",null,[t(o(B),{style:{"margin-bottom":"-2px"},icon:"material-symbols:attach-file-rounded"}),r(" "+y(m),1)])],8,J)):f("",!0),i.dataIndex==="createTime"?(c(),l(k,{key:1},[r(y(o(j)(m)),1)],64)):f("",!0),i.dataIndex==="enabled"?(c(),l(k,{key:2},[r(y(m?e.$t("flowControlDomain.enabled"):e.$t("flowControlDomain.disabled")),1)],64)):f("",!0),i.dataIndex==="operation"?(c(),l(k,{key:3},[t(d,{type:"link",onClick:_=>o(p).push(`formview/${u.ruleName}`)},{default:n(()=>[r(" 查看 ")]),_:2},1032,["onClick"]),t(d,{onClick:_=>o(p).push(`/traffic/updateTagRule/updateByFormView/${u.ruleName}`),type:"link"},{default:n(()=>[r(" 修改 ")]),_:2},1032,["onClick"]),t(w,{title:"确认删除该标签路由规则?","ok-text":"Yes","cancel-text":"No",onConfirm:_=>T(u.ruleName)},{default:n(()=>[t(d,{type:"link"},{default:n(()=>[r(" 删除 ")]),_:1})]),_:2},1032,["onConfirm"])],64)):f("",!0)]),_:1},8,["search-domain"])])}}}),Q=O(K,[["__scopeId","data-v-8b7bd8e7"]]);export{Q as default}; diff --git a/app/dubbo-ui/dist/admin/assets/index-fU57L0AQ.js b/app/dubbo-ui/dist/admin/assets/index-tUWFIllr.js similarity index 90% rename from app/dubbo-ui/dist/admin/assets/index-fU57L0AQ.js rename to app/dubbo-ui/dist/admin/assets/index-tUWFIllr.js index e173b7ca..c14de189 100644 --- a/app/dubbo-ui/dist/admin/assets/index-fU57L0AQ.js +++ b/app/dubbo-ui/dist/admin/assets/index-tUWFIllr.js @@ -1,4 +1,4 @@ -import{d as w,v as b,a as D,r as N,D as T,F as E,c as _,b as I,w as l,n as p,P as R,H as O,U as q,e as v,o,Y as L,j as V,I as A,f as c,t as m,T as u,J as y,a2 as P,a3 as M,L as Y,M as $,z as B,_ as F}from"./index-3zDsduUv.js";import{s as U}from"./instance-qriYfOrq.js";import{S as H,a as J,s as r}from"./SearchUtil-bfid3zNl.js";import{p as j,q as f}from"./PromQueryUtil-4K1j3sa5.js";import{b as z}from"./ByteUtil-YdHlSEeW.js";import"./request-3an337VF.js";const G={class:"instances-container"},K=["onClick"],Q=w({__name:"index",setup(X){b(e=>({"2ab83322":p(R)}));let C=D(),g=C.query.query,S=[{title:"instanceDomain.instanceIP",key:"ip",dataIndex:"ip",sorter:(e,t)=>r(e.ip,t.ip),width:200},{title:"instanceDomain.instanceName",key:"name",dataIndex:"name",sorter:(e,t)=>r(e.name,t.name),width:140},{title:"instanceDomain.deployState",key:"deployState",dataIndex:"deployState",width:120,sorter:(e,t)=>r(e.deployState,t.deployState)},{title:"instanceDomain.deployCluster",key:"deployCluster",dataIndex:"deployCluster",sorter:(e,t)=>r(e.deployCluster,t.deployCluster),width:120},{title:"instanceDomain.registerState",key:"registerState",dataIndex:"registerState",sorter:(e,t)=>r(e.registerState,t.registerState),width:120},{title:"instanceDomain.registerCluster",key:"registerClusters",dataIndex:"registerClusters",sorter:(e,t)=>r(e.registerClusters,t.registerClusters),width:140},{title:"instanceDomain.CPU",key:"cpu",dataIndex:"cpu",sorter:(e,t)=>r(e.cpu,t.cpu),width:140},{title:"instanceDomain.memory",key:"memory",dataIndex:"memory",sorter:(e,t)=>r(e.memory,t.memory),width:100},{title:"instanceDomain.startTime_k8s",key:"startTime_k8s",dataIndex:"startTime",sorter:(e,t)=>r(e.startTime,t.startTime),width:200}];function x(e){return U(e).then(async t=>j(t,["cpu","memory"],async s=>{let a=s.ip.split(":")[0],i=await f(`sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{container!=""}) by (pod) * on (pod) group_left(pod_ip) +import{d as w,v as b,a as D,r as N,D as T,F as E,c as _,b as I,w as l,n as p,P as R,H as O,U as q,e as v,o,Y as L,j as V,I as A,f as c,t as m,T as u,J as y,a2 as P,a3 as M,L as Y,M as $,z as B,_ as F}from"./index-VXjVsiiO.js";import{s as U}from"./instance-dqyT8xOu.js";import{S as H,a as J,s as r}from"./SearchUtil-ETsp-Y5a.js";import{p as j,q as f}from"./PromQueryUtil-wquMeYdL.js";import{b as z}from"./ByteUtil-YdHlSEeW.js";import"./request-Cs8TyifY.js";const G={class:"instances-container"},K=["onClick"],Q=w({__name:"index",setup(X){b(e=>({"2ab83322":p(R)}));let C=D(),g=C.query.query,S=[{title:"instanceDomain.instanceIP",key:"ip",dataIndex:"ip",sorter:(e,t)=>r(e.ip,t.ip),width:200},{title:"instanceDomain.instanceName",key:"name",dataIndex:"name",sorter:(e,t)=>r(e.name,t.name),width:140},{title:"instanceDomain.deployState",key:"deployState",dataIndex:"deployState",width:120,sorter:(e,t)=>r(e.deployState,t.deployState)},{title:"instanceDomain.deployCluster",key:"deployCluster",dataIndex:"deployCluster",sorter:(e,t)=>r(e.deployCluster,t.deployCluster),width:120},{title:"instanceDomain.registerState",key:"registerState",dataIndex:"registerState",sorter:(e,t)=>r(e.registerState,t.registerState),width:120},{title:"instanceDomain.registerCluster",key:"registerClusters",dataIndex:"registerClusters",sorter:(e,t)=>r(e.registerClusters,t.registerClusters),width:140},{title:"instanceDomain.CPU",key:"cpu",dataIndex:"cpu",sorter:(e,t)=>r(e.cpu,t.cpu),width:140},{title:"instanceDomain.memory",key:"memory",dataIndex:"memory",sorter:(e,t)=>r(e.memory,t.memory),width:100},{title:"instanceDomain.startTime_k8s",key:"startTime_k8s",dataIndex:"startTime",sorter:(e,t)=>r(e.startTime,t.startTime),width:200}];function x(e){return U(e).then(async t=>j(t,["cpu","memory"],async s=>{let a=s.ip.split(":")[0],i=await f(`sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{container!=""}) by (pod) * on (pod) group_left(pod_ip) kube_pod_info{pod_ip="${a}"}`),h=await f(`sum(container_memory_working_set_bytes{container!=""}) by (pod) * on (pod) group_left(pod_ip) kube_pod_info{pod_ip="${a}"}`);s.cpu=O.isNumber(i)?i.toFixed(3)+"u":i,s.memory=z(h)}))}const n=N(new H([{label:"appName",param:"keywords",defaultValue:g,placeholder:"typeAppName",style:{width:"200px"}}],x,S));return T(()=>{n.tableStyle={scrollX:"100",scrollY:"367px"},n.onSearch()}),q(B.SEARCH_DOMAIN,n),E(C,(e,t)=>{n.queryForm.keywords=e.query.query,n.onSearch(),console.log(e)}),(e,t)=>{const s=v("a-tag");return o(),_("div",G,[I(J,{"search-domain":n},{bodyCell:l(({text:a,record:i,index:h,column:d})=>[d.dataIndex==="ip"?(o(),_("span",{key:0,class:"app-link",onClick:k=>p(L).push(`/resources/instances/detail/${i.name}/${i[d.key]}`)},[V("b",null,[I(p(A),{style:{"margin-bottom":"-2px"},icon:"material-symbols:attach-file-rounded"}),c(" "+m(a),1)])],8,K)):u("",!0),d.dataIndex==="deployState"?(o(),y(s,{key:1,color:p(P)[a.toUpperCase()]},{default:l(()=>[c(m(a),1)]),_:2},1032,["color"])):u("",!0),d.dataIndex==="deployCluster"?(o(),y(s,{key:2,color:"grey"},{default:l(()=>[c(m(a),1)]),_:2},1024)):u("",!0),d.dataIndex==="registerState"?(o(),y(s,{key:3,color:p(M)[a.toUpperCase()]},{default:l(()=>[c(m(a),1)]),_:2},1032,["color"])):u("",!0),d.dataIndex==="registerClusters"?(o(!0),_(Y,{key:4},$(a,k=>(o(),y(s,{color:"grey"},{default:l(()=>[c(m(k),1)]),_:2},1024))),256)):u("",!0)]),_:1},8,["search-domain"])])}}}),se=F(Q,[["__scopeId","data-v-2f938e3f"]]);export{se as default}; diff --git a/app/dubbo-ui/dist/admin/assets/index-ECEQf-Fc.js b/app/dubbo-ui/dist/admin/assets/index-zWoOz8p-.js similarity index 98% rename from app/dubbo-ui/dist/admin/assets/index-ECEQf-Fc.js rename to app/dubbo-ui/dist/admin/assets/index-zWoOz8p-.js index 49dca517..7f8a17f8 100644 --- a/app/dubbo-ui/dist/admin/assets/index-ECEQf-Fc.js +++ b/app/dubbo-ui/dist/admin/assets/index-zWoOz8p-.js @@ -1 +1 @@ -import{b as n,A as I,d as V,k as ue,a as X,l as Y,r as G,u as k,e as u,o as g,c as B,n as i,q as we,s as ie,I as de,_ as Z,v as pe,P as C,x as ze,y as q,z as S,B as z,C as Ye,D as je,E as Be,F as ae,G as Re,H as Ke,w as s,J as j,K as Ue,L as J,M as me,f as U,t as Q,S as Le,N as Fe,j as L,O as oe,Q as Ce,R as Se,p as He,h as Ne,T as fe,U as se,V as Ee,W as Te}from"./index-3zDsduUv.js";import{s as Ge}from"./app-mdoSebGq.js";import{s as Qe}from"./instance-qriYfOrq.js";import{s as Ve}from"./service-Hb3ldtV6.js";import{m as Xe,a as Ze}from"./globalSearch--VMQnq3S.js";import{u as qe}from"./request-3an337VF.js";var Ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"};const ke=Ie;function ce(a){for(var e=1;e[v(c.meta)]),b=G([]);function v(l){var d;return l.tab||l.hidden?v((d=l.parent)==null?void 0:d.meta):l._router_key}function A(){var d,h;let l=c.meta.parent;for(;l;)b.push((d=l.meta)==null?void 0:d._router_key),l=(h=l.meta)==null?void 0:h.parent}A();function P(l){o[0]=l.key}function y(l,d,h,O,K,D){return O&&(O=ie(de,{icon:O})),{key:h,title:d,icon:O,children:K,label:Y(()=>e.$t(l)),type:D}}const R=G([]);function x(l,d,h="root"){var O,K,D,N,F,E,p,m,_;if(!(!l||l.length===0))for(let r of l){if((O=r.meta)!=null&&O.skip){x(r.children,d,r.name);continue}if(!((K=r.meta)!=null&&K.hidden))if(!r.children||r.children.length===0||(D=r.meta)!=null&&D.tab_parent)d.push(y(r.name,r.path,(N=r.meta)==null?void 0:N._router_key,(F=r.meta)==null?void 0:F.icon));else if(r.children.length===1)d.push(y(r.children[0].name,r.path,(E=r.meta)==null?void 0:E._router_key,(p=r.children[0].meta)==null?void 0:p.icon));else{const w=G([]);x(r.children,w,r.name),d.push(y(r.name,r.path,(m=r.meta)==null?void 0:m._router_key,(_=r.meta)==null?void 0:_.icon,w))}}}x(t,R);const M=k(),H=l=>{var d;M.push((d=l.item)==null?void 0:d.title)};return(l,d)=>{const h=u("a-menu");return g(),B("div",rt,[n(h,{mode:"inline",selectedKeys:i(o),"open-keys":i(b),onSelect:P,items:R,onClick:H},null,8,["selectedKeys","open-keys","items"])])}}}),ut=Z(lt,[["__scopeId","data-v-0c21c672"]]),it="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQ0AAAENCAYAAAAVEjAIAAAOg0lEQVR4Xu3dYXXjSBSE0YUwEAJhIQjCQDCEgSAIA8EQBoIhLARDWAa17mQzZ1KJbcVx8rq7vnuO/3eXyi+SLDt//XVHkhYB0r+n1+H/18/Taz29dnrqxzfvDYL9Xwrgmueh0gZKGyZ/e5cQQgwNfEwbJO2sZPFuYVLtYFsJgI9oQ+TH6fXgXcMkxNDA5znq6XKGS5mZiKGBr9EGSLuMefAOYjBiaODrtUuYnXcRgxBDA3XaJzLt8uXBe4mOiaGBPuzFJzBjaAfKjx5QqF26LN5TdKQdID9qQAcYHr1qB8aPFtCRNjz4yLYnYmhgDO2eB9+B6YEYGhhH+7Rl9Q7ji4mhgfEcxf2OOi18PyLAINozHlyyfDUxNDA2zjq+WgvcjwIwIM46vooYGpjHP+Lj2c8nhgbm88N7jjsSQwNz2ovLlc8hhgbmxeXKZxBDA3NrD4Qt3nt8QAvUUwYmtPPu40ZiaCDH3vuPG4ihgSx7fw/gncTQQJ52g5RPVm4lhgYyMThuJYYGcjE4biGGBrIxON5LDA2AwfEeYmgADYNjKzE0gGcMji3E0AD+tPf3CIwYGoDb+/sEfxBDA3gLv8lxjhgawDk7f7/gL4YGcEH7Wj2/x+HE0AAuOYpPVF4SQwO45uDvm2hiaABbrP7eiSWGxmdp18OHDl+43Xd//0QSQ+Me2oDYn16702vxjHti68b7tOPM/Q0xNG71PCiGurvum8C7HTzTOGJovFcbFqsG/Yvjm8FNsh/8EkNjq6GHxTPfFG421BnmXYmhscXh9Hrw7EbkG8PN/vFsY4ihcc3qmY3MN4cPWT3fCGJonDPlf+byTeLD8i5TxNB4y7TfOfCN4sMOnvH0xNBw0w6MxjeLu8j6NEUMjT9NPTAa3zDuIuuhLzE0/rTzfGbjG8bd7D3raYmh8eynZzMj3zTuauqz1N/E0GiOCjm99I3jrg6e95TE0GgWz2VWvnHc3eKZT6dt0ncdZu+ZzMw3j7s7eubTEUPjwTOZmW8en2LnuU9F2UNj73nMzgPApzh67lNR9tDIuNv9Bw8An2bn2U9DuUNjyG8pntb9t56O2a0vfI2jH7tpKLdIQzz6e1rnQ1urnv45Mcay8+M5BeUOja4vTU7r+6annxPEuI5+XKegzKHxr+fQk9P6vrc1+qIxpJ0f3+Epc2j88hx6oaefFMQ8Dn6Mh6fMobF6Dj3Q070LzGfxYz20tiHfYYDvnkO1tiZfJKax9+M9NGUOjcVzqKSnm57cw5jbPF+IFEOjnLiPkWD14z4sBQ4Nz6CSOMtIcfRjPywxNErp6f+/IsPix39IbSO+s9l5BpVOy/nl68O09n78hySGRilxaZKk64cKNxNDo5SvDdPr7uP+dxNDo4yevrGKLHvvwXDE0CijwOwxwSWKAovrGVRRYPZ4NPYligKL6xlUUWD2eLT3LgxFgcX1DKooMHs8OnoXhqLA4noGVRSYPX7r+kegLlJgcT2DKgrMHr+t3odhKLC4nkEVBWaP34b8YetHCiyuZ1BFgdnjhTG/Lq/A4noGVRSYPV4Y86NXBRbXM6iiwOzxwk/vxBAUWFzPoIoCs8cLY97XUGBxPYMqCswer4x3X0OBxfUMqigwe7wy3n0NBRbXM6iiwOzxynj3NRRYXM+gigKzxysH70X3FFhcz6CKArPHa96L7imwuJ5BFQVmjzct3o2utQX7DmbnGVRRYPZ40w/vRtcUWFzPoIoCs8eb9t6NrimwuJ5BFQVmjzeN9ZCXAovrGVRRYPZ4m3ejawosrmdQRYHZ46zF+9Gttlhf/ew8gyoKzB5n7bwf3VJgcT2DKgrMHmeN82SoAovrGVRRYPY46+D96JYCi+sZVFFg9jhrnH+ipMDiegZVFJg9zvN+dEuBxfUMqigwe1y0eEe61BbqK5+dZ1BFgdnjop13pEsKLK5nUEWB2eOi1TvSJQUW1zOoosDscdHeO9IlBRbXM6iiwOxx0cE70iUFFtczqKLA7HHRGB+7KrC4nkEVBWaPy7wjXVJgcT2DKgrMHlc9eE+6o8DiegZVFJg9rlq8J91pi/RVz84zqKLA7HFV//8HRYHF9QyqKDB7XLV6T7qjwOJ6BlUUmD2uWr0n3VFgcT2DKgrMHlf98p50R4HF9QyqKDB7XHXwnnRHgcX1DKooMHtcdfCedEeBxfUMqigwe1zV/1OhCiyuZ1BFgdnjOu9JdxRYXM+gigKzx3Xek+4osLieQRUFZo/rvCfdUWBxPYMqCswemyzela60BfqKZ+cZVFFg9thk8a50pS3QVzw7z6CKArPHJot3pSttgb7i2XkGVRSYPTZZvCtdaQv0Fc/OM6iiwOyxyeJd6UpboK94dp5BFQVmj00W70pX2gJ9xbPzDKooMHtssnpXuqLA4noGVRSYPTZZvStdUWBxPYMqCswem6zela4osLieQRUFZo9NVu9KVxRYXM+gigKzxyard6UrCiyuZ1BFgdljk9W70hUFFtczqKLA7LHJ6l3pigKL6xlUUWD22GT1rnRFgcX1DKooMHtssnpXuqLA4noGVRSYPTZZvStdUWBxPYMqCswem6zela4osLieQRUFZo9NVu9KVxRYXM+gigKzxyY/vCtdUWBxPYMqCswemyzela60BfqKZ+cZVFFg9thk8a50pS3QVzw7z6CKArPHJot3pSttgb7i2XkGVRSYPTZZvCtdaQv0Fc/OM6iiwOyxyeJd6UpboK94dp5BFQVmj00evCtdUWBxPYMqCswe13lPuqPA4noGVRSYPa7znnRHgcX1DKooMHtc5z3pjgKL6xlUUWD2uOroPemOAovrGVRRYPa46uA96Y4Ci+sZVFFg9rjq4D3pjgKL6xlUUWD2uGrvPemOAovrGVRRYPa4avWedEeBxfUMqigwe1y1ek+6o8DiegZVFJg9rlq8J91pi/RVz84zqKLA7HHV4j3pTlukr3p2nkEVBWaPq755T7qjwOJ6BlUUmD0u8450SYHF9QyqKDB7XPSPd6RLCiyuZ1BFgdnjooN3pEsKLK5nUEWB2eOin96RLimwuJ5BFQVmj4tW70iXFFhcz6CKArPHRYt3pEttob7y2XkGVRSYPS762zvSJQUW1zOoosDscZ73o1sKLK5nUEWB2eOsMT5ubRRYXM+gigKzx1m/vB/dUmBxPYMqCsweZ63ej24psLieQRUFZo+zvns/uqXA4noGVRSYPc4a45OTRoHF9QyqKDB7vM270TUFFtczqKLA7PGmg3ejawosrmdQRYHZ401jfOfkmQKL6xlUUWD2eNPOu9E1BRbXM6iiwOzxpgfvRtcUWFzPoIoCs8cr/3ovuqfA4noGVRSYPV4Z50nQZwosrmdQRYHZ45XVe9E9BRbXM6iiwOzxyuK96F5btO9idp5BFQVmj5e8E0NQYHE9gyoKzB4vHLwTQ1BgcT2DKgrMHi+s3okhKLC4nkEVBWaPFxbvxBDawn0ns/MMqigwe/w23vMZzxRYXM+gigKzx2/jPZ/xTIHF9QyqKDB7/LbzPgxDgcX1DKooMHv89uB9GIYCi+sZVFFg9ng0zi+Pv0WBxfUMqigwezwa6/cznAKL6xlUUWD2eDTO74G+RYHF9QyqKDB76Og9GI4Ci+sZVDkt5ZuvDdMb+9KkEUOjlK8N0xv70qQRQ6PUaTlHXx+mdfTjPyQxNEqdlrP39WFa41+aNGJolDot57uvD9N68OM/JAUOjZNvnkMlcYmSYNzvmjhlDo3Fc6h0Ws/OF4jpLH7ch9U247sLsHgO1U5rOvgiMY2jH++hKXNo7DyHaqc1PZxe//pCMYWdH++hKXNorJ5DD07r+lsMjtm049nVPbQPU+bQOHgOvRCDYzarH+PhKXNodPWxq9PT4+Xc4xjffGcZjUKHxsl3z6I3ejo2DI9xrX5Mp6DcobH3LHqlp0uWH6fXr9Prn5fbQKfmPMtolDs0xv016A/wEPBpVs9+GsodGs3O85idB4BPMe9ZRqPsoXHwPGbnAeBTrJ77VJQ9NJrFM5mZbx53N/dZRiOGxti/DP1Ovnnc3Q/PfDpiaDTzH+j/+cZxV0fPe0piaDTtlPLBs5mRbxx31f2zP3chhsaziMsU3zTu5uBZT0sMjT/tPZ/Z+IZxNw+e9bTE0HA7z2gmvlncxeo5T00MjbfsPKdZ+EbxYUfN/hGrE0PjnJ1nNQPfJD4s4+bnn8TQuGTveY3ON4gPmefHgt9DDI1r2rdKHzy3UfnmcLP5n/w8RwyNLVpBpngAzDeGm+VdljwTQ+M92lnH4hmOxDeEm2ReljwTQ+MWBw36l8Y3gnc7KvWy5JkYGh/RCvRTA/0ncN8A3m3xTOO0EDwV3KTd92hnIKue/j9ry7W7v0gvVoz3Wj3PSGJoAFsc/L0TSwwN4Jrcj1ffIoYGcM3i75toLRBPCMBvUzyfc1diaADn7P39gr8YGsAZET/KdBMxNADXnvzlxuc5YmgAf2qflAzzsF4JMTSAZwyMLcTQAJ4N+X2iLyeGBtDs/L2BM8TQAHb+vsAFYmgg287fE7hCDA3k2vn7ARuIoYFMO38vYCMxNJBn5+8DvIMYGsjBcxj3IIYGMjAw7kUMDcyP75LckxgamNteDIz7EkMD81q977gDMTQwn3b/gu+RfBYxNDCXqf73bpfE0MA8fnq/8QnE0MD4jqfX4t3GJ2lh+xEABvJLfDrytcTQwJg4u6jSgvejAXSu/dNtzi6qiKGBcRzEo+D1xNBA/9qlCM9d9EIMDfSrPaS1emdRTAwN9OdxWIj7Fn0SQwP9YFiMQAwN1Gv3LHZiWIxBDA3UaQ9mcYNzNGJo4Gu1s4p2CfLgXcQgxNDA52v3KvbiCc45tANpBxi4h3ZG0QYFlx+zEUMD93M4vX6IpzbnJoYGbtPOJNqNzHZ/YvFeYWLtgL/sAvBKO4NolxqPA0J8NJrt/xIgSxsC/moD4fnVOrF4VwAAAIDX/gMpuapHNnE8KQAAAABJRU5ErkJggg==",te=a=>(He("data-v-fbb481f3"),a=a(),Ne(),a),dt={class:"__container_layout_header"},pt=te(()=>L("div",null,null,-1)),mt=te(()=>L("div",null,null,-1)),ft=te(()=>L("a",{href:"javascript:;"},"logout",-1)),gt={class:"username"},_t=V({__name:"layout_header",setup(a){pe(p=>({"33f79e48":i(C),"75bb75af":i(ze)}));const{appContext:{config:{globalProperties:e}}}=ue(),t=q(S.COLLAPSED),c=q(S.LOCALE);let o=z(Ye.locale);function b(p){localStorage.setItem(oe,p),C.value=p}function v(p){localStorage.removeItem(oe),C.value=Ce}function A(){Se(),Ze().then(()=>{D.replace(`/login?redirect=${N.path}`)})}const P=z([]),y=qe(),R=q(S.LAYOUT_ROUTE_KEY),x=p=>{y.mesh=p,R()};je(async()=>{const{data:p}=await Xe();P.value=p});const M=Be();ae(o,p=>{Re(p)});const H=G([{label:Y(()=>e.$t("application")),value:"applications"},{label:Y(()=>e.$t("instance")),value:"instances"},{label:Y(()=>e.$t("service")),value:"services"}]),l=z(H[0].value),d=z(""),h=async()=>{const p={keywords:d.value},m=async(_,r)=>{const{data:{list:w}}=await _(p);O.value=w.map(T=>({label:T[r],value:T[r]}))};switch(l.value){case"ip":break;case"applications":await m(Ge,"appName");break;case"instances":await m(Qe,"name");break;case"services":await m(Ve,"serviceName");break}};ae(l,async p=>{await h()});const O=z([]),K=Ke.debounce(h,300),D=k(),N=X(),F=()=>{D.replace(`/resources/${l.value}/list?query=${d.value}`)},E=()=>{};return(p,m)=>{const _=u("a-flex"),r=u("a-select-option"),w=u("a-select"),T=u("a-auto-complete"),ge=u("a-button"),_e=u("a-input-group"),ve=u("a-form-item"),he=u("a-form"),Oe=u("a-segmented"),be=u("color-picker"),Pe=u("a-popover"),ye=u("a-avatar"),xe=u("a-menu-item"),Ae=u("a-menu"),Me=u("a-dropdown"),De=u("a-layout-header");return g(),B("div",dt,[n(De,{class:"header"},{default:s(()=>[n(_,{style:{height:"100%"},justify:"space-between",align:"center"},{default:s(()=>[n(_,null,{default:s(()=>[i(t)?(g(),j(i(nt),{key:0,class:"trigger",onClick:m[0]||(m[0]=()=>t.value=!i(t))})):(g(),j(i(We),{key:1,class:"trigger",onClick:m[1]||(m[1]=()=>t.value=!i(t))}))]),_:1}),pt,n(_,{gap:20},{default:s(()=>[n(_e,{onKeyup:Ue(F,["enter"]),class:"search-group",compact:""},{default:s(()=>[n(w,{value:l.value,"onUpdate:value":m[2]||(m[2]=f=>l.value=f),class:"select-type"},{default:s(()=>[(g(!0),B(J,null,me(H,f=>(g(),j(r,{value:f.value},{default:s(()=>[U(Q(f.label),1)]),_:2},1032,["value"]))),256))]),_:1},8,["value"]),n(T,{value:d.value,"onUpdate:value":m[3]||(m[3]=f=>d.value=f),class:"input-keywords",placeholder:p.$t("globalSearchTip"),options:O.value,onSelect:E,onSearch:i(K)},null,8,["value","placeholder","options","onSearch"]),n(ge,{icon:ie(i(Le)),class:"search-icon",onClick:F},null,8,["icon"])]),_:1}),n(he,{layout:"inline"},{default:s(()=>[n(ve,{class:"mesh-select-item",label:p.$t("registryCenter"),inline:""},{default:s(()=>[n(w,{class:"mesh-select",value:i(y).mesh,options:P.value.map(f=>({value:f.name,label:f.name})),onChange:x},null,8,["value","options"])]),_:1},8,["label"])]),_:1})]),_:1}),mt,n(_,{align:"center",gap:"middle"},{default:s(()=>[n(_,{align:"center"},{default:s(()=>[n(Oe,{value:i(o),"onUpdate:value":m[4]||(m[4]=f=>Fe(o)?o.value=f:o=f),options:i(c).opts},null,8,["value","options"])]),_:1}),n(_,{align:"center"},{default:s(()=>[n(be,{pureColor:i(C),onPureColorChange:b,format:"hex6",shape:"circle",useType:"pure"},null,8,["pureColor"]),n(Pe,null,{content:s(()=>[U("reset the theme")]),default:s(()=>[n(i(de),{class:"reset-icon",icon:"material-symbols:reset-tv-outline",onClick:v})]),_:1})]),_:1}),n(_,{align:"center"},{default:s(()=>{var f,ne;return[n(Me,null,{overlay:s(()=>[n(Ae,null,{default:s(()=>[n(xe,{onClick:A},{default:s(()=>[ft]),_:1})]),_:1})]),default:s(()=>[n(ye,{onClick:m[5]||(m[5]=()=>{})},{icon:s(()=>[n(i(ct))]),_:1})]),_:1}),L("span",gt,Q((ne=(f=i(M))==null?void 0:f.userinfo)==null?void 0:ne.username),1)]}),_:1})]),_:1})]),_:1})]),_:1})])}}}),vt=Z(_t,[["__scopeId","data-v-fbb481f3"]]),ht={class:"__container_layout_bread"},Ot=V({__name:"layout_bread",setup(a){const e=X();k();let t=Y(()=>{var o;return(o=e.params)!=null&&o.pathId?e.params.pathId:""});const c=Y(()=>e.matched.slice(1).map((o,b)=>({name:o.name})));return(o,b)=>{const v=u("a-breadcrumb-item"),A=u("a-breadcrumb");return g(),B("div",ht,[n(A,null,{default:s(()=>[(g(!0),B(J,null,me(c.value,P=>(g(),j(v,null,{default:s(()=>[U(Q(o.$t(P.name)),1)]),_:2},1024))),256)),i(t)?(g(),j(v,{key:0},{default:s(()=>[U(Q(i(t)),1)]),_:1})):fe("",!0)]),_:1})])}}}),bt=Z(Ot,[["__scopeId","data-v-97925c3f"]]),Pt={class:"__container_layout_index"},yt={class:"logo"},xt=["src"],At=V({__name:"index",setup(a){pe(b=>({"1cdde0dc":i(C)}));const e=z(!1);se(S.COLLAPSED,e);const t=X(),c=z(t.fullPath),o=()=>{c.value=`${t.fullPath}-${Date.now()}`};return se(S.LAYOUT_ROUTE_KEY,o),(b,v)=>{const A=u("a-layout-sider"),P=u("router-view"),y=u("a-layout-content"),R=u("a-layout-footer"),x=u("a-layout");return g(),B("div",Pt,[n(x,{style:{height:"100vh"}},{default:s(()=>[n(A,{width:"268",collapsed:e.value,"onUpdate:collapsed":v[0]||(v[0]=M=>e.value=M),theme:"light",trigger:null,collapsible:""},{default:s(()=>[L("div",yt,[L("img",{alt:"Dubbo Admin",src:i(it)},null,8,xt),e.value?fe("",!0):(g(),B(J,{key:0},[U("Dubbo Admin")],64))]),n(ut)]),_:1},8,["collapsed"]),n(x,null,{default:s(()=>[n(vt,{collapsed:e.value},null,8,["collapsed"]),n(bt),n(y,{class:"layout-content"},{default:s(()=>[(g(),j(P,{key:c.value},{default:s(({Component:M})=>[n(Ee,{name:"slide-fade"},{default:s(()=>[(g(),j(Te(M)))]),_:2},1024)]),_:1}))]),_:1}),n(R,{class:"layout-footer"},{default:s(()=>[U("© 2024 The Apache Software Foundation. ")]),_:1})]),_:1})]),_:1})])}}}),Bt=Z(At,[["__scopeId","data-v-e6898f0d"]]);export{Bt as default}; +import{b as n,A as I,d as V,k as ue,a as X,l as Y,r as G,u as k,e as u,o as g,c as B,n as i,q as we,s as ie,I as de,_ as Z,v as pe,P as C,x as ze,y as q,z as S,B as z,C as Ye,D as je,E as Be,F as ae,G as Re,H as Ke,w as s,J as j,K as Ue,L as J,M as me,f as U,t as Q,S as Le,N as Fe,j as L,O as oe,Q as Ce,R as Se,p as He,h as Ne,T as fe,U as se,V as Ee,W as Te}from"./index-VXjVsiiO.js";import{s as Ge}from"./app-tPR0CJiV.js";import{s as Qe}from"./instance-dqyT8xOu.js";import{s as Ve}from"./service-146hGzKC.js";import{m as Xe,a as Ze}from"./globalSearch-6GNf4A56.js";import{u as qe}from"./request-Cs8TyifY.js";var Ie={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"};const ke=Ie;function ce(a){for(var e=1;e[v(c.meta)]),b=G([]);function v(l){var d;return l.tab||l.hidden?v((d=l.parent)==null?void 0:d.meta):l._router_key}function A(){var d,h;let l=c.meta.parent;for(;l;)b.push((d=l.meta)==null?void 0:d._router_key),l=(h=l.meta)==null?void 0:h.parent}A();function P(l){o[0]=l.key}function y(l,d,h,O,K,D){return O&&(O=ie(de,{icon:O})),{key:h,title:d,icon:O,children:K,label:Y(()=>e.$t(l)),type:D}}const R=G([]);function x(l,d,h="root"){var O,K,D,N,F,E,p,m,_;if(!(!l||l.length===0))for(let r of l){if((O=r.meta)!=null&&O.skip){x(r.children,d,r.name);continue}if(!((K=r.meta)!=null&&K.hidden))if(!r.children||r.children.length===0||(D=r.meta)!=null&&D.tab_parent)d.push(y(r.name,r.path,(N=r.meta)==null?void 0:N._router_key,(F=r.meta)==null?void 0:F.icon));else if(r.children.length===1)d.push(y(r.children[0].name,r.path,(E=r.meta)==null?void 0:E._router_key,(p=r.children[0].meta)==null?void 0:p.icon));else{const w=G([]);x(r.children,w,r.name),d.push(y(r.name,r.path,(m=r.meta)==null?void 0:m._router_key,(_=r.meta)==null?void 0:_.icon,w))}}}x(t,R);const M=k(),H=l=>{var d;M.push((d=l.item)==null?void 0:d.title)};return(l,d)=>{const h=u("a-menu");return g(),B("div",rt,[n(h,{mode:"inline",selectedKeys:i(o),"open-keys":i(b),onSelect:P,items:R,onClick:H},null,8,["selectedKeys","open-keys","items"])])}}}),ut=Z(lt,[["__scopeId","data-v-0c21c672"]]),it="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQ0AAAENCAYAAAAVEjAIAAAOg0lEQVR4Xu3dYXXjSBSE0YUwEAJhIQjCQDCEgSAIA8EQBoIhLARDWAa17mQzZ1KJbcVx8rq7vnuO/3eXyi+SLDt//XVHkhYB0r+n1+H/18/Taz29dnrqxzfvDYL9Xwrgmueh0gZKGyZ/e5cQQgwNfEwbJO2sZPFuYVLtYFsJgI9oQ+TH6fXgXcMkxNDA5znq6XKGS5mZiKGBr9EGSLuMefAOYjBiaODrtUuYnXcRgxBDA3XaJzLt8uXBe4mOiaGBPuzFJzBjaAfKjx5QqF26LN5TdKQdID9qQAcYHr1qB8aPFtCRNjz4yLYnYmhgDO2eB9+B6YEYGhhH+7Rl9Q7ji4mhgfEcxf2OOi18PyLAINozHlyyfDUxNDA2zjq+WgvcjwIwIM46vooYGpjHP+Lj2c8nhgbm88N7jjsSQwNz2ovLlc8hhgbmxeXKZxBDA3NrD4Qt3nt8QAvUUwYmtPPu40ZiaCDH3vuPG4ihgSx7fw/gncTQQJ52g5RPVm4lhgYyMThuJYYGcjE4biGGBrIxON5LDA2AwfEeYmgADYNjKzE0gGcMji3E0AD+tPf3CIwYGoDb+/sEfxBDA3gLv8lxjhgawDk7f7/gL4YGcEH7Wj2/x+HE0AAuOYpPVF4SQwO45uDvm2hiaABbrP7eiSWGxmdp18OHDl+43Xd//0QSQ+Me2oDYn16702vxjHti68b7tOPM/Q0xNG71PCiGurvum8C7HTzTOGJovFcbFqsG/Yvjm8FNsh/8EkNjq6GHxTPfFG421BnmXYmhscXh9Hrw7EbkG8PN/vFsY4ihcc3qmY3MN4cPWT3fCGJonDPlf+byTeLD8i5TxNB4y7TfOfCN4sMOnvH0xNBw0w6MxjeLu8j6NEUMjT9NPTAa3zDuIuuhLzE0/rTzfGbjG8bd7D3raYmh8eynZzMj3zTuauqz1N/E0GiOCjm99I3jrg6e95TE0GgWz2VWvnHc3eKZT6dt0ncdZu+ZzMw3j7s7eubTEUPjwTOZmW8en2LnuU9F2UNj73nMzgPApzh67lNR9tDIuNv9Bw8An2bn2U9DuUNjyG8pntb9t56O2a0vfI2jH7tpKLdIQzz6e1rnQ1urnv45Mcay8+M5BeUOja4vTU7r+6annxPEuI5+XKegzKHxr+fQk9P6vrc1+qIxpJ0f3+Epc2j88hx6oaefFMQ8Dn6Mh6fMobF6Dj3Q070LzGfxYz20tiHfYYDvnkO1tiZfJKax9+M9NGUOjcVzqKSnm57cw5jbPF+IFEOjnLiPkWD14z4sBQ4Nz6CSOMtIcfRjPywxNErp6f+/IsPix39IbSO+s9l5BpVOy/nl68O09n78hySGRilxaZKk64cKNxNDo5SvDdPr7uP+dxNDo4yevrGKLHvvwXDE0CijwOwxwSWKAovrGVRRYPZ4NPYligKL6xlUUWD2eLT3LgxFgcX1DKooMHs8OnoXhqLA4noGVRSYPX7r+kegLlJgcT2DKgrMHr+t3odhKLC4nkEVBWaP34b8YetHCiyuZ1BFgdnjhTG/Lq/A4noGVRSYPV4Y86NXBRbXM6iiwOzxwk/vxBAUWFzPoIoCs8cLY97XUGBxPYMqCswer4x3X0OBxfUMqigwe7wy3n0NBRbXM6iiwOzxynj3NRRYXM+gigKzxysH70X3FFhcz6CKArPHa96L7imwuJ5BFQVmjzct3o2utQX7DmbnGVRRYPZ40w/vRtcUWFzPoIoCs8eb9t6NrimwuJ5BFQVmjzeN9ZCXAovrGVRRYPZ4m3ejawosrmdQRYHZ46zF+9Gttlhf/ew8gyoKzB5n7bwf3VJgcT2DKgrMHmeN82SoAovrGVRRYPY46+D96JYCi+sZVFFg9jhrnH+ipMDiegZVFJg9zvN+dEuBxfUMqigwe1y0eEe61BbqK5+dZ1BFgdnjop13pEsKLK5nUEWB2eOi1TvSJQUW1zOoosDscdHeO9IlBRbXM6iiwOxx0cE70iUFFtczqKLA7HHRGB+7KrC4nkEVBWaPy7wjXVJgcT2DKgrMHlc9eE+6o8DiegZVFJg9rlq8J91pi/RVz84zqKLA7HFV//8HRYHF9QyqKDB7XLV6T7qjwOJ6BlUUmD2uWr0n3VFgcT2DKgrMHlf98p50R4HF9QyqKDB7XHXwnnRHgcX1DKooMHtcdfCedEeBxfUMqigwe1zV/1OhCiyuZ1BFgdnjOu9JdxRYXM+gigKzx3Xek+4osLieQRUFZo/rvCfdUWBxPYMqCswemyzela60BfqKZ+cZVFFg9thk8a50pS3QVzw7z6CKArPHJot3pSttgb7i2XkGVRSYPTZZvCtdaQv0Fc/OM6iiwOyxyeJd6UpboK94dp5BFQVmj00W70pX2gJ9xbPzDKooMHtssnpXuqLA4noGVRSYPTZZvStdUWBxPYMqCswem6zela4osLieQRUFZo9NVu9KVxRYXM+gigKzxyard6UrCiyuZ1BFgdljk9W70hUFFtczqKLA7LHJ6l3pigKL6xlUUWD22GT1rnRFgcX1DKooMHtssnpXuqLA4noGVRSYPTZZvStdUWBxPYMqCswem6zela4osLieQRUFZo9NVu9KVxRYXM+gigKzxyY/vCtdUWBxPYMqCswemyzela60BfqKZ+cZVFFg9thk8a50pS3QVzw7z6CKArPHJot3pSttgb7i2XkGVRSYPTZZvCtdaQv0Fc/OM6iiwOyxyeJd6UpboK94dp5BFQVmj00evCtdUWBxPYMqCswe13lPuqPA4noGVRSYPa7znnRHgcX1DKooMHtc5z3pjgKL6xlUUWD2uOroPemOAovrGVRRYPa46uA96Y4Ci+sZVFFg9rjq4D3pjgKL6xlUUWD2uGrvPemOAovrGVRRYPa4avWedEeBxfUMqigwe1y1ek+6o8DiegZVFJg9rlq8J91pi/RVz84zqKLA7HHV4j3pTlukr3p2nkEVBWaPq755T7qjwOJ6BlUUmD0u8450SYHF9QyqKDB7XPSPd6RLCiyuZ1BFgdnjooN3pEsKLK5nUEWB2eOin96RLimwuJ5BFQVmj4tW70iXFFhcz6CKArPHRYt3pEttob7y2XkGVRSYPS762zvSJQUW1zOoosDscZ73o1sKLK5nUEWB2eOsMT5ubRRYXM+gigKzx1m/vB/dUmBxPYMqCsweZ63ej24psLieQRUFZo+zvns/uqXA4noGVRSYPc4a45OTRoHF9QyqKDB7vM270TUFFtczqKLA7PGmg3ejawosrmdQRYHZ401jfOfkmQKL6xlUUWD2eNPOu9E1BRbXM6iiwOzxpgfvRtcUWFzPoIoCs8cr/3ovuqfA4noGVRSYPV4Z50nQZwosrmdQRYHZ45XVe9E9BRbXM6iiwOzxyuK96F5btO9idp5BFQVmj5e8E0NQYHE9gyoKzB4vHLwTQ1BgcT2DKgrMHi+s3okhKLC4nkEVBWaPFxbvxBDawn0ns/MMqigwe/w23vMZzxRYXM+gigKzx2/jPZ/xTIHF9QyqKDB7/LbzPgxDgcX1DKooMHv89uB9GIYCi+sZVFFg9ng0zi+Pv0WBxfUMqigwezwa6/cznAKL6xlUUWD2eDTO74G+RYHF9QyqKDB76Og9GI4Ci+sZVDkt5ZuvDdMb+9KkEUOjlK8N0xv70qQRQ6PUaTlHXx+mdfTjPyQxNEqdlrP39WFa41+aNGJolDot57uvD9N68OM/JAUOjZNvnkMlcYmSYNzvmjhlDo3Fc6h0Ws/OF4jpLH7ch9U247sLsHgO1U5rOvgiMY2jH++hKXNo7DyHaqc1PZxe//pCMYWdH++hKXNorJ5DD07r+lsMjtm049nVPbQPU+bQOHgOvRCDYzarH+PhKXNodPWxq9PT4+Xc4xjffGcZjUKHxsl3z6I3ejo2DI9xrX5Mp6DcobH3LHqlp0uWH6fXr9Prn5fbQKfmPMtolDs0xv016A/wEPBpVs9+GsodGs3O85idB4BPMe9ZRqPsoXHwPGbnAeBTrJ77VJQ9NJrFM5mZbx53N/dZRiOGxti/DP1Ovnnc3Q/PfDpiaDTzH+j/+cZxV0fPe0piaDTtlPLBs5mRbxx31f2zP3chhsaziMsU3zTu5uBZT0sMjT/tPZ/Z+IZxNw+e9bTE0HA7z2gmvlncxeo5T00MjbfsPKdZ+EbxYUfN/hGrE0PjnJ1nNQPfJD4s4+bnn8TQuGTveY3ON4gPmefHgt9DDI1r2rdKHzy3UfnmcLP5n/w8RwyNLVpBpngAzDeGm+VdljwTQ+M92lnH4hmOxDeEm2ReljwTQ+MWBw36l8Y3gnc7KvWy5JkYGh/RCvRTA/0ncN8A3m3xTOO0EDwV3KTd92hnIKue/j9ry7W7v0gvVoz3Wj3PSGJoAFsc/L0TSwwN4Jrcj1ffIoYGcM3i75toLRBPCMBvUzyfc1diaADn7P39gr8YGsAZET/KdBMxNADXnvzlxuc5YmgAf2qflAzzsF4JMTSAZwyMLcTQAJ4N+X2iLyeGBtDs/L2BM8TQAHb+vsAFYmgg287fE7hCDA3k2vn7ARuIoYFMO38vYCMxNJBn5+8DvIMYGsjBcxj3IIYGMjAw7kUMDcyP75LckxgamNteDIz7EkMD81q977gDMTQwn3b/gu+RfBYxNDCXqf73bpfE0MA8fnq/8QnE0MD4jqfX4t3GJ2lh+xEABvJLfDrytcTQwJg4u6jSgvejAXSu/dNtzi6qiKGBcRzEo+D1xNBA/9qlCM9d9EIMDfSrPaS1emdRTAwN9OdxWIj7Fn0SQwP9YFiMQAwN1Gv3LHZiWIxBDA3UaQ9mcYNzNGJo4Gu1s4p2CfLgXcQgxNDA52v3KvbiCc45tANpBxi4h3ZG0QYFlx+zEUMD93M4vX6IpzbnJoYGbtPOJNqNzHZ/YvFeYWLtgL/sAvBKO4NolxqPA0J8NJrt/xIgSxsC/moD4fnVOrF4VwAAAIDX/gMpuapHNnE8KQAAAABJRU5ErkJggg==",te=a=>(He("data-v-fbb481f3"),a=a(),Ne(),a),dt={class:"__container_layout_header"},pt=te(()=>L("div",null,null,-1)),mt=te(()=>L("div",null,null,-1)),ft=te(()=>L("a",{href:"javascript:;"},"logout",-1)),gt={class:"username"},_t=V({__name:"layout_header",setup(a){pe(p=>({"33f79e48":i(C),"75bb75af":i(ze)}));const{appContext:{config:{globalProperties:e}}}=ue(),t=q(S.COLLAPSED),c=q(S.LOCALE);let o=z(Ye.locale);function b(p){localStorage.setItem(oe,p),C.value=p}function v(p){localStorage.removeItem(oe),C.value=Ce}function A(){Se(),Ze().then(()=>{D.replace(`/login?redirect=${N.path}`)})}const P=z([]),y=qe(),R=q(S.LAYOUT_ROUTE_KEY),x=p=>{y.mesh=p,R()};je(async()=>{const{data:p}=await Xe();P.value=p});const M=Be();ae(o,p=>{Re(p)});const H=G([{label:Y(()=>e.$t("application")),value:"applications"},{label:Y(()=>e.$t("instance")),value:"instances"},{label:Y(()=>e.$t("service")),value:"services"}]),l=z(H[0].value),d=z(""),h=async()=>{const p={keywords:d.value},m=async(_,r)=>{const{data:{list:w}}=await _(p);O.value=w.map(T=>({label:T[r],value:T[r]}))};switch(l.value){case"ip":break;case"applications":await m(Ge,"appName");break;case"instances":await m(Qe,"name");break;case"services":await m(Ve,"serviceName");break}};ae(l,async p=>{await h()});const O=z([]),K=Ke.debounce(h,300),D=k(),N=X(),F=()=>{D.replace(`/resources/${l.value}/list?query=${d.value}`)},E=()=>{};return(p,m)=>{const _=u("a-flex"),r=u("a-select-option"),w=u("a-select"),T=u("a-auto-complete"),ge=u("a-button"),_e=u("a-input-group"),ve=u("a-form-item"),he=u("a-form"),Oe=u("a-segmented"),be=u("color-picker"),Pe=u("a-popover"),ye=u("a-avatar"),xe=u("a-menu-item"),Ae=u("a-menu"),Me=u("a-dropdown"),De=u("a-layout-header");return g(),B("div",dt,[n(De,{class:"header"},{default:s(()=>[n(_,{style:{height:"100%"},justify:"space-between",align:"center"},{default:s(()=>[n(_,null,{default:s(()=>[i(t)?(g(),j(i(nt),{key:0,class:"trigger",onClick:m[0]||(m[0]=()=>t.value=!i(t))})):(g(),j(i(We),{key:1,class:"trigger",onClick:m[1]||(m[1]=()=>t.value=!i(t))}))]),_:1}),pt,n(_,{gap:20},{default:s(()=>[n(_e,{onKeyup:Ue(F,["enter"]),class:"search-group",compact:""},{default:s(()=>[n(w,{value:l.value,"onUpdate:value":m[2]||(m[2]=f=>l.value=f),class:"select-type"},{default:s(()=>[(g(!0),B(J,null,me(H,f=>(g(),j(r,{value:f.value},{default:s(()=>[U(Q(f.label),1)]),_:2},1032,["value"]))),256))]),_:1},8,["value"]),n(T,{value:d.value,"onUpdate:value":m[3]||(m[3]=f=>d.value=f),class:"input-keywords",placeholder:p.$t("globalSearchTip"),options:O.value,onSelect:E,onSearch:i(K)},null,8,["value","placeholder","options","onSearch"]),n(ge,{icon:ie(i(Le)),class:"search-icon",onClick:F},null,8,["icon"])]),_:1}),n(he,{layout:"inline"},{default:s(()=>[n(ve,{class:"mesh-select-item",label:p.$t("registryCenter"),inline:""},{default:s(()=>[n(w,{class:"mesh-select",value:i(y).mesh,options:P.value.map(f=>({value:f.name,label:f.name})),onChange:x},null,8,["value","options"])]),_:1},8,["label"])]),_:1})]),_:1}),mt,n(_,{align:"center",gap:"middle"},{default:s(()=>[n(_,{align:"center"},{default:s(()=>[n(Oe,{value:i(o),"onUpdate:value":m[4]||(m[4]=f=>Fe(o)?o.value=f:o=f),options:i(c).opts},null,8,["value","options"])]),_:1}),n(_,{align:"center"},{default:s(()=>[n(be,{pureColor:i(C),onPureColorChange:b,format:"hex6",shape:"circle",useType:"pure"},null,8,["pureColor"]),n(Pe,null,{content:s(()=>[U("reset the theme")]),default:s(()=>[n(i(de),{class:"reset-icon",icon:"material-symbols:reset-tv-outline",onClick:v})]),_:1})]),_:1}),n(_,{align:"center"},{default:s(()=>{var f,ne;return[n(Me,null,{overlay:s(()=>[n(Ae,null,{default:s(()=>[n(xe,{onClick:A},{default:s(()=>[ft]),_:1})]),_:1})]),default:s(()=>[n(ye,{onClick:m[5]||(m[5]=()=>{})},{icon:s(()=>[n(i(ct))]),_:1})]),_:1}),L("span",gt,Q((ne=(f=i(M))==null?void 0:f.userinfo)==null?void 0:ne.username),1)]}),_:1})]),_:1})]),_:1})]),_:1})])}}}),vt=Z(_t,[["__scopeId","data-v-fbb481f3"]]),ht={class:"__container_layout_bread"},Ot=V({__name:"layout_bread",setup(a){const e=X();k();let t=Y(()=>{var o;return(o=e.params)!=null&&o.pathId?e.params.pathId:""});const c=Y(()=>e.matched.slice(1).map((o,b)=>({name:o.name})));return(o,b)=>{const v=u("a-breadcrumb-item"),A=u("a-breadcrumb");return g(),B("div",ht,[n(A,null,{default:s(()=>[(g(!0),B(J,null,me(c.value,P=>(g(),j(v,null,{default:s(()=>[U(Q(o.$t(P.name)),1)]),_:2},1024))),256)),i(t)?(g(),j(v,{key:0},{default:s(()=>[U(Q(i(t)),1)]),_:1})):fe("",!0)]),_:1})])}}}),bt=Z(Ot,[["__scopeId","data-v-97925c3f"]]),Pt={class:"__container_layout_index"},yt={class:"logo"},xt=["src"],At=V({__name:"index",setup(a){pe(b=>({"1cdde0dc":i(C)}));const e=z(!1);se(S.COLLAPSED,e);const t=X(),c=z(t.fullPath),o=()=>{c.value=`${t.fullPath}-${Date.now()}`};return se(S.LAYOUT_ROUTE_KEY,o),(b,v)=>{const A=u("a-layout-sider"),P=u("router-view"),y=u("a-layout-content"),R=u("a-layout-footer"),x=u("a-layout");return g(),B("div",Pt,[n(x,{style:{height:"100vh"}},{default:s(()=>[n(A,{width:"268",collapsed:e.value,"onUpdate:collapsed":v[0]||(v[0]=M=>e.value=M),theme:"light",trigger:null,collapsible:""},{default:s(()=>[L("div",yt,[L("img",{alt:"Dubbo Admin",src:i(it)},null,8,xt),e.value?fe("",!0):(g(),B(J,{key:0},[U("Dubbo Admin")],64))]),n(ut)]),_:1},8,["collapsed"]),n(x,null,{default:s(()=>[n(vt,{collapsed:e.value},null,8,["collapsed"]),n(bt),n(y,{class:"layout-content"},{default:s(()=>[(g(),j(P,{key:c.value},{default:s(({Component:M})=>[n(Ee,{name:"slide-fade"},{default:s(()=>[(g(),j(Te(M)))]),_:2},1024)]),_:1}))]),_:1}),n(R,{class:"layout-footer"},{default:s(()=>[U("© 2024 The Apache Software Foundation. ")]),_:1})]),_:1})]),_:1})])}}}),Bt=Z(At,[["__scopeId","data-v-e6898f0d"]]);export{Bt as default}; diff --git a/app/dubbo-ui/dist/admin/assets/instance-u5IY96cv.js b/app/dubbo-ui/dist/admin/assets/instance-ELqpziUu.js similarity index 92% rename from app/dubbo-ui/dist/admin/assets/instance-u5IY96cv.js rename to app/dubbo-ui/dist/admin/assets/instance-ELqpziUu.js index 5066e944..6091f151 100644 --- a/app/dubbo-ui/dist/admin/assets/instance-u5IY96cv.js +++ b/app/dubbo-ui/dist/admin/assets/instance-ELqpziUu.js @@ -1,4 +1,4 @@ -import{d as M,v as $,a as B,u as Y,r as x,D as S,c as I,b as d,w as t,e as y,n as r,P as g,H as j,U as H,o as a,L as h,M as D,J as l,I as v,f as n,t as o,j as U,T as c,a2 as q,a3 as z,z as F,_ as J}from"./index-3zDsduUv.js";import{S as G,a as K}from"./SearchUtil-bfid3zNl.js";import{a as Q}from"./app-mdoSebGq.js";import{f as X}from"./DateUtil-QXt7LnE3.js";import{p as W,q as N}from"./PromQueryUtil-4K1j3sa5.js";import{b as Z}from"./ByteUtil-YdHlSEeW.js";import"./request-3an337VF.js";const ee={class:"__container_app_instance"},te={class:"statistic-icon-big"},ae=M({__name:"instance",setup(se){var C;$(i=>({"4b565263":r(g)+"22","7b2014ad":r(g)}));const T=B(),E=Y();let R=x({info:{},report:{}}),O=(C=T.params)==null?void 0:C.pathId;S(async()=>{});const A=[{title:"instanceDomain.ip",dataIndex:"ip",key:"ip",sorter:!0,width:150,fixed:"left"},{title:"instanceDomain.name",dataIndex:"name",key:"name",sorter:!0,width:180},{title:"instanceDomain.deployState",dataIndex:"deployState",key:"deployState",sorter:!0,width:150},{title:"instanceDomain.deployCluster",dataIndex:"deployClusters",key:"deployClusters",sorter:!0,width:180},{title:"instanceDomain.registerState",dataIndex:"registerState",key:"registerState",sorter:!0,width:150},{title:"instanceDomain.registerClusters",dataIndex:"registerCluster",key:"registerCluster",sorter:!0,width:200},{title:"instanceDomain.cpu",dataIndex:"cpu",key:"cpu",sorter:!0,width:120},{title:"instanceDomain.memory",dataIndex:"memory",key:"memory",sorter:!0,width:120},{title:"instanceDomain.startTime",dataIndex:"startTime",key:"startTime",sorter:!0,width:150}];function L(i){return Q(i).then(async k=>W(k,["cpu","memory"],async p=>{let u=p.ip.split(":")[0],_=await N(`sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{container!=""}) by (pod) * on (pod) group_left(pod_ip) +import{d as M,v as $,a as B,u as Y,r as x,D as S,c as I,b as d,w as t,e as y,n as r,P as g,H as j,U as H,o as a,L as h,M as D,J as l,I as v,f as n,t as o,j as U,T as c,a2 as q,a3 as z,z as F,_ as J}from"./index-VXjVsiiO.js";import{S as G,a as K}from"./SearchUtil-ETsp-Y5a.js";import{a as Q}from"./app-tPR0CJiV.js";import{f as X}from"./DateUtil-Hh_Zud1i.js";import{p as W,q as N}from"./PromQueryUtil-wquMeYdL.js";import{b as Z}from"./ByteUtil-YdHlSEeW.js";import"./request-Cs8TyifY.js";const ee={class:"__container_app_instance"},te={class:"statistic-icon-big"},ae=M({__name:"instance",setup(se){var C;$(i=>({"4b565263":r(g)+"22","7b2014ad":r(g)}));const T=B(),E=Y();let R=x({info:{},report:{}}),O=(C=T.params)==null?void 0:C.pathId;S(async()=>{});const A=[{title:"instanceDomain.ip",dataIndex:"ip",key:"ip",sorter:!0,width:150,fixed:"left"},{title:"instanceDomain.name",dataIndex:"name",key:"name",sorter:!0,width:180},{title:"instanceDomain.deployState",dataIndex:"deployState",key:"deployState",sorter:!0,width:150},{title:"instanceDomain.deployCluster",dataIndex:"deployClusters",key:"deployClusters",sorter:!0,width:180},{title:"instanceDomain.registerState",dataIndex:"registerState",key:"registerState",sorter:!0,width:150},{title:"instanceDomain.registerClusters",dataIndex:"registerCluster",key:"registerCluster",sorter:!0,width:200},{title:"instanceDomain.cpu",dataIndex:"cpu",key:"cpu",sorter:!0,width:120},{title:"instanceDomain.memory",dataIndex:"memory",key:"memory",sorter:!0,width:120},{title:"instanceDomain.startTime",dataIndex:"startTime",key:"startTime",sorter:!0,width:150}];function L(i){return Q(i).then(async k=>W(k,["cpu","memory"],async p=>{let u=p.ip.split(":")[0],_=await N(`sum(node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate{container!=""}) by (pod) * on (pod) group_left(pod_ip) kube_pod_info{pod_ip="${u}"}`),b=await N(`sum(container_memory_working_set_bytes{container!=""}) by (pod) * on (pod) group_left(pod_ip) kube_pod_info{pod_ip="${u}"}`);p.cpu=j.isNumber(_)?_.toFixed(3)+"u":_,p.memory=Z(b)}))}const f=x(new G([{label:"",param:"type",defaultValue:1,dict:[{label:"ip",value:1},{label:"name",value:2},{label:"label",value:3}],style:{width:"100px"}},{label:"",param:"search",style:{width:"300px"}},{label:"",param:"appName",defaultValue:O,dict:[],dictType:"APPLICATION_NAME"}],L,A,{pageSize:10},!0));S(()=>{f.tableStyle={scrollX:"100",scrollY:"calc(100vh - 400px)"},f.onSearch()});const V=i=>{E.replace(`/resources/instances/detail/${i.split(":")[0]}/${i}`)};return H(F.SEARCH_DOMAIN,f),(i,k)=>{const p=y("a-statistic"),u=y("a-flex"),_=y("a-card"),b=y("a-button"),m=y("a-tag");return a(),I("div",ee,[d(u,{wrap:"wrap",gap:"small",vertical:!1,justify:"space-around",align:"left"},{default:t(()=>[(a(!0),I(h,null,D(r(R).report,(s,e)=>(a(),l(_,{class:"statistic-card"},{default:t(()=>[d(u,{gap:"middle",vertical:!1,justify:"space-between",align:"center"},{default:t(()=>[d(p,{value:s.value,class:"statistic"},{prefix:t(()=>[d(r(v),{class:"statistic-icon",icon:"solar:target-line-duotone"})]),title:t(()=>[n(o(i.$t(e.toString())),1)]),_:2},1032,["value"]),U("div",te,[d(r(v),{icon:s.icon},null,8,["icon"])])]),_:2},1024)]),_:2},1024))),256))]),_:1}),d(K,{"search-domain":f},{bodyCell:t(({column:s,text:e})=>[s.dataIndex==="name"?(a(),l(b,{key:0,type:"link",onClick:w=>V(e)},{default:t(()=>[n(o(e),1)]),_:2},1032,["onClick"])):c("",!0),s.dataIndex==="deployState"?(a(),l(m,{key:1,color:r(q)[e.toUpperCase()]},{default:t(()=>[n(o(e),1)]),_:2},1032,["color"])):c("",!0),s.dataIndex==="deployClusters"?(a(),l(m,{key:2},{default:t(()=>[n(o(e),1)]),_:2},1024)):c("",!0),s.dataIndex==="registerState"?(a(),l(m,{key:3,color:r(z)[e.toUpperCase()]},{default:t(()=>[n(o(e),1)]),_:2},1032,["color"])):c("",!0),s.dataIndex==="registerCluster"?(a(),l(m,{key:4},{default:t(()=>[n(o(e),1)]),_:2},1024)):c("",!0),s.dataIndex==="labels"?(a(!0),I(h,{key:5},D(e,(w,P)=>(a(),l(m,{color:r(g)},{default:t(()=>[n(o(P)+" : "+o(w),1)]),_:2},1032,["color"]))),256)):c("",!0),s.dataIndex==="registerTime"?(a(),I(h,{key:6},[n(o(r(X)(e)),1)],64)):c("",!0)]),_:1},8,["search-domain"])])}}}),pe=J(ae,[["__scopeId","data-v-de9e0d35"]]);export{pe as default}; diff --git a/app/dubbo-ui/dist/admin/assets/instance-qriYfOrq.js b/app/dubbo-ui/dist/admin/assets/instance-dqyT8xOu.js similarity index 91% rename from app/dubbo-ui/dist/admin/assets/instance-qriYfOrq.js rename to app/dubbo-ui/dist/admin/assets/instance-dqyT8xOu.js index 0ff64696..b8c62f91 100644 --- a/app/dubbo-ui/dist/admin/assets/instance-qriYfOrq.js +++ b/app/dubbo-ui/dist/admin/assets/instance-dqyT8xOu.js @@ -1 +1 @@ -import{r as e}from"./request-3an337VF.js";const s=t=>e({url:"/instance/search",method:"get",params:t}),c=t=>e({url:"/instance/detail",method:"get",params:t}),o=t=>e({url:"/instance/metric-dashboard",method:"get",params:t}),i=t=>e({url:"/instance/trace-dashboard",method:"get",params:t}),u=(t,a)=>e({url:"/instance/config/operatorLog",method:"get",params:{instanceIP:t,appName:a}}),g=(t,a,n)=>e({url:"/instance/config/operatorLog",method:"put",params:{instanceIP:t,appName:a,operatorLog:n}}),d=(t,a)=>e({url:"/instance/config/trafficDisable",method:"get",params:{instanceIP:t,appName:a}}),h=(t,a,n)=>e({url:"/instance/config/trafficDisable",method:"put",params:{instanceIP:t,appName:a,trafficDisable:n}});export{o as a,i as b,h as c,u as d,d as e,c as g,s,g as u}; +import{r as e}from"./request-Cs8TyifY.js";const s=t=>e({url:"/instance/search",method:"get",params:t}),c=t=>e({url:"/instance/detail",method:"get",params:t}),o=t=>e({url:"/instance/metric-dashboard",method:"get",params:t}),i=t=>e({url:"/instance/trace-dashboard",method:"get",params:t}),u=(t,a)=>e({url:"/instance/config/operatorLog",method:"get",params:{instanceIP:t,appName:a}}),g=(t,a,n)=>e({url:"/instance/config/operatorLog",method:"put",params:{instanceIP:t,appName:a,operatorLog:n}}),d=(t,a)=>e({url:"/instance/config/trafficDisable",method:"get",params:{instanceIP:t,appName:a}}),h=(t,a,n)=>e({url:"/instance/config/trafficDisable",method:"put",params:{instanceIP:t,appName:a,trafficDisable:n}});export{o as a,i as b,h as c,u as d,d as e,c as g,s,g as u}; diff --git a/app/dubbo-ui/dist/admin/assets/javascript-aILp5GNb.js b/app/dubbo-ui/dist/admin/assets/javascript-H-1KqBOf.js similarity index 89% rename from app/dubbo-ui/dist/admin/assets/javascript-aILp5GNb.js rename to app/dubbo-ui/dist/admin/assets/javascript-H-1KqBOf.js index f7c82abc..e716a2df 100644 --- a/app/dubbo-ui/dist/admin/assets/javascript-aILp5GNb.js +++ b/app/dubbo-ui/dist/admin/assets/javascript-H-1KqBOf.js @@ -1,4 +1,4 @@ -import{conf as t,language as e}from"./typescript-jSqLomXD.js";import"./js-yaml-eElisXzH.js";import"./index-3zDsduUv.js";/*!----------------------------------------------------------------------------- +import{conf as t,language as e}from"./typescript-q9CUqdgD.js";import"./js-yaml-EQlPfOK8.js";import"./index-VXjVsiiO.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license diff --git a/app/dubbo-ui/dist/admin/assets/js-yaml-eElisXzH.js b/app/dubbo-ui/dist/admin/assets/js-yaml-EQlPfOK8.js similarity index 99% rename from app/dubbo-ui/dist/admin/assets/js-yaml-eElisXzH.js rename to app/dubbo-ui/dist/admin/assets/js-yaml-EQlPfOK8.js index 2ef947be..6ea571fa 100644 --- a/app/dubbo-ui/dist/admin/assets/js-yaml-eElisXzH.js +++ b/app/dubbo-ui/dist/admin/assets/js-yaml-EQlPfOK8.js @@ -1,4 +1,4 @@ -var pQ=Object.defineProperty;var mQ=(s,e,t)=>e in s?pQ(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var Fi=(s,e,t)=>(mQ(s,typeof e!="symbol"?e+"":e,t),t);import{ah as Se,d as _Q,F as bQ,D as CQ,o as vQ,c as wQ,af as SQ}from"./index-3zDsduUv.js";function ar(s,e=0){return s[s.length-(1+e)]}function yQ(s){if(s.length===0)throw new Error("Invalid tail call");return[s.slice(0,s.length-1),s[s.length-1]]}function ti(s,e,t=(i,n)=>i===n){if(s===e)return!0;if(!s||!e||s.length!==e.length)return!1;for(let i=0,n=s.length;it(s[i],e))}function xQ(s,e){let t=0,i=s-1;for(;t<=i;){const n=(t+i)/2|0,o=e(n);if(o<0)t=n+1;else if(o>0)i=n-1;else return n}return-(t+1)}function LR(s,e,t){if(s=s|0,s>=e.length)throw new TypeError("invalid index");const i=e[Math.floor(e.length*Math.random())],n=[],o=[],r=[];for(const a of e){const l=t(a,i);l<0?n.push(a):l>0?o.push(a):r.push(a)}return s!!e)}function i7(s){let e=0;for(let t=0;t0}function Xc(s,e=t=>t){const t=new Set;return s.filter(i=>{const n=e(i);return t.has(n)?!1:(t.add(n),!0)})}function e5(s,e){return s.length>0?s[0]:e}function Ts(s,e){let t=typeof e=="number"?s:0;typeof e=="number"?t=s:(t=0,e=s);const i=[];if(t<=e)for(let n=t;ne;n--)i.push(n);return i}function xI(s,e,t){const i=s.slice(0,e),n=s.slice(e);return i.concat(t,n)}function fN(s,e){const t=s.indexOf(e);t>-1&&(s.splice(t,1),s.unshift(e))}function F0(s,e){const t=s.indexOf(e);t>-1&&(s.splice(t,1),s.push(e))}function xR(s,e){for(const t of e)s.push(t)}function t5(s){return Array.isArray(s)?s:[s]}function DQ(s,e,t){const i=Xz(s,e),n=s.length,o=t.length;s.length=n+o;for(let r=n-1;r>=i;r--)s[r+o]=s[r];for(let r=0;r0}s.isGreaterThan=i;function n(o){return o===0}s.isNeitherLessOrGreaterThan=n,s.greaterThan=1,s.lessThan=-1,s.neitherLessOrGreaterThan=0})(Yv||(Yv={}));function ps(s,e){return(t,i)=>e(s(t),s(i))}function IQ(...s){return(e,t)=>{for(const i of s){const n=i(e,t);if(!Yv.isNeitherLessOrGreaterThan(n))return n}return Yv.neitherLessOrGreaterThan}}const Zr=(s,e)=>s-e,EQ=(s,e)=>Zr(s?1:0,e?1:0);function Qz(s){return(e,t)=>-s(e,t)}class Qc{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}const Hp=class Hp{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new Hp(t=>this.iterate(i=>e(i)?t(i):!0))}map(e){return new Hp(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t,i=!0;return this.iterate(n=>((i||Yv.isGreaterThan(e(n,t)))&&(i=!1,t=n),!0)),t}};Hp.empty=new Hp(e=>{});let sg=Hp;class Wy{constructor(e){this._indexMap=e}static createSortPermutation(e,t){const i=Array.from(e.keys()).sort((n,o)=>t(e[n],e[o]));return new Wy(i)}apply(e){return e.map((t,i)=>e[this._indexMap[i]])}inverse(){const e=this._indexMap.slice();for(let t=0;t"u"}function Al(s){return!Fo(s)}function Fo(s){return Jn(s)||s===null}function ft(s,e){if(!s)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function Zd(s){if(Fo(s))throw new Error("Assertion Failed: argument is undefined or null");return s}function Xv(s){return typeof s=="function"}function TQ(s,e){const t=Math.min(s.length,e.length);for(let i=0;i{e[t]=i&&typeof i=="object"?yc(i):i}),e}function MQ(s){if(!s||typeof s!="object")return s;const e=[s];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if(eU.call(t,i)){const n=t[i];typeof n=="object"&&!Object.isFrozen(n)&&!NQ(n)&&e.push(n)}}return s}const eU=Object.prototype.hasOwnProperty;function tU(s,e){return kR(s,e,new Set)}function kR(s,e,t){if(Fo(s))return s;const i=e(s);if(typeof i<"u")return i;if(Array.isArray(s)){const n=[];for(const o of s)n.push(kR(o,e,t));return n}if(on(s)){if(t.has(s))throw new Error("Cannot clone recursive data-structure");t.add(s);const n={};for(const o in s)eU.call(s,o)&&(n[o]=kR(s[o],e,t));return t.delete(s),n}return s}function kI(s,e,t=!0){return on(s)?(on(e)&&Object.keys(e).forEach(i=>{i in s?t&&(on(s[i])&&on(e[i])?kI(s[i],e[i],t):s[i]=e[i]):s[i]=e[i]}),s):e}function ho(s,e){if(s===e)return!0;if(s==null||e===null||e===void 0||typeof s!=typeof e||typeof s!="object"||Array.isArray(s)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(s)){if(s.length!==e.length)return!1;for(t=0;tfunction(){const o=Array.prototype.slice.call(arguments,0);return e(n,o)},i={};for(const n of s)i[n]=t(n);return i}function iU(){return globalThis._VSCODE_NLS_MESSAGES}function i5(){return globalThis._VSCODE_NLS_LANGUAGE}const OQ=i5()==="pseudo"||typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function By(s,e){let t;return e.length===0?t=s:t=s.replace(/\{(\d+)\}/g,(i,n)=>{const o=n[0],r=e[o];let a=i;return typeof r=="string"?a=r:(typeof r=="number"||typeof r=="boolean"||r===void 0||r===null)&&(a=String(r)),a}),OQ&&(t="["+t.replace(/[aouei]/g,"$&$&")+"]"),t}function p(s,e,...t){return By(typeof s=="number"?nU(s,e):e,t)}function nU(s,e){var i;const t=(i=iU())==null?void 0:i[s];if(typeof t!="string"){if(typeof e=="string")return e;throw new Error(`!!! NLS MISSING: ${s} !!!`)}return t}function Ee(s,e,...t){let i;typeof s=="number"?i=nU(s,e):i=e;const n=By(i,t);return{value:n,original:e===i?n:By(e,t)}}const gp="en";let Hy=!1,Vy=!1,ZS=!1,sU=!1,n5=!1,s5=!1,oU=!1,W0,YS=gp,o7=gp,FQ,ha;const $c=globalThis;let rs;var jz;typeof $c.vscode<"u"&&typeof $c.vscode.process<"u"?rs=$c.vscode.process:typeof process<"u"&&typeof((jz=process==null?void 0:process.versions)==null?void 0:jz.node)=="string"&&(rs=process);var Kz;const WQ=typeof((Kz=rs==null?void 0:rs.versions)==null?void 0:Kz.electron)=="string",BQ=WQ&&(rs==null?void 0:rs.type)==="renderer";var qz;if(typeof rs=="object"){Hy=rs.platform==="win32",Vy=rs.platform==="darwin",ZS=rs.platform==="linux",ZS&&rs.env.SNAP&&rs.env.SNAP_REVISION,rs.env.CI||rs.env.BUILD_ARTIFACTSTAGINGDIRECTORY,W0=gp,YS=gp;const s=rs.env.VSCODE_NLS_CONFIG;if(s)try{const e=JSON.parse(s);W0=e.userLocale,o7=e.osLocale,YS=e.resolvedLanguage||gp,FQ=(qz=e.languagePack)==null?void 0:qz.translationsConfigFile}catch{}sU=!0}else typeof navigator=="object"&&!BQ?(ha=navigator.userAgent,Hy=ha.indexOf("Windows")>=0,Vy=ha.indexOf("Macintosh")>=0,s5=(ha.indexOf("Macintosh")>=0||ha.indexOf("iPad")>=0||ha.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,ZS=ha.indexOf("Linux")>=0,oU=(ha==null?void 0:ha.indexOf("Mobi"))>=0,n5=!0,YS=i5()||gp,W0=navigator.language.toLowerCase(),o7=W0):console.error("Unable to resolve platform.");const Nn=Hy,Je=Vy,Cs=ZS,Na=sU,uf=n5,HQ=n5&&typeof $c.importScripts=="function",VQ=HQ?$c.origin:void 0,Wa=s5,rU=oU,Bl=ha,zQ=YS,UQ=typeof $c.postMessage=="function"&&!$c.importScripts,aU=(()=>{if(UQ){const s=[];$c.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=s.length;i{const i=++e;s.push({id:i,callback:t}),$c.postMessage({vscodeScheduleAsyncWork:i},"*")}}return s=>setTimeout(s)})(),co=Vy||s5?2:Hy?1:3;let r7=!0,a7=!1;function lU(){if(!a7){a7=!0;const s=new Uint8Array(2);s[0]=1,s[1]=2,r7=new Uint16Array(s.buffer)[0]===513}return r7}const cU=!!(Bl&&Bl.indexOf("Chrome")>=0),$Q=!!(Bl&&Bl.indexOf("Firefox")>=0),jQ=!!(!cU&&Bl&&Bl.indexOf("Safari")>=0),KQ=!!(Bl&&Bl.indexOf("Edg/")>=0),qQ=!!(Bl&&Bl.indexOf("Android")>=0),Pn={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var ot;(function(s){function e(w){return w&&typeof w=="object"&&typeof w[Symbol.iterator]=="function"}s.is=e;const t=Object.freeze([]);function i(){return t}s.empty=i;function*n(w){yield w}s.single=n;function o(w){return e(w)?w:n(w)}s.wrap=o;function r(w){return w||t}s.from=r;function*a(w){for(let S=w.length-1;S>=0;S--)yield w[S]}s.reverse=a;function l(w){return!w||w[Symbol.iterator]().next().done===!0}s.isEmpty=l;function c(w){return w[Symbol.iterator]().next().value}s.first=c;function d(w,S){let L=0;for(const k of w)if(S(k,L++))return!0;return!1}s.some=d;function h(w,S){for(const L of w)if(S(L))return L}s.find=h;function*u(w,S){for(const L of w)S(L)&&(yield L)}s.filter=u;function*g(w,S){let L=0;for(const k of w)yield S(k,L++)}s.map=g;function*f(w,S){let L=0;for(const k of w)yield*S(k,L++)}s.flatMap=f;function*m(...w){for(const S of w)yield*S}s.concat=m;function _(w,S,L){let k=L;for(const D of w)k=S(k,D);return k}s.reduce=_;function*b(w,S,L=w.length){for(S<0&&(S+=w.length),L<0?L+=w.length:L>w.length&&(L=w.length);S{n||(n=!0,this._remove(i))}}shift(){if(this._first!==Ki.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Ki.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Ki.Undefined&&e.next!==Ki.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Ki.Undefined&&e.next===Ki.Undefined?(this._first=Ki.Undefined,this._last=Ki.Undefined):e.next===Ki.Undefined?(this._last=this._last.prev,this._last.next=Ki.Undefined):e.prev===Ki.Undefined&&(this._first=this._first.next,this._first.prev=Ki.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Ki.Undefined;)yield e.element,e=e.next}}const zy="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function GQ(s=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of zy)s.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const o5=GQ();function r5(s){let e=o5;if(s&&s instanceof RegExp)if(s.global)e=s;else{let t="g";s.ignoreCase&&(t+="i"),s.multiline&&(t+="m"),s.unicode&&(t+="u"),e=new RegExp(s.source,t)}return e.lastIndex=0,e}const dU=new hs;dU.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Qv(s,e,t,i,n){if(e=r5(e),n||(n=ot.first(dU)),t.length>n.maxLen){let c=s-n.maxLen/2;return c<0?c=0:i+=c,t=t.substring(c,s+n.maxLen/2),Qv(s,e,t,i,n)}const o=Date.now(),r=s-1-i;let a=-1,l=null;for(let c=1;!(Date.now()-o>=n.timeBudget);c++){const d=r-n.windowSize*c;e.lastIndex=Math.max(0,d);const h=ZQ(e,t,r,a);if(!h&&l||(l=h,d<=0))break;a=d}if(l){const c={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function ZQ(s,e,t,i){let n;for(;n=s.exec(e);){const o=n.index||0;if(o<=t&&s.lastIndex>=t)return n;if(i>0&&o>i)return null}return null}const rl=8;class hU{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class uU{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class Qt{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return DI(e,t)}compute(e,t,i){return i}}class jC{constructor(e,t){this.newValue=e,this.didChange=t}}function DI(s,e){if(typeof s!="object"||typeof e!="object"||!s||!e)return new jC(e,s!==e);if(Array.isArray(s)||Array.isArray(e)){const i=Array.isArray(s)&&Array.isArray(e)&&ti(s,e);return new jC(e,!i)}let t=!1;for(const i in e)if(e.hasOwnProperty(i)){const n=DI(s[i],e[i]);n.didChange&&(s[i]=n.newValue,t=!0)}return new jC(s,t)}class K1{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return DI(e,t)}validate(e){return this.defaultValue}}class ub{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return DI(e,t)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,t,i){return i}}function be(s,e){return typeof s>"u"?e:s==="false"?!1:!!s}class ut extends ub{constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return be(e,this.defaultValue)}}function Cu(s,e,t,i){if(typeof s>"u")return e;let n=parseInt(s,10);return isNaN(n)?e:(n=Math.max(t,n),n=Math.min(i,n),n|0)}class At extends ub{static clampedInt(e,t,i,n){return Cu(e,t,i,n)}constructor(e,t,i,n,o,r=void 0){typeof r<"u"&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=o),super(e,t,i,r),this.minimum=n,this.maximum=o}validate(e){return At.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function YQ(s,e,t,i){if(typeof s>"u")return e;const n=Vo.float(s,e);return Vo.clamp(n,t,i)}class Vo extends ub{static clamp(e,t,i){return ei?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,n,o){typeof o<"u"&&(o.type="number",o.default=i),super(e,t,i,o),this.validationFn=n}validate(e){return this.validationFn(Vo.float(e,this.defaultValue))}}class Xn extends ub{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return Xn.string(e,this.defaultValue)}}function gi(s,e,t,i){return typeof s!="string"?e:i&&s in i?i[s]:t.indexOf(s)===-1?e:s}class ui extends ub{constructor(e,t,i,n,o=void 0){typeof o<"u"&&(o.type="string",o.enum=n,o.default=i),super(e,t,i,o),this._allowedValues=n}validate(e){return gi(e,this.defaultValue,this._allowedValues)}}class B0 extends Qt{constructor(e,t,i,n,o,r,a=void 0){typeof a<"u"&&(a.type="string",a.enum=o,a.default=n),super(e,t,i,a),this._allowedValues=o,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function XQ(s){switch(s){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class QQ extends Qt{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[p("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),p("accessibilitySupport.on","Optimize for usage with a Screen Reader."),p("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:p("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class JQ extends Qt{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:p("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:p("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:be(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:be(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function eJ(s){switch(s){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var fn;(function(s){s[s.Line=1]="Line",s[s.Block=2]="Block",s[s.Underline=3]="Underline",s[s.LineThin=4]="LineThin",s[s.BlockOutline=5]="BlockOutline",s[s.UnderlineThin=6]="UnderlineThin"})(fn||(fn={}));function tJ(s){switch(s){case"line":return fn.Line;case"block":return fn.Block;case"underline":return fn.Underline;case"line-thin":return fn.LineThin;case"block-outline":return fn.BlockOutline;case"underline-thin":return fn.UnderlineThin}}class iJ extends K1{constructor(){super(143)}compute(e,t,i){const n=["monaco-editor"];return t.get(39)&&n.push(t.get(39)),e.extraEditorClassName&&n.push(e.extraEditorClassName),t.get(74)==="default"?n.push("mouse-default"):t.get(74)==="copy"&&n.push("mouse-copy"),t.get(112)&&n.push("showUnused"),t.get(141)&&n.push("showDeprecated"),n.join(" ")}}class nJ extends ut{constructor(){super(37,"emptySelectionClipboard",!0,{description:p("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class sJ extends Qt{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:p("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[p("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),p("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),p("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:p("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[p("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),p("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),p("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:p("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:p("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:Je},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:p("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:p("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:be(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":gi(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":gi(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:be(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:be(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:be(t.loop,this.defaultValue.loop)}}}const bc=class bc extends Qt{constructor(){super(51,"fontLigatures",bc.OFF,{anyOf:[{type:"boolean",description:p("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:p("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:p("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"||e.length===0?bc.OFF:e==="true"?bc.ON:e:e?bc.ON:bc.OFF}};bc.OFF='"liga" off, "calt" off',bc.ON='"liga" on, "calt" on';let xh=bc;const Cc=class Cc extends Qt{constructor(){super(54,"fontVariations",Cc.OFF,{anyOf:[{type:"boolean",description:p("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:p("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:p("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?Cc.OFF:e==="true"?Cc.TRANSLATE:e:e?Cc.TRANSLATE:Cc.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}};Cc.OFF="normal",Cc.TRANSLATE="translate";let Jv=Cc;class oJ extends K1{constructor(){super(50)}compute(e,t,i){return e.fontInfo}}class rJ extends ub{constructor(){super(52,"fontSize",ms.fontSize,{type:"number",minimum:6,maximum:100,default:ms.fontSize,description:p("fontSize","Controls the font size in pixels.")})}validate(e){const t=Vo.float(e,this.defaultValue);return t===0?ms.fontSize:Vo.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}const hl=class hl extends Qt{constructor(){super(53,"fontWeight",ms.fontWeight,{anyOf:[{type:"number",minimum:hl.MINIMUM_VALUE,maximum:hl.MAXIMUM_VALUE,errorMessage:p("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:hl.SUGGESTION_VALUES}],default:ms.fontWeight,description:p("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(At.clampedInt(e,ms.fontWeight,hl.MINIMUM_VALUE,hl.MAXIMUM_VALUE))}};hl.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],hl.MINIMUM_VALUE=1,hl.MAXIMUM_VALUE=1e3;let IR=hl;class aJ extends Qt{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",multipleTests:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:"",alternativeTestsCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[p("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),p("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),p("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(58,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:p("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":{description:p("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleTypeDefinitions":{description:p("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleDeclarations":{description:p("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleImplementations":{description:p("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleReferences":{description:p("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist."),...t},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:p("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:p("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:p("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:p("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:p("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{multiple:gi(t.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:t.multipleDefinitions??gi(t.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:t.multipleTypeDefinitions??gi(t.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:t.multipleDeclarations??gi(t.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:t.multipleImplementations??gi(t.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:t.multipleReferences??gi(t.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),multipleTests:t.multipleTests??gi(t.multipleTests,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:Xn.string(t.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:Xn.string(t.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:Xn.string(t.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:Xn.string(t.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:Xn.string(t.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand),alternativeTestsCommand:Xn.string(t.alternativeTestsCommand,this.defaultValue.alternativeTestsCommand)}}}class lJ extends Qt{constructor(){const e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:p("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:p("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:p("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,description:p("hover.hidingDelay","Controls the delay in milliseconds after which the hover is hidden. Requires `editor.hover.sticky` to be enabled.")},"editor.hover.above":{type:"boolean",default:e.above,description:p("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:be(t.enabled,this.defaultValue.enabled),delay:At.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:be(t.sticky,this.defaultValue.sticky),hidingDelay:At.clampedInt(t.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:be(t.above,this.defaultValue.above)}}}class im extends K1{constructor(){super(146)}compute(e,t,i){return im.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio,glyphMarginDecorationLaneCount:e.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let n=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(n=Math.max(n,t-1));const o=(i+e.viewLineCount+n)/(e.pixelRatio*e.height),r=Math.floor(e.viewLineCount/o);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:n,desiredRatio:o,minimapLineCount:r}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,o=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(o*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.paddingTop===r.paddingTop&&e.paddingBottom===r.paddingBottom&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,l=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,d=e.scrollBeyondLastLine,h=e.minimap.renderCharacters;let u=o>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const g=e.minimap.maxColumn,f=e.minimap.size,m=e.minimap.side,_=e.verticalScrollbarWidth,b=e.viewLineCount,C=e.remainingWidth,v=e.isViewportWrapping,w=h?2:3;let S=Math.floor(o*n);const L=S/o;let k=!1,D=!1,T=w*u,U=u/o,W=1;if(f==="fill"||f==="fit"){const{typicalViewportLineCount:me,extraLinesBeforeFirstLine:ge,extraLinesBeyondLastLine:Ae,desiredRatio:Pe,minimapLineCount:hi}=im.computeContainedMinimapLineCount({viewLineCount:b,scrollBeyondLastLine:d,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:n,lineHeight:l,pixelRatio:o});if(b/hi>1)k=!0,D=!0,u=1,T=1,U=u/o;else{let It=!1,St=u+1;if(f==="fit"){const Ti=Math.ceil((ge+b+Ae)*T);v&&a&&C<=t.stableFitRemainingWidth?(It=!0,St=t.stableFitMaxMinimapScale):It=Ti>S}if(f==="fill"||It){k=!0;const Ti=u;T=Math.min(l*o,Math.max(1,Math.floor(1/Pe))),v&&a&&C<=t.stableFitRemainingWidth&&(St=t.stableFitMaxMinimapScale),u=Math.min(St,Math.max(1,Math.floor(T/w))),u>Ti&&(W=Math.min(2,u/Ti)),U=u/o/W,S=Math.ceil(Math.max(me,ge+b+Ae)*T),v?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=C,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const V=Math.floor(g*U),$=Math.min(V,Math.max(0,Math.floor((C-_-2)*U/(c+U)))+rl);let B=Math.floor(o*$);const X=B/o;B=Math.floor(B*W);const ae=h?1:2,ue=m==="left"?0:i-$-_;return{renderMinimap:ae,minimapLeft:ue,minimapWidth:$,minimapHeightIsEditorHeight:k,minimapIsSampling:D,minimapScale:u,minimapLineHeight:T,minimapCanvasInnerWidth:B,minimapCanvasInnerHeight:S,minimapCanvasOuterWidth:X,minimapCanvasOuterHeight:L}}static computeLayout(e,t){const i=t.outerWidth|0,n=t.outerHeight|0,o=t.lineHeight|0,r=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,c=t.pixelRatio,d=t.viewLineCount,h=e.get(138),u=h==="inherit"?e.get(137):h,g=u==="inherit"?e.get(133):u,f=e.get(136),m=t.isDominatedByLongLines,_=e.get(57),b=e.get(68).renderType!==0,C=e.get(69),v=e.get(106),w=e.get(84),S=e.get(73),L=e.get(104),k=L.verticalScrollbarSize,D=L.verticalHasArrows,T=L.arrowSize,U=L.horizontalScrollbarSize,W=e.get(43),V=e.get(111)!=="never";let $=e.get(66);W&&V&&($+=16);let B=0;if(b){const Is=Math.max(r,C);B=Math.round(Is*l)}let X=0;_&&(X=o*t.glyphMarginDecorationLaneCount);let ae=0,ue=ae+X,me=ue+B,ge=me+$;const Ae=i-X-B-$;let Pe=!1,hi=!1,Be=-1;u==="inherit"&&m?(Pe=!0,hi=!0):g==="on"||g==="bounded"?hi=!0:g==="wordWrapColumn"&&(Be=f);const It=im._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:o,typicalHalfwidthCharacterWidth:a,pixelRatio:c,scrollBeyondLastLine:v,paddingTop:w.top,paddingBottom:w.bottom,minimap:S,verticalScrollbarWidth:k,viewLineCount:d,remainingWidth:Ae,isViewportWrapping:hi},t.memory||new uU);It.renderMinimap!==0&&It.minimapLeft===0&&(ae+=It.minimapWidth,ue+=It.minimapWidth,me+=It.minimapWidth,ge+=It.minimapWidth);const St=Ae-It.minimapWidth,Ti=Math.max(1,Math.floor((St-k-2)/a)),ns=D?T:0;return hi&&(Be=Math.max(1,Ti),g==="bounded"&&(Be=Math.min(Be,f))),{width:i,height:n,glyphMarginLeft:ae,glyphMarginWidth:X,glyphMarginDecorationLaneCount:t.glyphMarginDecorationLaneCount,lineNumbersLeft:ue,lineNumbersWidth:B,decorationsLeft:me,decorationsWidth:$,contentLeft:ge,contentWidth:St,minimap:It,viewportColumn:Ti,isWordWrapMinified:Pe,isViewportWrapping:hi,wrappingColumn:Be,verticalScrollbarWidth:k,horizontalScrollbarHeight:U,overviewRuler:{top:ns,width:k,height:n-2*ns,right:0}}}}class cJ extends Qt{constructor(){super(140,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[p("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),p("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:p("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return gi(e,"simple",["simple","advanced"])}compute(e,t,i){return t.get(2)===2?"advanced":i}}var Vr;(function(s){s.Off="off",s.OnCode="onCode",s.On="on"})(Vr||(Vr={}));class dJ extends Qt{constructor(){const e={enabled:Vr.OnCode};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[Vr.Off,Vr.OnCode,Vr.On],default:e.enabled,enumDescriptions:[p("editor.lightbulb.enabled.off","Disable the code action menu."),p("editor.lightbulb.enabled.onCode","Show the code action menu when the cursor is on lines with code."),p("editor.lightbulb.enabled.on","Show the code action menu when the cursor is on lines with code or on empty lines.")],description:p("enabled","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:gi(e.enabled,this.defaultValue.enabled,[Vr.Off,Vr.OnCode,Vr.On])}}}class hJ extends Qt{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(116,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:p("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor."),tags:["experimental"]},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:20,description:p("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:p("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:e.scrollWithEditor,description:p("editor.stickyScroll.scrollWithEditor","Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:be(t.enabled,this.defaultValue.enabled),maxLineCount:At.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:gi(t.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:be(t.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}class uJ extends Qt{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(142,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:p("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[p("editor.inlayHints.on","Inlay hints are enabled"),p("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",Je?"Ctrl+Option":"Ctrl+Alt"),p("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",Je?"Ctrl+Option":"Ctrl+Alt"),p("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:p("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:p("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:p("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return typeof t.enabled=="boolean"&&(t.enabled=t.enabled?"on":"off"),{enabled:gi(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:At.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:Xn.string(t.fontFamily,this.defaultValue.fontFamily),padding:be(t.padding,this.defaultValue.padding)}}}class gJ extends Qt{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):At.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?At.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}class fJ extends Vo{constructor(){super(67,"lineHeight",ms.lineHeight,e=>Vo.clamp(e,0,150),{markdownDescription:p("lineHeight",`Controls the line height. +var pQ=Object.defineProperty;var mQ=(s,e,t)=>e in s?pQ(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var Fi=(s,e,t)=>(mQ(s,typeof e!="symbol"?e+"":e,t),t);import{ah as Se,d as _Q,F as bQ,D as CQ,o as vQ,c as wQ,af as SQ}from"./index-VXjVsiiO.js";function ar(s,e=0){return s[s.length-(1+e)]}function yQ(s){if(s.length===0)throw new Error("Invalid tail call");return[s.slice(0,s.length-1),s[s.length-1]]}function ti(s,e,t=(i,n)=>i===n){if(s===e)return!0;if(!s||!e||s.length!==e.length)return!1;for(let i=0,n=s.length;it(s[i],e))}function xQ(s,e){let t=0,i=s-1;for(;t<=i;){const n=(t+i)/2|0,o=e(n);if(o<0)t=n+1;else if(o>0)i=n-1;else return n}return-(t+1)}function LR(s,e,t){if(s=s|0,s>=e.length)throw new TypeError("invalid index");const i=e[Math.floor(e.length*Math.random())],n=[],o=[],r=[];for(const a of e){const l=t(a,i);l<0?n.push(a):l>0?o.push(a):r.push(a)}return s!!e)}function i7(s){let e=0;for(let t=0;t0}function Xc(s,e=t=>t){const t=new Set;return s.filter(i=>{const n=e(i);return t.has(n)?!1:(t.add(n),!0)})}function e5(s,e){return s.length>0?s[0]:e}function Ts(s,e){let t=typeof e=="number"?s:0;typeof e=="number"?t=s:(t=0,e=s);const i=[];if(t<=e)for(let n=t;ne;n--)i.push(n);return i}function xI(s,e,t){const i=s.slice(0,e),n=s.slice(e);return i.concat(t,n)}function fN(s,e){const t=s.indexOf(e);t>-1&&(s.splice(t,1),s.unshift(e))}function F0(s,e){const t=s.indexOf(e);t>-1&&(s.splice(t,1),s.push(e))}function xR(s,e){for(const t of e)s.push(t)}function t5(s){return Array.isArray(s)?s:[s]}function DQ(s,e,t){const i=Xz(s,e),n=s.length,o=t.length;s.length=n+o;for(let r=n-1;r>=i;r--)s[r+o]=s[r];for(let r=0;r0}s.isGreaterThan=i;function n(o){return o===0}s.isNeitherLessOrGreaterThan=n,s.greaterThan=1,s.lessThan=-1,s.neitherLessOrGreaterThan=0})(Yv||(Yv={}));function ps(s,e){return(t,i)=>e(s(t),s(i))}function IQ(...s){return(e,t)=>{for(const i of s){const n=i(e,t);if(!Yv.isNeitherLessOrGreaterThan(n))return n}return Yv.neitherLessOrGreaterThan}}const Zr=(s,e)=>s-e,EQ=(s,e)=>Zr(s?1:0,e?1:0);function Qz(s){return(e,t)=>-s(e,t)}class Qc{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let t=this.firstIdx;for(;t=0&&e(this.items[t]);)t--;const i=t===this.lastIdx?null:this.items.slice(t+1,this.lastIdx+1);return this.lastIdx=t,i}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const t=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,t}}const Hp=class Hp{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(t=>(e.push(t),!0)),e}filter(e){return new Hp(t=>this.iterate(i=>e(i)?t(i):!0))}map(e){return new Hp(t=>this.iterate(i=>t(e(i))))}findLast(e){let t;return this.iterate(i=>(e(i)&&(t=i),!0)),t}findLastMaxBy(e){let t,i=!0;return this.iterate(n=>((i||Yv.isGreaterThan(e(n,t)))&&(i=!1,t=n),!0)),t}};Hp.empty=new Hp(e=>{});let sg=Hp;class Wy{constructor(e){this._indexMap=e}static createSortPermutation(e,t){const i=Array.from(e.keys()).sort((n,o)=>t(e[n],e[o]));return new Wy(i)}apply(e){return e.map((t,i)=>e[this._indexMap[i]])}inverse(){const e=this._indexMap.slice();for(let t=0;t"u"}function Al(s){return!Fo(s)}function Fo(s){return Jn(s)||s===null}function ft(s,e){if(!s)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function Zd(s){if(Fo(s))throw new Error("Assertion Failed: argument is undefined or null");return s}function Xv(s){return typeof s=="function"}function TQ(s,e){const t=Math.min(s.length,e.length);for(let i=0;i{e[t]=i&&typeof i=="object"?yc(i):i}),e}function MQ(s){if(!s||typeof s!="object")return s;const e=[s];for(;e.length>0;){const t=e.shift();Object.freeze(t);for(const i in t)if(eU.call(t,i)){const n=t[i];typeof n=="object"&&!Object.isFrozen(n)&&!NQ(n)&&e.push(n)}}return s}const eU=Object.prototype.hasOwnProperty;function tU(s,e){return kR(s,e,new Set)}function kR(s,e,t){if(Fo(s))return s;const i=e(s);if(typeof i<"u")return i;if(Array.isArray(s)){const n=[];for(const o of s)n.push(kR(o,e,t));return n}if(on(s)){if(t.has(s))throw new Error("Cannot clone recursive data-structure");t.add(s);const n={};for(const o in s)eU.call(s,o)&&(n[o]=kR(s[o],e,t));return t.delete(s),n}return s}function kI(s,e,t=!0){return on(s)?(on(e)&&Object.keys(e).forEach(i=>{i in s?t&&(on(s[i])&&on(e[i])?kI(s[i],e[i],t):s[i]=e[i]):s[i]=e[i]}),s):e}function ho(s,e){if(s===e)return!0;if(s==null||e===null||e===void 0||typeof s!=typeof e||typeof s!="object"||Array.isArray(s)!==Array.isArray(e))return!1;let t,i;if(Array.isArray(s)){if(s.length!==e.length)return!1;for(t=0;tfunction(){const o=Array.prototype.slice.call(arguments,0);return e(n,o)},i={};for(const n of s)i[n]=t(n);return i}function iU(){return globalThis._VSCODE_NLS_MESSAGES}function i5(){return globalThis._VSCODE_NLS_LANGUAGE}const OQ=i5()==="pseudo"||typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function By(s,e){let t;return e.length===0?t=s:t=s.replace(/\{(\d+)\}/g,(i,n)=>{const o=n[0],r=e[o];let a=i;return typeof r=="string"?a=r:(typeof r=="number"||typeof r=="boolean"||r===void 0||r===null)&&(a=String(r)),a}),OQ&&(t="["+t.replace(/[aouei]/g,"$&$&")+"]"),t}function p(s,e,...t){return By(typeof s=="number"?nU(s,e):e,t)}function nU(s,e){var i;const t=(i=iU())==null?void 0:i[s];if(typeof t!="string"){if(typeof e=="string")return e;throw new Error(`!!! NLS MISSING: ${s} !!!`)}return t}function Ee(s,e,...t){let i;typeof s=="number"?i=nU(s,e):i=e;const n=By(i,t);return{value:n,original:e===i?n:By(e,t)}}const gp="en";let Hy=!1,Vy=!1,ZS=!1,sU=!1,n5=!1,s5=!1,oU=!1,W0,YS=gp,o7=gp,FQ,ha;const $c=globalThis;let rs;var jz;typeof $c.vscode<"u"&&typeof $c.vscode.process<"u"?rs=$c.vscode.process:typeof process<"u"&&typeof((jz=process==null?void 0:process.versions)==null?void 0:jz.node)=="string"&&(rs=process);var Kz;const WQ=typeof((Kz=rs==null?void 0:rs.versions)==null?void 0:Kz.electron)=="string",BQ=WQ&&(rs==null?void 0:rs.type)==="renderer";var qz;if(typeof rs=="object"){Hy=rs.platform==="win32",Vy=rs.platform==="darwin",ZS=rs.platform==="linux",ZS&&rs.env.SNAP&&rs.env.SNAP_REVISION,rs.env.CI||rs.env.BUILD_ARTIFACTSTAGINGDIRECTORY,W0=gp,YS=gp;const s=rs.env.VSCODE_NLS_CONFIG;if(s)try{const e=JSON.parse(s);W0=e.userLocale,o7=e.osLocale,YS=e.resolvedLanguage||gp,FQ=(qz=e.languagePack)==null?void 0:qz.translationsConfigFile}catch{}sU=!0}else typeof navigator=="object"&&!BQ?(ha=navigator.userAgent,Hy=ha.indexOf("Windows")>=0,Vy=ha.indexOf("Macintosh")>=0,s5=(ha.indexOf("Macintosh")>=0||ha.indexOf("iPad")>=0||ha.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,ZS=ha.indexOf("Linux")>=0,oU=(ha==null?void 0:ha.indexOf("Mobi"))>=0,n5=!0,YS=i5()||gp,W0=navigator.language.toLowerCase(),o7=W0):console.error("Unable to resolve platform.");const Nn=Hy,Je=Vy,Cs=ZS,Na=sU,uf=n5,HQ=n5&&typeof $c.importScripts=="function",VQ=HQ?$c.origin:void 0,Wa=s5,rU=oU,Bl=ha,zQ=YS,UQ=typeof $c.postMessage=="function"&&!$c.importScripts,aU=(()=>{if(UQ){const s=[];$c.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let i=0,n=s.length;i{const i=++e;s.push({id:i,callback:t}),$c.postMessage({vscodeScheduleAsyncWork:i},"*")}}return s=>setTimeout(s)})(),co=Vy||s5?2:Hy?1:3;let r7=!0,a7=!1;function lU(){if(!a7){a7=!0;const s=new Uint8Array(2);s[0]=1,s[1]=2,r7=new Uint16Array(s.buffer)[0]===513}return r7}const cU=!!(Bl&&Bl.indexOf("Chrome")>=0),$Q=!!(Bl&&Bl.indexOf("Firefox")>=0),jQ=!!(!cU&&Bl&&Bl.indexOf("Safari")>=0),KQ=!!(Bl&&Bl.indexOf("Edg/")>=0),qQ=!!(Bl&&Bl.indexOf("Android")>=0),Pn={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}};var ot;(function(s){function e(w){return w&&typeof w=="object"&&typeof w[Symbol.iterator]=="function"}s.is=e;const t=Object.freeze([]);function i(){return t}s.empty=i;function*n(w){yield w}s.single=n;function o(w){return e(w)?w:n(w)}s.wrap=o;function r(w){return w||t}s.from=r;function*a(w){for(let S=w.length-1;S>=0;S--)yield w[S]}s.reverse=a;function l(w){return!w||w[Symbol.iterator]().next().done===!0}s.isEmpty=l;function c(w){return w[Symbol.iterator]().next().value}s.first=c;function d(w,S){let L=0;for(const k of w)if(S(k,L++))return!0;return!1}s.some=d;function h(w,S){for(const L of w)if(S(L))return L}s.find=h;function*u(w,S){for(const L of w)S(L)&&(yield L)}s.filter=u;function*g(w,S){let L=0;for(const k of w)yield S(k,L++)}s.map=g;function*f(w,S){let L=0;for(const k of w)yield*S(k,L++)}s.flatMap=f;function*m(...w){for(const S of w)yield*S}s.concat=m;function _(w,S,L){let k=L;for(const D of w)k=S(k,D);return k}s.reduce=_;function*b(w,S,L=w.length){for(S<0&&(S+=w.length),L<0?L+=w.length:L>w.length&&(L=w.length);S{n||(n=!0,this._remove(i))}}shift(){if(this._first!==Ki.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Ki.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Ki.Undefined&&e.next!==Ki.Undefined){const t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Ki.Undefined&&e.next===Ki.Undefined?(this._first=Ki.Undefined,this._last=Ki.Undefined):e.next===Ki.Undefined?(this._last=this._last.prev,this._last.next=Ki.Undefined):e.prev===Ki.Undefined&&(this._first=this._first.next,this._first.prev=Ki.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Ki.Undefined;)yield e.element,e=e.next}}const zy="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function GQ(s=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const t of zy)s.indexOf(t)>=0||(e+="\\"+t);return e+="\\s]+)",new RegExp(e,"g")}const o5=GQ();function r5(s){let e=o5;if(s&&s instanceof RegExp)if(s.global)e=s;else{let t="g";s.ignoreCase&&(t+="i"),s.multiline&&(t+="m"),s.unicode&&(t+="u"),e=new RegExp(s.source,t)}return e.lastIndex=0,e}const dU=new hs;dU.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Qv(s,e,t,i,n){if(e=r5(e),n||(n=ot.first(dU)),t.length>n.maxLen){let c=s-n.maxLen/2;return c<0?c=0:i+=c,t=t.substring(c,s+n.maxLen/2),Qv(s,e,t,i,n)}const o=Date.now(),r=s-1-i;let a=-1,l=null;for(let c=1;!(Date.now()-o>=n.timeBudget);c++){const d=r-n.windowSize*c;e.lastIndex=Math.max(0,d);const h=ZQ(e,t,r,a);if(!h&&l||(l=h,d<=0))break;a=d}if(l){const c={word:l[0],startColumn:i+1+l.index,endColumn:i+1+l.index+l[0].length};return e.lastIndex=0,c}return null}function ZQ(s,e,t,i){let n;for(;n=s.exec(e);){const o=n.index||0;if(o<=t&&s.lastIndex>=t)return n;if(i>0&&o>i)return null}return null}const rl=8;class hU{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class uU{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class Qt{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return DI(e,t)}compute(e,t,i){return i}}class jC{constructor(e,t){this.newValue=e,this.didChange=t}}function DI(s,e){if(typeof s!="object"||typeof e!="object"||!s||!e)return new jC(e,s!==e);if(Array.isArray(s)||Array.isArray(e)){const i=Array.isArray(s)&&Array.isArray(e)&&ti(s,e);return new jC(e,!i)}let t=!1;for(const i in e)if(e.hasOwnProperty(i)){const n=DI(s[i],e[i]);n.didChange&&(s[i]=n.newValue,t=!0)}return new jC(s,t)}class K1{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,t){return DI(e,t)}validate(e){return this.defaultValue}}class ub{constructor(e,t,i,n){this.id=e,this.name=t,this.defaultValue=i,this.schema=n}applyUpdate(e,t){return DI(e,t)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,t,i){return i}}function be(s,e){return typeof s>"u"?e:s==="false"?!1:!!s}class ut extends ub{constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="boolean",n.default=i),super(e,t,i,n)}validate(e){return be(e,this.defaultValue)}}function Cu(s,e,t,i){if(typeof s>"u")return e;let n=parseInt(s,10);return isNaN(n)?e:(n=Math.max(t,n),n=Math.min(i,n),n|0)}class At extends ub{static clampedInt(e,t,i,n){return Cu(e,t,i,n)}constructor(e,t,i,n,o,r=void 0){typeof r<"u"&&(r.type="integer",r.default=i,r.minimum=n,r.maximum=o),super(e,t,i,r),this.minimum=n,this.maximum=o}validate(e){return At.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}function YQ(s,e,t,i){if(typeof s>"u")return e;const n=Vo.float(s,e);return Vo.clamp(n,t,i)}class Vo extends ub{static clamp(e,t,i){return ei?i:e}static float(e,t){if(typeof e=="number")return e;if(typeof e>"u")return t;const i=parseFloat(e);return isNaN(i)?t:i}constructor(e,t,i,n,o){typeof o<"u"&&(o.type="number",o.default=i),super(e,t,i,o),this.validationFn=n}validate(e){return this.validationFn(Vo.float(e,this.defaultValue))}}class Xn extends ub{static string(e,t){return typeof e!="string"?t:e}constructor(e,t,i,n=void 0){typeof n<"u"&&(n.type="string",n.default=i),super(e,t,i,n)}validate(e){return Xn.string(e,this.defaultValue)}}function gi(s,e,t,i){return typeof s!="string"?e:i&&s in i?i[s]:t.indexOf(s)===-1?e:s}class ui extends ub{constructor(e,t,i,n,o=void 0){typeof o<"u"&&(o.type="string",o.enum=n,o.default=i),super(e,t,i,o),this._allowedValues=n}validate(e){return gi(e,this.defaultValue,this._allowedValues)}}class B0 extends Qt{constructor(e,t,i,n,o,r,a=void 0){typeof a<"u"&&(a.type="string",a.enum=o,a.default=n),super(e,t,i,a),this._allowedValues=o,this._convert=r}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function XQ(s){switch(s){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class QQ extends Qt{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[p("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached."),p("accessibilitySupport.on","Optimize for usage with a Screen Reader."),p("accessibilitySupport.off","Assume a screen reader is not attached.")],default:"auto",tags:["accessibility"],description:p("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,t,i){return i===0?e.accessibilitySupport:i}}class JQ extends Qt{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(23,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:p("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:p("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertSpace:be(t.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:be(t.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function eJ(s){switch(s){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var fn;(function(s){s[s.Line=1]="Line",s[s.Block=2]="Block",s[s.Underline=3]="Underline",s[s.LineThin=4]="LineThin",s[s.BlockOutline=5]="BlockOutline",s[s.UnderlineThin=6]="UnderlineThin"})(fn||(fn={}));function tJ(s){switch(s){case"line":return fn.Line;case"block":return fn.Block;case"underline":return fn.Underline;case"line-thin":return fn.LineThin;case"block-outline":return fn.BlockOutline;case"underline-thin":return fn.UnderlineThin}}class iJ extends K1{constructor(){super(143)}compute(e,t,i){const n=["monaco-editor"];return t.get(39)&&n.push(t.get(39)),e.extraEditorClassName&&n.push(e.extraEditorClassName),t.get(74)==="default"?n.push("mouse-default"):t.get(74)==="copy"&&n.push("mouse-copy"),t.get(112)&&n.push("showUnused"),t.get(141)&&n.push("showDeprecated"),n.join(" ")}}class nJ extends ut{constructor(){super(37,"emptySelectionClipboard",!0,{description:p("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,t,i){return i&&e.emptySelectionClipboard}}class sJ extends Qt{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(41,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:p("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[p("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),p("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),p("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:p("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[p("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),p("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),p("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:p("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:p("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:Je},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:p("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:p("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{cursorMoveOnType:be(t.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":gi(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":gi(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:be(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:be(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:be(t.loop,this.defaultValue.loop)}}}const bc=class bc extends Qt{constructor(){super(51,"fontLigatures",bc.OFF,{anyOf:[{type:"boolean",description:p("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:p("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:p("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"||e.length===0?bc.OFF:e==="true"?bc.ON:e:e?bc.ON:bc.OFF}};bc.OFF='"liga" off, "calt" off',bc.ON='"liga" on, "calt" on';let xh=bc;const Cc=class Cc extends Qt{constructor(){super(54,"fontVariations",Cc.OFF,{anyOf:[{type:"boolean",description:p("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:p("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:p("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?Cc.OFF:e==="true"?Cc.TRANSLATE:e:e?Cc.TRANSLATE:Cc.OFF}compute(e,t,i){return e.fontInfo.fontVariationSettings}};Cc.OFF="normal",Cc.TRANSLATE="translate";let Jv=Cc;class oJ extends K1{constructor(){super(50)}compute(e,t,i){return e.fontInfo}}class rJ extends ub{constructor(){super(52,"fontSize",ms.fontSize,{type:"number",minimum:6,maximum:100,default:ms.fontSize,description:p("fontSize","Controls the font size in pixels.")})}validate(e){const t=Vo.float(e,this.defaultValue);return t===0?ms.fontSize:Vo.clamp(t,6,100)}compute(e,t,i){return e.fontInfo.fontSize}}const hl=class hl extends Qt{constructor(){super(53,"fontWeight",ms.fontWeight,{anyOf:[{type:"number",minimum:hl.MINIMUM_VALUE,maximum:hl.MAXIMUM_VALUE,errorMessage:p("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:hl.SUGGESTION_VALUES}],default:ms.fontWeight,description:p("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(At.clampedInt(e,ms.fontWeight,hl.MINIMUM_VALUE,hl.MAXIMUM_VALUE))}};hl.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"],hl.MINIMUM_VALUE=1,hl.MAXIMUM_VALUE=1e3;let IR=hl;class aJ extends Qt{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",multipleTests:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:"",alternativeTestsCommand:""},t={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[p("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),p("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),p("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},i=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(58,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:p("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":{description:p("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleTypeDefinitions":{description:p("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleDeclarations":{description:p("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleImplementations":{description:p("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist."),...t},"editor.gotoLocation.multipleReferences":{description:p("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist."),...t},"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:i,description:p("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:i,description:p("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:i,description:p("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:i,description:p("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:i,description:p("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{multiple:gi(t.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:t.multipleDefinitions??gi(t.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:t.multipleTypeDefinitions??gi(t.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:t.multipleDeclarations??gi(t.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:t.multipleImplementations??gi(t.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:t.multipleReferences??gi(t.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),multipleTests:t.multipleTests??gi(t.multipleTests,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:Xn.string(t.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:Xn.string(t.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:Xn.string(t.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:Xn.string(t.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:Xn.string(t.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand),alternativeTestsCommand:Xn.string(t.alternativeTestsCommand,this.defaultValue.alternativeTestsCommand)}}}class lJ extends Qt{constructor(){const e={enabled:!0,delay:300,hidingDelay:300,sticky:!0,above:!0};super(60,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:p("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:p("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:p("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.hidingDelay":{type:"integer",minimum:0,default:e.hidingDelay,description:p("hover.hidingDelay","Controls the delay in milliseconds after which the hover is hidden. Requires `editor.hover.sticky` to be enabled.")},"editor.hover.above":{type:"boolean",default:e.above,description:p("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:be(t.enabled,this.defaultValue.enabled),delay:At.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:be(t.sticky,this.defaultValue.sticky),hidingDelay:At.clampedInt(t.hidingDelay,this.defaultValue.hidingDelay,0,6e5),above:be(t.above,this.defaultValue.above)}}}class im extends K1{constructor(){super(146)}compute(e,t,i){return im.computeLayout(t,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio,glyphMarginDecorationLaneCount:e.glyphMarginDecorationLaneCount})}static computeContainedMinimapLineCount(e){const t=e.height/e.lineHeight,i=Math.floor(e.paddingTop/e.lineHeight);let n=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(n=Math.max(n,t-1));const o=(i+e.viewLineCount+n)/(e.pixelRatio*e.height),r=Math.floor(e.viewLineCount/o);return{typicalViewportLineCount:t,extraLinesBeforeFirstLine:i,extraLinesBeyondLastLine:n,desiredRatio:o,minimapLineCount:r}}static _computeMinimapLayout(e,t){const i=e.outerWidth,n=e.outerHeight,o=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(o*n),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:n};const r=t.stableMinimapLayoutInput,a=r&&e.outerHeight===r.outerHeight&&e.lineHeight===r.lineHeight&&e.typicalHalfwidthCharacterWidth===r.typicalHalfwidthCharacterWidth&&e.pixelRatio===r.pixelRatio&&e.scrollBeyondLastLine===r.scrollBeyondLastLine&&e.paddingTop===r.paddingTop&&e.paddingBottom===r.paddingBottom&&e.minimap.enabled===r.minimap.enabled&&e.minimap.side===r.minimap.side&&e.minimap.size===r.minimap.size&&e.minimap.showSlider===r.minimap.showSlider&&e.minimap.renderCharacters===r.minimap.renderCharacters&&e.minimap.maxColumn===r.minimap.maxColumn&&e.minimap.scale===r.minimap.scale&&e.verticalScrollbarWidth===r.verticalScrollbarWidth&&e.isViewportWrapping===r.isViewportWrapping,l=e.lineHeight,c=e.typicalHalfwidthCharacterWidth,d=e.scrollBeyondLastLine,h=e.minimap.renderCharacters;let u=o>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const g=e.minimap.maxColumn,f=e.minimap.size,m=e.minimap.side,_=e.verticalScrollbarWidth,b=e.viewLineCount,C=e.remainingWidth,v=e.isViewportWrapping,w=h?2:3;let S=Math.floor(o*n);const L=S/o;let k=!1,D=!1,T=w*u,U=u/o,W=1;if(f==="fill"||f==="fit"){const{typicalViewportLineCount:me,extraLinesBeforeFirstLine:ge,extraLinesBeyondLastLine:Ae,desiredRatio:Pe,minimapLineCount:hi}=im.computeContainedMinimapLineCount({viewLineCount:b,scrollBeyondLastLine:d,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:n,lineHeight:l,pixelRatio:o});if(b/hi>1)k=!0,D=!0,u=1,T=1,U=u/o;else{let It=!1,St=u+1;if(f==="fit"){const Ti=Math.ceil((ge+b+Ae)*T);v&&a&&C<=t.stableFitRemainingWidth?(It=!0,St=t.stableFitMaxMinimapScale):It=Ti>S}if(f==="fill"||It){k=!0;const Ti=u;T=Math.min(l*o,Math.max(1,Math.floor(1/Pe))),v&&a&&C<=t.stableFitRemainingWidth&&(St=t.stableFitMaxMinimapScale),u=Math.min(St,Math.max(1,Math.floor(T/w))),u>Ti&&(W=Math.min(2,u/Ti)),U=u/o/W,S=Math.ceil(Math.max(me,ge+b+Ae)*T),v?(t.stableMinimapLayoutInput=e,t.stableFitRemainingWidth=C,t.stableFitMaxMinimapScale=u):(t.stableMinimapLayoutInput=null,t.stableFitRemainingWidth=0)}}}const V=Math.floor(g*U),$=Math.min(V,Math.max(0,Math.floor((C-_-2)*U/(c+U)))+rl);let B=Math.floor(o*$);const X=B/o;B=Math.floor(B*W);const ae=h?1:2,ue=m==="left"?0:i-$-_;return{renderMinimap:ae,minimapLeft:ue,minimapWidth:$,minimapHeightIsEditorHeight:k,minimapIsSampling:D,minimapScale:u,minimapLineHeight:T,minimapCanvasInnerWidth:B,minimapCanvasInnerHeight:S,minimapCanvasOuterWidth:X,minimapCanvasOuterHeight:L}}static computeLayout(e,t){const i=t.outerWidth|0,n=t.outerHeight|0,o=t.lineHeight|0,r=t.lineNumbersDigitCount|0,a=t.typicalHalfwidthCharacterWidth,l=t.maxDigitWidth,c=t.pixelRatio,d=t.viewLineCount,h=e.get(138),u=h==="inherit"?e.get(137):h,g=u==="inherit"?e.get(133):u,f=e.get(136),m=t.isDominatedByLongLines,_=e.get(57),b=e.get(68).renderType!==0,C=e.get(69),v=e.get(106),w=e.get(84),S=e.get(73),L=e.get(104),k=L.verticalScrollbarSize,D=L.verticalHasArrows,T=L.arrowSize,U=L.horizontalScrollbarSize,W=e.get(43),V=e.get(111)!=="never";let $=e.get(66);W&&V&&($+=16);let B=0;if(b){const Is=Math.max(r,C);B=Math.round(Is*l)}let X=0;_&&(X=o*t.glyphMarginDecorationLaneCount);let ae=0,ue=ae+X,me=ue+B,ge=me+$;const Ae=i-X-B-$;let Pe=!1,hi=!1,Be=-1;u==="inherit"&&m?(Pe=!0,hi=!0):g==="on"||g==="bounded"?hi=!0:g==="wordWrapColumn"&&(Be=f);const It=im._computeMinimapLayout({outerWidth:i,outerHeight:n,lineHeight:o,typicalHalfwidthCharacterWidth:a,pixelRatio:c,scrollBeyondLastLine:v,paddingTop:w.top,paddingBottom:w.bottom,minimap:S,verticalScrollbarWidth:k,viewLineCount:d,remainingWidth:Ae,isViewportWrapping:hi},t.memory||new uU);It.renderMinimap!==0&&It.minimapLeft===0&&(ae+=It.minimapWidth,ue+=It.minimapWidth,me+=It.minimapWidth,ge+=It.minimapWidth);const St=Ae-It.minimapWidth,Ti=Math.max(1,Math.floor((St-k-2)/a)),ns=D?T:0;return hi&&(Be=Math.max(1,Ti),g==="bounded"&&(Be=Math.min(Be,f))),{width:i,height:n,glyphMarginLeft:ae,glyphMarginWidth:X,glyphMarginDecorationLaneCount:t.glyphMarginDecorationLaneCount,lineNumbersLeft:ue,lineNumbersWidth:B,decorationsLeft:me,decorationsWidth:$,contentLeft:ge,contentWidth:St,minimap:It,viewportColumn:Ti,isWordWrapMinified:Pe,isViewportWrapping:hi,wrappingColumn:Be,verticalScrollbarWidth:k,horizontalScrollbarHeight:U,overviewRuler:{top:ns,width:k,height:n-2*ns,right:0}}}}class cJ extends Qt{constructor(){super(140,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[p("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),p("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:p("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return gi(e,"simple",["simple","advanced"])}compute(e,t,i){return t.get(2)===2?"advanced":i}}var Vr;(function(s){s.Off="off",s.OnCode="onCode",s.On="on"})(Vr||(Vr={}));class dJ extends Qt{constructor(){const e={enabled:Vr.OnCode};super(65,"lightbulb",e,{"editor.lightbulb.enabled":{type:"string",tags:["experimental"],enum:[Vr.Off,Vr.OnCode,Vr.On],default:e.enabled,enumDescriptions:[p("editor.lightbulb.enabled.off","Disable the code action menu."),p("editor.lightbulb.enabled.onCode","Show the code action menu when the cursor is on lines with code."),p("editor.lightbulb.enabled.on","Show the code action menu when the cursor is on lines with code or on empty lines.")],description:p("enabled","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:gi(e.enabled,this.defaultValue.enabled,[Vr.Off,Vr.OnCode,Vr.On])}}}class hJ extends Qt{constructor(){const e={enabled:!0,maxLineCount:5,defaultModel:"outlineModel",scrollWithEditor:!0};super(116,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:p("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor."),tags:["experimental"]},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:20,description:p("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:p("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")},"editor.stickyScroll.scrollWithEditor":{type:"boolean",default:e.scrollWithEditor,description:p("editor.stickyScroll.scrollWithEditor","Enable scrolling of Sticky Scroll with the editor's horizontal scrollbar.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:be(t.enabled,this.defaultValue.enabled),maxLineCount:At.clampedInt(t.maxLineCount,this.defaultValue.maxLineCount,1,20),defaultModel:gi(t.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"]),scrollWithEditor:be(t.scrollWithEditor,this.defaultValue.scrollWithEditor)}}}class uJ extends Qt{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(142,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:p("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[p("editor.inlayHints.on","Inlay hints are enabled"),p("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",Je?"Ctrl+Option":"Ctrl+Alt"),p("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",Je?"Ctrl+Option":"Ctrl+Alt"),p("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:p("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:p("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:p("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return typeof t.enabled=="boolean"&&(t.enabled=t.enabled?"on":"off"),{enabled:gi(t.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:At.clampedInt(t.fontSize,this.defaultValue.fontSize,0,100),fontFamily:Xn.string(t.fontFamily,this.defaultValue.fontFamily),padding:be(t.padding,this.defaultValue.padding)}}}class gJ extends Qt{constructor(){super(66,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):At.clampedInt(e,this.defaultValue,0,1e3)}compute(e,t,i){return i<0?At.clampedInt(-i*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):i}}class fJ extends Vo{constructor(){super(67,"lineHeight",ms.lineHeight,e=>Vo.clamp(e,0,150),{markdownDescription:p("lineHeight",`Controls the line height. - Use 0 to automatically compute the line height from the font size. - Values between 0 and 8 will be used as a multiplier with the font size. - Values greater than or equal to 8 will be used as effective values.`)})}compute(e,t,i){return e.fontInfo.lineHeight}}class pJ extends Qt{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1,showRegionSectionHeaders:!0,showMarkSectionHeaders:!0,sectionHeaderFontSize:9,sectionHeaderLetterSpacing:1};super(73,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:p("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:p("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[p("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),p("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),p("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:p("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:p("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:p("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:p("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:p("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:p("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")},"editor.minimap.showRegionSectionHeaders":{type:"boolean",default:e.showRegionSectionHeaders,description:p("minimap.showRegionSectionHeaders","Controls whether named regions are shown as section headers in the minimap.")},"editor.minimap.showMarkSectionHeaders":{type:"boolean",default:e.showMarkSectionHeaders,description:p("minimap.showMarkSectionHeaders","Controls whether MARK: comments are shown as section headers in the minimap.")},"editor.minimap.sectionHeaderFontSize":{type:"number",default:e.sectionHeaderFontSize,description:p("minimap.sectionHeaderFontSize","Controls the font size of section headers in the minimap.")},"editor.minimap.sectionHeaderLetterSpacing":{type:"number",default:e.sectionHeaderLetterSpacing,description:p("minimap.sectionHeaderLetterSpacing","Controls the amount of space (in pixels) between characters of section header. This helps the readability of the header in small font sizes.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:be(t.enabled,this.defaultValue.enabled),autohide:be(t.autohide,this.defaultValue.autohide),size:gi(t.size,this.defaultValue.size,["proportional","fill","fit"]),side:gi(t.side,this.defaultValue.side,["right","left"]),showSlider:gi(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:be(t.renderCharacters,this.defaultValue.renderCharacters),scale:At.clampedInt(t.scale,1,1,3),maxColumn:At.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4),showRegionSectionHeaders:be(t.showRegionSectionHeaders,this.defaultValue.showRegionSectionHeaders),showMarkSectionHeaders:be(t.showMarkSectionHeaders,this.defaultValue.showMarkSectionHeaders),sectionHeaderFontSize:Vo.clamp(t.sectionHeaderFontSize??this.defaultValue.sectionHeaderFontSize,4,32),sectionHeaderLetterSpacing:Vo.clamp(t.sectionHeaderLetterSpacing??this.defaultValue.sectionHeaderLetterSpacing,0,5)}}}function mJ(s){return s==="ctrlCmd"?Je?"metaKey":"ctrlKey":"altKey"}class _J extends Qt{constructor(){super(84,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:p("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:p("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{top:At.clampedInt(t.top,0,0,1e3),bottom:At.clampedInt(t.bottom,0,0,1e3)}}}class bJ extends Qt{constructor(){const e={enabled:!0,cycle:!0};super(86,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:p("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:p("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:be(t.enabled,this.defaultValue.enabled),cycle:be(t.cycle,this.defaultValue.cycle)}}}class CJ extends K1{constructor(){super(144)}compute(e,t,i){return e.pixelRatio}}class vJ extends Qt{constructor(){super(88,"placeholder",void 0)}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e:this.defaultValue}}class wJ extends Qt{constructor(){const e={other:"on",comments:"off",strings:"off"},t=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[p("on","Quick suggestions show inside the suggest widget"),p("inline","Quick suggestions show as ghost text"),p("off","Quick suggestions are disabled")]}];super(90,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:t,default:e.strings,description:p("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:t,default:e.comments,description:p("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:t,default:e.other,description:p("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:p("quickSuggestions","Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the {0}-setting which controls if suggestions are triggered by special characters.","`#editor.suggestOnTriggerCharacters#`")}),this.defaultValue=e}validate(e){if(typeof e=="boolean"){const c=e?"on":"off";return{comments:c,strings:c,other:c}}if(!e||typeof e!="object")return this.defaultValue;const{other:t,comments:i,strings:n}=e,o=["on","inline","off"];let r,a,l;return typeof t=="boolean"?r=t?"on":"off":r=gi(t,this.defaultValue.other,o),typeof i=="boolean"?a=i?"on":"off":a=gi(i,this.defaultValue.comments,o),typeof n=="boolean"?l=n?"on":"off":l=gi(n,this.defaultValue.strings,o),{other:r,comments:a,strings:l}}}class SJ extends Qt{constructor(){super(68,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[p("lineNumbers.off","Line numbers are not rendered."),p("lineNumbers.on","Line numbers are rendered as absolute number."),p("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),p("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:p("lineNumbers","Controls the display of line numbers.")})}validate(e){let t=this.defaultValue.renderType,i=this.defaultValue.renderFn;return typeof e<"u"&&(typeof e=="function"?(t=4,i=e):e==="interval"?t=3:e==="relative"?t=2:e==="on"?t=1:t=0),{renderType:t,renderFn:i}}}function Uy(s){const e=s.get(99);return e==="editable"?s.get(92):e!=="on"}class yJ extends Qt{constructor(){const e=[],t={type:"number",description:p("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(103,"rulers",e,{type:"array",items:{anyOf:[t,{type:["object"],properties:{column:t,color:{type:"string",description:p("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:p("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const t=[];for(const i of e)if(typeof i=="number")t.push({column:At.clampedInt(i,0,0,1e4),color:null});else if(i&&typeof i=="object"){const n=i;t.push({column:At.clampedInt(n.column,0,0,1e4),color:n.color})}return t.sort((i,n)=>i.column-n.column),t}return this.defaultValue}}class LJ extends Qt{constructor(){super(93,"readOnlyMessage",void 0)}validate(e){return!e||typeof e!="object"?this.defaultValue:e}}function l7(s,e){if(typeof s!="string")return e;switch(s){case"hidden":return 2;case"visible":return 3;default:return 1}}let xJ=class extends Qt{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1,ignoreHorizontalScrollbarInContentHeight:!1};super(104,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[p("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),p("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),p("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:p("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[p("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),p("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),p("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:p("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:p("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:p("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:p("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")},"editor.scrollbar.ignoreHorizontalScrollbarInContentHeight":{type:"boolean",default:e.ignoreHorizontalScrollbarInContentHeight,description:p("scrollbar.ignoreHorizontalScrollbarInContentHeight","When set, the horizontal scrollbar will not increase the size of the editor's content.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e,i=At.clampedInt(t.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),n=At.clampedInt(t.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:At.clampedInt(t.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:l7(t.vertical,this.defaultValue.vertical),horizontal:l7(t.horizontal,this.defaultValue.horizontal),useShadows:be(t.useShadows,this.defaultValue.useShadows),verticalHasArrows:be(t.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:be(t.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:be(t.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:be(t.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:i,horizontalSliderSize:At.clampedInt(t.horizontalSliderSize,i,0,1e3),verticalScrollbarSize:n,verticalSliderSize:At.clampedInt(t.verticalSliderSize,n,0,1e3),scrollByPage:be(t.scrollByPage,this.defaultValue.scrollByPage),ignoreHorizontalScrollbarInContentHeight:be(t.ignoreHorizontalScrollbarInContentHeight,this.defaultValue.ignoreHorizontalScrollbarInContentHeight)}}};const No="inUntrustedWorkspace",Rs={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};class kJ extends Qt{constructor(){const e={nonBasicASCII:No,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:No,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(126,"unicodeHighlight",e,{[Rs.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,No],default:e.nonBasicASCII,description:p("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[Rs.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:p("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[Rs.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:p("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[Rs.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,No],default:e.includeComments,description:p("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[Rs.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,No],default:e.includeStrings,description:p("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[Rs.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:p("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[Rs.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:p("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,t){let i=!1;t.allowedCharacters&&e&&(ho(e.allowedCharacters,t.allowedCharacters)||(e={...e,allowedCharacters:t.allowedCharacters},i=!0)),t.allowedLocales&&e&&(ho(e.allowedLocales,t.allowedLocales)||(e={...e,allowedLocales:t.allowedLocales},i=!0));const n=super.applyUpdate(e,t);return i?new jC(n.newValue,!0):n}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{nonBasicASCII:nm(t.nonBasicASCII,No,[!0,!1,No]),invisibleCharacters:be(t.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:be(t.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:nm(t.includeComments,No,[!0,!1,No]),includeStrings:nm(t.includeStrings,No,[!0,!1,No]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,t){if(typeof e!="object"||!e)return t;const i={};for(const[n,o]of Object.entries(e))o===!0&&(i[n]=!0);return i}}class DJ extends Qt{constructor(){const e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1,keepOnBlur:!1,fontFamily:"default"};super(62,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:p("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[p("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),p("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion."),p("inlineSuggest.showToolbar.never","Never show the inline suggestion toolbar.")],description:p("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:p("inlineSuggest.suppressSuggestions","Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")},"editor.inlineSuggest.fontFamily":{type:"string",default:e.fontFamily,description:p("inlineSuggest.fontFamily","Controls the font family of the inline suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:be(t.enabled,this.defaultValue.enabled),mode:gi(t.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:gi(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),suppressSuggestions:be(t.suppressSuggestions,this.defaultValue.suppressSuggestions),keepOnBlur:be(t.keepOnBlur,this.defaultValue.keepOnBlur),fontFamily:Xn.string(t.fontFamily,this.defaultValue.fontFamily)}}}class IJ extends Qt{constructor(){const e={enabled:!1,showToolbar:"onHover",fontFamily:"default",keepOnBlur:!1};super(63,"experimentalInlineEdit",e,{"editor.experimentalInlineEdit.enabled":{type:"boolean",default:e.enabled,description:p("inlineEdit.enabled","Controls whether to show inline edits in the editor.")},"editor.experimentalInlineEdit.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover","never"],enumDescriptions:[p("inlineEdit.showToolbar.always","Show the inline edit toolbar whenever an inline suggestion is shown."),p("inlineEdit.showToolbar.onHover","Show the inline edit toolbar when hovering over an inline suggestion."),p("inlineEdit.showToolbar.never","Never show the inline edit toolbar.")],description:p("inlineEdit.showToolbar","Controls when to show the inline edit toolbar.")},"editor.experimentalInlineEdit.fontFamily":{type:"string",default:e.fontFamily,description:p("inlineEdit.fontFamily","Controls the font family of the inline edit.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:be(t.enabled,this.defaultValue.enabled),showToolbar:gi(t.showToolbar,this.defaultValue.showToolbar,["always","onHover","never"]),fontFamily:Xn.string(t.fontFamily,this.defaultValue.fontFamily),keepOnBlur:be(t.keepOnBlur,this.defaultValue.keepOnBlur)}}}class EJ extends Qt{constructor(){const e={enabled:Pn.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:Pn.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(15,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:p("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:p("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:be(t.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:be(t.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}class NJ extends Qt{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(16,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[p("editor.guides.bracketPairs.true","Enables bracket pair guides."),p("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),p("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:p("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[p("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),p("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),p("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:p("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:p("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:p("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[p("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),p("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),p("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:p("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{bracketPairs:nm(t.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:nm(t.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:be(t.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:be(t.indentation,this.defaultValue.indentation),highlightActiveIndentation:nm(t.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function nm(s,e,t){const i=t.indexOf(s);return i===-1?e:t[i]}class TJ extends Qt{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!1,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(119,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[p("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),p("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:p("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:p("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:p("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:p("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[p("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),p("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),p("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),p("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:p("suggest.selectionMode","Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions ({0} and {1}) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.","`#editor.quickSuggestions#`","`#editor.suggestOnTriggerCharacters#`")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:p("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:p("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:p("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:p("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:p("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:p("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:p("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.matchOnWordStartOnly","When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:p("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{insertMode:gi(t.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:be(t.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:be(t.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:be(t.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:be(t.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:gi(t.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:be(t.showIcons,this.defaultValue.showIcons),showStatusBar:be(t.showStatusBar,this.defaultValue.showStatusBar),preview:be(t.preview,this.defaultValue.preview),previewMode:gi(t.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:be(t.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:be(t.showMethods,this.defaultValue.showMethods),showFunctions:be(t.showFunctions,this.defaultValue.showFunctions),showConstructors:be(t.showConstructors,this.defaultValue.showConstructors),showDeprecated:be(t.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:be(t.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:be(t.showFields,this.defaultValue.showFields),showVariables:be(t.showVariables,this.defaultValue.showVariables),showClasses:be(t.showClasses,this.defaultValue.showClasses),showStructs:be(t.showStructs,this.defaultValue.showStructs),showInterfaces:be(t.showInterfaces,this.defaultValue.showInterfaces),showModules:be(t.showModules,this.defaultValue.showModules),showProperties:be(t.showProperties,this.defaultValue.showProperties),showEvents:be(t.showEvents,this.defaultValue.showEvents),showOperators:be(t.showOperators,this.defaultValue.showOperators),showUnits:be(t.showUnits,this.defaultValue.showUnits),showValues:be(t.showValues,this.defaultValue.showValues),showConstants:be(t.showConstants,this.defaultValue.showConstants),showEnums:be(t.showEnums,this.defaultValue.showEnums),showEnumMembers:be(t.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:be(t.showKeywords,this.defaultValue.showKeywords),showWords:be(t.showWords,this.defaultValue.showWords),showColors:be(t.showColors,this.defaultValue.showColors),showFiles:be(t.showFiles,this.defaultValue.showFiles),showReferences:be(t.showReferences,this.defaultValue.showReferences),showFolders:be(t.showFolders,this.defaultValue.showFolders),showTypeParameters:be(t.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:be(t.showSnippets,this.defaultValue.showSnippets),showUsers:be(t.showUsers,this.defaultValue.showUsers),showIssues:be(t.showIssues,this.defaultValue.showIssues)}}}class RJ extends Qt{constructor(){super(114,"smartSelect",{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:p("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"},"editor.smartSelect.selectSubwords":{description:p("selectSubwords","Whether subwords (like 'foo' in 'fooBar' or 'foo_bar') should be selected."),default:!0,type:"boolean"}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:be(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace),selectSubwords:be(e.selectSubwords,this.defaultValue.selectSubwords)}}}class MJ extends Qt{constructor(){const e=[];super(131,"wordSegmenterLocales",e,{anyOf:[{description:p("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"string"},{description:p("wordSegmenterLocales","Locales to be used for word segmentation when doing word related navigations or operations. Specify the BCP 47 language tag of the word you wish to recognize (e.g., ja, zh-CN, zh-Hant-TW, etc.)."),type:"array",items:{type:"string"}}]})}validate(e){if(typeof e=="string"&&(e=[e]),Array.isArray(e)){const t=[];for(const i of e)if(typeof i=="string")try{Intl.Segmenter.supportedLocalesOf(i).length>0&&t.push(i)}catch{}return t}return this.defaultValue}}class AJ extends Qt{constructor(){super(139,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[p("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),p("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),p("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),p("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:p("wrappingIndent","Controls the indentation of wrapped lines."),default:"same"}})}validate(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(e,t,i){return t.get(2)===2?0:i}}class PJ extends K1{constructor(){super(147)}compute(e,t,i){const n=t.get(146);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:n.isWordWrapMinified,isViewportWrapping:n.isViewportWrapping,wrappingColumn:n.wrappingColumn}}}class OJ extends Qt{constructor(){const e={enabled:!0,showDropSelector:"afterDrop"};super(36,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:p("dropIntoEditor.enabled","Controls whether you can drag and drop a file into a text editor by holding down the `Shift` key (instead of opening the file in an editor).")},"editor.dropIntoEditor.showDropSelector":{type:"string",markdownDescription:p("dropIntoEditor.showDropSelector","Controls if a widget is shown when dropping files into the editor. This widget lets you control how the file is dropped."),enum:["afterDrop","never"],enumDescriptions:[p("dropIntoEditor.showDropSelector.afterDrop","Show the drop selector widget after a file is dropped into the editor."),p("dropIntoEditor.showDropSelector.never","Never show the drop selector widget. Instead the default drop provider is always used.")],default:"afterDrop"}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:be(t.enabled,this.defaultValue.enabled),showDropSelector:gi(t.showDropSelector,this.defaultValue.showDropSelector,["afterDrop","never"])}}}class FJ extends Qt{constructor(){const e={enabled:!0,showPasteSelector:"afterPaste"};super(85,"pasteAs",e,{"editor.pasteAs.enabled":{type:"boolean",default:e.enabled,markdownDescription:p("pasteAs.enabled","Controls whether you can paste content in different ways.")},"editor.pasteAs.showPasteSelector":{type:"string",markdownDescription:p("pasteAs.showPasteSelector","Controls if a widget is shown when pasting content in to the editor. This widget lets you control how the file is pasted."),enum:["afterPaste","never"],enumDescriptions:[p("pasteAs.showPasteSelector.afterPaste","Show the paste selector widget after content is pasted into the editor."),p("pasteAs.showPasteSelector.never","Never show the paste selector widget. Instead the default pasting behavior is always used.")],default:"afterPaste"}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const t=e;return{enabled:be(t.enabled,this.defaultValue.enabled),showPasteSelector:gi(t.showPasteSelector,this.defaultValue.showPasteSelector,["afterPaste","never"])}}}const WJ="Consolas, 'Courier New', monospace",BJ="Menlo, Monaco, 'Courier New', monospace",HJ="'Droid Sans Mono', 'monospace', monospace",ms={fontFamily:Je?BJ:Cs?HJ:WJ,fontWeight:"normal",fontSize:Je?12:14,lineHeight:0,letterSpacing:0},fp=[];function ne(s){return fp[s.id]=s,s}const ja={acceptSuggestionOnCommitCharacter:ne(new ut(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:p("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:ne(new ui(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",p("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:p("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:ne(new QQ),accessibilityPageSize:ne(new At(3,"accessibilityPageSize",10,1,1073741824,{description:p("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),ariaLabel:ne(new Xn(4,"ariaLabel",p("editorViewAccessibleLabel","Editor content"))),ariaRequired:ne(new ut(5,"ariaRequired",!1,void 0)),screenReaderAnnounceInlineSuggestion:ne(new ut(8,"screenReaderAnnounceInlineSuggestion",!0,{description:p("screenReaderAnnounceInlineSuggestion","Control whether inline suggestions are announced by a screen reader."),tags:["accessibility"]})),autoClosingBrackets:ne(new ui(6,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",p("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),p("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:p("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingComments:ne(new ui(7,"autoClosingComments","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",p("editor.autoClosingComments.languageDefined","Use language configurations to determine when to autoclose comments."),p("editor.autoClosingComments.beforeWhitespace","Autoclose comments only when the cursor is to the left of whitespace."),""],description:p("autoClosingComments","Controls whether the editor should automatically close comments after the user adds an opening comment.")})),autoClosingDelete:ne(new ui(9,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",p("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:p("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:ne(new ui(10,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",p("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:p("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:ne(new ui(11,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",p("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),p("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:p("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:ne(new B0(12,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],XQ,{enumDescriptions:[p("editor.autoIndent.none","The editor will not insert indentation automatically."),p("editor.autoIndent.keep","The editor will keep the current line's indentation."),p("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),p("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),p("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:p("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:ne(new ut(13,"automaticLayout",!1)),autoSurround:ne(new ui(14,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[p("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),p("editor.autoSurround.quotes","Surround with quotes but not brackets."),p("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:p("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:ne(new EJ),bracketPairGuides:ne(new NJ),stickyTabStops:ne(new ut(117,"stickyTabStops",!1,{description:p("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:ne(new ut(17,"codeLens",!0,{description:p("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:ne(new Xn(18,"codeLensFontFamily","",{description:p("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:ne(new At(19,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:p("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:ne(new ut(20,"colorDecorators",!0,{description:p("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorActivatedOn:ne(new ui(149,"colorDecoratorsActivatedOn","clickAndHover",["clickAndHover","hover","click"],{enumDescriptions:[p("editor.colorDecoratorActivatedOn.clickAndHover","Make the color picker appear both on click and hover of the color decorator"),p("editor.colorDecoratorActivatedOn.hover","Make the color picker appear on hover of the color decorator"),p("editor.colorDecoratorActivatedOn.click","Make the color picker appear on click of the color decorator")],description:p("colorDecoratorActivatedOn","Controls the condition to make a color picker appear from a color decorator")})),colorDecoratorsLimit:ne(new At(21,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:p("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:ne(new ut(22,"columnSelection",!1,{description:p("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:ne(new JQ),contextmenu:ne(new ut(24,"contextmenu",!0)),copyWithSyntaxHighlighting:ne(new ut(25,"copyWithSyntaxHighlighting",!0,{description:p("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:ne(new B0(26,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],eJ,{description:p("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:ne(new ui(27,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[p("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),p("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),p("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:p("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:ne(new B0(28,"cursorStyle",fn.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],tJ,{description:p("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:ne(new At(29,"cursorSurroundingLines",0,0,1073741824,{description:p("cursorSurroundingLines","Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:ne(new ui(30,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[p("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),p("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],markdownDescription:p("cursorSurroundingLinesStyle","Controls when `#editor.cursorSurroundingLines#` should be enforced.")})),cursorWidth:ne(new At(31,"cursorWidth",0,0,1073741824,{markdownDescription:p("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:ne(new ut(32,"disableLayerHinting",!1)),disableMonospaceOptimizations:ne(new ut(33,"disableMonospaceOptimizations",!1)),domReadOnly:ne(new ut(34,"domReadOnly",!1)),dragAndDrop:ne(new ut(35,"dragAndDrop",!0,{description:p("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:ne(new nJ),dropIntoEditor:ne(new OJ),stickyScroll:ne(new hJ),experimentalWhitespaceRendering:ne(new ui(38,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[p("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),p("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),p("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:p("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:ne(new Xn(39,"extraEditorClassName","")),fastScrollSensitivity:ne(new Vo(40,"fastScrollSensitivity",5,s=>s<=0?5:s,{markdownDescription:p("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:ne(new sJ),fixedOverflowWidgets:ne(new ut(42,"fixedOverflowWidgets",!1)),folding:ne(new ut(43,"folding",!0,{description:p("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:ne(new ui(44,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[p("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),p("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:p("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:ne(new ut(45,"foldingHighlight",!0,{description:p("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:ne(new ut(46,"foldingImportsByDefault",!1,{description:p("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:ne(new At(47,"foldingMaximumRegions",5e3,10,65e3,{description:p("foldingMaximumRegions","The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:ne(new ut(48,"unfoldOnClickAfterEndOfLine",!1,{description:p("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:ne(new Xn(49,"fontFamily",ms.fontFamily,{description:p("fontFamily","Controls the font family.")})),fontInfo:ne(new oJ),fontLigatures2:ne(new xh),fontSize:ne(new rJ),fontWeight:ne(new IR),fontVariations:ne(new Jv),formatOnPaste:ne(new ut(55,"formatOnPaste",!1,{description:p("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:ne(new ut(56,"formatOnType",!1,{description:p("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:ne(new ut(57,"glyphMargin",!0,{description:p("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:ne(new aJ),hideCursorInOverviewRuler:ne(new ut(59,"hideCursorInOverviewRuler",!1,{description:p("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:ne(new lJ),inDiffEditor:ne(new ut(61,"inDiffEditor",!1)),letterSpacing:ne(new Vo(64,"letterSpacing",ms.letterSpacing,s=>Vo.clamp(s,-5,20),{description:p("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:ne(new dJ),lineDecorationsWidth:ne(new gJ),lineHeight:ne(new fJ),lineNumbers:ne(new SJ),lineNumbersMinChars:ne(new At(69,"lineNumbersMinChars",5,1,300)),linkedEditing:ne(new ut(70,"linkedEditing",!1,{description:p("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:ne(new ut(71,"links",!0,{description:p("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:ne(new ui(72,"matchBrackets","always",["always","near","never"],{description:p("matchBrackets","Highlight matching brackets.")})),minimap:ne(new pJ),mouseStyle:ne(new ui(74,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:ne(new Vo(75,"mouseWheelScrollSensitivity",1,s=>s===0?1:s,{markdownDescription:p("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:ne(new ut(76,"mouseWheelZoom",!1,{markdownDescription:Je?p("mouseWheelZoom.mac","Zoom the font of the editor when using mouse wheel and holding `Cmd`."):p("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:ne(new ut(77,"multiCursorMergeOverlapping",!0,{description:p("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:ne(new B0(78,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],mJ,{markdownEnumDescriptions:[p("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),p("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:p({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:ne(new ui(79,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[p("multiCursorPaste.spread","Each cursor pastes a single line of the text."),p("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:p("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:ne(new At(80,"multiCursorLimit",1e4,1,1e5,{markdownDescription:p("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:ne(new ui(81,"occurrencesHighlight","singleFile",["off","singleFile","multiFile"],{markdownEnumDescriptions:[p("occurrencesHighlight.off","Does not highlight occurrences."),p("occurrencesHighlight.singleFile","Highlights occurrences only in the current file."),p("occurrencesHighlight.multiFile","Experimental: Highlights occurrences across all valid open files.")],markdownDescription:p("occurrencesHighlight","Controls whether occurrences should be highlighted across open files.")})),overviewRulerBorder:ne(new ut(82,"overviewRulerBorder",!0,{description:p("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:ne(new At(83,"overviewRulerLanes",3,0,3)),padding:ne(new _J),pasteAs:ne(new FJ),parameterHints:ne(new bJ),peekWidgetDefaultFocus:ne(new ui(87,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[p("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),p("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:p("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),placeholder:ne(new vJ),definitionLinkOpensInPeek:ne(new ut(89,"definitionLinkOpensInPeek",!1,{description:p("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:ne(new wJ),quickSuggestionsDelay:ne(new At(91,"quickSuggestionsDelay",10,0,1073741824,{description:p("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:ne(new ut(92,"readOnly",!1)),readOnlyMessage:ne(new LJ),renameOnType:ne(new ut(94,"renameOnType",!1,{description:p("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:p("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:ne(new ut(95,"renderControlCharacters",!0,{description:p("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:ne(new ui(96,"renderFinalNewline",Cs?"dimmed":"on",["off","on","dimmed"],{description:p("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:ne(new ui(97,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",p("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:p("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:ne(new ut(98,"renderLineHighlightOnlyWhenFocus",!1,{description:p("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:ne(new ui(99,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:ne(new ui(100,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",p("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),p("renderWhitespace.selection","Render whitespace characters only on selected text."),p("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:p("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:ne(new At(101,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:ne(new ut(102,"roundedSelection",!0,{description:p("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:ne(new yJ),scrollbar:ne(new xJ),scrollBeyondLastColumn:ne(new At(105,"scrollBeyondLastColumn",4,0,1073741824,{description:p("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:ne(new ut(106,"scrollBeyondLastLine",!0,{description:p("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:ne(new ut(107,"scrollPredominantAxis",!0,{description:p("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:ne(new ut(108,"selectionClipboard",!0,{description:p("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:Cs})),selectionHighlight:ne(new ut(109,"selectionHighlight",!0,{description:p("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:ne(new ut(110,"selectOnLineNumbers",!0)),showFoldingControls:ne(new ui(111,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[p("showFoldingControls.always","Always show the folding controls."),p("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),p("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:p("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:ne(new ut(112,"showUnused",!0,{description:p("showUnused","Controls fading out of unused code.")})),showDeprecated:ne(new ut(141,"showDeprecated",!0,{description:p("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:ne(new uJ),snippetSuggestions:ne(new ui(113,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[p("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),p("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),p("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),p("snippetSuggestions.none","Do not show snippet suggestions.")],description:p("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:ne(new RJ),smoothScrolling:ne(new ut(115,"smoothScrolling",!1,{description:p("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:ne(new At(118,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:ne(new TJ),inlineSuggest:ne(new DJ),inlineEdit:ne(new IJ),inlineCompletionsAccessibilityVerbose:ne(new ut(150,"inlineCompletionsAccessibilityVerbose",!1,{description:p("inlineCompletionsAccessibilityVerbose","Controls whether the accessibility hint should be provided to screen reader users when an inline completion is shown.")})),suggestFontSize:ne(new At(120,"suggestFontSize",0,0,1e3,{markdownDescription:p("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:ne(new At(121,"suggestLineHeight",0,0,1e3,{markdownDescription:p("suggestLineHeight","Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:ne(new ut(122,"suggestOnTriggerCharacters",!0,{description:p("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:ne(new ui(123,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[p("suggestSelection.first","Always select the first suggestion."),p("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),p("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:p("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:ne(new ui(124,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[p("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),p("tabCompletion.off","Disable tab completions."),p("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:p("tabCompletion","Enables tab completions.")})),tabIndex:ne(new At(125,"tabIndex",0,-1,1073741824)),unicodeHighlight:ne(new kJ),unusualLineTerminators:ne(new ui(127,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[p("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),p("unusualLineTerminators.off","Unusual line terminators are ignored."),p("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:p("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:ne(new ut(128,"useShadowDOM",!0)),useTabStops:ne(new ut(129,"useTabStops",!0,{description:p("useTabStops","Spaces and tabs are inserted and deleted in alignment with tab stops.")})),wordBreak:ne(new ui(130,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[p("wordBreak.normal","Use the default line break rule."),p("wordBreak.keepAll","Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:p("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSegmenterLocales:ne(new MJ),wordSeparators:ne(new Xn(132,"wordSeparators",zy,{description:p("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:ne(new ui(133,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[p("wordWrap.off","Lines will never wrap."),p("wordWrap.on","Lines will wrap at the viewport width."),p({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),p({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:p({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:ne(new Xn(134,"wordWrapBreakAfterCharacters"," })]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:ne(new Xn(135,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:ne(new At(136,"wordWrapColumn",80,1,1073741824,{markdownDescription:p({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:ne(new ui(137,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:ne(new ui(138,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:ne(new iJ),defaultColorDecorators:ne(new ut(148,"defaultColorDecorators",!1,{markdownDescription:p("defaultColorDecorators","Controls whether inline color decorations should be shown using the default document color provider")})),pixelRatio:ne(new CJ),tabFocusMode:ne(new ut(145,"tabFocusMode",!1,{markdownDescription:p("tabFocusMode","Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:ne(new im),wrappingInfo:ne(new PJ),wrappingIndent:ne(new AJ),wrappingStrategy:ne(new cJ)};class VJ{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?Im.isErrorNoTelemetry(e)?new Im(e.message+` @@ -666,27 +666,27 @@ ${e.toString()}`}}class dx{constructor(e=new Nb,t=!1,i,n=$pe){this._services=e,t * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var Y1e=Object.defineProperty,X1e=Object.getOwnPropertyDescriptor,Q1e=Object.getOwnPropertyNames,J1e=Object.prototype.hasOwnProperty,W6=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Q1e(e))!J1e.call(s,n)&&n!==t&&Y1e(s,n,{get:()=>e[n],enumerable:!(i=X1e(e,n))||i.enumerable});return s},e0e=(s,e,t)=>(W6(s,e,"default"),t&&W6(t,e,"default")),MC={};e0e(MC,w0);var AG={},zT={},t0e=class PG{static getOrCreate(e){return zT[e]||(zT[e]=new PG(e)),zT[e]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((t,i)=>{this._lazyLoadPromiseResolve=t,this._lazyLoadPromiseReject=i})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,AG[this._languageId].loader().then(e=>this._lazyLoadPromiseResolve(e),e=>this._lazyLoadPromiseReject(e))),this._lazyLoadPromise}};function xe(s){const e=s.id;AG[e]=s,MC.languages.register(s);const t=t0e.getOrCreate(e);MC.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),MC.languages.onLanguageEncountered(e,async()=>{const i=await t.load();MC.languages.setLanguageConfiguration(e,i.conf)})}xe({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>Se(()=>import("./abap-ze8r6a4j.js"),__vite__mapDeps([]))});xe({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>Se(()=>import("./apex-l4wq3GX1.js"),__vite__mapDeps([]))});xe({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>Se(()=>import("./azcli-bA_AuLZG.js"),__vite__mapDeps([]))});xe({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>Se(()=>import("./bat-0sCTlecs.js"),__vite__mapDeps([]))});xe({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>Se(()=>import("./bicep-qAe7PV0A.js"),__vite__mapDeps([]))});xe({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>Se(()=>import("./cameligo-MxzRDM6f.js"),__vite__mapDeps([]))});xe({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>Se(()=>import("./clojure-aJ1F8HHH.js"),__vite__mapDeps([]))});xe({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>Se(()=>import("./coffee-dz-c8Bgx.js"),__vite__mapDeps([]))});xe({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>Se(()=>import("./cpp-2U_pDMGk.js"),__vite__mapDeps([]))});xe({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>Se(()=>import("./cpp-2U_pDMGk.js"),__vite__mapDeps([]))});xe({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>Se(()=>import("./csharp-4Zs2zOBj.js"),__vite__mapDeps([]))});xe({id:"csp",extensions:[".csp"],aliases:["CSP","csp"],loader:()=>Se(()=>import("./csp-lGMKRGPG.js"),__vite__mapDeps([]))});xe({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>Se(()=>import("./css-QeSqfO15.js"),__vite__mapDeps([]))});xe({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>Se(()=>import("./cypher-5YIL2BCq.js"),__vite__mapDeps([]))});xe({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>Se(()=>import("./dart-qjFgolkP.js"),__vite__mapDeps([]))});xe({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>Se(()=>import("./dockerfile-5toe0RAn.js"),__vite__mapDeps([]))});xe({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>Se(()=>import("./ecl-1L3WRmRU.js"),__vite__mapDeps([]))});xe({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>Se(()=>import("./elixir-4vH1gF-H.js"),__vite__mapDeps([]))});xe({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>Se(()=>import("./flow9-7owDGJzV.js"),__vite__mapDeps([]))});xe({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>Se(()=>import("./fsharp-bDkC0eEG.js"),__vite__mapDeps([]))});xe({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>Se(()=>import("./freemarker2-UxhOxt-M.js"),__vite__mapDeps([0,1,2])).then(s=>s.TagAutoInterpolationDollar)});xe({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>Se(()=>import("./freemarker2-UxhOxt-M.js"),__vite__mapDeps([0,1,2])).then(s=>s.TagAngleInterpolationDollar)});xe({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>Se(()=>import("./freemarker2-UxhOxt-M.js"),__vite__mapDeps([0,1,2])).then(s=>s.TagBracketInterpolationDollar)});xe({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>Se(()=>import("./freemarker2-UxhOxt-M.js"),__vite__mapDeps([0,1,2])).then(s=>s.TagAngleInterpolationBracket)});xe({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>Se(()=>import("./freemarker2-UxhOxt-M.js"),__vite__mapDeps([0,1,2])).then(s=>s.TagBracketInterpolationBracket)});xe({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>Se(()=>import("./freemarker2-UxhOxt-M.js"),__vite__mapDeps([0,1,2])).then(s=>s.TagAutoInterpolationDollar)});xe({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>Se(()=>import("./freemarker2-UxhOxt-M.js"),__vite__mapDeps([0,1,2])).then(s=>s.TagAutoInterpolationBracket)});xe({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>Se(()=>import("./go-B7tkULuP.js"),__vite__mapDeps([]))});xe({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>Se(()=>import("./graphql-CtVT9S5J.js"),__vite__mapDeps([]))});xe({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>Se(()=>import("./handlebars-feyIBGtU.js"),__vite__mapDeps([3,1,2]))});xe({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>Se(()=>import("./hcl-rcnRcHhv.js"),__vite__mapDeps([]))});xe({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>Se(()=>import("./html-XW1o38ac.js"),__vite__mapDeps([4,1,2]))});xe({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>Se(()=>import("./ini-B-F8H_48.js"),__vite__mapDeps([]))});xe({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>Se(()=>import("./java-QsCSWwE3.js"),__vite__mapDeps([]))});xe({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>Se(()=>import("./javascript-aILp5GNb.js"),__vite__mapDeps([5,6,1,2]))});xe({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>Se(()=>import("./julia-IAetV4Uj.js"),__vite__mapDeps([]))});xe({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>Se(()=>import("./kotlin-alSTuGQa.js"),__vite__mapDeps([]))});xe({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>Se(()=>import("./less-hZfaYD2w.js"),__vite__mapDeps([]))});xe({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>Se(()=>import("./lexon-dAwoDiDP.js"),__vite__mapDeps([]))});xe({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>Se(()=>import("./lua-oETFoaFl.js"),__vite__mapDeps([]))});xe({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>Se(()=>import("./liquid-Xdf0sURN.js"),__vite__mapDeps([7,1,2]))});xe({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>Se(()=>import("./m3-pfNrzY-g.js"),__vite__mapDeps([]))});xe({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>Se(()=>import("./markdown-8sLQQPwY.js"),__vite__mapDeps([]))});xe({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>Se(()=>import("./mdx-gQ43aWZ0.js"),__vite__mapDeps([8,1,2]))});xe({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>Se(()=>import("./mips-8z7PytKi.js"),__vite__mapDeps([]))});xe({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>Se(()=>import("./msdax-J3g5vy9V.js"),__vite__mapDeps([]))});xe({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>Se(()=>import("./mysql-HnGTccPx.js"),__vite__mapDeps([]))});xe({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>Se(()=>import("./objective-c-ozrejCV4.js"),__vite__mapDeps([]))});xe({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>Se(()=>import("./pascal-pJZfFvIz.js"),__vite__mapDeps([]))});xe({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>Se(()=>import("./pascaligo-0DtATwAu.js"),__vite__mapDeps([]))});xe({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>Se(()=>import("./perl-do3rkI9Q.js"),__vite__mapDeps([]))});xe({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>Se(()=>import("./pgsql-ryXbWXdn.js"),__vite__mapDeps([]))});xe({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>Se(()=>import("./php-aHuupjla.js"),__vite__mapDeps([]))});xe({id:"pla",extensions:[".pla"],loader:()=>Se(()=>import("./pla-h3tpWKqn.js"),__vite__mapDeps([]))});xe({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>Se(()=>import("./postiats-wHg1rUaH.js"),__vite__mapDeps([]))});xe({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>Se(()=>import("./powerquery-2Tt3HzPs.js"),__vite__mapDeps([]))});xe({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>Se(()=>import("./powershell--E8XKnlp.js"),__vite__mapDeps([]))});xe({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>Se(()=>import("./protobuf-5supJPAn.js"),__vite__mapDeps([]))});xe({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>Se(()=>import("./pug-z8IO2Fo8.js"),__vite__mapDeps([]))});xe({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>Se(()=>import("./python-1HHjXB9h.js"),__vite__mapDeps([9,1,2]))});xe({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>Se(()=>import("./qsharp-CPlGHk-t.js"),__vite__mapDeps([]))});xe({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>Se(()=>import("./r-fxI4Is36.js"),__vite__mapDeps([]))});xe({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>Se(()=>import("./razor-TyEeYTJH.js"),__vite__mapDeps([10,1,2]))});xe({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>Se(()=>import("./redis-BX8G37Y7.js"),__vite__mapDeps([]))});xe({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>Se(()=>import("./redshift-sRh-NLhN.js"),__vite__mapDeps([]))});xe({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>Se(()=>import("./restructuredtext-YfUmf862.js"),__vite__mapDeps([]))});xe({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>Se(()=>import("./ruby-8wQ3Zh8u.js"),__vite__mapDeps([]))});xe({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>Se(()=>import("./rust-v86rzylm.js"),__vite__mapDeps([]))});xe({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>Se(()=>import("./sb-_rkMImWM.js"),__vite__mapDeps([]))});xe({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>Se(()=>import("./scala-40tTdy2H.js"),__vite__mapDeps([]))});xe({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>Se(()=>import("./scheme-5-wDu3JQ.js"),__vite__mapDeps([]))});xe({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>Se(()=>import("./scss-pQydS_eS.js"),__vite__mapDeps([]))});xe({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>Se(()=>import("./shell-Ki-wZYQ1.js"),__vite__mapDeps([]))});xe({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>Se(()=>import("./solidity-N2qlMzF2.js"),__vite__mapDeps([]))});xe({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>Se(()=>import("./sophia-SjREo0Ok.js"),__vite__mapDeps([]))});xe({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>Se(()=>import("./sparql-pazIw3FY.js"),__vite__mapDeps([]))});xe({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>Se(()=>import("./sql-2toitEz_.js"),__vite__mapDeps([]))});xe({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>Se(()=>import("./st-PaES2HSd.js"),__vite__mapDeps([]))});xe({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>Se(()=>import("./swift-EwstTa4z.js"),__vite__mapDeps([]))});xe({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>Se(()=>import("./systemverilog-hLklPNsR.js"),__vite__mapDeps([]))});xe({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>Se(()=>import("./systemverilog-hLklPNsR.js"),__vite__mapDeps([]))});xe({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>Se(()=>import("./tcl-nuZs0K-6.js"),__vite__mapDeps([]))});xe({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>Se(()=>import("./twig-mN8sjoV_.js"),__vite__mapDeps([]))});xe({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>Se(()=>import("./typescript-jSqLomXD.js"),__vite__mapDeps([6,1,2]))});xe({id:"typespec",extensions:[".tsp"],aliases:["TypeSpec"],loader:()=>Se(()=>import("./typespec-W2nuLCQv.js"),__vite__mapDeps([]))});xe({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>Se(()=>import("./vb-z8sR6fTG.js"),__vite__mapDeps([]))});xe({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>Se(()=>import("./wgsl-2VbyLW9i.js"),__vite__mapDeps([]))});xe({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\Se(()=>import("./xml-PQ1W1vQC.js"),__vite__mapDeps([11,1,2]))});xe({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>Se(()=>import("./yaml-QORSracL.js"),__vite__mapDeps([12,1,2]))});/*!----------------------------------------------------------------------------- + *-----------------------------------------------------------------------------*/var Y1e=Object.defineProperty,X1e=Object.getOwnPropertyDescriptor,Q1e=Object.getOwnPropertyNames,J1e=Object.prototype.hasOwnProperty,W6=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Q1e(e))!J1e.call(s,n)&&n!==t&&Y1e(s,n,{get:()=>e[n],enumerable:!(i=X1e(e,n))||i.enumerable});return s},e0e=(s,e,t)=>(W6(s,e,"default"),t&&W6(t,e,"default")),MC={};e0e(MC,w0);var AG={},zT={},t0e=class PG{static getOrCreate(e){return zT[e]||(zT[e]=new PG(e)),zT[e]}constructor(e){this._languageId=e,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((t,i)=>{this._lazyLoadPromiseResolve=t,this._lazyLoadPromiseReject=i})}load(){return this._loadingTriggered||(this._loadingTriggered=!0,AG[this._languageId].loader().then(e=>this._lazyLoadPromiseResolve(e),e=>this._lazyLoadPromiseReject(e))),this._lazyLoadPromise}};function xe(s){const e=s.id;AG[e]=s,MC.languages.register(s);const t=t0e.getOrCreate(e);MC.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),MC.languages.onLanguageEncountered(e,async()=>{const i=await t.load();MC.languages.setLanguageConfiguration(e,i.conf)})}xe({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>Se(()=>import("./abap-ze8r6a4j.js"),__vite__mapDeps([]))});xe({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>Se(()=>import("./apex-l4wq3GX1.js"),__vite__mapDeps([]))});xe({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>Se(()=>import("./azcli-bA_AuLZG.js"),__vite__mapDeps([]))});xe({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>Se(()=>import("./bat-0sCTlecs.js"),__vite__mapDeps([]))});xe({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>Se(()=>import("./bicep-qAe7PV0A.js"),__vite__mapDeps([]))});xe({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>Se(()=>import("./cameligo-MxzRDM6f.js"),__vite__mapDeps([]))});xe({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>Se(()=>import("./clojure-aJ1F8HHH.js"),__vite__mapDeps([]))});xe({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>Se(()=>import("./coffee-dz-c8Bgx.js"),__vite__mapDeps([]))});xe({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>Se(()=>import("./cpp-2U_pDMGk.js"),__vite__mapDeps([]))});xe({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>Se(()=>import("./cpp-2U_pDMGk.js"),__vite__mapDeps([]))});xe({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>Se(()=>import("./csharp-4Zs2zOBj.js"),__vite__mapDeps([]))});xe({id:"csp",extensions:[".csp"],aliases:["CSP","csp"],loader:()=>Se(()=>import("./csp-lGMKRGPG.js"),__vite__mapDeps([]))});xe({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>Se(()=>import("./css-QeSqfO15.js"),__vite__mapDeps([]))});xe({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>Se(()=>import("./cypher-5YIL2BCq.js"),__vite__mapDeps([]))});xe({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>Se(()=>import("./dart-qjFgolkP.js"),__vite__mapDeps([]))});xe({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>Se(()=>import("./dockerfile-5toe0RAn.js"),__vite__mapDeps([]))});xe({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>Se(()=>import("./ecl-1L3WRmRU.js"),__vite__mapDeps([]))});xe({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>Se(()=>import("./elixir-4vH1gF-H.js"),__vite__mapDeps([]))});xe({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>Se(()=>import("./flow9-7owDGJzV.js"),__vite__mapDeps([]))});xe({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>Se(()=>import("./fsharp-bDkC0eEG.js"),__vite__mapDeps([]))});xe({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>Se(()=>import("./freemarker2-CvjbrvE7.js"),__vite__mapDeps([0,1,2])).then(s=>s.TagAutoInterpolationDollar)});xe({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>Se(()=>import("./freemarker2-CvjbrvE7.js"),__vite__mapDeps([0,1,2])).then(s=>s.TagAngleInterpolationDollar)});xe({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>Se(()=>import("./freemarker2-CvjbrvE7.js"),__vite__mapDeps([0,1,2])).then(s=>s.TagBracketInterpolationDollar)});xe({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>Se(()=>import("./freemarker2-CvjbrvE7.js"),__vite__mapDeps([0,1,2])).then(s=>s.TagAngleInterpolationBracket)});xe({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>Se(()=>import("./freemarker2-CvjbrvE7.js"),__vite__mapDeps([0,1,2])).then(s=>s.TagBracketInterpolationBracket)});xe({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>Se(()=>import("./freemarker2-CvjbrvE7.js"),__vite__mapDeps([0,1,2])).then(s=>s.TagAutoInterpolationDollar)});xe({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>Se(()=>import("./freemarker2-CvjbrvE7.js"),__vite__mapDeps([0,1,2])).then(s=>s.TagAutoInterpolationBracket)});xe({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>Se(()=>import("./go-B7tkULuP.js"),__vite__mapDeps([]))});xe({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>Se(()=>import("./graphql-CtVT9S5J.js"),__vite__mapDeps([]))});xe({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>Se(()=>import("./handlebars-fU1X2nVM.js"),__vite__mapDeps([3,1,2]))});xe({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>Se(()=>import("./hcl-rcnRcHhv.js"),__vite__mapDeps([]))});xe({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>Se(()=>import("./html-6FTFGpD-.js"),__vite__mapDeps([4,1,2]))});xe({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>Se(()=>import("./ini-B-F8H_48.js"),__vite__mapDeps([]))});xe({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>Se(()=>import("./java-QsCSWwE3.js"),__vite__mapDeps([]))});xe({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>Se(()=>import("./javascript-H-1KqBOf.js"),__vite__mapDeps([5,6,1,2]))});xe({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>Se(()=>import("./julia-IAetV4Uj.js"),__vite__mapDeps([]))});xe({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>Se(()=>import("./kotlin-alSTuGQa.js"),__vite__mapDeps([]))});xe({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>Se(()=>import("./less-hZfaYD2w.js"),__vite__mapDeps([]))});xe({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>Se(()=>import("./lexon-dAwoDiDP.js"),__vite__mapDeps([]))});xe({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>Se(()=>import("./lua-oETFoaFl.js"),__vite__mapDeps([]))});xe({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>Se(()=>import("./liquid-7P5gg0U5.js"),__vite__mapDeps([7,1,2]))});xe({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>Se(()=>import("./m3-pfNrzY-g.js"),__vite__mapDeps([]))});xe({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>Se(()=>import("./markdown-8sLQQPwY.js"),__vite__mapDeps([]))});xe({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>Se(()=>import("./mdx-L3CEyB0p.js"),__vite__mapDeps([8,1,2]))});xe({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>Se(()=>import("./mips-8z7PytKi.js"),__vite__mapDeps([]))});xe({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>Se(()=>import("./msdax-J3g5vy9V.js"),__vite__mapDeps([]))});xe({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>Se(()=>import("./mysql-HnGTccPx.js"),__vite__mapDeps([]))});xe({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>Se(()=>import("./objective-c-ozrejCV4.js"),__vite__mapDeps([]))});xe({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>Se(()=>import("./pascal-pJZfFvIz.js"),__vite__mapDeps([]))});xe({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>Se(()=>import("./pascaligo-0DtATwAu.js"),__vite__mapDeps([]))});xe({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>Se(()=>import("./perl-do3rkI9Q.js"),__vite__mapDeps([]))});xe({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>Se(()=>import("./pgsql-ryXbWXdn.js"),__vite__mapDeps([]))});xe({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>Se(()=>import("./php-aHuupjla.js"),__vite__mapDeps([]))});xe({id:"pla",extensions:[".pla"],loader:()=>Se(()=>import("./pla-h3tpWKqn.js"),__vite__mapDeps([]))});xe({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>Se(()=>import("./postiats-wHg1rUaH.js"),__vite__mapDeps([]))});xe({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>Se(()=>import("./powerquery-2Tt3HzPs.js"),__vite__mapDeps([]))});xe({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>Se(()=>import("./powershell--E8XKnlp.js"),__vite__mapDeps([]))});xe({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>Se(()=>import("./protobuf-5supJPAn.js"),__vite__mapDeps([]))});xe({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>Se(()=>import("./pug-z8IO2Fo8.js"),__vite__mapDeps([]))});xe({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>Se(()=>import("./python-lzE2PGTj.js"),__vite__mapDeps([9,1,2]))});xe({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>Se(()=>import("./qsharp-CPlGHk-t.js"),__vite__mapDeps([]))});xe({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>Se(()=>import("./r-fxI4Is36.js"),__vite__mapDeps([]))});xe({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>Se(()=>import("./razor-RxeYPRMK.js"),__vite__mapDeps([10,1,2]))});xe({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>Se(()=>import("./redis-BX8G37Y7.js"),__vite__mapDeps([]))});xe({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>Se(()=>import("./redshift-sRh-NLhN.js"),__vite__mapDeps([]))});xe({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>Se(()=>import("./restructuredtext-YfUmf862.js"),__vite__mapDeps([]))});xe({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>Se(()=>import("./ruby-8wQ3Zh8u.js"),__vite__mapDeps([]))});xe({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>Se(()=>import("./rust-v86rzylm.js"),__vite__mapDeps([]))});xe({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>Se(()=>import("./sb-_rkMImWM.js"),__vite__mapDeps([]))});xe({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>Se(()=>import("./scala-40tTdy2H.js"),__vite__mapDeps([]))});xe({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>Se(()=>import("./scheme-5-wDu3JQ.js"),__vite__mapDeps([]))});xe({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>Se(()=>import("./scss-pQydS_eS.js"),__vite__mapDeps([]))});xe({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>Se(()=>import("./shell-Ki-wZYQ1.js"),__vite__mapDeps([]))});xe({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>Se(()=>import("./solidity-N2qlMzF2.js"),__vite__mapDeps([]))});xe({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>Se(()=>import("./sophia-SjREo0Ok.js"),__vite__mapDeps([]))});xe({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>Se(()=>import("./sparql-pazIw3FY.js"),__vite__mapDeps([]))});xe({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>Se(()=>import("./sql-2toitEz_.js"),__vite__mapDeps([]))});xe({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>Se(()=>import("./st-PaES2HSd.js"),__vite__mapDeps([]))});xe({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>Se(()=>import("./swift-EwstTa4z.js"),__vite__mapDeps([]))});xe({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>Se(()=>import("./systemverilog-hLklPNsR.js"),__vite__mapDeps([]))});xe({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>Se(()=>import("./systemverilog-hLklPNsR.js"),__vite__mapDeps([]))});xe({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>Se(()=>import("./tcl-nuZs0K-6.js"),__vite__mapDeps([]))});xe({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>Se(()=>import("./twig-mN8sjoV_.js"),__vite__mapDeps([]))});xe({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>Se(()=>import("./typescript-q9CUqdgD.js"),__vite__mapDeps([6,1,2]))});xe({id:"typespec",extensions:[".tsp"],aliases:["TypeSpec"],loader:()=>Se(()=>import("./typespec-W2nuLCQv.js"),__vite__mapDeps([]))});xe({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>Se(()=>import("./vb-z8sR6fTG.js"),__vite__mapDeps([]))});xe({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>Se(()=>import("./wgsl-2VbyLW9i.js"),__vite__mapDeps([]))});xe({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\Se(()=>import("./xml-wTy26N4g.js"),__vite__mapDeps([11,1,2]))});xe({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>Se(()=>import("./yaml-erqTPgu9.js"),__vite__mapDeps([12,1,2]))});/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var i0e=Object.defineProperty,n0e=Object.getOwnPropertyDescriptor,s0e=Object.getOwnPropertyNames,o0e=Object.prototype.hasOwnProperty,B6=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of s0e(e))!o0e.call(s,n)&&n!==t&&i0e(s,n,{get:()=>e[n],enumerable:!(i=n0e(e,n))||i.enumerable});return s},r0e=(s,e,t)=>(B6(s,e,"default"),t&&B6(t,e,"default")),Mb={};r0e(Mb,w0);var zW=class{constructor(e,t,i){this._onDidChange=new Mb.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},UW={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},$W={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},OG=new zW("css",UW,$W),FG=new zW("scss",UW,$W),WG=new zW("less",UW,$W);Mb.languages.css={cssDefaults:OG,lessDefaults:WG,scssDefaults:FG};function jW(){return Se(()=>import("./cssMode-RYNyR8Bq.js"),__vite__mapDeps([13,1,2]))}Mb.languages.onLanguage("less",()=>{jW().then(s=>s.setupMode(WG))});Mb.languages.onLanguage("scss",()=>{jW().then(s=>s.setupMode(FG))});Mb.languages.onLanguage("css",()=>{jW().then(s=>s.setupMode(OG))});/*!----------------------------------------------------------------------------- + *-----------------------------------------------------------------------------*/var i0e=Object.defineProperty,n0e=Object.getOwnPropertyDescriptor,s0e=Object.getOwnPropertyNames,o0e=Object.prototype.hasOwnProperty,B6=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of s0e(e))!o0e.call(s,n)&&n!==t&&i0e(s,n,{get:()=>e[n],enumerable:!(i=n0e(e,n))||i.enumerable});return s},r0e=(s,e,t)=>(B6(s,e,"default"),t&&B6(t,e,"default")),Mb={};r0e(Mb,w0);var zW=class{constructor(e,t,i){this._onDidChange=new Mb.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(e){this.setOptions(e)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},UW={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},$W={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},OG=new zW("css",UW,$W),FG=new zW("scss",UW,$W),WG=new zW("less",UW,$W);Mb.languages.css={cssDefaults:OG,lessDefaults:WG,scssDefaults:FG};function jW(){return Se(()=>import("./cssMode-fVQptnrp.js"),__vite__mapDeps([13,1,2]))}Mb.languages.onLanguage("less",()=>{jW().then(s=>s.setupMode(WG))});Mb.languages.onLanguage("scss",()=>{jW().then(s=>s.setupMode(FG))});Mb.languages.onLanguage("css",()=>{jW().then(s=>s.setupMode(OG))});/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var a0e=Object.defineProperty,l0e=Object.getOwnPropertyDescriptor,c0e=Object.getOwnPropertyNames,d0e=Object.prototype.hasOwnProperty,H6=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of c0e(e))!d0e.call(s,n)&&n!==t&&a0e(s,n,{get:()=>e[n],enumerable:!(i=l0e(e,n))||i.enumerable});return s},h0e=(s,e,t)=>(H6(s,e,"default"),t&&H6(t,e,"default")),WE={};h0e(WE,w0);var u0e=class{constructor(e,t,i){this._onDidChange=new WE.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},g0e={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},BE={format:g0e,suggest:{},data:{useDefaultDataProvider:!0}};function HE(s){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:s===vv,documentFormattingEdits:s===vv,documentRangeFormattingEdits:s===vv}}var vv="html",V6="handlebars",z6="razor",BG=VE(vv,BE,HE(vv)),f0e=BG.defaults,HG=VE(V6,BE,HE(V6)),p0e=HG.defaults,VG=VE(z6,BE,HE(z6)),m0e=VG.defaults;WE.languages.html={htmlDefaults:f0e,razorDefaults:m0e,handlebarDefaults:p0e,htmlLanguageService:BG,handlebarLanguageService:HG,razorLanguageService:VG,registerHTMLLanguageService:VE};function _0e(){return Se(()=>import("./htmlMode-GNYYzuyz.js"),__vite__mapDeps([14,1,2]))}function VE(s,e=BE,t=HE(s)){const i=new u0e(s,e,t);let n;const o=WE.languages.onLanguage(s,async()=>{n=(await _0e()).setupMode(i)});return{defaults:i,dispose(){o.dispose(),n==null||n.dispose(),n=void 0}}}/*!----------------------------------------------------------------------------- + *-----------------------------------------------------------------------------*/var a0e=Object.defineProperty,l0e=Object.getOwnPropertyDescriptor,c0e=Object.getOwnPropertyNames,d0e=Object.prototype.hasOwnProperty,H6=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of c0e(e))!d0e.call(s,n)&&n!==t&&a0e(s,n,{get:()=>e[n],enumerable:!(i=l0e(e,n))||i.enumerable});return s},h0e=(s,e,t)=>(H6(s,e,"default"),t&&H6(t,e,"default")),WE={};h0e(WE,w0);var u0e=class{constructor(e,t,i){this._onDidChange=new WE.Emitter,this._languageId=e,this.setOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(e){this._options=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},g0e={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},BE={format:g0e,suggest:{},data:{useDefaultDataProvider:!0}};function HE(s){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:s===vv,documentFormattingEdits:s===vv,documentRangeFormattingEdits:s===vv}}var vv="html",V6="handlebars",z6="razor",BG=VE(vv,BE,HE(vv)),f0e=BG.defaults,HG=VE(V6,BE,HE(V6)),p0e=HG.defaults,VG=VE(z6,BE,HE(z6)),m0e=VG.defaults;WE.languages.html={htmlDefaults:f0e,razorDefaults:m0e,handlebarDefaults:p0e,htmlLanguageService:BG,handlebarLanguageService:HG,razorLanguageService:VG,registerHTMLLanguageService:VE};function _0e(){return Se(()=>import("./htmlMode-hY3gUkwW.js"),__vite__mapDeps([14,1,2]))}function VE(s,e=BE,t=HE(s)){const i=new u0e(s,e,t);let n;const o=WE.languages.onLanguage(s,async()=>{n=(await _0e()).setupMode(i)});return{defaults:i,dispose(){o.dispose(),n==null||n.dispose(),n=void 0}}}/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var b0e=Object.defineProperty,C0e=Object.getOwnPropertyDescriptor,v0e=Object.getOwnPropertyNames,w0e=Object.prototype.hasOwnProperty,U6=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of v0e(e))!w0e.call(s,n)&&n!==t&&b0e(s,n,{get:()=>e[n],enumerable:!(i=C0e(e,n))||i.enumerable});return s},S0e=(s,e,t)=>(U6(s,e,"default"),t&&U6(t,e,"default")),S0={};S0e(S0,w0);var y0e=class{constructor(e,t,i){this._onDidChange=new S0.Emitter,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},L0e={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},x0e={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},zG=new y0e("json",L0e,x0e),k0e=()=>UG().then(s=>s.getWorker());S0.languages.json={jsonDefaults:zG,getWorker:k0e};function UG(){return Se(()=>import("./jsonMode-KjD1007i.js"),__vite__mapDeps([15,1,2]))}S0.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});S0.languages.onLanguage("json",()=>{UG().then(s=>s.setupMode(zG))});/*!----------------------------------------------------------------------------- + *-----------------------------------------------------------------------------*/var b0e=Object.defineProperty,C0e=Object.getOwnPropertyDescriptor,v0e=Object.getOwnPropertyNames,w0e=Object.prototype.hasOwnProperty,U6=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of v0e(e))!w0e.call(s,n)&&n!==t&&b0e(s,n,{get:()=>e[n],enumerable:!(i=C0e(e,n))||i.enumerable});return s},S0e=(s,e,t)=>(U6(s,e,"default"),t&&U6(t,e,"default")),S0={};S0e(S0,w0);var y0e=class{constructor(e,t,i){this._onDidChange=new S0.Emitter,this._languageId=e,this.setDiagnosticsOptions(t),this.setModeConfiguration(i)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(e){this._diagnosticsOptions=e||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(e){this._modeConfiguration=e||Object.create(null),this._onDidChange.fire(this)}},L0e={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},x0e={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},zG=new y0e("json",L0e,x0e),k0e=()=>UG().then(s=>s.getWorker());S0.languages.json={jsonDefaults:zG,getWorker:k0e};function UG(){return Se(()=>import("./jsonMode-gXXED22T.js"),__vite__mapDeps([15,1,2]))}S0.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});S0.languages.onLanguage("json",()=>{UG().then(s=>s.setupMode(zG))});/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt - *-----------------------------------------------------------------------------*/var D0e=Object.defineProperty,I0e=Object.getOwnPropertyDescriptor,E0e=Object.getOwnPropertyNames,N0e=Object.prototype.hasOwnProperty,$6=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of E0e(e))!N0e.call(s,n)&&n!==t&&D0e(s,n,{get:()=>e[n],enumerable:!(i=I0e(e,n))||i.enumerable});return s},T0e=(s,e,t)=>($6(s,e,"default"),t&&$6(t,e,"default")),R0e="5.4.5",e_={};T0e(e_,w0);var $G=(s=>(s[s.None=0]="None",s[s.CommonJS=1]="CommonJS",s[s.AMD=2]="AMD",s[s.UMD=3]="UMD",s[s.System=4]="System",s[s.ES2015=5]="ES2015",s[s.ESNext=99]="ESNext",s))($G||{}),jG=(s=>(s[s.None=0]="None",s[s.Preserve=1]="Preserve",s[s.React=2]="React",s[s.ReactNative=3]="ReactNative",s[s.ReactJSX=4]="ReactJSX",s[s.ReactJSXDev=5]="ReactJSXDev",s))(jG||{}),KG=(s=>(s[s.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",s[s.LineFeed=1]="LineFeed",s))(KG||{}),qG=(s=>(s[s.ES3=0]="ES3",s[s.ES5=1]="ES5",s[s.ES2015=2]="ES2015",s[s.ES2016=3]="ES2016",s[s.ES2017=4]="ES2017",s[s.ES2018=5]="ES2018",s[s.ES2019=6]="ES2019",s[s.ES2020=7]="ES2020",s[s.ESNext=99]="ESNext",s[s.JSON=100]="JSON",s[s.Latest=99]="Latest",s))(qG||{}),GG=(s=>(s[s.Classic=1]="Classic",s[s.NodeJs=2]="NodeJs",s))(GG||{}),ZG=class{constructor(s,e,t,i,n){this._onDidChange=new e_.Emitter,this._onDidExtraLibsChange=new e_.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(s),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this.setModeConfiguration(n),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(s,e){let t;if(typeof e>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===s)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(i=this._extraLibs[t].version+1),this._extraLibs[t]={content:s,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let n=this._extraLibs[t];n&&n.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(s){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),s&&s.length>0)for(const e of s){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let n=1;this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(s){this._compilerOptions=s||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(s){this._diagnosticsOptions=s||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(s){this._workerOptions=s||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(s){this._inlayHintsOptions=s||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(s){}setEagerModelSync(s){this._eagerModelSync=s}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(s){this._modeConfiguration=s||Object.create(null),this._onDidChange.fire(void 0)}},M0e=R0e,YG={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},XG=new ZG({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},YG),QG=new ZG({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},YG),A0e=()=>zE().then(s=>s.getTypeScriptWorker()),P0e=()=>zE().then(s=>s.getJavaScriptWorker());e_.languages.typescript={ModuleKind:$G,JsxEmit:jG,NewLineKind:KG,ScriptTarget:qG,ModuleResolutionKind:GG,typescriptVersion:M0e,typescriptDefaults:XG,javascriptDefaults:QG,getTypeScriptWorker:A0e,getJavaScriptWorker:P0e};function zE(){return Se(()=>import("./tsMode-uoK2x2Py.js"),__vite__mapDeps([16,1,2]))}e_.languages.onLanguage("typescript",()=>zE().then(s=>s.setupTypeScript(XG)));e_.languages.onLanguage("javascript",()=>zE().then(s=>s.setupJavaScript(QG)));class O0e extends Ls{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:Ee("toggleCollapseUnchangedRegions","Toggle Collapse Unchanged Regions"),icon:ee.map,toggled:q.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:q.has("isInDiffEditor"),menu:{when:q.has("isInDiffEditor"),id:fe.EditorTitle,order:22,group:"navigation"}})}run(e,...t){const i=e.get(qe),n=!i.getValue("diffEditor.hideUnchangedRegions.enabled");i.updateValue("diffEditor.hideUnchangedRegions.enabled",n)}}class JG extends Ls{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:Ee("toggleShowMovedCodeBlocks","Toggle Show Moved Code Blocks"),precondition:q.has("isInDiffEditor")})}run(e,...t){const i=e.get(qe),n=!i.getValue("diffEditor.experimental.showMoves");i.updateValue("diffEditor.experimental.showMoves",n)}}class eZ extends Ls{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:Ee("toggleUseInlineViewWhenSpaceIsLimited","Toggle Use Inline View When Space Is Limited"),precondition:q.has("isInDiffEditor")})}run(e,...t){const i=e.get(qe),n=!i.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");i.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",n)}}const y0=Ee("diffEditor","Diff Editor");class F0e extends Ka{constructor(){super({id:"diffEditor.switchSide",title:Ee("switchSide","Switch Side"),icon:ee.arrowSwap,precondition:q.has("isInDiffEditor"),f1:!0,category:y0})}runEditorCommand(e,t,i){const n=Ab(e);if(n instanceof ad){if(i&&i.dryRun)return{destinationSelection:n.mapToOtherSide().destinationSelection};n.switchSide()}}}class W0e extends Ka{constructor(){super({id:"diffEditor.exitCompareMove",title:Ee("exitCompareMove","Exit Compare Move"),icon:ee.close,precondition:I.comparingMovedCode,f1:!1,category:y0,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t,...i){const n=Ab(e);n instanceof ad&&n.exitCompareMove()}}class B0e extends Ka{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:Ee("collapseAllUnchangedRegions","Collapse All Unchanged Regions"),icon:ee.fold,precondition:q.has("isInDiffEditor"),f1:!0,category:y0})}runEditorCommand(e,t,...i){const n=Ab(e);n instanceof ad&&n.collapseAllUnchangedRegions()}}class H0e extends Ka{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:Ee("showAllUnchangedRegions","Show All Unchanged Regions"),icon:ee.unfold,precondition:q.has("isInDiffEditor"),f1:!0,category:y0})}runEditorCommand(e,t,...i){const n=Ab(e);n instanceof ad&&n.showAllUnchangedRegions()}}class cO extends Ls{constructor(){super({id:"diffEditor.revert",title:Ee("revert","Revert"),f1:!1,category:y0})}run(e,t){const i=V0e(e,t.originalUri,t.modifiedUri);i instanceof ad&&i.revertRangeMappings(t.mapping.innerChanges??[])}}const tZ=Ee("accessibleDiffViewer","Accessible Diff Viewer"),FD=class FD extends Ls{constructor(){super({id:FD.id,title:Ee("editor.action.accessibleDiffViewer.next","Go to Next Difference"),category:tZ,precondition:q.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(e){const t=Ab(e);t==null||t.accessibleDiffViewerNext()}};FD.id="editor.action.accessibleDiffViewer.next";let i1=FD;const WD=class WD extends Ls{constructor(){super({id:WD.id,title:Ee("editor.action.accessibleDiffViewer.prev","Go to Previous Difference"),category:tZ,precondition:q.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(e){const t=Ab(e);t==null||t.accessibleDiffViewerPrev()}};WD.id="editor.action.accessibleDiffViewer.prev";let Bx=WD;function V0e(s,e,t){return s.get(pt).listDiffEditors().find(o=>{var l,c;const r=o.getModifiedEditor(),a=o.getOriginalEditor();return r&&((l=r.getModel())==null?void 0:l.uri.toString())===t.toString()&&a&&((c=a.getModel())==null?void 0:c.uri.toString())===e.toString()})||null}function Ab(s){const t=s.get(pt).listDiffEditors(),i=In();if(i)for(const n of t){const o=n.getContainerDomNode();if(z0e(o,i))return n}return null}function z0e(s,e){let t=e;for(;t;){if(t===s)return!0;t=t.parentElement}return!1}Ot(O0e);Ot(JG);Ot(eZ);rn.appendMenuItem(fe.EditorTitle,{command:{id:new eZ().desc.id,title:p("useInlineViewWhenSpaceIsLimited","Use Inline View When Space Is Limited"),toggled:q.has("config.diffEditor.useInlineViewWhenSpaceIsLimited"),precondition:q.has("isInDiffEditor")},order:11,group:"1_diff",when:q.and(I.diffEditorRenderSideBySideInlineBreakpointReached,q.has("isInDiffEditor"))});rn.appendMenuItem(fe.EditorTitle,{command:{id:new JG().desc.id,title:p("showMoves","Show Moved Code Blocks"),icon:ee.move,toggled:mb.create("config.diffEditor.experimental.showMoves",!0),precondition:q.has("isInDiffEditor")},order:10,group:"1_diff",when:q.has("isInDiffEditor")});Ot(cO);for(const s of[{icon:ee.arrowRight,key:I.diffEditorInlineMode.toNegated()},{icon:ee.discard,key:I.diffEditorInlineMode}])rn.appendMenuItem(fe.DiffEditorHunkToolbar,{command:{id:new cO().desc.id,title:p("revertHunk","Revert Block"),icon:s.icon},when:q.and(I.diffEditorModifiedWritable,s.key),order:5,group:"primary"}),rn.appendMenuItem(fe.DiffEditorSelectionToolbar,{command:{id:new cO().desc.id,title:p("revertSelection","Revert Selection"),icon:s.icon},when:q.and(I.diffEditorModifiedWritable,s.key),order:5,group:"primary"});Ot(F0e);Ot(W0e);Ot(B0e);Ot(H0e);rn.appendMenuItem(fe.EditorTitle,{command:{id:i1.id,title:p("Open Accessible Diff Viewer","Open Accessible Diff Viewer"),precondition:q.has("isInDiffEditor")},order:10,group:"2_diff",when:q.and(I.accessibleDiffViewerVisible.negate(),q.has("isInDiffEditor"))});rt.registerCommandAlias("editor.action.diffReview.next",i1.id);Ot(i1);rt.registerCommandAlias("editor.action.diffReview.prev",Bx.id);Ot(Bx);var U0e=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},$0e=function(s,e){return function(t,i){e(t,i,s)}},dO;const UE=new le("selectionAnchorSet",!1);var x_;let Hh=(x_=class{static get(e){return e.getContribution(dO.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=UE.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(pe.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new On().appendText(p("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),Ss(p("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(pe.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}},dO=x_,x_.ID="editor.contrib.selectionAnchorController",x_);Hh=dO=U0e([$0e(1,Ie)],Hh);class j0e extends de{constructor(){super({id:"editor.action.setSelectionAnchor",label:p("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:I.editorTextFocus,primary:Hi(2089,2080),weight:100}})}async run(e,t){var i;(i=Hh.get(t))==null||i.setSelectionAnchor()}}class K0e extends de{constructor(){super({id:"editor.action.goToSelectionAnchor",label:p("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:UE})}async run(e,t){var i;(i=Hh.get(t))==null||i.goToSelectionAnchor()}}class q0e extends de{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:p("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:UE,kbOpts:{kbExpr:I.editorTextFocus,primary:Hi(2089,2089),weight:100}})}async run(e,t){var i;(i=Hh.get(t))==null||i.selectFromAnchorToCursor()}}class G0e extends de{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:p("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:UE,kbOpts:{kbExpr:I.editorTextFocus,primary:9,weight:100}})}async run(e,t){var i;(i=Hh.get(t))==null||i.cancelSelectionAnchor()}}ct(Hh.ID,Hh,4);Q(j0e);Q(K0e);Q(q0e);Q(G0e);const Z0e=E("editorOverviewRuler.bracketMatchForeground","#A0A0A0",p("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class Y0e extends de{constructor(){super({id:"editor.action.jumpToBracket",label:p("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:I.editorTextFocus,primary:3165,weight:100}})}run(e,t){var i;(i=Jg.get(t))==null||i.jumpToBracket()}}class X0e extends de{constructor(){super({id:"editor.action.selectToBracket",label:p("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,metadata:{description:Ee("smartSelect.selectToBracketDescription","Select the text inside and including the brackets or curly braces"),args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){var o;let n=!0;i&&i.selectBrackets===!1&&(n=!1),(o=Jg.get(t))==null||o.selectToBracket(n)}}class Q0e extends de{constructor(){super({id:"editor.action.removeBrackets",label:p("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:I.editorTextFocus,primary:2561,weight:100}})}run(e,t){var i;(i=Jg.get(t))==null||i.removeBrackets(this.id)}}class J0e{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}const Wd=class Wd extends F{static get(e){return e.getContribution(Wd.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new Dt(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(72),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(72)&&(this._matchBrackets=this._editor.getOption(72),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const n=i.getStartPosition(),o=e.bracketPairs.matchBracket(n);let r=null;if(o)o[0].containsPosition(n)&&!o[1].containsPosition(n)?r=o[1].getStartPosition():o[1].containsPosition(n)&&(r=o[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(n);if(a)r=a[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(n);l&&l.range&&(r=l.range.getStartPosition())}}return r?new pe(r.lineNumber,r.column,r.lineNumber,r.column):new pe(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{const o=n.getStartPosition();let r=t.bracketPairs.matchBracket(o);if(!r&&(r=t.bracketPairs.findEnclosingBrackets(o),!r)){const c=t.bracketPairs.findNextBracket(o);c&&c.range&&(r=t.bracketPairs.matchBracket(c.range.getStartPosition()))}let a=null,l=null;if(r){r.sort(x.compareRangesUsingStarts);const[c,d]=r;if(a=e?c.getStartPosition():c.getEndPosition(),l=e?d.getEndPosition():d.getStartPosition(),d.containsPosition(o)){const h=a;a=l,l=h}}a&&l&&i.push(new pe(a.lineNumber,a.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}removeBrackets(e){if(!this._editor.hasModel())return;const t=this._editor.getModel();this._editor.getSelections().forEach(i=>{const n=i.getPosition();let o=t.bracketPairs.matchBracket(n);o||(o=t.bracketPairs.findEnclosingBrackets(n)),o&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:o[0],text:""},{range:o[1],text:""}]),this._editor.pushUndoStop())})}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const o=[];let r=0;for(let h=0,u=e.length;h1&&o.sort(A.compare);const a=[];let l=0,c=0;const d=n.length;for(let h=0,u=o.length;h0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}Q(nSe);const $E=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let s;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?s=crypto.getRandomValues.bind(crypto):s=function(i){for(let n=0;ns,asFile:()=>{},value:typeof s=="string"?s:void 0}}function sSe(s,e,t){const i={id:$E(),name:s,uri:e,data:t};return{asString:async()=>"",asFile:()=>i,value:void 0}}class nZ{constructor(){this._entries=new Map}get size(){let e=0;for(const t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){const t=[...this._entries.keys()];return ot.some(this,([i,n])=>n.asFile())&&t.push("files"),oZ(Hx(e),t)}get(e){var t;return(t=this._entries.get(this.toKey(e)))==null?void 0:t[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*[Symbol.iterator](){for(const[e,t]of this._entries)for(const i of t)yield[e,i]}toKey(e){return Hx(e)}}function Hx(s){return s.toLowerCase()}function sZ(s,e){return oZ(Hx(s),e.map(Hx))}function oZ(s,e){if(s==="*/*")return e.length>0;if(e.includes(s))return!0;const t=s.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!t)return!1;const[i,n,o]=t;return o==="*"?e.some(r=>r.startsWith(n+"/")):!1}const jE=Object.freeze({create:s=>Xc(s.map(e=>e.toString())).join(`\r + *-----------------------------------------------------------------------------*/var D0e=Object.defineProperty,I0e=Object.getOwnPropertyDescriptor,E0e=Object.getOwnPropertyNames,N0e=Object.prototype.hasOwnProperty,$6=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of E0e(e))!N0e.call(s,n)&&n!==t&&D0e(s,n,{get:()=>e[n],enumerable:!(i=I0e(e,n))||i.enumerable});return s},T0e=(s,e,t)=>($6(s,e,"default"),t&&$6(t,e,"default")),R0e="5.4.5",e_={};T0e(e_,w0);var $G=(s=>(s[s.None=0]="None",s[s.CommonJS=1]="CommonJS",s[s.AMD=2]="AMD",s[s.UMD=3]="UMD",s[s.System=4]="System",s[s.ES2015=5]="ES2015",s[s.ESNext=99]="ESNext",s))($G||{}),jG=(s=>(s[s.None=0]="None",s[s.Preserve=1]="Preserve",s[s.React=2]="React",s[s.ReactNative=3]="ReactNative",s[s.ReactJSX=4]="ReactJSX",s[s.ReactJSXDev=5]="ReactJSXDev",s))(jG||{}),KG=(s=>(s[s.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",s[s.LineFeed=1]="LineFeed",s))(KG||{}),qG=(s=>(s[s.ES3=0]="ES3",s[s.ES5=1]="ES5",s[s.ES2015=2]="ES2015",s[s.ES2016=3]="ES2016",s[s.ES2017=4]="ES2017",s[s.ES2018=5]="ES2018",s[s.ES2019=6]="ES2019",s[s.ES2020=7]="ES2020",s[s.ESNext=99]="ESNext",s[s.JSON=100]="JSON",s[s.Latest=99]="Latest",s))(qG||{}),GG=(s=>(s[s.Classic=1]="Classic",s[s.NodeJs=2]="NodeJs",s))(GG||{}),ZG=class{constructor(s,e,t,i,n){this._onDidChange=new e_.Emitter,this._onDidExtraLibsChange=new e_.Emitter,this._extraLibs=Object.create(null),this._removedExtraLibs=Object.create(null),this._eagerModelSync=!1,this.setCompilerOptions(s),this.setDiagnosticsOptions(e),this.setWorkerOptions(t),this.setInlayHintsOptions(i),this.setModeConfiguration(n),this._onDidExtraLibsChangeTimeout=-1}get onDidChange(){return this._onDidChange.event}get onDidExtraLibsChange(){return this._onDidExtraLibsChange.event}get modeConfiguration(){return this._modeConfiguration}get workerOptions(){return this._workerOptions}get inlayHintsOptions(){return this._inlayHintsOptions}getExtraLibs(){return this._extraLibs}addExtraLib(s,e){let t;if(typeof e>"u"?t=`ts:extralib-${Math.random().toString(36).substring(2,15)}`:t=e,this._extraLibs[t]&&this._extraLibs[t].content===s)return{dispose:()=>{}};let i=1;return this._removedExtraLibs[t]&&(i=this._removedExtraLibs[t]+1),this._extraLibs[t]&&(i=this._extraLibs[t].version+1),this._extraLibs[t]={content:s,version:i},this._fireOnDidExtraLibsChangeSoon(),{dispose:()=>{let n=this._extraLibs[t];n&&n.version===i&&(delete this._extraLibs[t],this._removedExtraLibs[t]=i,this._fireOnDidExtraLibsChangeSoon())}}}setExtraLibs(s){for(const e in this._extraLibs)this._removedExtraLibs[e]=this._extraLibs[e].version;if(this._extraLibs=Object.create(null),s&&s.length>0)for(const e of s){const t=e.filePath||`ts:extralib-${Math.random().toString(36).substring(2,15)}`,i=e.content;let n=1;this._removedExtraLibs[t]&&(n=this._removedExtraLibs[t]+1),this._extraLibs[t]={content:i,version:n}}this._fireOnDidExtraLibsChangeSoon()}_fireOnDidExtraLibsChangeSoon(){this._onDidExtraLibsChangeTimeout===-1&&(this._onDidExtraLibsChangeTimeout=window.setTimeout(()=>{this._onDidExtraLibsChangeTimeout=-1,this._onDidExtraLibsChange.fire(void 0)},0))}getCompilerOptions(){return this._compilerOptions}setCompilerOptions(s){this._compilerOptions=s||Object.create(null),this._onDidChange.fire(void 0)}getDiagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(s){this._diagnosticsOptions=s||Object.create(null),this._onDidChange.fire(void 0)}setWorkerOptions(s){this._workerOptions=s||Object.create(null),this._onDidChange.fire(void 0)}setInlayHintsOptions(s){this._inlayHintsOptions=s||Object.create(null),this._onDidChange.fire(void 0)}setMaximumWorkerIdleTime(s){}setEagerModelSync(s){this._eagerModelSync=s}getEagerModelSync(){return this._eagerModelSync}setModeConfiguration(s){this._modeConfiguration=s||Object.create(null),this._onDidChange.fire(void 0)}},M0e=R0e,YG={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,diagnostics:!0,documentRangeFormattingEdits:!0,signatureHelp:!0,onTypeFormattingEdits:!0,codeActions:!0,inlayHints:!0},XG=new ZG({allowNonTsExtensions:!0,target:99},{noSemanticValidation:!1,noSyntaxValidation:!1,onlyVisible:!1},{},{},YG),QG=new ZG({allowNonTsExtensions:!0,allowJs:!0,target:99},{noSemanticValidation:!0,noSyntaxValidation:!1,onlyVisible:!1},{},{},YG),A0e=()=>zE().then(s=>s.getTypeScriptWorker()),P0e=()=>zE().then(s=>s.getJavaScriptWorker());e_.languages.typescript={ModuleKind:$G,JsxEmit:jG,NewLineKind:KG,ScriptTarget:qG,ModuleResolutionKind:GG,typescriptVersion:M0e,typescriptDefaults:XG,javascriptDefaults:QG,getTypeScriptWorker:A0e,getJavaScriptWorker:P0e};function zE(){return Se(()=>import("./tsMode-tH5gnU9G.js"),__vite__mapDeps([16,1,2]))}e_.languages.onLanguage("typescript",()=>zE().then(s=>s.setupTypeScript(XG)));e_.languages.onLanguage("javascript",()=>zE().then(s=>s.setupJavaScript(QG)));class O0e extends Ls{constructor(){super({id:"diffEditor.toggleCollapseUnchangedRegions",title:Ee("toggleCollapseUnchangedRegions","Toggle Collapse Unchanged Regions"),icon:ee.map,toggled:q.has("config.diffEditor.hideUnchangedRegions.enabled"),precondition:q.has("isInDiffEditor"),menu:{when:q.has("isInDiffEditor"),id:fe.EditorTitle,order:22,group:"navigation"}})}run(e,...t){const i=e.get(qe),n=!i.getValue("diffEditor.hideUnchangedRegions.enabled");i.updateValue("diffEditor.hideUnchangedRegions.enabled",n)}}class JG extends Ls{constructor(){super({id:"diffEditor.toggleShowMovedCodeBlocks",title:Ee("toggleShowMovedCodeBlocks","Toggle Show Moved Code Blocks"),precondition:q.has("isInDiffEditor")})}run(e,...t){const i=e.get(qe),n=!i.getValue("diffEditor.experimental.showMoves");i.updateValue("diffEditor.experimental.showMoves",n)}}class eZ extends Ls{constructor(){super({id:"diffEditor.toggleUseInlineViewWhenSpaceIsLimited",title:Ee("toggleUseInlineViewWhenSpaceIsLimited","Toggle Use Inline View When Space Is Limited"),precondition:q.has("isInDiffEditor")})}run(e,...t){const i=e.get(qe),n=!i.getValue("diffEditor.useInlineViewWhenSpaceIsLimited");i.updateValue("diffEditor.useInlineViewWhenSpaceIsLimited",n)}}const y0=Ee("diffEditor","Diff Editor");class F0e extends Ka{constructor(){super({id:"diffEditor.switchSide",title:Ee("switchSide","Switch Side"),icon:ee.arrowSwap,precondition:q.has("isInDiffEditor"),f1:!0,category:y0})}runEditorCommand(e,t,i){const n=Ab(e);if(n instanceof ad){if(i&&i.dryRun)return{destinationSelection:n.mapToOtherSide().destinationSelection};n.switchSide()}}}class W0e extends Ka{constructor(){super({id:"diffEditor.exitCompareMove",title:Ee("exitCompareMove","Exit Compare Move"),icon:ee.close,precondition:I.comparingMovedCode,f1:!1,category:y0,keybinding:{weight:1e4,primary:9}})}runEditorCommand(e,t,...i){const n=Ab(e);n instanceof ad&&n.exitCompareMove()}}class B0e extends Ka{constructor(){super({id:"diffEditor.collapseAllUnchangedRegions",title:Ee("collapseAllUnchangedRegions","Collapse All Unchanged Regions"),icon:ee.fold,precondition:q.has("isInDiffEditor"),f1:!0,category:y0})}runEditorCommand(e,t,...i){const n=Ab(e);n instanceof ad&&n.collapseAllUnchangedRegions()}}class H0e extends Ka{constructor(){super({id:"diffEditor.showAllUnchangedRegions",title:Ee("showAllUnchangedRegions","Show All Unchanged Regions"),icon:ee.unfold,precondition:q.has("isInDiffEditor"),f1:!0,category:y0})}runEditorCommand(e,t,...i){const n=Ab(e);n instanceof ad&&n.showAllUnchangedRegions()}}class cO extends Ls{constructor(){super({id:"diffEditor.revert",title:Ee("revert","Revert"),f1:!1,category:y0})}run(e,t){const i=V0e(e,t.originalUri,t.modifiedUri);i instanceof ad&&i.revertRangeMappings(t.mapping.innerChanges??[])}}const tZ=Ee("accessibleDiffViewer","Accessible Diff Viewer"),FD=class FD extends Ls{constructor(){super({id:FD.id,title:Ee("editor.action.accessibleDiffViewer.next","Go to Next Difference"),category:tZ,precondition:q.has("isInDiffEditor"),keybinding:{primary:65,weight:100},f1:!0})}run(e){const t=Ab(e);t==null||t.accessibleDiffViewerNext()}};FD.id="editor.action.accessibleDiffViewer.next";let i1=FD;const WD=class WD extends Ls{constructor(){super({id:WD.id,title:Ee("editor.action.accessibleDiffViewer.prev","Go to Previous Difference"),category:tZ,precondition:q.has("isInDiffEditor"),keybinding:{primary:1089,weight:100},f1:!0})}run(e){const t=Ab(e);t==null||t.accessibleDiffViewerPrev()}};WD.id="editor.action.accessibleDiffViewer.prev";let Bx=WD;function V0e(s,e,t){return s.get(pt).listDiffEditors().find(o=>{var l,c;const r=o.getModifiedEditor(),a=o.getOriginalEditor();return r&&((l=r.getModel())==null?void 0:l.uri.toString())===t.toString()&&a&&((c=a.getModel())==null?void 0:c.uri.toString())===e.toString()})||null}function Ab(s){const t=s.get(pt).listDiffEditors(),i=In();if(i)for(const n of t){const o=n.getContainerDomNode();if(z0e(o,i))return n}return null}function z0e(s,e){let t=e;for(;t;){if(t===s)return!0;t=t.parentElement}return!1}Ot(O0e);Ot(JG);Ot(eZ);rn.appendMenuItem(fe.EditorTitle,{command:{id:new eZ().desc.id,title:p("useInlineViewWhenSpaceIsLimited","Use Inline View When Space Is Limited"),toggled:q.has("config.diffEditor.useInlineViewWhenSpaceIsLimited"),precondition:q.has("isInDiffEditor")},order:11,group:"1_diff",when:q.and(I.diffEditorRenderSideBySideInlineBreakpointReached,q.has("isInDiffEditor"))});rn.appendMenuItem(fe.EditorTitle,{command:{id:new JG().desc.id,title:p("showMoves","Show Moved Code Blocks"),icon:ee.move,toggled:mb.create("config.diffEditor.experimental.showMoves",!0),precondition:q.has("isInDiffEditor")},order:10,group:"1_diff",when:q.has("isInDiffEditor")});Ot(cO);for(const s of[{icon:ee.arrowRight,key:I.diffEditorInlineMode.toNegated()},{icon:ee.discard,key:I.diffEditorInlineMode}])rn.appendMenuItem(fe.DiffEditorHunkToolbar,{command:{id:new cO().desc.id,title:p("revertHunk","Revert Block"),icon:s.icon},when:q.and(I.diffEditorModifiedWritable,s.key),order:5,group:"primary"}),rn.appendMenuItem(fe.DiffEditorSelectionToolbar,{command:{id:new cO().desc.id,title:p("revertSelection","Revert Selection"),icon:s.icon},when:q.and(I.diffEditorModifiedWritable,s.key),order:5,group:"primary"});Ot(F0e);Ot(W0e);Ot(B0e);Ot(H0e);rn.appendMenuItem(fe.EditorTitle,{command:{id:i1.id,title:p("Open Accessible Diff Viewer","Open Accessible Diff Viewer"),precondition:q.has("isInDiffEditor")},order:10,group:"2_diff",when:q.and(I.accessibleDiffViewerVisible.negate(),q.has("isInDiffEditor"))});rt.registerCommandAlias("editor.action.diffReview.next",i1.id);Ot(i1);rt.registerCommandAlias("editor.action.diffReview.prev",Bx.id);Ot(Bx);var U0e=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},$0e=function(s,e){return function(t,i){e(t,i,s)}},dO;const UE=new le("selectionAnchorSet",!1);var x_;let Hh=(x_=class{static get(e){return e.getContribution(dO.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=UE.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){const e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(pe.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new On().appendText(p("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),Ss(p("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){const e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){const t=this.editor.getPosition();this.editor.setSelection(pe.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){const e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}},dO=x_,x_.ID="editor.contrib.selectionAnchorController",x_);Hh=dO=U0e([$0e(1,Ie)],Hh);class j0e extends de{constructor(){super({id:"editor.action.setSelectionAnchor",label:p("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:I.editorTextFocus,primary:Hi(2089,2080),weight:100}})}async run(e,t){var i;(i=Hh.get(t))==null||i.setSelectionAnchor()}}class K0e extends de{constructor(){super({id:"editor.action.goToSelectionAnchor",label:p("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:UE})}async run(e,t){var i;(i=Hh.get(t))==null||i.goToSelectionAnchor()}}class q0e extends de{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:p("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:UE,kbOpts:{kbExpr:I.editorTextFocus,primary:Hi(2089,2089),weight:100}})}async run(e,t){var i;(i=Hh.get(t))==null||i.selectFromAnchorToCursor()}}class G0e extends de{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:p("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:UE,kbOpts:{kbExpr:I.editorTextFocus,primary:9,weight:100}})}async run(e,t){var i;(i=Hh.get(t))==null||i.cancelSelectionAnchor()}}ct(Hh.ID,Hh,4);Q(j0e);Q(K0e);Q(q0e);Q(G0e);const Z0e=E("editorOverviewRuler.bracketMatchForeground","#A0A0A0",p("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets."));class Y0e extends de{constructor(){super({id:"editor.action.jumpToBracket",label:p("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:I.editorTextFocus,primary:3165,weight:100}})}run(e,t){var i;(i=Jg.get(t))==null||i.jumpToBracket()}}class X0e extends de{constructor(){super({id:"editor.action.selectToBracket",label:p("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,metadata:{description:Ee("smartSelect.selectToBracketDescription","Select the text inside and including the brackets or curly braces"),args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,i){var o;let n=!0;i&&i.selectBrackets===!1&&(n=!1),(o=Jg.get(t))==null||o.selectToBracket(n)}}class Q0e extends de{constructor(){super({id:"editor.action.removeBrackets",label:p("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:I.editorTextFocus,primary:2561,weight:100}})}run(e,t){var i;(i=Jg.get(t))==null||i.removeBrackets(this.id)}}class J0e{constructor(e,t,i){this.position=e,this.brackets=t,this.options=i}}const Wd=class Wd extends F{static get(e){return e.getContribution(Wd.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new Dt(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(72),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(72)&&(this._matchBrackets=this._editor.getOption(72),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}jumpToBracket(){if(!this._editor.hasModel())return;const e=this._editor.getModel(),t=this._editor.getSelections().map(i=>{const n=i.getStartPosition(),o=e.bracketPairs.matchBracket(n);let r=null;if(o)o[0].containsPosition(n)&&!o[1].containsPosition(n)?r=o[1].getStartPosition():o[1].containsPosition(n)&&(r=o[0].getStartPosition());else{const a=e.bracketPairs.findEnclosingBrackets(n);if(a)r=a[1].getStartPosition();else{const l=e.bracketPairs.findNextBracket(n);l&&l.range&&(r=l.range.getStartPosition())}}return r?new pe(r.lineNumber,r.column,r.lineNumber,r.column):new pe(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;const t=this._editor.getModel(),i=[];this._editor.getSelections().forEach(n=>{const o=n.getStartPosition();let r=t.bracketPairs.matchBracket(o);if(!r&&(r=t.bracketPairs.findEnclosingBrackets(o),!r)){const c=t.bracketPairs.findNextBracket(o);c&&c.range&&(r=t.bracketPairs.matchBracket(c.range.getStartPosition()))}let a=null,l=null;if(r){r.sort(x.compareRangesUsingStarts);const[c,d]=r;if(a=e?c.getStartPosition():c.getEndPosition(),l=e?d.getEndPosition():d.getStartPosition(),d.containsPosition(o)){const h=a;a=l,l=h}}a&&l&&i.push(new pe(a.lineNumber,a.column,l.lineNumber,l.column))}),i.length>0&&(this._editor.setSelections(i),this._editor.revealRange(i[0]))}removeBrackets(e){if(!this._editor.hasModel())return;const t=this._editor.getModel();this._editor.getSelections().forEach(i=>{const n=i.getPosition();let o=t.bracketPairs.matchBracket(n);o||(o=t.bracketPairs.findEnclosingBrackets(n)),o&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:o[0],text:""},{range:o[1],text:""}]),this._editor.pushUndoStop())})}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();const e=[];let t=0;for(const i of this._lastBracketsData){const n=i.brackets;n&&(e[t++]={range:n[0],options:i.options},e[t++]={range:n[1],options:i.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}const e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}const t=this._editor.getModel(),i=t.getVersionId();let n=[];this._lastVersionId===i&&(n=this._lastBracketsData);const o=[];let r=0;for(let h=0,u=e.length;h1&&o.sort(A.compare);const a=[];let l=0,c=0;const d=n.length;for(let h=0,u=o.length;h0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}}Q(nSe);const $E=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let s;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?s=crypto.getRandomValues.bind(crypto):s=function(i){for(let n=0;ns,asFile:()=>{},value:typeof s=="string"?s:void 0}}function sSe(s,e,t){const i={id:$E(),name:s,uri:e,data:t};return{asString:async()=>"",asFile:()=>i,value:void 0}}class nZ{constructor(){this._entries=new Map}get size(){let e=0;for(const t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){const t=[...this._entries.keys()];return ot.some(this,([i,n])=>n.asFile())&&t.push("files"),oZ(Hx(e),t)}get(e){var t;return(t=this._entries.get(this.toKey(e)))==null?void 0:t[0]}append(e,t){const i=this._entries.get(e);i?i.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*[Symbol.iterator](){for(const[e,t]of this._entries)for(const i of t)yield[e,i]}toKey(e){return Hx(e)}}function Hx(s){return s.toLowerCase()}function sZ(s,e){return oZ(Hx(s),e.map(Hx))}function oZ(s,e){if(s==="*/*")return e.length>0;if(e.includes(s))return!0;const t=s.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!t)return!1;const[i,n,o]=t;return o==="*"?e.some(r=>r.startsWith(n+"/")):!1}const jE=Object.freeze({create:s=>Xc(s.map(e=>e.toString())).join(`\r `),split:s=>s.split(`\r `),parse:s=>jE.split(s).filter(e=>!e.startsWith("#"))}),fl=class fl{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||e.value.startsWith(this.value+fl.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(...e){return new fl((this.value?[this.value,...e]:e).join(fl.sep))}};fl.sep=".",fl.None=new fl("@@none@@"),fl.Empty=new fl("");let ei=fl;const j6={EDITORS:"CodeEditors",FILES:"CodeFiles"};class oSe{}const rSe={DragAndDropContribution:"workbench.contributions.dragAndDrop"};li.add(rSe.DragAndDropContribution,new oSe);const jv=class jv{constructor(){}static getInstance(){return jv.INSTANCE}hasData(e){return e&&e===this.proto}getData(e){if(this.hasData(e))return this.data}};jv.INSTANCE=new jv;let hO=jv;function rZ(s){const e=new nZ;for(const t of s.items){const i=t.type;if(t.kind==="string"){const n=new Promise(o=>t.getAsString(o));e.append(i,KW(n))}else if(t.kind==="file"){const n=t.getAsFile();n&&e.append(i,aSe(n))}}return e}function aSe(s){const e=s.path?we.parse(s.path):void 0;return sSe(s.name,e,async()=>new Uint8Array(await s.arrayBuffer()))}const lSe=Object.freeze([j6.EDITORS,j6.FILES,Iw.RESOURCES,Iw.INTERNAL_URI_LIST]);function aZ(s,e=!1){const t=rZ(s),i=t.get(Iw.INTERNAL_URI_LIST);if(i)t.replace(vi.uriList,i);else if(e||!t.has(vi.uriList)){const n=[];for(const o of s.items){const r=o.getAsFile();if(r){const a=r.path;try{a?n.push(we.file(a).toString()):n.push(we.parse(r.name,!0).toString())}catch{}}}n.length&&t.replace(vi.uriList,KW(jE.create(n)))}for(const n of lSe)t.delete(n);return t}var qW=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},n1=function(s,e){return function(t,i){e(t,i,s)}};class GW{async provideDocumentPasteEdits(e,t,i,n,o){const r=await this.getEdit(i,o);if(r)return{edits:[{insertText:r.insertText,title:r.title,kind:r.kind,handledMimeType:r.handledMimeType,yieldTo:r.yieldTo}],dispose(){}}}async provideDocumentDropEdits(e,t,i,n){const o=await this.getEdit(i,n);if(o)return{edits:[{insertText:o.insertText,title:o.title,kind:o.kind,handledMimeType:o.handledMimeType,yieldTo:o.yieldTo}],dispose(){}}}}const Kv=class Kv extends GW{constructor(){super(...arguments),this.kind=Kv.kind,this.dropMimeTypes=[vi.text],this.pasteMimeTypes=[vi.text]}async getEdit(e,t){const i=e.get(vi.text);if(!i||e.has(vi.uriList))return;const n=await i.asString();return{handledMimeType:vi.text,title:p("text.label","Insert Plain Text"),insertText:n,kind:this.kind}}};Kv.id="text",Kv.kind=new ei("text.plain");let ef=Kv;class lZ extends GW{constructor(){super(...arguments),this.kind=new ei("uri.absolute"),this.dropMimeTypes=[vi.uriList],this.pasteMimeTypes=[vi.uriList]}async getEdit(e,t){const i=await cZ(e);if(!i.length||t.isCancellationRequested)return;let n=0;const o=i.map(({uri:a,originalText:l})=>a.scheme===Oe.file?a.fsPath:(n++,l)).join(" ");let r;return n>0?r=i.length>1?p("defaultDropProvider.uriList.uris","Insert Uris"):p("defaultDropProvider.uriList.uri","Insert Uri"):r=i.length>1?p("defaultDropProvider.uriList.paths","Insert Paths"):p("defaultDropProvider.uriList.path","Insert Path"),{handledMimeType:vi.uriList,insertText:o,title:r,kind:this.kind}}}let Vx=class extends GW{constructor(e){super(),this._workspaceContextService=e,this.kind=new ei("uri.relative"),this.dropMimeTypes=[vi.uriList],this.pasteMimeTypes=[vi.uriList]}async getEdit(e,t){const i=await cZ(e);if(!i.length||t.isCancellationRequested)return;const n=Xr(i.map(({uri:o})=>{const r=this._workspaceContextService.getWorkspaceFolder(o);return r?_le(r.uri,o):void 0}));if(n.length)return{handledMimeType:vi.uriList,insertText:n.join(" "),title:i.length>1?p("defaultDropProvider.uriList.relativePaths","Insert Relative Paths"):p("defaultDropProvider.uriList.relativePath","Insert Relative Path"),kind:this.kind}}};Vx=qW([n1(0,qg)],Vx);class cSe{constructor(){this.kind=new ei("html"),this.pasteMimeTypes=["text/html"],this._yieldTo=[{mimeType:vi.text}]}async provideDocumentPasteEdits(e,t,i,n,o){var l;if(n.triggerKind!==iw.PasteAs&&!((l=n.only)!=null&&l.contains(this.kind)))return;const r=i.get("text/html"),a=await(r==null?void 0:r.asString());if(!(!a||o.isCancellationRequested))return{dispose(){},edits:[{insertText:a,yieldTo:this._yieldTo,title:p("pasteHtmlLabel","Insert HTML"),kind:this.kind}]}}}async function cZ(s){const e=s.get(vi.uriList);if(!e)return[];const t=await e.asString(),i=[];for(const n of jE.parse(t))try{i.push({uri:we.parse(n),originalText:n})}catch{}return i}let uO=class extends F{constructor(e,t){super(),this._register(e.documentDropEditProvider.register("*",new ef)),this._register(e.documentDropEditProvider.register("*",new lZ)),this._register(e.documentDropEditProvider.register("*",new Vx(t)))}};uO=qW([n1(0,he),n1(1,qg)],uO);let gO=class extends F{constructor(e,t){super(),this._register(e.documentPasteEditProvider.register("*",new ef)),this._register(e.documentPasteEditProvider.register("*",new lZ)),this._register(e.documentPasteEditProvider.register("*",new Vx(t))),this._register(e.documentPasteEditProvider.register("*",new cSe))}};gO=qW([n1(0,he),n1(1,qg)],gO);const Fr=class Fr{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return e===95||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};const e=this.pos;let t=0,i=this.value.charCodeAt(e),n;if(n=Fr._table[i],typeof n=="number")return this.pos+=1,{type:n,pos:e,len:1};if(Fr.isDigitCharacter(i)){n=8;do t+=1,i=this.value.charCodeAt(e+t);while(Fr.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}if(Fr.isVariableCharacter(i)){n=9;do i=this.value.charCodeAt(e+ ++t);while(Fr.isVariableCharacter(i)||Fr.isDigitCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}n=10;do t+=1,i=this.value.charCodeAt(e+t);while(!isNaN(i)&&typeof Fr._table[i]>"u"&&!Fr.isDigitCharacter(i)&&!Fr.isVariableCharacter(i));return this.pos+=t,{type:n,pos:e,len:t}}};Fr._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};let fO=Fr;class Pb{constructor(){this._children=[]}appendChild(e){return e instanceof ds&&this._children[this._children.length-1]instanceof ds?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){const{parent:i}=e,n=i.children.indexOf(e),o=i.children.slice(0);o.splice(n,1,...t),i._children=o,function r(a,l){for(const c of a)c.parent=l,r(c.children,c)}(t,i)}get children(){return this._children}get rightMostDescendant(){return this._children.length>0?this._children[this._children.length-1].rightMostDescendant:this}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof L0)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}}class ds extends Pb{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new ds(this.value)}}class dZ extends Pb{}class hr extends dZ{static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.indext.index?1:0}constructor(e){super(),this.index=e}get isFinalTabstop(){return this.index===0}get choice(){return this._children.length===1&&this._children[0]instanceof Ob?this._children[0]:void 0}clone(){const e=new hr(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}class Ob extends Pb{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof ds&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){const e=new Ob;return this.options.forEach(e.appendChild,e),e}}class ZW extends Pb{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){const t=this;let i=!1,n=e.replace(this.regexp,function(){return i=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))});return!i&&this._children.some(o=>o instanceof ya&&!!o.elseValue)&&(n=this._replace([])),n}_replace(e){let t="";for(const i of this._children)if(i instanceof ya){let n=e[i.index]||"";n=i.resolve(n),t+=n}else t+=i.toString();return t}toString(){return""}clone(){const e=new ZW;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(t=>t.clone()),e}}class ya extends Pb{constructor(e,t,i,n){super(),this.index=e,this.shorthandName=t,this.ifValue=i,this.elseValue=n}resolve(e){return this.shorthandName==="upcase"?e?e.toLocaleUpperCase():"":this.shorthandName==="downcase"?e?e.toLocaleLowerCase():"":this.shorthandName==="capitalize"?e?e[0].toLocaleUpperCase()+e.substr(1):"":this.shorthandName==="pascalcase"?e?this._toPascalCase(e):"":this.shorthandName==="camelcase"?e?this._toCamelCase(e):"":e&&typeof this.ifValue=="string"?this.ifValue:!e&&typeof this.elseValue=="string"?this.elseValue:e||""}_toPascalCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map(i=>i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}_toCamelCase(e){const t=e.match(/[a-z0-9]+/gi);return t?t.map((i,n)=>n===0?i.charAt(0).toLowerCase()+i.substr(1):i.charAt(0).toUpperCase()+i.substr(1)).join(""):e}clone(){return new ya(this.index,this.shorthandName,this.ifValue,this.elseValue)}}class s1 extends dZ{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),t!==void 0?(this._children=[new ds(t)],!0):!1}clone(){const e=new s1(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}}function K6(s,e){const t=[...s];for(;t.length>0;){const i=t.shift();if(!e(i))break;t.unshift(...i.children)}}class L0 extends Pb{get placeholderInfo(){if(!this._placeholders){const e=[];let t;this.walk(function(i){return i instanceof hr&&(e.push(i),t=!t||t.indexn===e?(i=!0,!1):(t+=n.len(),!0)),i?t:-1}fullLen(e){let t=0;return K6([e],i=>(t+=i.len(),!0)),t}enclosingPlaceholders(e){const t=[];let{parent:i}=e;for(;i;)i instanceof hr&&t.push(i),i=i.parent;return t}resolveVariables(e){return this.walk(t=>(t instanceof s1&&t.resolve(e)&&(this._placeholders=void 0),!0)),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){const e=new L0;return this._children=this.children.map(t=>t.clone()),e}walk(e){K6(this.children,e)}}class tf{constructor(){this._scanner=new fO,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,i){const n=new L0;return this.parseFragment(e,n),this.ensureFinalTabstop(n,i??!1,t??!1),n}parseFragment(e,t){const i=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););const n=new Map,o=[];t.walk(l=>(l instanceof hr&&(l.isFinalTabstop?n.set(0,void 0):!n.has(l.index)&&l.children.length>0?n.set(l.index,l.children):o.push(l)),!0));const r=(l,c)=>{const d=n.get(l.index);if(!d)return;const h=new hr(l.index);h.transform=l.transform;for(const u of d){const g=u.clone();h.appendChild(g),g instanceof hr&&n.has(g.index)&&!c.has(g.index)&&(c.add(g.index),r(g,c),c.delete(g.index))}t.replace(l,[h])},a=new Set;for(const l of o)r(l,a);return t.children.slice(i)}ensureFinalTabstop(e,t,i){(t||i&&e.placeholders.length>0)&&(e.placeholders.find(o=>o.index===0)||e.appendChild(new hr(0)))}_accept(e,t){if(e===void 0||this._token.type===e){const i=t?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),i}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){const t=this._token;for(;this._token.type!==e;){if(this._token.type===14)return!1;if(this._token.type===5){const n=this._scanner.next();if(n.type!==0&&n.type!==4&&n.type!==5)return!1}this._token=this._scanner.next()}const i=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),i}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return(t=this._accept(5,!0))?(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new ds(t)),!0):!1}_parseTabstopOrVariableName(e){let t;const i=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new hr(Number(t)):new s1(t)),!0):this._backTo(i)}_parseComplexPlaceholder(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(i);const o=new hr(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(o),!0;if(!this._parse(o))return e.appendChild(new ds("${"+t+":")),o.children.forEach(e.appendChild,e),!0}else if(o.index>0&&this._accept(7)){const r=new Ob;for(;;){if(this._parseChoiceElement(r)){if(this._accept(2))continue;if(this._accept(7)&&(o.appendChild(r),this._accept(4)))return e.appendChild(o),!0}return this._backTo(i),!1}}else return this._accept(6)?this._parseTransform(o)?(e.appendChild(o),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(o),!0):this._backTo(i)}_parseChoiceElement(e){const t=this._token,i=[];for(;!(this._token.type===2||this._token.type===7);){let n;if((n=this._accept(5,!0))?n=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||n:n=this._accept(void 0,!0),!n)return this._backTo(t),!1;i.push(n)}return i.length===0?(this._backTo(t),!1):(e.appendChild(new ds(i.join(""))),!0)}_parseComplexVariable(e){let t;const i=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(i);const o=new s1(t);if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(o),!0;if(!this._parse(o))return e.appendChild(new ds("${"+t+":")),o.children.forEach(e.appendChild,e),!0}else return this._accept(6)?this._parseTransform(o)?(e.appendChild(o),!0):(this._backTo(i),!1):this._accept(4)?(e.appendChild(o),!0):this._backTo(i)}_parseTransform(e){const t=new ZW;let i="",n="";for(;!this._accept(6);){let o;if(o=this._accept(5,!0)){o=this._accept(6,!0)||o,i+=o;continue}if(this._token.type!==14){i+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){let o;if(o=this._accept(5,!0)){o=this._accept(5,!0)||this._accept(6,!0)||o,t.appendChild(new ds(o));continue}if(!(this._parseFormatString(t)||this._parseAnything(t)))return!1}for(;!this._accept(4);){if(this._token.type!==14){n+=this._accept(void 0,!0);continue}return!1}try{t.regexp=new RegExp(i,n)}catch{return!1}return e.transform=t,!0}_parseFormatString(e){const t=this._token;if(!this._accept(0))return!1;let i=!1;this._accept(3)&&(i=!0);const n=this._accept(8,!0);if(n)if(i){if(this._accept(4))return e.appendChild(new ya(Number(n))),!0;if(!this._accept(1))return this._backTo(t),!1}else return e.appendChild(new ya(Number(n))),!0;else return this._backTo(t),!1;if(this._accept(6)){const o=this._accept(9,!0);return!o||!this._accept(4)?(this._backTo(t),!1):(e.appendChild(new ya(Number(n),o)),!0)}else if(this._accept(11)){const o=this._until(4);if(o)return e.appendChild(new ya(Number(n),void 0,o,void 0)),!0}else if(this._accept(12)){const o=this._until(4);if(o)return e.appendChild(new ya(Number(n),void 0,void 0,o)),!0}else if(this._accept(13)){const o=this._until(1);if(o){const r=this._until(4);if(r)return e.appendChild(new ya(Number(n),void 0,o,r)),!0}}else{const o=this._until(4);if(o)return e.appendChild(new ya(Number(n),void 0,void 0,o)),!0}return this._backTo(t),!1}_parseAnything(e){return this._token.type!==14?(e.appendChild(new ds(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1}}function hZ(s,e,t){var i,n;return(typeof t.insertText=="string"?t.insertText==="":t.insertText.snippet==="")?{edits:((i=t.additionalEdit)==null?void 0:i.edits)??[]}:{edits:[...e.map(o=>new Ch(s,{range:o,text:typeof t.insertText=="string"?tf.escape(t.insertText)+"$0":t.insertText.snippet,insertAsSnippet:!0})),...((n=t.additionalEdit)==null?void 0:n.edits)??[]]}}function uZ(s){function e(r,a){return"mimeType"in r?r.mimeType===a.handledMimeType:!!a.kind&&r.kind.contains(a.kind)}const t=new Map;for(const r of s)for(const a of r.yieldTo??[])for(const l of s)if(l!==r&&e(a,l)){let c=t.get(r);c||(c=[],t.set(r,c)),c.push(l)}if(!t.size)return Array.from(s);const i=new Set,n=[];function o(r){if(!r.length)return[];const a=r[0];if(n.includes(a))return console.warn("Yield to cycle detected",a),r;if(i.has(a))return o(r.slice(1));let l=[];const c=t.get(a);return c&&(n.push(a),l=o(c),n.pop()),i.add(a),[...l,a,...o(r.slice(1))]}return o(Array.from(s))}var dSe=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},hSe=function(s,e){return function(t,i){e(t,i,s)}};const uSe=Fe.register({description:"inline-progress-widget",stickiness:1,showIfCollapsed:!0,after:{content:FU,inlineClassName:"inline-editor-progress-decoration",inlineClassNameAffectsLetterSpacing:!0}}),BD=class BD extends F{constructor(e,t,i,n,o){super(),this.typeId=e,this.editor=t,this.range=i,this.delegate=o,this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this.create(n),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this)}create(e){this.domNode=ie(".inline-progress-widget"),this.domNode.role="button",this.domNode.title=e;const t=ie("span.icon");this.domNode.append(t),t.classList.add(...De.asClassNameArray(ee.loading),"codicon-modifier-spin");const i=()=>{const n=this.editor.getOption(67);this.domNode.style.height=`${n}px`,this.domNode.style.width=`${Math.ceil(.8*n)}px`};i(),this._register(this.editor.onDidChangeConfiguration(n=>{(n.hasChanged(52)||n.hasChanged(67))&&i()})),this._register(z(this.domNode,te.CLICK,n=>{this.delegate.cancel()}))}getId(){return BD.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:{lineNumber:this.range.startLineNumber,column:this.range.startColumn},preference:[0]}}dispose(){super.dispose(),this.editor.removeContentWidget(this)}};BD.baseId="editor.widget.inlineProgressWidget";let pO=BD,zx=class extends F{constructor(e,t,i){super(),this.id=e,this._editor=t,this._instantiationService=i,this._showDelay=500,this._showPromise=this._register(new Ji),this._currentWidget=this._register(new Ji),this._operationIdPool=0,this._currentDecorations=t.createDecorationsCollection()}dispose(){super.dispose(),this._currentDecorations.clear()}async showWhile(e,t,i,n,o){const r=this._operationIdPool++;this._currentOperation=r,this.clear(),this._showPromise.value=Nh(()=>{const a=x.fromPositions(e);this._currentDecorations.set([{range:a,options:uSe}]).length>0&&(this._currentWidget.value=this._instantiationService.createInstance(pO,this.id,this._editor,a,t,n))},o??this._showDelay);try{return await i}finally{this._currentOperation===r&&(this.clear(),this._currentOperation=void 0)}}clear(){this._showPromise.clear(),this._currentDecorations.clear(),this._currentWidget.clear()}};zx=dSe([hSe(2,ve)],zx);var gSe=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},q6=function(s,e){return function(t,i){e(t,i,s)}},xy,wg;let fo=(wg=class{static get(e){return e.getContribution(xy.ID)}constructor(e,t,i){this._openerService=i,this._messageWidget=new Ji,this._messageListeners=new K,this._mouseOverMessage=!1,this._editor=e,this._visible=xy.MESSAGE_VISIBLE.bindTo(t)}dispose(){var e;(e=this._message)==null||e.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){Ss(Fa(e)?e.value:e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._message=Fa(e)?hE(e,{actionHandler:{callback:n=>{this.closeMessage(),f3(this._openerService,n,Fa(e)?e.isTrusted:void 0)},disposables:this._messageListeners}}):void 0,this._messageWidget.value=new G6(this._editor,t,typeof e=="string"?e:this._message.element),this._messageListeners.add(se.debounce(this._editor.onDidBlurEditorText,(n,o)=>o,0)(()=>{this._mouseOverMessage||this._messageWidget.value&&Zi(In(),this._messageWidget.value.getDomNode())||this.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(z(this._messageWidget.value.getDomNode(),te.MOUSE_ENTER,()=>this._mouseOverMessage=!0,!0)),this._messageListeners.add(z(this._messageWidget.value.getDomNode(),te.MOUSE_LEAVE,()=>this._mouseOverMessage=!1,!0));let i;this._messageListeners.add(this._editor.onMouseMove(n=>{n.target.position&&(i?i.containsPosition(n.target.position)||this.closeMessage():i=new x(t.lineNumber-3,1,n.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(G6.fadeOut(this._messageWidget.value))}},xy=wg,wg.ID="editor.contrib.messageController",wg.MESSAGE_VISIBLE=new le("messageVisible",!1,p("messageVisible","Whether the editor is currently showing an inline message")),wg);fo=xy=gSe([q6(1,Ie),q6(2,js)],fo);const fSe=$i.bindToContribution(fo.get);oe(new fSe({id:"leaveEditorMessage",precondition:fo.MESSAGE_VISIBLE,handler:s=>s.closeMessage(),kbOpts:{weight:130,primary:9}}));let G6=class{static fadeOut(e){const t=()=>{e.dispose(),clearTimeout(i),e.getDomNode().removeEventListener("animationend",t)},i=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}constructor(e,{lineNumber:t,column:i},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:i},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";const o=document.createElement("div");o.classList.add("anchor","top"),this._domNode.appendChild(o);const r=document.createElement("div");typeof n=="string"?(r.classList.add("message"),r.textContent=n):(n.classList.add("message"),r.appendChild(n)),this._domNode.appendChild(r);const a=document.createElement("div");a.classList.add("anchor","below"),this._domNode.appendChild(a),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",e===2)}};ct(fo.ID,fo,4);function UT(s,e){return e&&(s.stack||s.stacktrace)?p("stackTrace.format","{0}: {1}",Y6(s),Z6(s.stack)||Z6(s.stacktrace)):Y6(s)}function Z6(s){return Array.isArray(s)?s.join(` `):s}function Y6(s){return s.code==="ERR_UNC_HOST_NOT_ALLOWED"?`${s.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:typeof s.code=="string"&&typeof s.errno=="number"&&typeof s.syscall=="string"?p("nodeExceptionMessage","A system error occurred ({0})",s.message):s.message||p("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function Ux(s=null,e=!1){if(!s)return p("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(s)){const t=Xr(s),i=Ux(t[0],e);return t.length>1?p("error.moreErrors","{0} ({1} errors in total)",i,t.length):i}if(Fs(s))return s;if(s.detail){const t=s.detail;if(t.error)return UT(t.error,e);if(t.exception)return UT(t.exception,e)}return s.stack?UT(s,e):s.message?s.message:p("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}var gZ=function(s,e,t,i){var n=arguments.length,o=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(s,e,t,i);else for(var a=s.length-1;a>=0;a--)(r=s[a])&&(o=(n<3?r(o):n>3?r(e,t,o):r(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},xm=function(s,e){return function(t,i){e(t,i,s)}},mO,k_;let _O=(k_=class extends F{constructor(e,t,i,n,o,r,a,l,c,d){super(),this.typeId=e,this.editor=t,this.showCommand=n,this.range=o,this.edits=r,this.onSelectNewEdit=a,this._contextMenuService=l,this._keybindingService=d,this.allowEditorOverflow=!0,this.suppressMouseDown=!0,this.create(),this.visibleContext=i.bindTo(c),this.visibleContext.set(!0),this._register(Ce(()=>this.visibleContext.reset())),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this),this._register(Ce(()=>this.editor.removeContentWidget(this))),this._register(this.editor.onDidChangeCursorPosition(h=>{o.containsPosition(h.position)||this.dispose()})),this._register(se.runAndSubscribe(d.onDidUpdateKeybindings,()=>{this._updateButtonTitle()}))}_updateButtonTitle(){var t;const e=(t=this._keybindingService.lookupKeybinding(this.showCommand.id))==null?void 0:t.getLabel();this.button.element.title=this.showCommand.label+(e?` (${e})`:"")}create(){this.domNode=ie(".post-edit-widget"),this.button=this._register(new ZL(this.domNode,{supportIcons:!0})),this.button.label="$(insert)",this._register(z(this.domNode,te.CLICK,()=>this.showSelector()))}getId(){return mO.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:this.range.getEndPosition(),preference:[2]}}showSelector(){this._contextMenuService.showContextMenu({getAnchor:()=>{const e=wi(this.button.element);return{x:e.left+e.width,y:e.top+e.height}},getActions:()=>this.edits.allEdits.map((e,t)=>lg({id:"",label:e.title,checked:t===this.edits.activeEditIndex,run:()=>{if(t!==this.edits.activeEditIndex)return this.onSelectNewEdit(t)}}))})}},mO=k_,k_.baseId="editor.widget.postEditWidget",k_);_O=mO=gZ([xm(7,vo),xm(8,Ie),xm(9,wt)],_O);let $x=class extends F{constructor(e,t,i,n,o,r,a){super(),this._id=e,this._editor=t,this._visibleContext=i,this._showCommand=n,this._instantiationService=o,this._bulkEditService=r,this._notificationService=a,this._currentWidget=this._register(new Ji),this._register(se.any(t.onDidChangeModel,t.onDidChangeModelContent)(()=>this.clear()))}async applyEditAndShowIfNeeded(e,t,i,n,o){const r=this._editor.getModel();if(!r||!e.length)return;const a=t.allEdits.at(t.activeEditIndex);if(!a)return;const l=async _=>{const b=this._editor.getModel();b&&(await b.undo(),this.applyEditAndShowIfNeeded(e,{activeEditIndex:_,allEdits:t.allEdits},i,n,o))},c=(_,b)=>{Dr(_)||(this._notificationService.error(b),i&&this.show(e[0],t,l))};let d;try{d=await n(a,o)}catch(_){return c(_,p("resolveError",`Error resolving edit '{0}': @@ -785,7 +785,7 @@ ${e.toString()}`}}class dx{constructor(e=new Nb,t=!1,i,n=$pe){this._services=e,t `:""}var BAe=WAe,HAe={dump:BAe};function UB(s,e){return function(){throw new Error("Function yaml."+s+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var VAe=bs,zAe=NX,UAe=AX,$Ae=BX,jAe=HX,KAe=BB,qAe=nQ.load,GAe=nQ.loadAll,ZAe=HAe.dump,YAe=lo,XAe={binary:jX,float:WX,map:MX,null:PX,pairs:qX,set:GX,timestamp:UX,bool:OX,int:FX,merge:$X,omap:KX,seq:RX,str:TX},QAe=UB("safeLoad","load"),JAe=UB("safeLoadAll","loadAll"),e2e=UB("safeDump","dump"),t2e={Type:VAe,Schema:zAe,FAILSAFE_SCHEMA:UAe,JSON_SCHEMA:$Ae,CORE_SCHEMA:jAe,DEFAULT_SCHEMA:KAe,load:qAe,loadAll:GAe,dump:ZAe,YAMLException:YAe,types:XAe,safeLoad:QAe,safeLoadAll:JAe,safeDump:e2e};const FFe=t2e;export{OFe as _,w0 as m,XG as t,FFe as y}; function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/freemarker2-UxhOxt-M.js","assets/index-3zDsduUv.js","assets/index-YSfCu-V6.css","assets/handlebars-feyIBGtU.js","assets/html-XW1o38ac.js","assets/javascript-aILp5GNb.js","assets/typescript-jSqLomXD.js","assets/liquid-Xdf0sURN.js","assets/mdx-gQ43aWZ0.js","assets/python-1HHjXB9h.js","assets/razor-TyEeYTJH.js","assets/xml-PQ1W1vQC.js","assets/yaml-QORSracL.js","assets/cssMode-RYNyR8Bq.js","assets/htmlMode-GNYYzuyz.js","assets/jsonMode-KjD1007i.js","assets/tsMode-uoK2x2Py.js"] + __vite__mapDeps.viteFileDeps = ["assets/freemarker2-CvjbrvE7.js","assets/index-VXjVsiiO.js","assets/index-YSfCu-V6.css","assets/handlebars-fU1X2nVM.js","assets/html-6FTFGpD-.js","assets/javascript-H-1KqBOf.js","assets/typescript-q9CUqdgD.js","assets/liquid-7P5gg0U5.js","assets/mdx-L3CEyB0p.js","assets/python-lzE2PGTj.js","assets/razor-RxeYPRMK.js","assets/xml-wTy26N4g.js","assets/yaml-erqTPgu9.js","assets/cssMode-fVQptnrp.js","assets/htmlMode-hY3gUkwW.js","assets/jsonMode-gXXED22T.js","assets/tsMode-tH5gnU9G.js"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } diff --git a/app/dubbo-ui/dist/admin/assets/jsonMode-KjD1007i.js b/app/dubbo-ui/dist/admin/assets/jsonMode-gXXED22T.js similarity index 99% rename from app/dubbo-ui/dist/admin/assets/jsonMode-KjD1007i.js rename to app/dubbo-ui/dist/admin/assets/jsonMode-gXXED22T.js index cbeaf08c..33c423bb 100644 --- a/app/dubbo-ui/dist/admin/assets/jsonMode-KjD1007i.js +++ b/app/dubbo-ui/dist/admin/assets/jsonMode-gXXED22T.js @@ -1,4 +1,4 @@ -import{m as Lt}from"./js-yaml-eElisXzH.js";import"./index-3zDsduUv.js";/*!----------------------------------------------------------------------------- +import{m as Lt}from"./js-yaml-EQlPfOK8.js";import"./index-VXjVsiiO.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license diff --git a/app/dubbo-ui/dist/admin/assets/linkTracking-dZ2NlVl4.js b/app/dubbo-ui/dist/admin/assets/linkTracking-dZ2NlVl4.js new file mode 100644 index 00000000..3dc15600 --- /dev/null +++ b/app/dubbo-ui/dist/admin/assets/linkTracking-dZ2NlVl4.js @@ -0,0 +1 @@ +import{G as s}from"./GrafanaPage-emfN7XhQ.js";import{d as t,a as r,U as o,r as n,z as c,c as i,b as _,o as p}from"./index-VXjVsiiO.js";import{b as m}from"./instance-dqyT8xOu.js";import"./request-Cs8TyifY.js";const d={class:"__container_ins_tracing"},E=t({__name:"linkTracking",setup(f){var a;const e=r();return o(c.GRAFANA,n({api:m,showIframe:!1,name:((a=e.params)==null?void 0:a.pathId)+":22222",type:"instance"})),(l,u)=>(p(),i("div",d,[_(s)]))}});export{E as default}; diff --git a/app/dubbo-ui/dist/admin/assets/linkTracking-gLhWXj25.js b/app/dubbo-ui/dist/admin/assets/linkTracking-gLhWXj25.js deleted file mode 100644 index 290dfa49..00000000 --- a/app/dubbo-ui/dist/admin/assets/linkTracking-gLhWXj25.js +++ /dev/null @@ -1 +0,0 @@ -import{G as s}from"./GrafanaPage-tT3NMW70.js";import{d as t,a as r,U as o,r as n,z as c,c as i,b as _,o as p}from"./index-3zDsduUv.js";import{b as m}from"./instance-qriYfOrq.js";import"./request-3an337VF.js";const d={class:"__container_ins_tracing"},E=t({__name:"linkTracking",setup(f){var a;const e=r();return o(c.GRAFANA,n({api:m,showIframe:!1,name:((a=e.params)==null?void 0:a.pathId)+":22222",type:"instance"})),(l,u)=>(p(),i("div",d,[_(s)]))}});export{E as default}; diff --git a/app/dubbo-ui/dist/admin/assets/liquid-Xdf0sURN.js b/app/dubbo-ui/dist/admin/assets/liquid-7P5gg0U5.js similarity index 96% rename from app/dubbo-ui/dist/admin/assets/liquid-Xdf0sURN.js rename to app/dubbo-ui/dist/admin/assets/liquid-7P5gg0U5.js index 7e0c3a56..a2f2d077 100644 --- a/app/dubbo-ui/dist/admin/assets/liquid-Xdf0sURN.js +++ b/app/dubbo-ui/dist/admin/assets/liquid-7P5gg0U5.js @@ -1,4 +1,4 @@ -import{m as d}from"./js-yaml-eElisXzH.js";import"./index-3zDsduUv.js";/*!----------------------------------------------------------------------------- +import{m as d}from"./js-yaml-EQlPfOK8.js";import"./index-VXjVsiiO.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license diff --git a/app/dubbo-ui/dist/admin/assets/mdx-gQ43aWZ0.js b/app/dubbo-ui/dist/admin/assets/mdx-L3CEyB0p.js similarity index 97% rename from app/dubbo-ui/dist/admin/assets/mdx-gQ43aWZ0.js rename to app/dubbo-ui/dist/admin/assets/mdx-L3CEyB0p.js index c62e6bea..0c1eea69 100644 --- a/app/dubbo-ui/dist/admin/assets/mdx-gQ43aWZ0.js +++ b/app/dubbo-ui/dist/admin/assets/mdx-L3CEyB0p.js @@ -1,4 +1,4 @@ -import{m as d}from"./js-yaml-eElisXzH.js";import"./index-3zDsduUv.js";/*!----------------------------------------------------------------------------- +import{m as d}from"./js-yaml-EQlPfOK8.js";import"./index-VXjVsiiO.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license diff --git a/app/dubbo-ui/dist/admin/assets/monitor-JE2IXQk_.js b/app/dubbo-ui/dist/admin/assets/monitor-JE2IXQk_.js deleted file mode 100644 index f0253d2c..00000000 --- a/app/dubbo-ui/dist/admin/assets/monitor-JE2IXQk_.js +++ /dev/null @@ -1 +0,0 @@ -import{G as o}from"./GrafanaPage-tT3NMW70.js";import{d as r,a as t,U as s,r as c,z as n,c as i,b as p,o as m}from"./index-3zDsduUv.js";import{a as _}from"./service-Hb3ldtV6.js";import"./request-3an337VF.js";const d={class:"__container_app_monitor"},A=r({__name:"monitor",setup(f){var e;const a=t();return s(n.GRAFANA,c({api:_,showIframe:!1,name:((e=a.params)==null?void 0:e.pathId)+":22222",type:"service"})),(u,l)=>(m(),i("div",d,[p(o)]))}});export{A as default}; diff --git a/app/dubbo-ui/dist/admin/assets/monitor-Yx9RU22f.js b/app/dubbo-ui/dist/admin/assets/monitor-Yx9RU22f.js deleted file mode 100644 index 0f5d8c93..00000000 --- a/app/dubbo-ui/dist/admin/assets/monitor-Yx9RU22f.js +++ /dev/null @@ -1 +0,0 @@ -import{G as o}from"./GrafanaPage-tT3NMW70.js";import{d as t,a as s,U as r,r as n,z as c,c as i,b as m,o as _}from"./index-3zDsduUv.js";import{a as p}from"./instance-qriYfOrq.js";import"./request-3an337VF.js";const d={class:"__container_ins_monitor"},A=t({__name:"monitor",setup(f){var a;const e=s();return r(c.GRAFANA,n({api:p,showIframe:!1,name:((a=e.params)==null?void 0:a.pathId)+":22222",type:"instance"})),(u,l)=>(_(),i("div",d,[m(o)]))}});export{A as default}; diff --git a/app/dubbo-ui/dist/admin/assets/monitor-_tgN0LKd.js b/app/dubbo-ui/dist/admin/assets/monitor-_tgN0LKd.js new file mode 100644 index 00000000..389e3329 --- /dev/null +++ b/app/dubbo-ui/dist/admin/assets/monitor-_tgN0LKd.js @@ -0,0 +1 @@ +import{G as o}from"./GrafanaPage-emfN7XhQ.js";import{d as t,a as s,U as r,r as n,z as c,c as i,b as m,o as _}from"./index-VXjVsiiO.js";import{a as p}from"./instance-dqyT8xOu.js";import"./request-Cs8TyifY.js";const d={class:"__container_ins_monitor"},A=t({__name:"monitor",setup(f){var a;const e=s();return r(c.GRAFANA,n({api:p,showIframe:!1,name:((a=e.params)==null?void 0:a.pathId)+":22222",type:"instance"})),(u,l)=>(_(),i("div",d,[m(o)]))}});export{A as default}; diff --git a/app/dubbo-ui/dist/admin/assets/monitor-f6PTaT1D.js b/app/dubbo-ui/dist/admin/assets/monitor-f6PTaT1D.js new file mode 100644 index 00000000..cc1bd580 --- /dev/null +++ b/app/dubbo-ui/dist/admin/assets/monitor-f6PTaT1D.js @@ -0,0 +1 @@ +import{G as o}from"./GrafanaPage-emfN7XhQ.js";import{c as t}from"./app-tPR0CJiV.js";import{d as r,a as s,U as n,r as p,z as c,c as i,b as m,n as _,o as f}from"./index-VXjVsiiO.js";import"./request-Cs8TyifY.js";const d={class:"__container_app_monitor"},G=r({__name:"monitor",setup(l){var a;const e=s();return n(c.GRAFANA,p({api:t,showIframe:!1,name:(a=e.params)==null?void 0:a.pathId,type:"application"})),(u,h)=>(f(),i("div",d,[m(_(o))]))}});export{G as default}; diff --git a/app/dubbo-ui/dist/admin/assets/monitor-kZ_wOjob.js b/app/dubbo-ui/dist/admin/assets/monitor-kZ_wOjob.js deleted file mode 100644 index 5d78caf5..00000000 --- a/app/dubbo-ui/dist/admin/assets/monitor-kZ_wOjob.js +++ /dev/null @@ -1 +0,0 @@ -import{G as o}from"./GrafanaPage-tT3NMW70.js";import{c as t}from"./app-mdoSebGq.js";import{d as r,a as s,U as n,r as p,z as c,c as i,b as m,n as _,o as f}from"./index-3zDsduUv.js";import"./request-3an337VF.js";const d={class:"__container_app_monitor"},G=r({__name:"monitor",setup(l){var a;const e=s();return n(c.GRAFANA,p({api:t,showIframe:!1,name:(a=e.params)==null?void 0:a.pathId,type:"application"})),(u,h)=>(f(),i("div",d,[m(_(o))]))}});export{G as default}; diff --git a/app/dubbo-ui/dist/admin/assets/monitor-m-tZutaB.js b/app/dubbo-ui/dist/admin/assets/monitor-m-tZutaB.js new file mode 100644 index 00000000..09c88070 --- /dev/null +++ b/app/dubbo-ui/dist/admin/assets/monitor-m-tZutaB.js @@ -0,0 +1 @@ +import{G as o}from"./GrafanaPage-emfN7XhQ.js";import{d as r,a as t,U as s,r as c,z as n,c as i,b as p,o as m}from"./index-VXjVsiiO.js";import{a as _}from"./service-146hGzKC.js";import"./request-Cs8TyifY.js";const d={class:"__container_app_monitor"},A=r({__name:"monitor",setup(f){var e;const a=t();return s(n.GRAFANA,c({api:_,showIframe:!1,name:((e=a.params)==null?void 0:e.pathId)+":22222",type:"service"})),(u,l)=>(m(),i("div",d,[p(o)]))}});export{A as default}; diff --git a/app/dubbo-ui/dist/admin/assets/notFound-hYD9Tscu.js b/app/dubbo-ui/dist/admin/assets/notFound-IlnBM5cq.js similarity index 98% rename from app/dubbo-ui/dist/admin/assets/notFound-hYD9Tscu.js rename to app/dubbo-ui/dist/admin/assets/notFound-IlnBM5cq.js index 2420e989..f6d72be3 100644 --- a/app/dubbo-ui/dist/admin/assets/notFound-hYD9Tscu.js +++ b/app/dubbo-ui/dist/admin/assets/notFound-IlnBM5cq.js @@ -1 +1 @@ -import{d as B,u as w,c,b as e,w as A,e as o,o as g,j as m,n as E,f as r,t as u,_ as h}from"./index-3zDsduUv.js";const I="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAAAoCAMAAACfFQXaAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAACuUExURUdwTDan7xfJ5wzU5jCt8zeo7WZ2+Dip62V391qG9VSJ9YdV/2px9yuz61GN9Htg/BTM5z+e8Htj/G1w+im27EeX8h3C6TSq7oBb/jSq7hDQ5hPM6HFr+lCM9GB9+FqE9wjZ5hPM6DGu7T6h8UOc8n1g/U+Q9Gd2+XVo/F9+93hk/EuU8yy07mtz+iK/7IRY/w7S6BjJ6ohV/yW67APe5mR6+UeY8yi37DWu84Vf/xmiDNwAAAAfdFJOUwC+TtUHJuQUITLlyz8+8WObb5f17OzHkejgbu6zufJfV5qDAAAIpklEQVRYw5WZiXaqyhKGERrBgS0a0TgRnKJGRI3G6Pu/2K3quRs055ZmZy2X29TvV1NXO2GFBU7JSPjaiPE2Xz3xUfq8wK+wgDhPzXfHA2+SnbxB7Prm+1rvZWtNew3rExr1+hs8qKX4xEczpQ80n/+hZtJMEvqjbJTUuqaGWn80GvXxCQ98UhsMo0rvg3E8OTHLsus188b6p7W+lT0ej/VjDfZYv0/bxoe037YHtJ/DD9oO7IP+fFBrhlznv0+0/R6e+9ttdVtxG3W1743U7mCLRb7I0X7BLmBF0Y/DCve9Obg+FxJOoGESB2UBx8dxfVxT+/r62q6/eoEhgPq/QfuRGpSAhi6Aur+/gQIpYLmcBYaAhTBdQ3HxbAjR4DQ/n+ZzoSCjFK6eawk4cv+PQsHX9qulxVHjTfj/gwJ2pv9lAlQBGkJYgv/Le42UBeSLX1DwywRQCX1TgTs5nc9z6X9GBVAJY6ILOFKTBJiCg6bAJsAVCAlPCXAEKGE11AQslkKBFUXFQAc/PlP3mSkEKOAaawKY9w9TwNd22wpNASqCmICP6hDSCLAsoAiWy0YlAXgwYwKKof79c/9lAGWMAGNgE+g1aA3srYX/28OUGCHEFWx2PyaAD1GFuAClAEI/9GtUwOo+1AhIA//zyygK/GHBGEwkgtBDADSCJvAGKL6uJxQgA9cg8Ojw/9ZjCLaoYNspE9CS+EMwsEKIu79f3ZKIONGNI0h8RWBpEABppF8wAoUrvrX4LCLo5PEuEQyumUTgKQHwmDIPOp2pIAAKDq2gTGC3gSaQprvnZVQRgMwls+WKhdAyKhOgSfwLysYMwKU4C1DR5KwIjMdMV3RSMUQRCALf9Ltu017Akxjt0KkgUG9DsLVTvQpVJTFmcRdeS5bCutU5cIlB5iDnOVDERAPAcxi9psWfeFfpP0UgCVBPew+tjFIJPAt0Amk9wKEhfVqFJIBVE945hPBnCO7dUhVCAr931yERrUJIoBiwNwX9syRAa1CGAAMvywwELSMFmACNwPYtVJ2YA9igACesywz4+KzuA/sVeBwmKxFBVQSAQT6AL6lWYB9A/wteH92TTgDLkC6AEsBSyqvQNyVAOAFZhmQalwg4QfpHJwYCCejqqjIq6qiWA5gCOeiK+pfLxaijJD4XGgFQkLk0hHQCHikReEgAVMBh26vIAay37fTjxSzEAIArQe0mCYwcuwrRKjrCOBMAQAJLdTI4WwQmbonANTAJGCHECLxNLQIwSsA4Wm/Wd38SSGAg7LJRYqWlgCKAEZRfQKbfv4gcOA9Y1vlmCmASuKUcuEaVOaAR2G7r/6kPVBG4zeCVGZ/lEIA8NWjD3G/exxqaX+gshBE0VkW0mJcIEEmAKhhX5oBO4IsGvNmJS6OQXYV4FsMfjPgotFIprFchHIUwzgaXX0FAFNGIpYCdA5KAyOKKHGACRA68By9mIe6/VYV4EcIBeraSBGpV43Se4/jp3tWRwHeMIvQsB7JrpgTYOcAAiBCqIiBmoSd9gDUy+Mb9RA6jy8QgIJMAp+zahU/ToECcVcZAoDBygPYB8heBtVmFQEBo9YEN/f6taTQsJ3ESYA29KQUjt1yF8hwmBKihapyWbYCGj9EHjCqUXSsIlPvAGw8hcxb6+XmdA+j/J8Z2ovm/XI2CUh/IRwAgvohxGiVcmM4u5rCRxf+NwKNEIChVoc3OyoGqKpQ0sIaKAwGzYakTYxPz+ywFaBXCUYIIAuf5/5kDFVXo0JJ9YCMI1DvtdruTvjyRYQ0NZvI8YyDQqtAIcnaY6wBwnmZlFACYOaAJ4BHEy+iLPnDg0xzbSohOHBBCwubu1Sz0SQ8CYi8hxtHIJkBrqHakRAVsnvZxmIYYetIHuIToz07MRwm9E7NZyK+/yIHP2wx0z4wzserFWhUCAN1cnemZAhpDOEoUCEAdKiv6gP93H+ioTryRBHAaTV92YjwIUAA3NctBEhCjCuXsIKBCiEYQP9fHeg7Mq3PAezKNan1AjtP2NPqCAOQAHATI8GYT4FksCdwjOAgscl0BavACvpGgZWheNY3KKvpnFZIHGoXgJ51OZ71Ziu4LAcQi0CVwENhbW4mFEkAV5LUAm5jtf9GnnxZMMAH0KhSVQsi1CDid9eNhngf4kTKsH7TN1oc9S8wcU8A/n9ZQtZpb2jmAIcRqqA6AxRCroySeKwJwHrsOAvs8AMcBRYCNzW15qGcE6mJnPLWmUXMzN3TMWQiLS1PuhVQOREQjcKcHgVwKECeyM1+6wTwqCUzGLlvpRjqAsaMR+FZrFa0KiRedzqvN3K5hEvhsQ2zbmzkcJgI9ByiAEfq/UAQuog/QM5naSvAmHsQ6gMBRBI7f770wQOtpBKZqSVx/e76ZmzkmgVkYhLNbaTN3HxqzUD8KgrEE8GtFkGwFc77YQnNxJyE3W66+F3ocH9/frXd8yE52aGnb7s7b083cv4Zj5cAsaZrr6cpZCC8J8lzuFgUB11gt8hjy0CbPVotst/tYH7UUBgWthn4Z0ttoOSBzGBV0HYvAJ/hO91pmH4jsE1meLyz/IQNiYix35WKX+n1SAmJCdAJ0N82Xu+yGYNsyr2nIVE6jBoFd1ykJ2FsXBMsnJzIqgiuwTmRcwUTthcz9eqyt149qu35U54GpfVtCeimvoyhB+J/qdy/mVoIDYP4nbtX9gB5BvxdtLScvOLwz7wNztV3Prt7YuOBAAuujRmC9bbUrbqs6U3Rf+g8K0pmBydoL7Vd7ngFJTQtHezvNqxDM0gO3fMU09E4n/YaDXjH51hUTZDBkMb0igyx4n/bapPLOkHSmqZYDTesmTScgqig8k5p5fcfuyO73nBuLn/6g5lbeVPrjwSTTQsjT3IcW2yhZGAbk2ZUncfx2r54CgnTWa5fuT4n4DJ/90Gf5ntWP6OvwTwS/IvbLh/HpyR8l/jimV32ZF4/Na9b/AZLRNtBnM80jAAAAAElFTkSuQmCC",Q={class:"__container_error_notFound"},V=["src"],G=B({__name:"notFound",setup(i){const s=w(),C=()=>{s.push("/home")};return(t,K)=>{const a=o("a-button"),n=o("a-result");return g(),c("div",Q,[e(n,{class:"result",title:"404","sub-title":t.$t("noPageTip")},{icon:A(()=>[m("img",{src:E(I)},null,8,V)]),extra:A(()=>[e(a,{type:"primary",onClick:C},{default:A(()=>[r(u(t.$t("backHome")),1)]),_:1})]),_:1},8,["sub-title"])])}}}),p=h(G,[["__scopeId","data-v-d64d284c"]]);export{p as default}; +import{d as B,u as w,c,b as e,w as A,e as o,o as g,j as m,n as E,f as r,t as u,_ as h}from"./index-VXjVsiiO.js";const I="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMAAAAAoCAMAAACfFQXaAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAACuUExURUdwTDan7xfJ5wzU5jCt8zeo7WZ2+Dip62V391qG9VSJ9YdV/2px9yuz61GN9Htg/BTM5z+e8Htj/G1w+im27EeX8h3C6TSq7oBb/jSq7hDQ5hPM6HFr+lCM9GB9+FqE9wjZ5hPM6DGu7T6h8UOc8n1g/U+Q9Gd2+XVo/F9+93hk/EuU8yy07mtz+iK/7IRY/w7S6BjJ6ohV/yW67APe5mR6+UeY8yi37DWu84Vf/xmiDNwAAAAfdFJOUwC+TtUHJuQUITLlyz8+8WObb5f17OzHkejgbu6zufJfV5qDAAAIpklEQVRYw5WZiXaqyhKGERrBgS0a0TgRnKJGRI3G6Pu/2K3quRs055ZmZy2X29TvV1NXO2GFBU7JSPjaiPE2Xz3xUfq8wK+wgDhPzXfHA2+SnbxB7Prm+1rvZWtNew3rExr1+hs8qKX4xEczpQ80n/+hZtJMEvqjbJTUuqaGWn80GvXxCQ98UhsMo0rvg3E8OTHLsus188b6p7W+lT0ej/VjDfZYv0/bxoe037YHtJ/DD9oO7IP+fFBrhlznv0+0/R6e+9ttdVtxG3W1743U7mCLRb7I0X7BLmBF0Y/DCve9Obg+FxJOoGESB2UBx8dxfVxT+/r62q6/eoEhgPq/QfuRGpSAhi6Aur+/gQIpYLmcBYaAhTBdQ3HxbAjR4DQ/n+ZzoSCjFK6eawk4cv+PQsHX9qulxVHjTfj/gwJ2pv9lAlQBGkJYgv/Le42UBeSLX1DwywRQCX1TgTs5nc9z6X9GBVAJY6ILOFKTBJiCg6bAJsAVCAlPCXAEKGE11AQslkKBFUXFQAc/PlP3mSkEKOAaawKY9w9TwNd22wpNASqCmICP6hDSCLAsoAiWy0YlAXgwYwKKof79c/9lAGWMAGNgE+g1aA3srYX/28OUGCHEFWx2PyaAD1GFuAClAEI/9GtUwOo+1AhIA//zyygK/GHBGEwkgtBDADSCJvAGKL6uJxQgA9cg8Ojw/9ZjCLaoYNspE9CS+EMwsEKIu79f3ZKIONGNI0h8RWBpEABppF8wAoUrvrX4LCLo5PEuEQyumUTgKQHwmDIPOp2pIAAKDq2gTGC3gSaQprvnZVQRgMwls+WKhdAyKhOgSfwLysYMwKU4C1DR5KwIjMdMV3RSMUQRCALf9Ltu017Akxjt0KkgUG9DsLVTvQpVJTFmcRdeS5bCutU5cIlB5iDnOVDERAPAcxi9psWfeFfpP0UgCVBPew+tjFIJPAt0Amk9wKEhfVqFJIBVE945hPBnCO7dUhVCAr931yERrUJIoBiwNwX9syRAa1CGAAMvywwELSMFmACNwPYtVJ2YA9igACesywz4+KzuA/sVeBwmKxFBVQSAQT6AL6lWYB9A/wteH92TTgDLkC6AEsBSyqvQNyVAOAFZhmQalwg4QfpHJwYCCejqqjIq6qiWA5gCOeiK+pfLxaijJD4XGgFQkLk0hHQCHikReEgAVMBh26vIAay37fTjxSzEAIArQe0mCYwcuwrRKjrCOBMAQAJLdTI4WwQmbonANTAJGCHECLxNLQIwSsA4Wm/Wd38SSGAg7LJRYqWlgCKAEZRfQKbfv4gcOA9Y1vlmCmASuKUcuEaVOaAR2G7r/6kPVBG4zeCVGZ/lEIA8NWjD3G/exxqaX+gshBE0VkW0mJcIEEmAKhhX5oBO4IsGvNmJS6OQXYV4FsMfjPgotFIprFchHIUwzgaXX0FAFNGIpYCdA5KAyOKKHGACRA68By9mIe6/VYV4EcIBeraSBGpV43Se4/jp3tWRwHeMIvQsB7JrpgTYOcAAiBCqIiBmoSd9gDUy+Mb9RA6jy8QgIJMAp+zahU/ToECcVcZAoDBygPYB8heBtVmFQEBo9YEN/f6taTQsJ3ESYA29KQUjt1yF8hwmBKihapyWbYCGj9EHjCqUXSsIlPvAGw8hcxb6+XmdA+j/J8Z2ovm/XI2CUh/IRwAgvohxGiVcmM4u5rCRxf+NwKNEIChVoc3OyoGqKpQ0sIaKAwGzYakTYxPz+ywFaBXCUYIIAuf5/5kDFVXo0JJ9YCMI1DvtdruTvjyRYQ0NZvI8YyDQqtAIcnaY6wBwnmZlFACYOaAJ4BHEy+iLPnDg0xzbSohOHBBCwubu1Sz0SQ8CYi8hxtHIJkBrqHakRAVsnvZxmIYYetIHuIToz07MRwm9E7NZyK+/yIHP2wx0z4wzserFWhUCAN1cnemZAhpDOEoUCEAdKiv6gP93H+ioTryRBHAaTV92YjwIUAA3NctBEhCjCuXsIKBCiEYQP9fHeg7Mq3PAezKNan1AjtP2NPqCAOQAHATI8GYT4FksCdwjOAgscl0BavACvpGgZWheNY3KKvpnFZIHGoXgJ51OZ71Ziu4LAcQi0CVwENhbW4mFEkAV5LUAm5jtf9GnnxZMMAH0KhSVQsi1CDid9eNhngf4kTKsH7TN1oc9S8wcU8A/n9ZQtZpb2jmAIcRqqA6AxRCroySeKwJwHrsOAvs8AMcBRYCNzW15qGcE6mJnPLWmUXMzN3TMWQiLS1PuhVQOREQjcKcHgVwKECeyM1+6wTwqCUzGLlvpRjqAsaMR+FZrFa0KiRedzqvN3K5hEvhsQ2zbmzkcJgI9ByiAEfq/UAQuog/QM5naSvAmHsQ6gMBRBI7f770wQOtpBKZqSVx/e76ZmzkmgVkYhLNbaTN3HxqzUD8KgrEE8GtFkGwFc77YQnNxJyE3W66+F3ocH9/frXd8yE52aGnb7s7b083cv4Zj5cAsaZrr6cpZCC8J8lzuFgUB11gt8hjy0CbPVotst/tYH7UUBgWthn4Z0ttoOSBzGBV0HYvAJ/hO91pmH4jsE1meLyz/IQNiYix35WKX+n1SAmJCdAJ0N82Xu+yGYNsyr2nIVE6jBoFd1ykJ2FsXBMsnJzIqgiuwTmRcwUTthcz9eqyt149qu35U54GpfVtCeimvoyhB+J/qdy/mVoIDYP4nbtX9gB5BvxdtLScvOLwz7wNztV3Prt7YuOBAAuujRmC9bbUrbqs6U3Rf+g8K0pmBydoL7Vd7ngFJTQtHezvNqxDM0gO3fMU09E4n/YaDXjH51hUTZDBkMb0igyx4n/bapPLOkHSmqZYDTesmTScgqig8k5p5fcfuyO73nBuLn/6g5lbeVPrjwSTTQsjT3IcW2yhZGAbk2ZUncfx2r54CgnTWa5fuT4n4DJ/90Gf5ntWP6OvwTwS/IvbLh/HpyR8l/jimV32ZF4/Na9b/AZLRNtBnM80jAAAAAElFTkSuQmCC",Q={class:"__container_error_notFound"},V=["src"],G=B({__name:"notFound",setup(i){const s=w(),C=()=>{s.push("/home")};return(t,K)=>{const a=o("a-button"),n=o("a-result");return g(),c("div",Q,[e(n,{class:"result",title:"404","sub-title":t.$t("noPageTip")},{icon:A(()=>[m("img",{src:E(I)},null,8,V)]),extra:A(()=>[e(a,{type:"primary",onClick:C},{default:A(()=>[r(u(t.$t("backHome")),1)]),_:1})]),_:1},8,["sub-title"])])}}}),p=h(G,[["__scopeId","data-v-d64d284c"]]);export{p as default}; diff --git a/app/dubbo-ui/dist/admin/assets/python-1HHjXB9h.js b/app/dubbo-ui/dist/admin/assets/python-lzE2PGTj.js similarity index 97% rename from app/dubbo-ui/dist/admin/assets/python-1HHjXB9h.js rename to app/dubbo-ui/dist/admin/assets/python-lzE2PGTj.js index c05781d0..982383aa 100644 --- a/app/dubbo-ui/dist/admin/assets/python-1HHjXB9h.js +++ b/app/dubbo-ui/dist/admin/assets/python-lzE2PGTj.js @@ -1,4 +1,4 @@ -import{m as a}from"./js-yaml-eElisXzH.js";import"./index-3zDsduUv.js";/*!----------------------------------------------------------------------------- +import{m as a}from"./js-yaml-EQlPfOK8.js";import"./index-VXjVsiiO.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license diff --git a/app/dubbo-ui/dist/admin/assets/razor-TyEeYTJH.js b/app/dubbo-ui/dist/admin/assets/razor-RxeYPRMK.js similarity index 98% rename from app/dubbo-ui/dist/admin/assets/razor-TyEeYTJH.js rename to app/dubbo-ui/dist/admin/assets/razor-RxeYPRMK.js index b6dbdadf..0a8fcd8d 100644 --- a/app/dubbo-ui/dist/admin/assets/razor-TyEeYTJH.js +++ b/app/dubbo-ui/dist/admin/assets/razor-RxeYPRMK.js @@ -1,4 +1,4 @@ -import{m as s}from"./js-yaml-eElisXzH.js";import"./index-3zDsduUv.js";/*!----------------------------------------------------------------------------- +import{m as s}from"./js-yaml-EQlPfOK8.js";import"./index-VXjVsiiO.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license diff --git a/app/dubbo-ui/dist/admin/assets/request-3an337VF.js b/app/dubbo-ui/dist/admin/assets/request-3an337VF.js deleted file mode 100644 index 6ed2009e..00000000 --- a/app/dubbo-ui/dist/admin/assets/request-3an337VF.js +++ /dev/null @@ -1,7 +0,0 @@ -import{ad as Je,X as $e,ae as We,B as Ve,R as Ke}from"./index-3zDsduUv.js";function ge(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ge}=Object.prototype,{getPrototypeOf:re}=Object,z=(e=>t=>{const n=Ge.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),x=e=>(e=e.toLowerCase(),t=>z(t)===e),J=e=>t=>typeof t===e,{isArray:U}=Array,D=J("undefined");function Xe(e){return e!==null&&!D(e)&&e.constructor!==null&&!D(e.constructor)&&A(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Oe=x("ArrayBuffer");function Qe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Oe(e.buffer),t}const Ze=J("string"),A=J("function"),Ae=J("number"),$=e=>e!==null&&typeof e=="object",Ye=e=>e===!0||e===!1,q=e=>{if(z(e)!=="object")return!1;const t=re(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},et=x("Date"),tt=x("File"),nt=x("Blob"),rt=x("FileList"),st=e=>$(e)&&A(e.pipe),ot=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||A(e.append)&&((t=z(e))==="formdata"||t==="object"&&A(e.toString)&&e.toString()==="[object FormData]"))},it=x("URLSearchParams"),at=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function j(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),U(e))for(r=0,s=e.length;r0;)if(s=n[r],t===s.toLowerCase())return s;return null}const Pe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ne=e=>!D(e)&&e!==Pe;function Z(){const{caseless:e}=Ne(this)&&this||{},t={},n=(r,s)=>{const o=e&&Te(t,s)||s;q(t[o])&&q(r)?t[o]=Z(t[o],r):q(r)?t[o]=Z({},r):U(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r(j(t,(s,o)=>{n&&A(s)?e[o]=ge(s,n):e[o]=s},{allOwnKeys:r}),e),ut=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),lt=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},ft=(e,t,n,r)=>{let s,o,i;const f={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!f[i]&&(t[i]=e[i],f[i]=!0);e=n!==!1&&re(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},dt=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},pt=e=>{if(!e)return null;if(U(e))return e;let t=e.length;if(!Ae(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},ht=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&re(Uint8Array)),mt=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},yt=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},bt=x("HTMLFormElement"),Et=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),le=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),St=x("RegExp"),xe=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};j(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},wt=e=>{xe(e,(t,n)=>{if(A(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(A(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Rt=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return U(e)?r(e):r(String(e).split(t)),n},gt=()=>{},Ot=(e,t)=>(e=+e,Number.isFinite(e)?e:t),K="abcdefghijklmnopqrstuvwxyz",fe="0123456789",Ce={DIGIT:fe,ALPHA:K,ALPHA_DIGIT:K+K.toUpperCase()+fe},At=(e=16,t=Ce.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Tt(e){return!!(e&&A(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Pt=e=>{const t=new Array(10),n=(r,s)=>{if($(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=U(r)?[]:{};return j(r,(i,f)=>{const h=n(i,s+1);!D(h)&&(o[f]=h)}),t[s]=void 0,o}}return r};return n(e,0)},Nt=x("AsyncFunction"),xt=e=>e&&($(e)||A(e))&&A(e.then)&&A(e.catch),c={isArray:U,isArrayBuffer:Oe,isBuffer:Xe,isFormData:ot,isArrayBufferView:Qe,isString:Ze,isNumber:Ae,isBoolean:Ye,isObject:$,isPlainObject:q,isUndefined:D,isDate:et,isFile:tt,isBlob:nt,isRegExp:St,isFunction:A,isStream:st,isURLSearchParams:it,isTypedArray:ht,isFileList:rt,forEach:j,merge:Z,extend:ct,trim:at,stripBOM:ut,inherits:lt,toFlatObject:ft,kindOf:z,kindOfTest:x,endsWith:dt,toArray:pt,forEachEntry:mt,matchAll:yt,isHTMLForm:bt,hasOwnProperty:le,hasOwnProp:le,reduceDescriptors:xe,freezeMethods:wt,toObjectSet:Rt,toCamelCase:Et,noop:gt,toFiniteNumber:Ot,findKey:Te,global:Pe,isContextDefined:Ne,ALPHABET:Ce,generateString:At,isSpecCompliantForm:Tt,toJSONObject:Pt,isAsyncFn:Nt,isThenable:xt};function y(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}c.inherits(y,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:c.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Fe=y.prototype,_e={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{_e[e]={value:e}});Object.defineProperties(y,_e);Object.defineProperty(Fe,"isAxiosError",{value:!0});y.from=(e,t,n,r,s,o)=>{const i=Object.create(Fe);return c.toFlatObject(e,i,function(h){return h!==Error.prototype},f=>f!=="isAxiosError"),y.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const Ct=null;function Y(e){return c.isPlainObject(e)||c.isArray(e)}function ke(e){return c.endsWith(e,"[]")?e.slice(0,-2):e}function de(e,t,n){return e?e.concat(t).map(function(s,o){return s=ke(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function Ft(e){return c.isArray(e)&&!e.some(Y)}const _t=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function W(e,t,n){if(!c.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=c.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(u,p){return!c.isUndefined(p[u])});const r=n.metaTokens,s=n.visitor||d,o=n.dots,i=n.indexes,h=(n.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(t);if(!c.isFunction(s))throw new TypeError("visitor must be a function");function m(a){if(a===null)return"";if(c.isDate(a))return a.toISOString();if(!h&&c.isBlob(a))throw new y("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(a)||c.isTypedArray(a)?h&&typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function d(a,u,p){let b=a;if(a&&!p&&typeof a=="object"){if(c.endsWith(u,"{}"))u=r?u:u.slice(0,-2),a=JSON.stringify(a);else if(c.isArray(a)&&Ft(a)||(c.isFileList(a)||c.endsWith(u,"[]"))&&(b=c.toArray(a)))return u=ke(u),b.forEach(function(g,E){!(c.isUndefined(g)||g===null)&&t.append(i===!0?de([u],E,o):i===null?u:u+"[]",m(g))}),!1}return Y(a)?!0:(t.append(de(p,u,o),m(a)),!1)}const l=[],S=Object.assign(_t,{defaultVisitor:d,convertValue:m,isVisitable:Y});function O(a,u){if(!c.isUndefined(a)){if(l.indexOf(a)!==-1)throw Error("Circular reference detected in "+u.join("."));l.push(a),c.forEach(a,function(b,w){(!(c.isUndefined(b)||b===null)&&s.call(t,b,c.isString(w)?w.trim():w,u,S))===!0&&O(b,u?u.concat(w):[w])}),l.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return O(e),t}function pe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function se(e,t){this._pairs=[],e&&W(e,this,t)}const Be=se.prototype;Be.append=function(t,n){this._pairs.push([t,n])};Be.toString=function(t){const n=t?function(r){return t.call(this,r,pe)}:pe;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function kt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ue(e,t,n){if(!t)return e;const r=n&&n.encode||kt,s=n&&n.serialize;let o;if(s?o=s(t,n):o=c.isURLSearchParams(t)?t.toString():new se(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class he{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){c.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Le={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Bt=typeof URLSearchParams<"u"?URLSearchParams:se,Ut=typeof FormData<"u"?FormData:null,Lt=typeof Blob<"u"?Blob:null,Dt={isBrowser:!0,classes:{URLSearchParams:Bt,FormData:Ut,Blob:Lt},protocols:["http","https","file","blob","url","data"]},De=typeof window<"u"&&typeof document<"u",jt=(e=>De&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),vt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",qt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:De,hasStandardBrowserEnv:jt,hasStandardBrowserWebWorkerEnv:vt},Symbol.toStringTag,{value:"Module"})),N={...qt,...Dt};function Mt(e,t){return W(e,new N.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return N.isNode&&c.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function Ht(e){return c.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function It(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r=n.length;return i=!i&&c.isArray(s)?s.length:i,h?(c.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!f):((!s[i]||!c.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&c.isArray(s[i])&&(s[i]=It(s[i])),!f)}if(c.isFormData(e)&&c.isFunction(e.entries)){const n={};return c.forEachEntry(e,(r,s)=>{t(Ht(r),s,n,0)}),n}return null}function zt(e,t,n){if(c.isString(e))try{return(t||JSON.parse)(e),c.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const oe={transitional:Le,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=c.isObject(t);if(o&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return s?JSON.stringify(je(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t))return t;if(c.isArrayBufferView(t))return t.buffer;if(c.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let f;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Mt(t,this.formSerializer).toString();if((f=c.isFileList(t))||r.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return W(f?{"files[]":t}:t,h&&new h,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),zt(t)):t}],transformResponse:[function(t){const n=this.transitional||oe.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&c.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(f){if(i)throw f.name==="SyntaxError"?y.from(f,y.ERR_BAD_RESPONSE,this,null,this.response):f}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:N.classes.FormData,Blob:N.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(["delete","get","head","post","put","patch"],e=>{oe.headers[e]={}});const ie=oe,Jt=c.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),$t=e=>{const t={};let n,r,s;return e&&e.split(` -`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&Jt[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},me=Symbol("internals");function L(e){return e&&String(e).trim().toLowerCase()}function M(e){return e===!1||e==null?e:c.isArray(e)?e.map(M):String(e)}function Wt(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Vt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function G(e,t,n,r,s){if(c.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!c.isString(t)){if(c.isString(r))return t.indexOf(r)!==-1;if(c.isRegExp(r))return r.test(t)}}function Kt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Gt(e,t){const n=c.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}class V{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(f,h,m){const d=L(h);if(!d)throw new Error("header name must be a non-empty string");const l=c.findKey(s,d);(!l||s[l]===void 0||m===!0||m===void 0&&s[l]!==!1)&&(s[l||h]=M(f))}const i=(f,h)=>c.forEach(f,(m,d)=>o(m,d,h));return c.isPlainObject(t)||t instanceof this.constructor?i(t,n):c.isString(t)&&(t=t.trim())&&!Vt(t)?i($t(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=L(t),t){const r=c.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return Wt(s);if(c.isFunction(n))return n.call(this,s,r);if(c.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=L(t),t){const r=c.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||G(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=L(i),i){const f=c.findKey(r,i);f&&(!n||G(r,r[f],f,n))&&(delete r[f],s=!0)}}return c.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||G(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return c.forEach(this,(s,o)=>{const i=c.findKey(r,o);if(i){n[i]=M(s),delete n[o];return}const f=t?Kt(o):String(o).trim();f!==o&&delete n[o],n[f]=M(s),r[f]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return c.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&c.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[me]=this[me]={accessors:{}}).accessors,s=this.prototype;function o(i){const f=L(i);r[f]||(Gt(s,i),r[f]=!0)}return c.isArray(t)?t.forEach(o):o(t),this}}V.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);c.reduceDescriptors(V.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});c.freezeMethods(V);const C=V;function X(e,t){const n=this||ie,r=t||n,s=C.from(r.headers);let o=r.data;return c.forEach(e,function(f){o=f.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function ve(e){return!!(e&&e.__CANCEL__)}function v(e,t,n){y.call(this,e??"canceled",y.ERR_CANCELED,t,n),this.name="CanceledError"}c.inherits(v,y,{__CANCEL__:!0});function Xt(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new y("Request failed with status code "+n.status,[y.ERR_BAD_REQUEST,y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Qt=N.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];c.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),c.isString(r)&&i.push("path="+r),c.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Zt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Yt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function qe(e,t){return e&&!Zt(t)?Yt(e,t):t}const en=N.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(i){const f=c.isString(i)?s(i):i;return f.protocol===r.protocol&&f.host===r.host}}():function(){return function(){return!0}}();function tn(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function nn(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(h){const m=Date.now(),d=r[o];i||(i=m),n[s]=h,r[s]=m;let l=o,S=0;for(;l!==s;)S+=n[l++],l=l%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),m-i{const o=s.loaded,i=s.lengthComputable?s.total:void 0,f=o-n,h=r(f),m=o<=i;n=o;const d={loaded:o,total:i,progress:i?o/i:void 0,bytes:f,rate:h||void 0,estimated:h&&i&&m?(i-o)/h:void 0,event:s};d[t?"download":"upload"]=!0,e(d)}}const rn=typeof XMLHttpRequest<"u",sn=rn&&function(e){return new Promise(function(n,r){let s=e.data;const o=C.from(e.headers).normalize();let{responseType:i,withXSRFToken:f}=e,h;function m(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}let d;if(c.isFormData(s)){if(N.hasStandardBrowserEnv||N.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((d=o.getContentType())!==!1){const[u,...p]=d?d.split(";").map(b=>b.trim()).filter(Boolean):[];o.setContentType([u||"multipart/form-data",...p].join("; "))}}let l=new XMLHttpRequest;if(e.auth){const u=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(u+":"+p))}const S=qe(e.baseURL,e.url);l.open(e.method.toUpperCase(),Ue(S,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function O(){if(!l)return;const u=C.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),b={data:!i||i==="text"||i==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:u,config:e,request:l};Xt(function(g){n(g),m()},function(g){r(g),m()},b),l=null}if("onloadend"in l?l.onloadend=O:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(O)},l.onabort=function(){l&&(r(new y("Request aborted",y.ECONNABORTED,e,l)),l=null)},l.onerror=function(){r(new y("Network Error",y.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let p=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const b=e.transitional||Le;e.timeoutErrorMessage&&(p=e.timeoutErrorMessage),r(new y(p,b.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,e,l)),l=null},N.hasStandardBrowserEnv&&(f&&c.isFunction(f)&&(f=f(e)),f||f!==!1&&en(S))){const u=e.xsrfHeaderName&&e.xsrfCookieName&&Qt.read(e.xsrfCookieName);u&&o.set(e.xsrfHeaderName,u)}s===void 0&&o.setContentType(null),"setRequestHeader"in l&&c.forEach(o.toJSON(),function(p,b){l.setRequestHeader(b,p)}),c.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),i&&i!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",ye(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",ye(e.onUploadProgress)),(e.cancelToken||e.signal)&&(h=u=>{l&&(r(!u||u.type?new v(null,e,l):u),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h)));const a=tn(S);if(a&&N.protocols.indexOf(a)===-1){r(new y("Unsupported protocol "+a+":",y.ERR_BAD_REQUEST,e));return}l.send(s||null)})},ee={http:Ct,xhr:sn};c.forEach(ee,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const be=e=>`- ${e}`,on=e=>c.isFunction(e)||e===null||e===!1,Me={getAdapter:e=>{e=c.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o`adapter ${f} `+(h===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since : -`+o.map(be).join(` -`):" "+be(o[0]):"as no adapter specified";throw new y("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:ee};function Q(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new v(null,e)}function Ee(e){return Q(e),e.headers=C.from(e.headers),e.data=X.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Me.getAdapter(e.adapter||ie.adapter)(e).then(function(r){return Q(e),r.data=X.call(e,e.transformResponse,r),r.headers=C.from(r.headers),r},function(r){return ve(r)||(Q(e),r&&r.response&&(r.response.data=X.call(e,e.transformResponse,r.response),r.response.headers=C.from(r.response.headers))),Promise.reject(r)})}const Se=e=>e instanceof C?e.toJSON():e;function B(e,t){t=t||{};const n={};function r(m,d,l){return c.isPlainObject(m)&&c.isPlainObject(d)?c.merge.call({caseless:l},m,d):c.isPlainObject(d)?c.merge({},d):c.isArray(d)?d.slice():d}function s(m,d,l){if(c.isUndefined(d)){if(!c.isUndefined(m))return r(void 0,m,l)}else return r(m,d,l)}function o(m,d){if(!c.isUndefined(d))return r(void 0,d)}function i(m,d){if(c.isUndefined(d)){if(!c.isUndefined(m))return r(void 0,m)}else return r(void 0,d)}function f(m,d,l){if(l in t)return r(m,d);if(l in e)return r(void 0,m)}const h={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:f,headers:(m,d)=>s(Se(m),Se(d),!0)};return c.forEach(Object.keys(Object.assign({},e,t)),function(d){const l=h[d]||s,S=l(e[d],t[d],d);c.isUndefined(S)&&l!==f||(n[d]=S)}),n}const He="1.6.7",ae={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ae[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const we={};ae.transitional=function(t,n,r){function s(o,i){return"[Axios v"+He+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,f)=>{if(t===!1)throw new y(s(i," has been removed"+(n?" in "+n:"")),y.ERR_DEPRECATED);return n&&!we[i]&&(we[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,f):!0}};function an(e,t,n){if(typeof e!="object")throw new y("options must be an object",y.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const f=e[o],h=f===void 0||i(f,o,e);if(h!==!0)throw new y("option "+o+" must be "+h,y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new y("Unknown option "+o,y.ERR_BAD_OPTION)}}const te={assertOptions:an,validators:ae},F=te.validators;class I{constructor(t){this.defaults=t,this.interceptors={request:new he,response:new he}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+o):r.stack=o}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=B(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&te.assertOptions(r,{silentJSONParsing:F.transitional(F.boolean),forcedJSONParsing:F.transitional(F.boolean),clarifyTimeoutError:F.transitional(F.boolean)},!1),s!=null&&(c.isFunction(s)?n.paramsSerializer={serialize:s}:te.assertOptions(s,{encode:F.function,serialize:F.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&c.merge(o.common,o[n.method]);o&&c.forEach(["delete","get","head","post","put","patch","common"],a=>{delete o[a]}),n.headers=C.concat(i,o);const f=[];let h=!0;this.interceptors.request.forEach(function(u){typeof u.runWhen=="function"&&u.runWhen(n)===!1||(h=h&&u.synchronous,f.unshift(u.fulfilled,u.rejected))});const m=[];this.interceptors.response.forEach(function(u){m.push(u.fulfilled,u.rejected)});let d,l=0,S;if(!h){const a=[Ee.bind(this),void 0];for(a.unshift.apply(a,f),a.push.apply(a,m),S=a.length,d=Promise.resolve(n);l{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(f=>{r.subscribe(f),o=f}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,f){r.reason||(r.reason=new v(o,i,f),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new ce(function(s){t=s}),cancel:t}}}const cn=ce;function un(e){return function(n){return e.apply(null,n)}}function ln(e){return c.isObject(e)&&e.isAxiosError===!0}const ne={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ne).forEach(([e,t])=>{ne[t]=e});const fn=ne;function Ie(e){const t=new H(e),n=ge(H.prototype.request,t);return c.extend(n,H.prototype,t,{allOwnKeys:!0}),c.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Ie(B(e,s))},n}const R=Ie(ie);R.Axios=H;R.CanceledError=v;R.CancelToken=cn;R.isCancel=ve;R.VERSION=He;R.toFormData=W;R.AxiosError=y;R.Cancel=R.CanceledError;R.all=function(t){return Promise.all(t)};R.spread=un;R.isAxiosError=ln;R.mergeConfig=B;R.AxiosHeaders=C;R.formToJSON=e=>je(c.isHTMLForm(e)?new FormData(e):e);R.getAdapter=Me.getAdapter;R.HttpStatusCode=fn;R.default=R;var ze={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress - * @license MIT */(function(e,t){(function(n,r){e.exports=r()})(Je,function(){var n={};n.version="0.2.0";var r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
    '};n.configure=function(a){var u,p;for(u in a)p=a[u],p!==void 0&&a.hasOwnProperty(u)&&(r[u]=p);return this},n.status=null,n.set=function(a){var u=n.isStarted();a=s(a,r.minimum,1),n.status=a===1?null:a;var p=n.render(!u),b=p.querySelector(r.barSelector),w=r.speed,g=r.easing;return p.offsetWidth,f(function(E){r.positionUsing===""&&(r.positionUsing=n.getPositioningCSS()),h(b,i(a,w,g)),a===1?(h(p,{transition:"none",opacity:1}),p.offsetWidth,setTimeout(function(){h(p,{transition:"all "+w+"ms linear",opacity:0}),setTimeout(function(){n.remove(),E()},w)},w)):setTimeout(E,w)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var a=function(){setTimeout(function(){n.status&&(n.trickle(),a())},r.trickleSpeed)};return r.trickle&&a(),this},n.done=function(a){return!a&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(a){var u=n.status;return u?(typeof a!="number"&&(a=(1-u)*s(Math.random()*u,.1,.95)),u=s(u+a,0,.994),n.set(u)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},function(){var a=0,u=0;n.promise=function(p){return!p||p.state()==="resolved"?this:(u===0&&n.start(),a++,u++,p.always(function(){u--,u===0?(a=0,n.done()):n.set((a-u)/a)}),this)}}(),n.render=function(a){if(n.isRendered())return document.getElementById("nprogress");d(document.documentElement,"nprogress-busy");var u=document.createElement("div");u.id="nprogress",u.innerHTML=r.template;var p=u.querySelector(r.barSelector),b=a?"-100":o(n.status||0),w=document.querySelector(r.parent),g;return h(p,{transition:"all 0 linear",transform:"translate3d("+b+"%,0,0)"}),r.showSpinner||(g=u.querySelector(r.spinnerSelector),g&&O(g)),w!=document.body&&d(w,"nprogress-custom-parent"),w.appendChild(u),u},n.remove=function(){l(document.documentElement,"nprogress-busy"),l(document.querySelector(r.parent),"nprogress-custom-parent");var a=document.getElementById("nprogress");a&&O(a)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var a=document.body.style,u="WebkitTransform"in a?"Webkit":"MozTransform"in a?"Moz":"msTransform"in a?"ms":"OTransform"in a?"O":"";return u+"Perspective"in a?"translate3d":u+"Transform"in a?"translate":"margin"};function s(a,u,p){return ap?p:a}function o(a){return(-1+a)*100}function i(a,u,p){var b;return r.positionUsing==="translate3d"?b={transform:"translate3d("+o(a)+"%,0,0)"}:r.positionUsing==="translate"?b={transform:"translate("+o(a)+"%,0)"}:b={"margin-left":o(a)+"%"},b.transition="all "+u+"ms "+p,b}var f=function(){var a=[];function u(){var p=a.shift();p&&p(u)}return function(p){a.push(p),a.length==1&&u()}}(),h=function(){var a=["Webkit","O","Moz","ms"],u={};function p(E){return E.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(T,P){return P.toUpperCase()})}function b(E){var T=document.body.style;if(E in T)return E;for(var P=a.length,k=E.charAt(0).toUpperCase()+E.slice(1),_;P--;)if(_=a[P]+k,_ in T)return _;return E}function w(E){return E=p(E),u[E]||(u[E]=b(E))}function g(E,T,P){T=w(T),E.style[T]=P}return function(E,T){var P=arguments,k,_;if(P.length==2)for(k in T)_=T[k],_!==void 0&&T.hasOwnProperty(k)&&g(E,k,_);else g(E,P[1],P[2])}}();function m(a,u){var p=typeof a=="string"?a:S(a);return p.indexOf(" "+u+" ")>=0}function d(a,u){var p=S(a),b=p+u;m(p,u)||(a.className=b.substring(1))}function l(a,u){var p=S(a),b;m(a,u)&&(b=p.replace(" "+u+" "," "),a.className=b.substring(1,b.length-1))}function S(a){return(" "+(a.className||"")+" ").replace(/\s+/gi," ")}function O(a){a&&a.parentNode&&a.parentNode.removeChild(a)}return n})})(ze);var dn=ze.exports;const Re=$e(dn),pn=We("mesh",{state:()=>({mesh:Ve("")}),persist:!0}),ue=R.create({baseURL:"/api/v1",timeout:30*1e3}),hn=ue.interceptors.request,mn=ue.interceptors.response;hn.use(e=>{e.headers||(e.headers={}),e.headers["Content-Type"]||(e.headers["Content-Type"]="application/json",e.data=JSON.stringify(e.data)),e.params||(e.params={});const{mesh:t}=pn();return e.params.mesh=t,e},e=>{Promise.reject(e)});mn.use(e=>{if(Re.done(),e.status===200&&e.data.code==="Success")return Promise.resolve(e.data);e.status===401&&Ke();const t=`${e.data.code}:${e.data.message}`;return message.error(t),console.error(t),Promise.reject(e.data)},e=>{var t,n;if(Re.done(),(t=e.response)!=null&&t.data){const r=`${e.response.data.code}:${e.response.data.message}`;message.error(r),console.error(r)}else message.error("NetworkError:请求失败,请检查网络连接"),console.error(e);return Promise.reject((n=e.response)==null?void 0:n.data)});const bn=ue;export{bn as r,pn as u}; diff --git a/app/dubbo-ui/dist/admin/assets/request-Cs8TyifY.js b/app/dubbo-ui/dist/admin/assets/request-Cs8TyifY.js new file mode 100644 index 00000000..274ecf20 --- /dev/null +++ b/app/dubbo-ui/dist/admin/assets/request-Cs8TyifY.js @@ -0,0 +1,7 @@ +import{ad as We,X as Ve,ae as Ke,B as Ge,m as K,R as Xe,Y as fe}from"./index-VXjVsiiO.js";function Ae(e,t){return function(){return e.apply(t,arguments)}}const{toString:Qe}=Object.prototype,{getPrototypeOf:se}=Object,z=(e=>t=>{const n=Qe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),x=e=>(e=e.toLowerCase(),t=>z(t)===e),J=e=>t=>typeof t===e,{isArray:B}=Array,D=J("undefined");function Ye(e){return e!==null&&!D(e)&&e.constructor!==null&&!D(e.constructor)&&A(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Te=x("ArrayBuffer");function Ze(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Te(e.buffer),t}const et=J("string"),A=J("function"),Pe=J("number"),$=e=>e!==null&&typeof e=="object",tt=e=>e===!0||e===!1,q=e=>{if(z(e)!=="object")return!1;const t=se(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},nt=x("Date"),rt=x("File"),st=x("Blob"),ot=x("FileList"),it=e=>$(e)&&A(e.pipe),at=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||A(e.append)&&((t=z(e))==="formdata"||t==="object"&&A(e.toString)&&e.toString()==="[object FormData]"))},ct=x("URLSearchParams"),ut=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function j(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),B(e))for(r=0,s=e.length;r0;)if(s=n[r],t===s.toLowerCase())return s;return null}const xe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ce=e=>!D(e)&&e!==xe;function Z(){const{caseless:e}=Ce(this)&&this||{},t={},n=(r,s)=>{const o=e&&Ne(t,s)||s;q(t[o])&&q(r)?t[o]=Z(t[o],r):q(r)?t[o]=Z({},r):B(r)?t[o]=r.slice():t[o]=r};for(let r=0,s=arguments.length;r(j(t,(s,o)=>{n&&A(s)?e[o]=Ae(s,n):e[o]=s},{allOwnKeys:r}),e),ft=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),dt=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},pt=(e,t,n,r)=>{let s,o,i;const l={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),o=s.length;o-- >0;)i=s[o],(!r||r(i,e,t))&&!l[i]&&(t[i]=e[i],l[i]=!0);e=n!==!1&&se(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ht=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},mt=e=>{if(!e)return null;if(B(e))return e;let t=e.length;if(!Pe(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},yt=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&se(Uint8Array)),bt=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const o=s.value;t.call(e,o[0],o[1])}},wt=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Et=x("HTMLFormElement"),St=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),de=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Rt=x("RegExp"),Fe=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};j(n,(s,o)=>{let i;(i=t(s,o,e))!==!1&&(r[o]=i||s)}),Object.defineProperties(e,r)},gt=e=>{Fe(e,(t,n)=>{if(A(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(A(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Ot=(e,t)=>{const n={},r=s=>{s.forEach(o=>{n[o]=!0})};return B(e)?r(e):r(String(e).split(t)),n},At=()=>{},Tt=(e,t)=>(e=+e,Number.isFinite(e)?e:t),G="abcdefghijklmnopqrstuvwxyz",pe="0123456789",_e={DIGIT:pe,ALPHA:G,ALPHA_DIGIT:G+G.toUpperCase()+pe},Pt=(e=16,t=_e.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Nt(e){return!!(e&&A(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const xt=e=>{const t=new Array(10),n=(r,s)=>{if($(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const o=B(r)?[]:{};return j(r,(i,l)=>{const h=n(i,s+1);!D(h)&&(o[l]=h)}),t[s]=void 0,o}}return r};return n(e,0)},Ct=x("AsyncFunction"),Ft=e=>e&&($(e)||A(e))&&A(e.then)&&A(e.catch),c={isArray:B,isArrayBuffer:Te,isBuffer:Ye,isFormData:at,isArrayBufferView:Ze,isString:et,isNumber:Pe,isBoolean:tt,isObject:$,isPlainObject:q,isUndefined:D,isDate:nt,isFile:rt,isBlob:st,isRegExp:Rt,isFunction:A,isStream:it,isURLSearchParams:ct,isTypedArray:yt,isFileList:ot,forEach:j,merge:Z,extend:lt,trim:ut,stripBOM:ft,inherits:dt,toFlatObject:pt,kindOf:z,kindOfTest:x,endsWith:ht,toArray:mt,forEachEntry:bt,matchAll:wt,isHTMLForm:Et,hasOwnProperty:de,hasOwnProp:de,reduceDescriptors:Fe,freezeMethods:gt,toObjectSet:Ot,toCamelCase:St,noop:At,toFiniteNumber:Tt,findKey:Ne,global:xe,isContextDefined:Ce,ALPHABET:_e,generateString:Pt,isSpecCompliantForm:Nt,toJSONObject:xt,isAsyncFn:Ct,isThenable:Ft};function y(e,t,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}c.inherits(y,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:c.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ue=y.prototype,ke={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{ke[e]={value:e}});Object.defineProperties(y,ke);Object.defineProperty(Ue,"isAxiosError",{value:!0});y.from=(e,t,n,r,s,o)=>{const i=Object.create(Ue);return c.toFlatObject(e,i,function(h){return h!==Error.prototype},l=>l!=="isAxiosError"),y.call(i,e.message,t,n,r,s),i.cause=e,i.name=e.name,o&&Object.assign(i,o),i};const _t=null;function ee(e){return c.isPlainObject(e)||c.isArray(e)}function Be(e){return c.endsWith(e,"[]")?e.slice(0,-2):e}function he(e,t,n){return e?e.concat(t).map(function(s,o){return s=Be(s),!n&&o?"["+s+"]":s}).join(n?".":""):t}function Ut(e){return c.isArray(e)&&!e.some(ee)}const kt=c.toFlatObject(c,{},null,function(t){return/^is[A-Z]/.test(t)});function W(e,t,n){if(!c.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=c.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(u,p){return!c.isUndefined(p[u])});const r=n.metaTokens,s=n.visitor||d,o=n.dots,i=n.indexes,h=(n.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(t);if(!c.isFunction(s))throw new TypeError("visitor must be a function");function m(a){if(a===null)return"";if(c.isDate(a))return a.toISOString();if(!h&&c.isBlob(a))throw new y("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(a)||c.isTypedArray(a)?h&&typeof Blob=="function"?new Blob([a]):Buffer.from(a):a}function d(a,u,p){let b=a;if(a&&!p&&typeof a=="object"){if(c.endsWith(u,"{}"))u=r?u:u.slice(0,-2),a=JSON.stringify(a);else if(c.isArray(a)&&Ut(a)||(c.isFileList(a)||c.endsWith(u,"[]"))&&(b=c.toArray(a)))return u=Be(u),b.forEach(function(g,w){!(c.isUndefined(g)||g===null)&&t.append(i===!0?he([u],w,o):i===null?u:u+"[]",m(g))}),!1}return ee(a)?!0:(t.append(he(p,u,o),m(a)),!1)}const f=[],E=Object.assign(kt,{defaultVisitor:d,convertValue:m,isVisitable:ee});function O(a,u){if(!c.isUndefined(a)){if(f.indexOf(a)!==-1)throw Error("Circular reference detected in "+u.join("."));f.push(a),c.forEach(a,function(b,S){(!(c.isUndefined(b)||b===null)&&s.call(t,b,c.isString(S)?S.trim():S,u,E))===!0&&O(b,u?u.concat(S):[S])}),f.pop()}}if(!c.isObject(e))throw new TypeError("data must be an object");return O(e),t}function me(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function oe(e,t){this._pairs=[],e&&W(e,this,t)}const Le=oe.prototype;Le.append=function(t,n){this._pairs.push([t,n])};Le.toString=function(t){const n=t?function(r){return t.call(this,r,me)}:me;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function Bt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function De(e,t,n){if(!t)return e;const r=n&&n.encode||Bt,s=n&&n.serialize;let o;if(s?o=s(t,n):o=c.isURLSearchParams(t)?t.toString():new oe(t,n).toString(r),o){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class ye{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){c.forEach(this.handlers,function(r){r!==null&&t(r)})}}const je={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Lt=typeof URLSearchParams<"u"?URLSearchParams:oe,Dt=typeof FormData<"u"?FormData:null,jt=typeof Blob<"u"?Blob:null,vt={isBrowser:!0,classes:{URLSearchParams:Lt,FormData:Dt,Blob:jt},protocols:["http","https","file","blob","url","data"]},ve=typeof window<"u"&&typeof document<"u",qt=(e=>ve&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Mt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ht=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ve,hasStandardBrowserEnv:qt,hasStandardBrowserWebWorkerEnv:Mt},Symbol.toStringTag,{value:"Module"})),N={...Ht,...vt};function It(e,t){return W(e,new N.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,o){return N.isNode&&c.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function zt(e){return c.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Jt(e){const t={},n=Object.keys(e);let r;const s=n.length;let o;for(r=0;r=n.length;return i=!i&&c.isArray(s)?s.length:i,h?(c.hasOwnProp(s,i)?s[i]=[s[i],r]:s[i]=r,!l):((!s[i]||!c.isObject(s[i]))&&(s[i]=[]),t(n,r,s[i],o)&&c.isArray(s[i])&&(s[i]=Jt(s[i])),!l)}if(c.isFormData(e)&&c.isFunction(e.entries)){const n={};return c.forEachEntry(e,(r,s)=>{t(zt(r),s,n,0)}),n}return null}function $t(e,t,n){if(c.isString(e))try{return(t||JSON.parse)(e),c.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ie={transitional:je,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,o=c.isObject(t);if(o&&c.isHTMLForm(t)&&(t=new FormData(t)),c.isFormData(t))return s?JSON.stringify(qe(t)):t;if(c.isArrayBuffer(t)||c.isBuffer(t)||c.isStream(t)||c.isFile(t)||c.isBlob(t))return t;if(c.isArrayBufferView(t))return t.buffer;if(c.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return It(t,this.formSerializer).toString();if((l=c.isFileList(t))||r.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return W(l?{"files[]":t}:t,h&&new h,this.formSerializer)}}return o||s?(n.setContentType("application/json",!1),$t(t)):t}],transformResponse:[function(t){const n=this.transitional||ie.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(t&&c.isString(t)&&(r&&!this.responseType||s)){const i=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(l){if(i)throw l.name==="SyntaxError"?y.from(l,y.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:N.classes.FormData,Blob:N.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(["delete","get","head","post","put","patch"],e=>{ie.headers[e]={}});const ae=ie,Wt=c.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Vt=e=>{const t={};let n,r,s;return e&&e.split(` +`).forEach(function(i){s=i.indexOf(":"),n=i.substring(0,s).trim().toLowerCase(),r=i.substring(s+1).trim(),!(!n||t[n]&&Wt[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},be=Symbol("internals");function L(e){return e&&String(e).trim().toLowerCase()}function M(e){return e===!1||e==null?e:c.isArray(e)?e.map(M):String(e)}function Kt(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Gt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function X(e,t,n,r,s){if(c.isFunction(r))return r.call(this,t,n);if(s&&(t=n),!!c.isString(t)){if(c.isString(r))return t.indexOf(r)!==-1;if(c.isRegExp(r))return r.test(t)}}function Xt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Qt(e,t){const n=c.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(s,o,i){return this[r].call(this,t,s,o,i)},configurable:!0})})}class V{constructor(t){t&&this.set(t)}set(t,n,r){const s=this;function o(l,h,m){const d=L(h);if(!d)throw new Error("header name must be a non-empty string");const f=c.findKey(s,d);(!f||s[f]===void 0||m===!0||m===void 0&&s[f]!==!1)&&(s[f||h]=M(l))}const i=(l,h)=>c.forEach(l,(m,d)=>o(m,d,h));return c.isPlainObject(t)||t instanceof this.constructor?i(t,n):c.isString(t)&&(t=t.trim())&&!Gt(t)?i(Vt(t),n):t!=null&&o(n,t,r),this}get(t,n){if(t=L(t),t){const r=c.findKey(this,t);if(r){const s=this[r];if(!n)return s;if(n===!0)return Kt(s);if(c.isFunction(n))return n.call(this,s,r);if(c.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=L(t),t){const r=c.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||X(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let s=!1;function o(i){if(i=L(i),i){const l=c.findKey(r,i);l&&(!n||X(r,r[l],l,n))&&(delete r[l],s=!0)}}return c.isArray(t)?t.forEach(o):o(t),s}clear(t){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const o=n[r];(!t||X(this,this[o],o,t,!0))&&(delete this[o],s=!0)}return s}normalize(t){const n=this,r={};return c.forEach(this,(s,o)=>{const i=c.findKey(r,o);if(i){n[i]=M(s),delete n[o];return}const l=t?Xt(o):String(o).trim();l!==o&&delete n[o],n[l]=M(s),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return c.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=t&&c.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[be]=this[be]={accessors:{}}).accessors,s=this.prototype;function o(i){const l=L(i);r[l]||(Qt(s,i),r[l]=!0)}return c.isArray(t)?t.forEach(o):o(t),this}}V.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);c.reduceDescriptors(V.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});c.freezeMethods(V);const C=V;function Q(e,t){const n=this||ae,r=t||n,s=C.from(r.headers);let o=r.data;return c.forEach(e,function(l){o=l.call(n,o,s.normalize(),t?t.status:void 0)}),s.normalize(),o}function Me(e){return!!(e&&e.__CANCEL__)}function v(e,t,n){y.call(this,e??"canceled",y.ERR_CANCELED,t,n),this.name="CanceledError"}c.inherits(v,y,{__CANCEL__:!0});function Yt(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new y("Request failed with status code "+n.status,[y.ERR_BAD_REQUEST,y.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Zt=N.hasStandardBrowserEnv?{write(e,t,n,r,s,o){const i=[e+"="+encodeURIComponent(t)];c.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),c.isString(r)&&i.push("path="+r),c.isString(s)&&i.push("domain="+s),o===!0&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function en(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function tn(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function He(e,t){return e&&!en(t)?tn(e,t):t}const nn=N.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(o){let i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(i){const l=c.isString(i)?s(i):i;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function rn(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function sn(e,t){e=e||10;const n=new Array(e),r=new Array(e);let s=0,o=0,i;return t=t!==void 0?t:1e3,function(h){const m=Date.now(),d=r[o];i||(i=m),n[s]=h,r[s]=m;let f=o,E=0;for(;f!==s;)E+=n[f++],f=f%e;if(s=(s+1)%e,s===o&&(o=(o+1)%e),m-i{const o=s.loaded,i=s.lengthComputable?s.total:void 0,l=o-n,h=r(l),m=o<=i;n=o;const d={loaded:o,total:i,progress:i?o/i:void 0,bytes:l,rate:h||void 0,estimated:h&&i&&m?(i-o)/h:void 0,event:s};d[t?"download":"upload"]=!0,e(d)}}const on=typeof XMLHttpRequest<"u",an=on&&function(e){return new Promise(function(n,r){let s=e.data;const o=C.from(e.headers).normalize();let{responseType:i,withXSRFToken:l}=e,h;function m(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}let d;if(c.isFormData(s)){if(N.hasStandardBrowserEnv||N.hasStandardBrowserWebWorkerEnv)o.setContentType(!1);else if((d=o.getContentType())!==!1){const[u,...p]=d?d.split(";").map(b=>b.trim()).filter(Boolean):[];o.setContentType([u||"multipart/form-data",...p].join("; "))}}let f=new XMLHttpRequest;if(e.auth){const u=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(u+":"+p))}const E=He(e.baseURL,e.url);f.open(e.method.toUpperCase(),De(E,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function O(){if(!f)return;const u=C.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),b={data:!i||i==="text"||i==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:u,config:e,request:f};Yt(function(g){n(g),m()},function(g){r(g),m()},b),f=null}if("onloadend"in f?f.onloadend=O:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(O)},f.onabort=function(){f&&(r(new y("Request aborted",y.ECONNABORTED,e,f)),f=null)},f.onerror=function(){r(new y("Network Error",y.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let p=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const b=e.transitional||je;e.timeoutErrorMessage&&(p=e.timeoutErrorMessage),r(new y(p,b.clarifyTimeoutError?y.ETIMEDOUT:y.ECONNABORTED,e,f)),f=null},N.hasStandardBrowserEnv&&(l&&c.isFunction(l)&&(l=l(e)),l||l!==!1&&nn(E))){const u=e.xsrfHeaderName&&e.xsrfCookieName&&Zt.read(e.xsrfCookieName);u&&o.set(e.xsrfHeaderName,u)}s===void 0&&o.setContentType(null),"setRequestHeader"in f&&c.forEach(o.toJSON(),function(p,b){f.setRequestHeader(b,p)}),c.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),i&&i!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",we(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",we(e.onUploadProgress)),(e.cancelToken||e.signal)&&(h=u=>{f&&(r(!u||u.type?new v(null,e,f):u),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h)));const a=rn(E);if(a&&N.protocols.indexOf(a)===-1){r(new y("Unsupported protocol "+a+":",y.ERR_BAD_REQUEST,e));return}f.send(s||null)})},te={http:_t,xhr:an};c.forEach(te,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ee=e=>`- ${e}`,cn=e=>c.isFunction(e)||e===null||e===!1,Ie={getAdapter:e=>{e=c.isArray(e)?e:[e];const{length:t}=e;let n,r;const s={};for(let o=0;o`adapter ${l} `+(h===!1?"is not supported by the environment":"is not available in the build"));let i=t?o.length>1?`since : +`+o.map(Ee).join(` +`):" "+Ee(o[0]):"as no adapter specified";throw new y("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:te};function Y(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new v(null,e)}function Se(e){return Y(e),e.headers=C.from(e.headers),e.data=Q.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ie.getAdapter(e.adapter||ae.adapter)(e).then(function(r){return Y(e),r.data=Q.call(e,e.transformResponse,r),r.headers=C.from(r.headers),r},function(r){return Me(r)||(Y(e),r&&r.response&&(r.response.data=Q.call(e,e.transformResponse,r.response),r.response.headers=C.from(r.response.headers))),Promise.reject(r)})}const Re=e=>e instanceof C?e.toJSON():e;function k(e,t){t=t||{};const n={};function r(m,d,f){return c.isPlainObject(m)&&c.isPlainObject(d)?c.merge.call({caseless:f},m,d):c.isPlainObject(d)?c.merge({},d):c.isArray(d)?d.slice():d}function s(m,d,f){if(c.isUndefined(d)){if(!c.isUndefined(m))return r(void 0,m,f)}else return r(m,d,f)}function o(m,d){if(!c.isUndefined(d))return r(void 0,d)}function i(m,d){if(c.isUndefined(d)){if(!c.isUndefined(m))return r(void 0,m)}else return r(void 0,d)}function l(m,d,f){if(f in t)return r(m,d);if(f in e)return r(void 0,m)}const h={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:l,headers:(m,d)=>s(Re(m),Re(d),!0)};return c.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=h[d]||s,E=f(e[d],t[d],d);c.isUndefined(E)&&f!==l||(n[d]=E)}),n}const ze="1.6.7",ce={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ce[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const ge={};ce.transitional=function(t,n,r){function s(o,i){return"[Axios v"+ze+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,l)=>{if(t===!1)throw new y(s(i," has been removed"+(n?" in "+n:"")),y.ERR_DEPRECATED);return n&&!ge[i]&&(ge[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,l):!0}};function un(e,t,n){if(typeof e!="object")throw new y("options must be an object",y.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const o=r[s],i=t[o];if(i){const l=e[o],h=l===void 0||i(l,o,e);if(h!==!0)throw new y("option "+o+" must be "+h,y.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new y("Unknown option "+o,y.ERR_BAD_OPTION)}}const ne={assertOptions:un,validators:ce},F=ne.validators;class I{constructor(t){this.defaults=t,this.interceptors={request:new ye,response:new ye}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let s;Error.captureStackTrace?Error.captureStackTrace(s={}):s=new Error;const o=s.stack?s.stack.replace(/^.+\n/,""):"";r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+o):r.stack=o}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=k(this.defaults,n);const{transitional:r,paramsSerializer:s,headers:o}=n;r!==void 0&&ne.assertOptions(r,{silentJSONParsing:F.transitional(F.boolean),forcedJSONParsing:F.transitional(F.boolean),clarifyTimeoutError:F.transitional(F.boolean)},!1),s!=null&&(c.isFunction(s)?n.paramsSerializer={serialize:s}:ne.assertOptions(s,{encode:F.function,serialize:F.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&c.merge(o.common,o[n.method]);o&&c.forEach(["delete","get","head","post","put","patch","common"],a=>{delete o[a]}),n.headers=C.concat(i,o);const l=[];let h=!0;this.interceptors.request.forEach(function(u){typeof u.runWhen=="function"&&u.runWhen(n)===!1||(h=h&&u.synchronous,l.unshift(u.fulfilled,u.rejected))});const m=[];this.interceptors.response.forEach(function(u){m.push(u.fulfilled,u.rejected)});let d,f=0,E;if(!h){const a=[Se.bind(this),void 0];for(a.unshift.apply(a,l),a.push.apply(a,m),E=a.length,d=Promise.resolve(n);f{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](s);r._listeners=null}),this.promise.then=s=>{let o;const i=new Promise(l=>{r.subscribe(l),o=l}).then(s);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,l){r.reason||(r.reason=new v(o,i,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new ue(function(s){t=s}),cancel:t}}}const ln=ue;function fn(e){return function(n){return e.apply(null,n)}}function dn(e){return c.isObject(e)&&e.isAxiosError===!0}const re={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(re).forEach(([e,t])=>{re[t]=e});const pn=re;function Je(e){const t=new H(e),n=Ae(H.prototype.request,t);return c.extend(n,H.prototype,t,{allOwnKeys:!0}),c.extend(n,t,null,{allOwnKeys:!0}),n.create=function(s){return Je(k(e,s))},n}const R=Je(ae);R.Axios=H;R.CanceledError=v;R.CancelToken=ln;R.isCancel=Me;R.VERSION=ze;R.toFormData=W;R.AxiosError=y;R.Cancel=R.CanceledError;R.all=function(t){return Promise.all(t)};R.spread=fn;R.isAxiosError=dn;R.mergeConfig=k;R.AxiosHeaders=C;R.formToJSON=e=>qe(c.isHTMLForm(e)?new FormData(e):e);R.getAdapter=Ie.getAdapter;R.HttpStatusCode=pn;R.default=R;var $e={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress + * @license MIT */(function(e,t){(function(n,r){e.exports=r()})(We,function(){var n={};n.version="0.2.0";var r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
    '};n.configure=function(a){var u,p;for(u in a)p=a[u],p!==void 0&&a.hasOwnProperty(u)&&(r[u]=p);return this},n.status=null,n.set=function(a){var u=n.isStarted();a=s(a,r.minimum,1),n.status=a===1?null:a;var p=n.render(!u),b=p.querySelector(r.barSelector),S=r.speed,g=r.easing;return p.offsetWidth,l(function(w){r.positionUsing===""&&(r.positionUsing=n.getPositioningCSS()),h(b,i(a,S,g)),a===1?(h(p,{transition:"none",opacity:1}),p.offsetWidth,setTimeout(function(){h(p,{transition:"all "+S+"ms linear",opacity:0}),setTimeout(function(){n.remove(),w()},S)},S)):setTimeout(w,S)}),this},n.isStarted=function(){return typeof n.status=="number"},n.start=function(){n.status||n.set(0);var a=function(){setTimeout(function(){n.status&&(n.trickle(),a())},r.trickleSpeed)};return r.trickle&&a(),this},n.done=function(a){return!a&&!n.status?this:n.inc(.3+.5*Math.random()).set(1)},n.inc=function(a){var u=n.status;return u?(typeof a!="number"&&(a=(1-u)*s(Math.random()*u,.1,.95)),u=s(u+a,0,.994),n.set(u)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},function(){var a=0,u=0;n.promise=function(p){return!p||p.state()==="resolved"?this:(u===0&&n.start(),a++,u++,p.always(function(){u--,u===0?(a=0,n.done()):n.set((a-u)/a)}),this)}}(),n.render=function(a){if(n.isRendered())return document.getElementById("nprogress");d(document.documentElement,"nprogress-busy");var u=document.createElement("div");u.id="nprogress",u.innerHTML=r.template;var p=u.querySelector(r.barSelector),b=a?"-100":o(n.status||0),S=document.querySelector(r.parent),g;return h(p,{transition:"all 0 linear",transform:"translate3d("+b+"%,0,0)"}),r.showSpinner||(g=u.querySelector(r.spinnerSelector),g&&O(g)),S!=document.body&&d(S,"nprogress-custom-parent"),S.appendChild(u),u},n.remove=function(){f(document.documentElement,"nprogress-busy"),f(document.querySelector(r.parent),"nprogress-custom-parent");var a=document.getElementById("nprogress");a&&O(a)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var a=document.body.style,u="WebkitTransform"in a?"Webkit":"MozTransform"in a?"Moz":"msTransform"in a?"ms":"OTransform"in a?"O":"";return u+"Perspective"in a?"translate3d":u+"Transform"in a?"translate":"margin"};function s(a,u,p){return ap?p:a}function o(a){return(-1+a)*100}function i(a,u,p){var b;return r.positionUsing==="translate3d"?b={transform:"translate3d("+o(a)+"%,0,0)"}:r.positionUsing==="translate"?b={transform:"translate("+o(a)+"%,0)"}:b={"margin-left":o(a)+"%"},b.transition="all "+u+"ms "+p,b}var l=function(){var a=[];function u(){var p=a.shift();p&&p(u)}return function(p){a.push(p),a.length==1&&u()}}(),h=function(){var a=["Webkit","O","Moz","ms"],u={};function p(w){return w.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(T,P){return P.toUpperCase()})}function b(w){var T=document.body.style;if(w in T)return w;for(var P=a.length,U=w.charAt(0).toUpperCase()+w.slice(1),_;P--;)if(_=a[P]+U,_ in T)return _;return w}function S(w){return w=p(w),u[w]||(u[w]=b(w))}function g(w,T,P){T=S(T),w.style[T]=P}return function(w,T){var P=arguments,U,_;if(P.length==2)for(U in T)_=T[U],_!==void 0&&T.hasOwnProperty(U)&&g(w,U,_);else g(w,P[1],P[2])}}();function m(a,u){var p=typeof a=="string"?a:E(a);return p.indexOf(" "+u+" ")>=0}function d(a,u){var p=E(a),b=p+u;m(p,u)||(a.className=b.substring(1))}function f(a,u){var p=E(a),b;m(a,u)&&(b=p.replace(" "+u+" "," "),a.className=b.substring(1,b.length-1))}function E(a){return(" "+(a.className||"")+" ").replace(/\s+/gi," ")}function O(a){a&&a.parentNode&&a.parentNode.removeChild(a)}return n})})($e);var hn=$e.exports;const Oe=Ve(hn),mn=Ke("mesh",{state:()=>({mesh:Ge("")}),persist:!0}),le=R.create({baseURL:"/api/v1",timeout:30*1e3}),yn=le.interceptors.request,bn=le.interceptors.response;yn.use(e=>{e.headers||(e.headers={}),e.headers["Content-Type"]||(e.headers["Content-Type"]="application/json",e.data=JSON.stringify(e.data)),e.params||(e.params={});const{mesh:t}=mn();return e.params.mesh=t,e},e=>{Promise.reject(e)});bn.use(e=>{if(Oe.done(),e.status===200&&e.data.code==="Success")return Promise.resolve(e.data);const t=`${e.data.code}:${e.data.message}`;return K.error(t),console.error(t),Promise.reject(e.data)},e=>{var n,r,s,o;Oe.done();const t=e.response;if((t==null?void 0:t.status)===401){Xe();try{const i=(n=fe.currentRoute)==null?void 0:n.value,l=(i==null?void 0:i.fullPath)||(i==null?void 0:i.path)||"/";l.startsWith("/login")||fe.push({path:`/login?redirect=${encodeURIComponent(l)}`})}catch(i){console.error("Router push failed during 401 redirect:",i),window.location.pathname.startsWith("/login")||(window.location.href=`/login?redirect=${encodeURIComponent(window.location.pathname)}`)}}if(t!=null&&t.data){const i=`${(r=t.data)==null?void 0:r.code}:${(s=t.data)==null?void 0:s.message}`;K.error(i),console.error(i)}else K.error("NetworkError:请求失败,请检查网络连接"),console.error(e);return Promise.reject((o=e.response)==null?void 0:o.data)});const En=le;export{En as r,mn as u}; diff --git a/app/dubbo-ui/dist/admin/assets/sceneConfig-wKVgfCMN.js b/app/dubbo-ui/dist/admin/assets/sceneConfig-a1lGx6QL.js similarity index 97% rename from app/dubbo-ui/dist/admin/assets/sceneConfig-wKVgfCMN.js rename to app/dubbo-ui/dist/admin/assets/sceneConfig-a1lGx6QL.js index 2706bca6..18d8b448 100644 --- a/app/dubbo-ui/dist/admin/assets/sceneConfig-wKVgfCMN.js +++ b/app/dubbo-ui/dist/admin/assets/sceneConfig-a1lGx6QL.js @@ -1 +1 @@ -import{b as o,A as W,d as H,e as p,o as m,c as D,w as a,j as J,t as O,n as E,a8 as X,L as M,M as T,f as I,J as b,T as k,a7 as V,_ as q,a as Y,r as Z,D as K}from"./index-3zDsduUv.js";import{C as ee}from"./ConfigPage-Onvd_SY6.js";import{u as te,c as ae,d as oe,e as ne,f as re,h as ie,i as se,j as ue}from"./service-Hb3ldtV6.js";import"./request-3an337VF.js";var le={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"};const ce=le;function z(g){for(var i=1;i{}},index:{type:Number}},emits:["deleteParamRoute"],setup(g,{emit:i}){const s=i,n=g,w=[{label:"getUserInfo",value:"getUserInfo"},{label:"register",value:"register"},{label:"login",value:"login"}],S=[{title:"参数索引",key:"index",dataIndex:"index",width:"30%"},{title:"关系",key:"relation",dataIndex:"relation",width:"30%"},{title:"值",key:"value",dataIndex:"value",width:"30%"},{title:"操作",key:"handle",dataIndex:"handle",width:"10%"}],x=[{title:"标签",key:"tag",dataIndex:"tag",width:"25%"},{title:"关系",key:"relation",dataIndex:"relation",width:"25%"},{title:"值",key:"value",dataIndex:"value",width:"25%"},{title:"操作",key:"handle",dataIndex:"handle",width:"10%"}],C=()=>{n.paramRouteForm.conditions.push({index:"",relation:"",value:""})},$=R=>{n.paramRouteForm.conditions.splice(R,1)},N=()=>{n.paramRouteForm.destinations.push({conditions:[{tag:"",relation:"",value:""}],weight:0})},j=R=>{n.paramRouteForm.destinations[R].conditions.push({tag:"",relation:"",value:""})},A=(R,e)=>{const{destinations:t}=n.paramRouteForm,r=t[R];if(r.conditions.length===1&&t.length>1){t.splice(R,1);return}r.conditions.length>1&&r.conditions.splice(e,1)};return(R,e)=>{const t=p("a-flex"),r=p("a-select-option"),u=p("a-select"),l=p("a-form-item"),c=p("a-button"),v=p("a-input"),f=p("a-table"),h=p("a-space"),U=p("a-card"),G=p("a-form");return m(),D("div",me,[o(U,{bordered:!1,style:{width:"1000px"}},{title:a(()=>[o(t,{justify:"space-between"},{default:a(()=>[o(t,{align:"center",gap:8},{default:a(()=>[J("span",null,"路由"+O((n==null?void 0:n.index)+1),1),o(E(X),{onClick:e[0]||(e[0]=_=>s("deleteParamRoute",n.index)),class:"edit-icon"})]),_:1})]),_:1})]),default:a(()=>[o(G,{labelCol:{span:3}},{default:a(()=>[o(l,{label:"选择方法"},{default:a(()=>[o(u,{value:n.paramRouteForm.method,"onUpdate:value":e[1]||(e[1]=_=>n.paramRouteForm.method=_),style:{width:"200px"}},{default:a(()=>[(m(),D(M,null,T(w,(_,d)=>o(r,{value:_.value,key:d},{default:a(()=>[I(O(_.label),1)]),_:2},1032,["value"])),64))]),_:1},8,["value"])]),_:1}),o(l,{label:"指定方法参数"},{default:a(()=>[o(h,{direction:"vertical"},{default:a(()=>[o(c,{type:"primary",onClick:C},{default:a(()=>[I(" 添加参数 ")]),_:1}),o(f,{columns:S,"data-source":n.paramRouteForm.conditions,pagination:!1},{bodyCell:a(({column:_,index:d})=>[_.dataIndex==="index"?(m(),b(v,{key:0,value:n.paramRouteForm.conditions[d].index,"onUpdate:value":y=>n.paramRouteForm.conditions[d].index=y},null,8,["value","onUpdate:value"])):k("",!0),_.dataIndex==="relation"?(m(),b(v,{key:1,value:n.paramRouteForm.conditions[d].relation,"onUpdate:value":y=>n.paramRouteForm.conditions[d].relation=y},null,8,["value","onUpdate:value"])):k("",!0),_.dataIndex==="value"?(m(),b(v,{key:2,value:n.paramRouteForm.conditions[d].value,"onUpdate:value":y=>n.paramRouteForm.conditions[d].value=y},null,8,["value","onUpdate:value"])):k("",!0),_.dataIndex==="handle"?(m(),b(t,{key:3,justify:"space-between"},{default:a(()=>[o(E(L),{class:V(["edit-icon",{"disabled-icon":n.paramRouteForm.conditions.length===1}]),onClick:y=>n.paramRouteForm.conditions.length!==1&&$(d)},null,8,["class","onClick"])]),_:2},1024)):k("",!0)]),_:1},8,["data-source"])]),_:1})]),_:1}),o(l,{label:"路由目的地"},{default:a(()=>[o(h,{direction:"vertical"},{default:a(()=>[o(c,{type:"primary",onClick:N},{default:a(()=>[I(" 添加目的地 ")]),_:1}),(m(!0),D(M,null,T(n.paramRouteForm.destinations,(_,d)=>(m(),b(U,{key:d,bordered:!1},{title:a(()=>[o(h,null,{default:a(()=>[I(" 目的地"+O(d+1)+" ",1),o(c,{type:"primary",onClick:y=>j(d)},{default:a(()=>[I(" 添加条件 ")]),_:2},1032,["onClick"])]),_:2},1024)]),default:a(()=>[o(f,{columns:x,"data-source":_.conditions,pagination:!1},{bodyCell:a(({column:y,index:Q,record:F})=>[y.dataIndex==="tag"?(m(),b(v,{key:0,value:F.tag,"onUpdate:value":P=>F.tag=P},null,8,["value","onUpdate:value"])):k("",!0),y.dataIndex==="relation"?(m(),b(v,{key:1,value:F.relation,"onUpdate:value":P=>F.relation=P},null,8,["value","onUpdate:value"])):k("",!0),y.dataIndex==="value"?(m(),b(v,{key:2,value:F.value,"onUpdate:value":P=>F.value=P},null,8,["value","onUpdate:value"])):k("",!0),y.dataIndex==="handle"?(m(),b(t,{key:3,justify:"space-between"},{default:a(()=>[o(E(L),{class:V([{"disabled-icon":n.paramRouteForm.destinations[d].conditions.length===1&&n.paramRouteForm.destinations.length===1},"edit-icon"]),onClick:P=>A(d,Q)},null,8,["class","onClick"])]),_:2},1024)):k("",!0)]),_:2},1032,["data-source"])]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})]),_:1})])}}}),ve=q(pe,[["__scopeId","data-v-64cbfabd"]]),fe={class:"container-services-tabs-scene-config"},_e={class:"param-route"},ye=H({__name:"sceneConfig",setup(g){const i=Y(),s=Z({list:[{title:"serviceDomain.timeout",key:"timeout",form:{timeout:1e3},submit:e=>new Promise(t=>{t($(e==null?void 0:e.timeout))}),async reset(e){await C()}},{title:"serviceDomain.retryNum",key:"retryNum",form:{retryNum:0},submit:e=>new Promise(t=>{t(j(e==null?void 0:e.retryNum))}),async reset(e){await N()}},{title:"serviceDomain.sameAreaFirst",key:"sameAreaFirst",form:{sameAreaFirst:!1},submit:e=>new Promise(t=>{t(R(e==null?void 0:e.sameAreaFirst))}),async reset(e){await A()}},{title:"serviceDomain.paramRoute",key:"paramRoute",form:{paramRoute:[]},submit:e=>new Promise(t=>{t(w(e==null?void 0:e.paramRoute))}),reset(e){return new Promise(t=>{t(x())})}}],current:[0]}),n=()=>{s.list.forEach(e=>{if(e.key==="paramRoute"){const t={method:"string",conditions:[{index:"string",relation:"string",value:"string"}],destinations:[{conditions:[{tag:"string",relation:"string",value:"string"}],weight:0}]};e.form.paramRoute.push(t)}})},w=async()=>{const{pathId:e,group:t,version:r}=i.params;s.list.forEach(async u=>{u.key==="paramRoute"&&(await te({serviceName:e,group:t||"",version:r||"",routes:u.form.paramRoute}),await x())})},S=e=>{s.list.forEach(t=>{t.key==="paramRoute"&&t.form.paramRoute.splice(e,1)})},x=async()=>{const{pathId:e,group:t,version:r}=i.params,l=await ae({serviceName:e,group:t,version:r});l.code===200&&s.list.forEach(c=>{var v;c.key==="paramRoute"&&(c.form.paramRoute=(v=l.data)==null?void 0:v.routes)})},C=async()=>{const{pathId:e,group:t,version:r}=i.params,l=await oe({serviceName:e,group:t||"",version:r||""});s.list.forEach(c=>{c.key==="timeout"&&(c.form.timeout=l.data.timeout)})},$=async e=>{const{pathId:t,group:r,version:u}=i.params;await ne({serviceName:t,group:r||"",version:u||"",timeout:e}),await C()},N=async()=>{const{pathId:e,group:t,version:r}=i.params,l=await re({serviceName:e,group:t||"",version:r||""});s.list.forEach(c=>{c.key==="retryNum"&&(c.form.retryNum=l.data.retryTimes)})},j=async e=>{const{pathId:t,group:r,version:u}=i.params;await ie({serviceName:t,group:r||"",version:u||"",retryTimes:e}),await N()},A=async()=>{const{pathId:e,group:t,version:r}=i.params,l=await se({serviceName:e,group:t||"",version:r||""});s.list.forEach(c=>{var v;c.key==="sameAreaFirst"&&(c.form.sameAreaFirst=(v=l.data)==null?void 0:v.enabled)})},R=async e=>{const{pathId:t,group:r,version:u}=i.params;await ue({serviceName:t,group:r||"",version:u||"",enabled:e}),await A()};return K(async()=>{await C(),await N(),await A(),await x()}),(e,t)=>{const r=p("a-input-number"),u=p("a-form-item"),l=p("a-radio-button"),c=p("a-radio-group"),v=p("a-button");return m(),D("div",fe,[o(ee,{options:s},{form_timeout:a(({current:f})=>[o(u,{label:e.$t("serviceDomain.timeout"),name:"timeout"},{default:a(()=>[o(r,{value:f.form.timeout,"onUpdate:value":h=>f.form.timeout=h,"addon-after":"ms",style:{width:"150px"}},null,8,["value","onUpdate:value"])]),_:2},1032,["label"])]),form_retryNum:a(({current:f})=>[o(u,{label:e.$t("serviceDomain.retryNum"),name:"retryNum"},{default:a(()=>[o(r,{value:f.form.retryNum,"onUpdate:value":h=>f.form.retryNum=h,"addon-after":"次",style:{width:"150px"}},null,8,["value","onUpdate:value"])]),_:2},1032,["label"])]),form_sameAreaFirst:a(({current:f})=>[o(u,{label:e.$t("serviceDomain.sameAreaFirst"),name:"sameAreaFirst"},{default:a(()=>[o(c,{value:f.form.sameAreaFirst,"onUpdate:value":h=>f.form.sameAreaFirst=h,"button-style":"solid"},{default:a(()=>[o(l,{value:!1},{default:a(()=>[I(O(e.$t("serviceDomain.closed")),1)]),_:1}),o(l,{value:!0},{default:a(()=>[I(O(e.$t("serviceDomain.opened")),1)]),_:1})]),_:2},1032,["value","onUpdate:value"])]),_:2},1032,["label"])]),form_paramRoute:a(({current:f})=>[o(u,{name:"paramRoute"},{default:a(()=>[J("div",_e,[(m(!0),D(M,null,T(f.form.paramRoute,(h,U)=>(m(),b(ve,{key:U,paramRouteForm:h,index:U,onDeleteParamRoute:S},null,8,["paramRouteForm","index"]))),128)),o(v,{type:"primary",style:{"margin-top":"20px"},onClick:n},{default:a(()=>[I("增加路由")]),_:1})])]),_:2},1024)]),_:1},8,["options"])])}}}),we=q(ye,[["__scopeId","data-v-c8bd54d9"]]);export{we as default}; +import{b as o,A as W,d as H,e as p,o as m,c as D,w as a,j as J,t as O,n as E,a8 as X,L as M,M as T,f as I,J as b,T as k,a7 as V,_ as q,a as Y,r as Z,D as K}from"./index-VXjVsiiO.js";import{C as ee}from"./ConfigPage-Uqug3gMA.js";import{u as te,c as ae,d as oe,e as ne,f as re,h as ie,i as se,j as ue}from"./service-146hGzKC.js";import"./request-Cs8TyifY.js";var le={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"minus",theme:"outlined"};const ce=le;function z(g){for(var i=1;i{}},index:{type:Number}},emits:["deleteParamRoute"],setup(g,{emit:i}){const s=i,n=g,w=[{label:"getUserInfo",value:"getUserInfo"},{label:"register",value:"register"},{label:"login",value:"login"}],S=[{title:"参数索引",key:"index",dataIndex:"index",width:"30%"},{title:"关系",key:"relation",dataIndex:"relation",width:"30%"},{title:"值",key:"value",dataIndex:"value",width:"30%"},{title:"操作",key:"handle",dataIndex:"handle",width:"10%"}],x=[{title:"标签",key:"tag",dataIndex:"tag",width:"25%"},{title:"关系",key:"relation",dataIndex:"relation",width:"25%"},{title:"值",key:"value",dataIndex:"value",width:"25%"},{title:"操作",key:"handle",dataIndex:"handle",width:"10%"}],C=()=>{n.paramRouteForm.conditions.push({index:"",relation:"",value:""})},$=R=>{n.paramRouteForm.conditions.splice(R,1)},N=()=>{n.paramRouteForm.destinations.push({conditions:[{tag:"",relation:"",value:""}],weight:0})},j=R=>{n.paramRouteForm.destinations[R].conditions.push({tag:"",relation:"",value:""})},A=(R,e)=>{const{destinations:t}=n.paramRouteForm,r=t[R];if(r.conditions.length===1&&t.length>1){t.splice(R,1);return}r.conditions.length>1&&r.conditions.splice(e,1)};return(R,e)=>{const t=p("a-flex"),r=p("a-select-option"),u=p("a-select"),l=p("a-form-item"),c=p("a-button"),v=p("a-input"),f=p("a-table"),h=p("a-space"),U=p("a-card"),G=p("a-form");return m(),D("div",me,[o(U,{bordered:!1,style:{width:"1000px"}},{title:a(()=>[o(t,{justify:"space-between"},{default:a(()=>[o(t,{align:"center",gap:8},{default:a(()=>[J("span",null,"路由"+O((n==null?void 0:n.index)+1),1),o(E(X),{onClick:e[0]||(e[0]=_=>s("deleteParamRoute",n.index)),class:"edit-icon"})]),_:1})]),_:1})]),default:a(()=>[o(G,{labelCol:{span:3}},{default:a(()=>[o(l,{label:"选择方法"},{default:a(()=>[o(u,{value:n.paramRouteForm.method,"onUpdate:value":e[1]||(e[1]=_=>n.paramRouteForm.method=_),style:{width:"200px"}},{default:a(()=>[(m(),D(M,null,T(w,(_,d)=>o(r,{value:_.value,key:d},{default:a(()=>[I(O(_.label),1)]),_:2},1032,["value"])),64))]),_:1},8,["value"])]),_:1}),o(l,{label:"指定方法参数"},{default:a(()=>[o(h,{direction:"vertical"},{default:a(()=>[o(c,{type:"primary",onClick:C},{default:a(()=>[I(" 添加参数 ")]),_:1}),o(f,{columns:S,"data-source":n.paramRouteForm.conditions,pagination:!1},{bodyCell:a(({column:_,index:d})=>[_.dataIndex==="index"?(m(),b(v,{key:0,value:n.paramRouteForm.conditions[d].index,"onUpdate:value":y=>n.paramRouteForm.conditions[d].index=y},null,8,["value","onUpdate:value"])):k("",!0),_.dataIndex==="relation"?(m(),b(v,{key:1,value:n.paramRouteForm.conditions[d].relation,"onUpdate:value":y=>n.paramRouteForm.conditions[d].relation=y},null,8,["value","onUpdate:value"])):k("",!0),_.dataIndex==="value"?(m(),b(v,{key:2,value:n.paramRouteForm.conditions[d].value,"onUpdate:value":y=>n.paramRouteForm.conditions[d].value=y},null,8,["value","onUpdate:value"])):k("",!0),_.dataIndex==="handle"?(m(),b(t,{key:3,justify:"space-between"},{default:a(()=>[o(E(L),{class:V(["edit-icon",{"disabled-icon":n.paramRouteForm.conditions.length===1}]),onClick:y=>n.paramRouteForm.conditions.length!==1&&$(d)},null,8,["class","onClick"])]),_:2},1024)):k("",!0)]),_:1},8,["data-source"])]),_:1})]),_:1}),o(l,{label:"路由目的地"},{default:a(()=>[o(h,{direction:"vertical"},{default:a(()=>[o(c,{type:"primary",onClick:N},{default:a(()=>[I(" 添加目的地 ")]),_:1}),(m(!0),D(M,null,T(n.paramRouteForm.destinations,(_,d)=>(m(),b(U,{key:d,bordered:!1},{title:a(()=>[o(h,null,{default:a(()=>[I(" 目的地"+O(d+1)+" ",1),o(c,{type:"primary",onClick:y=>j(d)},{default:a(()=>[I(" 添加条件 ")]),_:2},1032,["onClick"])]),_:2},1024)]),default:a(()=>[o(f,{columns:x,"data-source":_.conditions,pagination:!1},{bodyCell:a(({column:y,index:Q,record:F})=>[y.dataIndex==="tag"?(m(),b(v,{key:0,value:F.tag,"onUpdate:value":P=>F.tag=P},null,8,["value","onUpdate:value"])):k("",!0),y.dataIndex==="relation"?(m(),b(v,{key:1,value:F.relation,"onUpdate:value":P=>F.relation=P},null,8,["value","onUpdate:value"])):k("",!0),y.dataIndex==="value"?(m(),b(v,{key:2,value:F.value,"onUpdate:value":P=>F.value=P},null,8,["value","onUpdate:value"])):k("",!0),y.dataIndex==="handle"?(m(),b(t,{key:3,justify:"space-between"},{default:a(()=>[o(E(L),{class:V([{"disabled-icon":n.paramRouteForm.destinations[d].conditions.length===1&&n.paramRouteForm.destinations.length===1},"edit-icon"]),onClick:P=>A(d,Q)},null,8,["class","onClick"])]),_:2},1024)):k("",!0)]),_:2},1032,["data-source"])]),_:2},1024))),128))]),_:1})]),_:1})]),_:1})]),_:1})])}}}),ve=q(pe,[["__scopeId","data-v-64cbfabd"]]),fe={class:"container-services-tabs-scene-config"},_e={class:"param-route"},ye=H({__name:"sceneConfig",setup(g){const i=Y(),s=Z({list:[{title:"serviceDomain.timeout",key:"timeout",form:{timeout:1e3},submit:e=>new Promise(t=>{t($(e==null?void 0:e.timeout))}),async reset(e){await C()}},{title:"serviceDomain.retryNum",key:"retryNum",form:{retryNum:0},submit:e=>new Promise(t=>{t(j(e==null?void 0:e.retryNum))}),async reset(e){await N()}},{title:"serviceDomain.sameAreaFirst",key:"sameAreaFirst",form:{sameAreaFirst:!1},submit:e=>new Promise(t=>{t(R(e==null?void 0:e.sameAreaFirst))}),async reset(e){await A()}},{title:"serviceDomain.paramRoute",key:"paramRoute",form:{paramRoute:[]},submit:e=>new Promise(t=>{t(w(e==null?void 0:e.paramRoute))}),reset(e){return new Promise(t=>{t(x())})}}],current:[0]}),n=()=>{s.list.forEach(e=>{if(e.key==="paramRoute"){const t={method:"string",conditions:[{index:"string",relation:"string",value:"string"}],destinations:[{conditions:[{tag:"string",relation:"string",value:"string"}],weight:0}]};e.form.paramRoute.push(t)}})},w=async()=>{const{pathId:e,group:t,version:r}=i.params;s.list.forEach(async u=>{u.key==="paramRoute"&&(await te({serviceName:e,group:t||"",version:r||"",routes:u.form.paramRoute}),await x())})},S=e=>{s.list.forEach(t=>{t.key==="paramRoute"&&t.form.paramRoute.splice(e,1)})},x=async()=>{const{pathId:e,group:t,version:r}=i.params,l=await ae({serviceName:e,group:t,version:r});l.code===200&&s.list.forEach(c=>{var v;c.key==="paramRoute"&&(c.form.paramRoute=(v=l.data)==null?void 0:v.routes)})},C=async()=>{const{pathId:e,group:t,version:r}=i.params,l=await oe({serviceName:e,group:t||"",version:r||""});s.list.forEach(c=>{c.key==="timeout"&&(c.form.timeout=l.data.timeout)})},$=async e=>{const{pathId:t,group:r,version:u}=i.params;await ne({serviceName:t,group:r||"",version:u||"",timeout:e}),await C()},N=async()=>{const{pathId:e,group:t,version:r}=i.params,l=await re({serviceName:e,group:t||"",version:r||""});s.list.forEach(c=>{c.key==="retryNum"&&(c.form.retryNum=l.data.retryTimes)})},j=async e=>{const{pathId:t,group:r,version:u}=i.params;await ie({serviceName:t,group:r||"",version:u||"",retryTimes:e}),await N()},A=async()=>{const{pathId:e,group:t,version:r}=i.params,l=await se({serviceName:e,group:t||"",version:r||""});s.list.forEach(c=>{var v;c.key==="sameAreaFirst"&&(c.form.sameAreaFirst=(v=l.data)==null?void 0:v.enabled)})},R=async e=>{const{pathId:t,group:r,version:u}=i.params;await ue({serviceName:t,group:r||"",version:u||"",enabled:e}),await A()};return K(async()=>{await C(),await N(),await A(),await x()}),(e,t)=>{const r=p("a-input-number"),u=p("a-form-item"),l=p("a-radio-button"),c=p("a-radio-group"),v=p("a-button");return m(),D("div",fe,[o(ee,{options:s},{form_timeout:a(({current:f})=>[o(u,{label:e.$t("serviceDomain.timeout"),name:"timeout"},{default:a(()=>[o(r,{value:f.form.timeout,"onUpdate:value":h=>f.form.timeout=h,"addon-after":"ms",style:{width:"150px"}},null,8,["value","onUpdate:value"])]),_:2},1032,["label"])]),form_retryNum:a(({current:f})=>[o(u,{label:e.$t("serviceDomain.retryNum"),name:"retryNum"},{default:a(()=>[o(r,{value:f.form.retryNum,"onUpdate:value":h=>f.form.retryNum=h,"addon-after":"次",style:{width:"150px"}},null,8,["value","onUpdate:value"])]),_:2},1032,["label"])]),form_sameAreaFirst:a(({current:f})=>[o(u,{label:e.$t("serviceDomain.sameAreaFirst"),name:"sameAreaFirst"},{default:a(()=>[o(c,{value:f.form.sameAreaFirst,"onUpdate:value":h=>f.form.sameAreaFirst=h,"button-style":"solid"},{default:a(()=>[o(l,{value:!1},{default:a(()=>[I(O(e.$t("serviceDomain.closed")),1)]),_:1}),o(l,{value:!0},{default:a(()=>[I(O(e.$t("serviceDomain.opened")),1)]),_:1})]),_:2},1032,["value","onUpdate:value"])]),_:2},1032,["label"])]),form_paramRoute:a(({current:f})=>[o(u,{name:"paramRoute"},{default:a(()=>[J("div",_e,[(m(!0),D(M,null,T(f.form.paramRoute,(h,U)=>(m(),b(ve,{key:U,paramRouteForm:h,index:U,onDeleteParamRoute:S},null,8,["paramRouteForm","index"]))),128)),o(v,{type:"primary",style:{"margin-top":"20px"},onClick:n},{default:a(()=>[I("增加路由")]),_:1})])]),_:2},1024)]),_:1},8,["options"])])}}}),we=q(ye,[["__scopeId","data-v-c8bd54d9"]]);export{we as default}; diff --git a/app/dubbo-ui/dist/admin/assets/search-c0Szb99-.js b/app/dubbo-ui/dist/admin/assets/search-s6dK7Hvb.js similarity index 94% rename from app/dubbo-ui/dist/admin/assets/search-c0Szb99-.js rename to app/dubbo-ui/dist/admin/assets/search-s6dK7Hvb.js index ff83d079..ebf73a30 100644 --- a/app/dubbo-ui/dist/admin/assets/search-c0Szb99-.js +++ b/app/dubbo-ui/dist/admin/assets/search-s6dK7Hvb.js @@ -1 +1 @@ -import{d as A,v as P,u as x,a as D,B as E,r as Q,F as $,c as p,b as S,w as v,n as G,P as B,U as L,e as k,o as i,L as b,f as _,t as m,j as I,I as M,J as q,M as O,T as F,z as Y,_ as J}from"./index-3zDsduUv.js";import{s as j}from"./service-Hb3ldtV6.js";import{S as z,a as H}from"./SearchUtil-bfid3zNl.js";import{p as K,q as h}from"./PromQueryUtil-4K1j3sa5.js";import"./request-3an337VF.js";const U={class:"__container_services_index"},X=["onClick"],W=A({__name:"search",setup(Z){P(a=>({"3ac44584":G(B)}));const T=x(),y=D();let w=y.query.query;const C=[{title:"service",key:"service",dataIndex:"serviceName",sorter:!0,width:"30%",ellipsis:!0},{title:"versionGroup",key:"versionGroup",dataIndex:"versionGroupSelect",width:"25%"},{title:"avgQPS",key:"avgQPS",dataIndex:"avgQPS",sorter:!0,width:"15%"},{title:"avgRT",key:"avgRT",dataIndex:"avgRT",sorter:!0,width:"15%"},{title:"requestTotal",key:"requestTotal",dataIndex:"requestTotal",sorter:!0,width:"15%"}],t=E([]),f=a=>a.map(e=>(e.versionGroupSelect={},e.versionGroupSelect.versionGroupArr=e.versionGroups.map(r=>r.versionGroup=(r.version?"version: "+r.version+", ":"")+(r.group?"group: "+r.group:"")||"无"),e.versionGroupSelect.versionGroupValue=e.versionGroupSelect.versionGroupArr[0],e));function N(a,e){return j(a).then(async r=>{var u;return t.value=(u=r.data)==null?void 0:u.list,t.value.forEach(o=>{o.selectedIndex=-1}),console.log(t.value),K(r,["avgQPS","avgRT","requestTotal"],async o=>{o.avgQPS=await h(`sum (dubbo_provider_qps_total{interface='${o.serviceName}'}) by (interface)`),o.avgRT=await h(`avg(dubbo_consumer_rt_avg_milliseconds_aggregate{interface="${o.serviceName}",method=~"$method"}>0)`),o.requestTotal=await h(`sum (increase(dubbo_provider_requests_total{interface="${o.serviceName}"}[1m]))`)})})}const n=Q(new z([{label:"serviceName",param:"keywords",placeholder:"typeAppName",defaultValue:w,style:{width:"200px"}}],N,C,void 0,void 0,f));n.onSearch(f),n.tableStyle={scrollX:"100",scrollY:"367px"};const V=(a,e,r)=>{r==="无"?t.value[a].selectedIndex=-1:t.value[a].selectedIndex=e},R=(a,e)=>{var l,s,c;const r=(l=t.value[e])==null?void 0:l.selectedIndex,u=((s=t.value[e].versionGroups[r])==null?void 0:s.group)||"",o=((c=t.value[e].versionGroups[r])==null?void 0:c.version)||"";T.push({name:"distribution",params:{pathId:a,group:u,version:o}})};return L(Y.SEARCH_DOMAIN,n),$(y,(a,e)=>{n.queryForm.keywords=a.query.query,n.onSearch(),console.log(a)}),(a,e)=>{const r=k("a-select-option"),u=k("a-select");return i(),p("div",U,[S(H,{"search-domain":n},{bodyCell:v(({column:o,record:l,text:s,index:c})=>[o.dataIndex==="serviceName"?(i(),p(b,{key:0},[_(m(l.versionGroup)+" ",1),I("span",{class:"service-link",onClick:d=>R(s,c)},[I("b",null,[S(G(M),{style:{"margin-bottom":"-2px"},icon:"material-symbols:attach-file-rounded"}),_(" "+m(s),1)])],8,X)],64)):o.dataIndex==="versionGroupSelect"?(i(),q(u,{key:1,value:s==null?void 0:s.versionGroupValue,bordered:!1,style:{width:"80%"}},{default:v(()=>[(i(!0),p(b,null,O(s==null?void 0:s.versionGroupArr,(d,g)=>(i(),q(r,{value:d,onClick:ee=>V(c,g,d),key:g},{default:v(()=>[_(m(d),1)]),_:2},1032,["value","onClick"]))),128))]),_:2},1032,["value"])):F("",!0)]),_:1},8,["search-domain"])])}}}),ne=J(W,[["__scopeId","data-v-77fd4b55"]]);export{ne as default}; +import{d as A,v as P,u as x,a as D,B as E,r as Q,F as $,c as p,b as S,w as v,n as G,P as B,U as L,e as k,o as i,L as b,f as _,t as m,j as I,I as M,J as q,M as O,T as F,z as Y,_ as J}from"./index-VXjVsiiO.js";import{s as j}from"./service-146hGzKC.js";import{S as z,a as H}from"./SearchUtil-ETsp-Y5a.js";import{p as K,q as h}from"./PromQueryUtil-wquMeYdL.js";import"./request-Cs8TyifY.js";const U={class:"__container_services_index"},X=["onClick"],W=A({__name:"search",setup(Z){P(a=>({"3ac44584":G(B)}));const T=x(),y=D();let w=y.query.query;const C=[{title:"service",key:"service",dataIndex:"serviceName",sorter:!0,width:"30%",ellipsis:!0},{title:"versionGroup",key:"versionGroup",dataIndex:"versionGroupSelect",width:"25%"},{title:"avgQPS",key:"avgQPS",dataIndex:"avgQPS",sorter:!0,width:"15%"},{title:"avgRT",key:"avgRT",dataIndex:"avgRT",sorter:!0,width:"15%"},{title:"requestTotal",key:"requestTotal",dataIndex:"requestTotal",sorter:!0,width:"15%"}],t=E([]),f=a=>a.map(e=>(e.versionGroupSelect={},e.versionGroupSelect.versionGroupArr=e.versionGroups.map(r=>r.versionGroup=(r.version?"version: "+r.version+", ":"")+(r.group?"group: "+r.group:"")||"无"),e.versionGroupSelect.versionGroupValue=e.versionGroupSelect.versionGroupArr[0],e));function N(a,e){return j(a).then(async r=>{var u;return t.value=(u=r.data)==null?void 0:u.list,t.value.forEach(o=>{o.selectedIndex=-1}),console.log(t.value),K(r,["avgQPS","avgRT","requestTotal"],async o=>{o.avgQPS=await h(`sum (dubbo_provider_qps_total{interface='${o.serviceName}'}) by (interface)`),o.avgRT=await h(`avg(dubbo_consumer_rt_avg_milliseconds_aggregate{interface="${o.serviceName}",method=~"$method"}>0)`),o.requestTotal=await h(`sum (increase(dubbo_provider_requests_total{interface="${o.serviceName}"}[1m]))`)})})}const n=Q(new z([{label:"serviceName",param:"keywords",placeholder:"typeAppName",defaultValue:w,style:{width:"200px"}}],N,C,void 0,void 0,f));n.onSearch(f),n.tableStyle={scrollX:"100",scrollY:"367px"};const V=(a,e,r)=>{r==="无"?t.value[a].selectedIndex=-1:t.value[a].selectedIndex=e},R=(a,e)=>{var l,s,c;const r=(l=t.value[e])==null?void 0:l.selectedIndex,u=((s=t.value[e].versionGroups[r])==null?void 0:s.group)||"",o=((c=t.value[e].versionGroups[r])==null?void 0:c.version)||"";T.push({name:"distribution",params:{pathId:a,group:u,version:o}})};return L(Y.SEARCH_DOMAIN,n),$(y,(a,e)=>{n.queryForm.keywords=a.query.query,n.onSearch(),console.log(a)}),(a,e)=>{const r=k("a-select-option"),u=k("a-select");return i(),p("div",U,[S(H,{"search-domain":n},{bodyCell:v(({column:o,record:l,text:s,index:c})=>[o.dataIndex==="serviceName"?(i(),p(b,{key:0},[_(m(l.versionGroup)+" ",1),I("span",{class:"service-link",onClick:d=>R(s,c)},[I("b",null,[S(G(M),{style:{"margin-bottom":"-2px"},icon:"material-symbols:attach-file-rounded"}),_(" "+m(s),1)])],8,X)],64)):o.dataIndex==="versionGroupSelect"?(i(),q(u,{key:1,value:s==null?void 0:s.versionGroupValue,bordered:!1,style:{width:"80%"}},{default:v(()=>[(i(!0),p(b,null,O(s==null?void 0:s.versionGroupArr,(d,g)=>(i(),q(r,{value:d,onClick:ee=>V(c,g,d),key:g},{default:v(()=>[_(m(d),1)]),_:2},1032,["value","onClick"]))),128))]),_:2},1032,["value"])):F("",!0)]),_:1},8,["search-domain"])])}}}),ne=J(W,[["__scopeId","data-v-77fd4b55"]]);export{ne as default}; diff --git a/app/dubbo-ui/dist/admin/assets/serverInfo-F5PlCBPJ.js b/app/dubbo-ui/dist/admin/assets/serverInfo-UzRr_R0Z.js similarity index 61% rename from app/dubbo-ui/dist/admin/assets/serverInfo-F5PlCBPJ.js rename to app/dubbo-ui/dist/admin/assets/serverInfo-UzRr_R0Z.js index a775c484..e3d1e10b 100644 --- a/app/dubbo-ui/dist/admin/assets/serverInfo-F5PlCBPJ.js +++ b/app/dubbo-ui/dist/admin/assets/serverInfo-UzRr_R0Z.js @@ -1 +1 @@ -import{r as e}from"./request-3an337VF.js";const a=t=>e({url:"/overview",method:"get",params:t}),o=t=>e({url:"/metadata",method:"get",params:t});export{o as a,a as g}; +import{r as e}from"./request-Cs8TyifY.js";const a=t=>e({url:"/overview",method:"get",params:t}),o=t=>e({url:"/metadata",method:"get",params:t});export{o as a,a as g}; diff --git a/app/dubbo-ui/dist/admin/assets/service-Hb3ldtV6.js b/app/dubbo-ui/dist/admin/assets/service-146hGzKC.js similarity index 92% rename from app/dubbo-ui/dist/admin/assets/service-Hb3ldtV6.js rename to app/dubbo-ui/dist/admin/assets/service-146hGzKC.js index ccff3a54..ce15f524 100644 --- a/app/dubbo-ui/dist/admin/assets/service-Hb3ldtV6.js +++ b/app/dubbo-ui/dist/admin/assets/service-146hGzKC.js @@ -1 +1 @@ -import{r}from"./request-3an337VF.js";const i=e=>r({url:"/service/search",method:"get",params:e}),o=e=>r({url:"/service/distribution",method:"get",params:e}),c=e=>r({url:"/service/metric-dashboard",method:"get",params:e}),s=e=>r({url:"/service/trace-dashboard",method:"get",params:e}),u=e=>r({url:"/service/config/timeout",method:"get",params:e}),n=e=>r({url:"/service/config/timeout",method:"put",data:e}),a=e=>r({url:"/service/config/retry",method:"get",params:e}),g=e=>r({url:"/service/config/retry",method:"put",data:e}),d=e=>r({url:"/service/config/regionPriority",method:"get",params:e}),m=e=>r({url:"/service/config/regionPriority",method:"put",data:e}),v=e=>r({url:"/service/config/argumentRoute",method:"get",params:e}),h=e=>r({url:"/service/config/argumentRoute",method:"put",data:e});export{c as a,s as b,v as c,u as d,n as e,a as f,o as g,g as h,d as i,m as j,i as s,h as u}; +import{r}from"./request-Cs8TyifY.js";const i=e=>r({url:"/service/search",method:"get",params:e}),o=e=>r({url:"/service/distribution",method:"get",params:e}),c=e=>r({url:"/service/metric-dashboard",method:"get",params:e}),s=e=>r({url:"/service/trace-dashboard",method:"get",params:e}),u=e=>r({url:"/service/config/timeout",method:"get",params:e}),n=e=>r({url:"/service/config/timeout",method:"put",data:e}),a=e=>r({url:"/service/config/retry",method:"get",params:e}),g=e=>r({url:"/service/config/retry",method:"put",data:e}),d=e=>r({url:"/service/config/regionPriority",method:"get",params:e}),m=e=>r({url:"/service/config/regionPriority",method:"put",data:e}),v=e=>r({url:"/service/config/argumentRoute",method:"get",params:e}),h=e=>r({url:"/service/config/argumentRoute",method:"put",data:e});export{c as a,s as b,v as c,u as d,n as e,a as f,o as g,g as h,d as i,m as j,i as s,h as u}; diff --git a/app/dubbo-ui/dist/admin/assets/service-LECfslfz.js b/app/dubbo-ui/dist/admin/assets/service-BVuTRmeo.js similarity index 89% rename from app/dubbo-ui/dist/admin/assets/service-LECfslfz.js rename to app/dubbo-ui/dist/admin/assets/service-BVuTRmeo.js index 03cbdb74..cac7503a 100644 --- a/app/dubbo-ui/dist/admin/assets/service-LECfslfz.js +++ b/app/dubbo-ui/dist/admin/assets/service-BVuTRmeo.js @@ -1 +1 @@ -import{d as R,v as D,a as M,u as V,r as d,D as A,l as P,c as f,T as g,b as E,w as c,n as h,P as b,U as Q,e as t,o,J as v,f as S,t as y,L as $,M as x,z as L,_ as O}from"./index-3zDsduUv.js";import{g as B,a as Y}from"./serverInfo-F5PlCBPJ.js";import{S as z,a as F}from"./SearchUtil-bfid3zNl.js";import{b as J}from"./app-mdoSebGq.js";import"./request-3an337VF.js";import{p as H,q as m}from"./PromQueryUtil-4K1j3sa5.js";const K={class:"__container_app_service"},U=R({__name:"service",setup(X){D(r=>({"28ddf99a":h(b)+"22","28a02396":h(b)}));const I=M(),w=V();let s=d({info:{},report:{}}),G=d({info:{}});A(async()=>{n.tableStyle={scrollX:"100",scrollY:"calc(100vh - 600px)"};let r=(await B({})).data;G.info=(await Y({})).data,s.info=r,s.report={providers:{icon:"carbon:branch",value:s.info.providers},consumers:{icon:"mdi:merge",value:s.info.consumers}}});const N=[{title:"provideServiceName",key:"service",dataIndex:"serviceName",sorter:!0,width:"30%"},{title:"versionGroup",key:"versionGroup",dataIndex:"versionGroupSelect",width:"25%"},{title:"avgQPS",key:"avgQPS",dataIndex:"avgQPS",sorter:!0,width:"15%"},{title:"avgRT",key:"avgRT",dataIndex:"avgRT",sorter:!0,width:"15%"},{title:"requestTotal",key:"requestTotal",dataIndex:"requestTotal",sorter:!0,width:"15%"}],k=P(()=>{var r;return(r=I.params)==null?void 0:r.pathId});function q(r){return J(r).then(async _=>H(_,["qps","rt","request"],async a=>{a.versionGroupSelect={},a.versionGroupSelect.versionGroupArr=a.versionGroups.map(e=>e.versionGroup=(e.version?"version: "+e.version+", ":"")+(e.group?"group: "+e.group:"")||"无"),a.versionGroupSelect.versionGroupValue=a.versionGroupSelect.versionGroupArr[0];let u=await m(`sum (dubbo_provider_qps_total{interface='${a.serviceName}'}) by (interface)`),l=await m(`avg(dubbo_consumer_rt_avg_milliseconds_aggregate{interface="${a.serviceName}",method=~"$method"}>0)`),i=await m(`sum (increase(dubbo_provider_requests_total{interface="${a.serviceName}"}[1m]))`);a.avgQPS=u,a.avgRT=l,a.requestTotal=i}))}const n=d(new z([{label:"serviceName",param:"serviceName"},{label:"",param:"appName",defaultValue:k}],q,N,{pageSize:4},!0));n.onSearch();const C=r=>{w.push("/resources/services/distribution/"+r)};return Q(L.SEARCH_DOMAIN,n),(r,_)=>{t("a-statistic"),t("a-flex"),t("a-card");const a=t("a-button"),u=t("a-select-option"),l=t("a-select");return o(),f("div",K,[g("",!0),E(F,{"search-domain":n},{bodyCell:c(({column:i,text:e})=>[i.dataIndex==="serviceName"?(o(),v(a,{key:0,type:"link",onClick:p=>C(e)},{default:c(()=>[S(y(e),1)]),_:2},1032,["onClick"])):i.dataIndex==="versionGroupSelect"?(o(),v(l,{key:1,value:e==null?void 0:e.versionGroupValue,bordered:!1,style:{width:"80%"}},{default:c(()=>[(o(!0),f($,null,x(e==null?void 0:e.versionGroupArr,(p,T)=>(o(),v(u,{value:p,key:T},{default:c(()=>[S(y(p),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["value"])):g("",!0)]),_:1},8,["search-domain"])])}}}),te=O(U,[["__scopeId","data-v-42269320"]]);export{te as default}; +import{d as R,v as D,a as M,u as V,r as d,D as A,l as P,c as f,T as g,b as E,w as c,n as h,P as b,U as Q,e as t,o,J as v,f as S,t as y,L as $,M as x,z as L,_ as O}from"./index-VXjVsiiO.js";import{g as B,a as Y}from"./serverInfo-UzRr_R0Z.js";import{S as z,a as F}from"./SearchUtil-ETsp-Y5a.js";import{b as J}from"./app-tPR0CJiV.js";import"./request-Cs8TyifY.js";import{p as H,q as m}from"./PromQueryUtil-wquMeYdL.js";const K={class:"__container_app_service"},U=R({__name:"service",setup(X){D(r=>({"28ddf99a":h(b)+"22","28a02396":h(b)}));const I=M(),w=V();let s=d({info:{},report:{}}),G=d({info:{}});A(async()=>{n.tableStyle={scrollX:"100",scrollY:"calc(100vh - 600px)"};let r=(await B({})).data;G.info=(await Y({})).data,s.info=r,s.report={providers:{icon:"carbon:branch",value:s.info.providers},consumers:{icon:"mdi:merge",value:s.info.consumers}}});const N=[{title:"provideServiceName",key:"service",dataIndex:"serviceName",sorter:!0,width:"30%"},{title:"versionGroup",key:"versionGroup",dataIndex:"versionGroupSelect",width:"25%"},{title:"avgQPS",key:"avgQPS",dataIndex:"avgQPS",sorter:!0,width:"15%"},{title:"avgRT",key:"avgRT",dataIndex:"avgRT",sorter:!0,width:"15%"},{title:"requestTotal",key:"requestTotal",dataIndex:"requestTotal",sorter:!0,width:"15%"}],k=P(()=>{var r;return(r=I.params)==null?void 0:r.pathId});function q(r){return J(r).then(async _=>H(_,["qps","rt","request"],async a=>{a.versionGroupSelect={},a.versionGroupSelect.versionGroupArr=a.versionGroups.map(e=>e.versionGroup=(e.version?"version: "+e.version+", ":"")+(e.group?"group: "+e.group:"")||"无"),a.versionGroupSelect.versionGroupValue=a.versionGroupSelect.versionGroupArr[0];let u=await m(`sum (dubbo_provider_qps_total{interface='${a.serviceName}'}) by (interface)`),l=await m(`avg(dubbo_consumer_rt_avg_milliseconds_aggregate{interface="${a.serviceName}",method=~"$method"}>0)`),i=await m(`sum (increase(dubbo_provider_requests_total{interface="${a.serviceName}"}[1m]))`);a.avgQPS=u,a.avgRT=l,a.requestTotal=i}))}const n=d(new z([{label:"serviceName",param:"serviceName"},{label:"",param:"appName",defaultValue:k}],q,N,{pageSize:4},!0));n.onSearch();const C=r=>{w.push("/resources/services/distribution/"+r)};return Q(L.SEARCH_DOMAIN,n),(r,_)=>{t("a-statistic"),t("a-flex"),t("a-card");const a=t("a-button"),u=t("a-select-option"),l=t("a-select");return o(),f("div",K,[g("",!0),E(F,{"search-domain":n},{bodyCell:c(({column:i,text:e})=>[i.dataIndex==="serviceName"?(o(),v(a,{key:0,type:"link",onClick:p=>C(e)},{default:c(()=>[S(y(e),1)]),_:2},1032,["onClick"])):i.dataIndex==="versionGroupSelect"?(o(),v(l,{key:1,value:e==null?void 0:e.versionGroupValue,bordered:!1,style:{width:"80%"}},{default:c(()=>[(o(!0),f($,null,x(e==null?void 0:e.versionGroupArr,(p,T)=>(o(),v(u,{value:p,key:T},{default:c(()=>[S(y(p),1)]),_:2},1032,["value"]))),128))]),_:2},1032,["value"])):g("",!0)]),_:1},8,["search-domain"])])}}}),te=O(U,[["__scopeId","data-v-42269320"]]);export{te as default}; diff --git a/app/dubbo-ui/dist/admin/assets/tab1-Erm3qhoK.js b/app/dubbo-ui/dist/admin/assets/tab1-RXoFVKwY.js similarity index 66% rename from app/dubbo-ui/dist/admin/assets/tab1-Erm3qhoK.js rename to app/dubbo-ui/dist/admin/assets/tab1-RXoFVKwY.js index 2e61d697..84adb466 100644 --- a/app/dubbo-ui/dist/admin/assets/tab1-Erm3qhoK.js +++ b/app/dubbo-ui/dist/admin/assets/tab1-RXoFVKwY.js @@ -1 +1 @@ -import{_ as e,c as t,o as c}from"./index-3zDsduUv.js";const o={},_={class:"__container_tabDemo"};function a(n,s){return c(),t("div",_,"tab1")}const f=e(o,[["render",a]]);export{f as default}; +import{_ as e,c as t,o as c}from"./index-VXjVsiiO.js";const o={},_={class:"__container_tabDemo"};function a(n,s){return c(),t("div",_,"tab1")}const f=e(o,[["render",a]]);export{f as default}; diff --git a/app/dubbo-ui/dist/admin/assets/tab2-gYKBqlWv.js b/app/dubbo-ui/dist/admin/assets/tab2-ecRDfL1A.js similarity index 66% rename from app/dubbo-ui/dist/admin/assets/tab2-gYKBqlWv.js rename to app/dubbo-ui/dist/admin/assets/tab2-ecRDfL1A.js index 590da8cc..3fcca434 100644 --- a/app/dubbo-ui/dist/admin/assets/tab2-gYKBqlWv.js +++ b/app/dubbo-ui/dist/admin/assets/tab2-ecRDfL1A.js @@ -1 +1 @@ -import{_ as e,c as t,o as c}from"./index-3zDsduUv.js";const o={},_={class:"__container_tabDemo"};function a(n,s){return c(),t("div",_,"tab2")}const f=e(o,[["render",a]]);export{f as default}; +import{_ as e,c as t,o as c}from"./index-VXjVsiiO.js";const o={},_={class:"__container_tabDemo"};function a(n,s){return c(),t("div",_,"tab2")}const f=e(o,[["render",a]]);export{f as default}; diff --git a/app/dubbo-ui/dist/admin/assets/tracing-DAAA17XP.js b/app/dubbo-ui/dist/admin/assets/tracing-DAAA17XP.js deleted file mode 100644 index 4cdde946..00000000 --- a/app/dubbo-ui/dist/admin/assets/tracing-DAAA17XP.js +++ /dev/null @@ -1 +0,0 @@ -import{G as r}from"./GrafanaPage-tT3NMW70.js";import{d as o,a as t,U as s,r as c,z as n,c as i,b as p,o as _}from"./index-3zDsduUv.js";import{b as m}from"./service-Hb3ldtV6.js";import"./request-3an337VF.js";const d={class:"__container_app_monitor"},I=o({__name:"tracing",setup(f){var a;const e=t();return s(n.GRAFANA,c({api:m,showIframe:!1,name:((a=e.params)==null?void 0:a.pathId)+":22222",type:"service"})),(u,l)=>(_(),i("div",d,[p(r)]))}});export{I as default}; diff --git a/app/dubbo-ui/dist/admin/assets/tracing-RzrHmcJX.js b/app/dubbo-ui/dist/admin/assets/tracing-RzrHmcJX.js new file mode 100644 index 00000000..aed7ff22 --- /dev/null +++ b/app/dubbo-ui/dist/admin/assets/tracing-RzrHmcJX.js @@ -0,0 +1 @@ +import{G as t}from"./GrafanaPage-emfN7XhQ.js";import{d as o}from"./app-tPR0CJiV.js";import{d as r,a as s,U as n,r as p,z as c,c as i,b as _,n as m,o as d}from"./index-VXjVsiiO.js";import"./request-Cs8TyifY.js";const f={class:"__container_app_tracing"},v=r({__name:"tracing",setup(l){var a;const e=s();return n(c.GRAFANA,p({api:o,showIframe:!1,name:(a=e.params)==null?void 0:a.pathId,type:"application"})),(u,h)=>(d(),i("div",f,[_(m(t))]))}});export{v as default}; diff --git a/app/dubbo-ui/dist/admin/assets/tracing-anN8lSRs.js b/app/dubbo-ui/dist/admin/assets/tracing-anN8lSRs.js new file mode 100644 index 00000000..4ad51fc7 --- /dev/null +++ b/app/dubbo-ui/dist/admin/assets/tracing-anN8lSRs.js @@ -0,0 +1 @@ +import{G as r}from"./GrafanaPage-emfN7XhQ.js";import{d as o,a as t,U as s,r as c,z as n,c as i,b as p,o as _}from"./index-VXjVsiiO.js";import{b as m}from"./service-146hGzKC.js";import"./request-Cs8TyifY.js";const d={class:"__container_app_monitor"},I=o({__name:"tracing",setup(f){var a;const e=t();return s(n.GRAFANA,c({api:m,showIframe:!1,name:((a=e.params)==null?void 0:a.pathId)+":22222",type:"service"})),(u,l)=>(_(),i("div",d,[p(r)]))}});export{I as default}; diff --git a/app/dubbo-ui/dist/admin/assets/tracing-egUve7nj.js b/app/dubbo-ui/dist/admin/assets/tracing-egUve7nj.js deleted file mode 100644 index 18b57f74..00000000 --- a/app/dubbo-ui/dist/admin/assets/tracing-egUve7nj.js +++ /dev/null @@ -1 +0,0 @@ -import{G as t}from"./GrafanaPage-tT3NMW70.js";import{d as o}from"./app-mdoSebGq.js";import{d as r,a as s,U as n,r as p,z as c,c as i,b as _,n as m,o as d}from"./index-3zDsduUv.js";import"./request-3an337VF.js";const f={class:"__container_app_tracing"},v=r({__name:"tracing",setup(l){var a;const e=s();return n(c.GRAFANA,p({api:o,showIframe:!1,name:(a=e.params)==null?void 0:a.pathId,type:"application"})),(u,h)=>(d(),i("div",f,[_(m(t))]))}});export{v as default}; diff --git a/app/dubbo-ui/dist/admin/assets/traffic-dHGZ6qwp.js b/app/dubbo-ui/dist/admin/assets/traffic-W0fp5Gf-.js similarity index 94% rename from app/dubbo-ui/dist/admin/assets/traffic-dHGZ6qwp.js rename to app/dubbo-ui/dist/admin/assets/traffic-W0fp5Gf-.js index 14bc5643..ced6d838 100644 --- a/app/dubbo-ui/dist/admin/assets/traffic-dHGZ6qwp.js +++ b/app/dubbo-ui/dist/admin/assets/traffic-W0fp5Gf-.js @@ -1 +1 @@ -import{r as t}from"./request-3an337VF.js";const n=e=>t({url:"/condition-rule/search",method:"get",params:e}),u=e=>t({url:`/condition-rule/${e}`,method:"get"}),a=e=>t({url:`/condition-rule/${e}`,method:"delete"}),l=(e,o)=>t({url:`/condition-rule/${e}`,method:"put",data:o}),d=(e,o)=>t({url:`/condition-rule/${e}`,method:"post",data:o}),s=e=>t({url:"/tag-rule/search",method:"get",params:e}),i=e=>t({url:`/tag-rule/${e}`,method:"delete"}),c=e=>t({url:`/tag-rule/${e}`,method:"get"}),g=(e,o)=>t({url:`/tag-rule/${e}`,method:"put",data:o}),m=(e,o)=>t({url:`/tag-rule/${e}`,method:"post",data:o}),h=e=>t({url:"/configurator/search",method:"get",params:e}),R=e=>t({url:`/configurator/${encodeURIComponent(e.name)}`,method:"get"}),p=(e,o)=>t({url:`/configurator/${encodeURIComponent(e.name)}`,method:"put",data:o}),C=(e,o)=>t({url:`/configurator/${encodeURIComponent(e.name)}`,method:"post",data:o}),f=e=>t({url:`/configurator/${encodeURIComponent(e.name)}`,method:"delete"});export{d as a,s as b,i as c,a as d,c as e,m as f,u as g,g as h,h as i,f as j,R as k,C as l,p as m,n as s,l as u}; +import{r as t}from"./request-Cs8TyifY.js";const n=e=>t({url:"/condition-rule/search",method:"get",params:e}),u=e=>t({url:`/condition-rule/${e}`,method:"get"}),a=e=>t({url:`/condition-rule/${e}`,method:"delete"}),l=(e,o)=>t({url:`/condition-rule/${e}`,method:"put",data:o}),d=(e,o)=>t({url:`/condition-rule/${e}`,method:"post",data:o}),s=e=>t({url:"/tag-rule/search",method:"get",params:e}),i=e=>t({url:`/tag-rule/${e}`,method:"delete"}),c=e=>t({url:`/tag-rule/${e}`,method:"get"}),g=(e,o)=>t({url:`/tag-rule/${e}`,method:"put",data:o}),m=(e,o)=>t({url:`/tag-rule/${e}`,method:"post",data:o}),h=e=>t({url:"/configurator/search",method:"get",params:e}),R=e=>t({url:`/configurator/${encodeURIComponent(e.name)}`,method:"get"}),p=(e,o)=>t({url:`/configurator/${encodeURIComponent(e.name)}`,method:"put",data:o}),C=(e,o)=>t({url:`/configurator/${encodeURIComponent(e.name)}`,method:"post",data:o}),f=e=>t({url:`/configurator/${encodeURIComponent(e.name)}`,method:"delete"});export{d as a,s as b,i as c,a as d,c as e,m as f,u as g,g as h,h as i,f as j,R as k,C as l,p as m,n as s,l as u}; diff --git a/app/dubbo-ui/dist/admin/assets/tsMode-uoK2x2Py.js b/app/dubbo-ui/dist/admin/assets/tsMode-tH5gnU9G.js similarity index 99% rename from app/dubbo-ui/dist/admin/assets/tsMode-uoK2x2Py.js rename to app/dubbo-ui/dist/admin/assets/tsMode-tH5gnU9G.js index d4ff7a9e..a0a33ea6 100644 --- a/app/dubbo-ui/dist/admin/assets/tsMode-uoK2x2Py.js +++ b/app/dubbo-ui/dist/admin/assets/tsMode-tH5gnU9G.js @@ -1,4 +1,4 @@ -import{t as I,m as N}from"./js-yaml-eElisXzH.js";import"./index-3zDsduUv.js";/*!----------------------------------------------------------------------------- +import{t as I,m as N}from"./js-yaml-EQlPfOK8.js";import"./index-VXjVsiiO.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license diff --git a/app/dubbo-ui/dist/admin/assets/typescript-jSqLomXD.js b/app/dubbo-ui/dist/admin/assets/typescript-q9CUqdgD.js similarity index 97% rename from app/dubbo-ui/dist/admin/assets/typescript-jSqLomXD.js rename to app/dubbo-ui/dist/admin/assets/typescript-q9CUqdgD.js index fc31fe02..6f365906 100644 --- a/app/dubbo-ui/dist/admin/assets/typescript-jSqLomXD.js +++ b/app/dubbo-ui/dist/admin/assets/typescript-q9CUqdgD.js @@ -1,4 +1,4 @@ -import{m as a}from"./js-yaml-eElisXzH.js";import"./index-3zDsduUv.js";/*!----------------------------------------------------------------------------- +import{m as a}from"./js-yaml-EQlPfOK8.js";import"./index-VXjVsiiO.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license diff --git a/app/dubbo-ui/dist/admin/assets/updateByFormView-mbEXmvrc.js b/app/dubbo-ui/dist/admin/assets/updateByFormView-A6KtnX7-.js similarity index 97% rename from app/dubbo-ui/dist/admin/assets/updateByFormView-mbEXmvrc.js rename to app/dubbo-ui/dist/admin/assets/updateByFormView-A6KtnX7-.js index b4695ae8..418a6ef2 100644 --- a/app/dubbo-ui/dist/admin/assets/updateByFormView-mbEXmvrc.js +++ b/app/dubbo-ui/dist/admin/assets/updateByFormView-A6KtnX7-.js @@ -1 +1 @@ -import{u as ie}from"./index-HdnVQEsT.js";import{d as ue,y as de,z as re,u as pe,D as _e,H as fe,k as ye,a as ve,B as U,r as be,F as M,c as Y,b as e,w as a,e as u,o as g,f as b,J as w,n as A,aa as he,ab as me,L as ke,M as ge,j as x,t as B,I as P,T as L,m as we,p as xe,h as Ce,_ as $e}from"./index-3zDsduUv.js";import{e as Oe,h as Te}from"./traffic-dHGZ6qwp.js";import"./request-3an337VF.js";const K=D=>(xe("data-v-5efc185c"),D=D(),Ce(),D),Ue={class:"__container_tagRule_detail"},je={style:{"max-width":"400px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},Ee=K(()=>x("br",null,null,-1)),Ke=K(()=>x("br",null,null,-1)),Ne=K(()=>x("br",null,null,-1)),Re=K(()=>x("br",null,null,-1)),Ae=K(()=>x("br",null,null,-1)),De=K(()=>x("br",null,null,-1)),Se={class:"bottom-action-footer"},Ve=ue({__name:"updateByFormView",setup(D){const $=de(re.PROVIDE_INJECT_KEY);pe(),_e(async()=>{if(fe.isNil($.tagRule))await F();else{const{enabled:t=!0,key:l,scope:d,runtime:p=!0,tags:o}=$.tagRule;s.enable=t,s.objectOfAction=l,s.ruleGranularity=d,s.runtime=p,console.log("tags",o),o&&o.length&&o.forEach((h,_)=>{r.value.push({tagName:h.name,scope:{type:"labels",labels:[],addresses:{condition:"=",addressesStr:""}}});const{match:f}=h;let c=[];f.forEach((i,y)=>{c.push({myKey:i.key,condition:Object.keys(i.value)[0],value:i.value[Object.keys(i.value)[0]]})}),r.value[_]&&r.value[_].scope&&(r.value[_].scope.labels=c)})}}),ye();const z=ve(),j=U(!1),G=U(8);ie().toClipboard;const q=(t,l)=>{var o,h,_,f;let d=`对于应用 ${l||"未指定"},将满足 `;const p=[];if(((o=t.scope)==null?void 0:o.type)==="labels"&&((h=t.scope.labels)==null?void 0:h.length)>0)t.scope.labels.forEach(c=>{var k,m;let i="";if(c.myKey==="method")i="请求方法";else if((k=c.myKey)!=null&&k.startsWith("args[")){const N=(m=c.myKey.match(/\[(\d+)\]/))==null?void 0:m[1];N!==void 0?i=`第 ${parseInt(N)+1} 个参数`:i=`标签 ${c.myKey||"未指定"}`}else i=`标签 ${c.myKey||"未指定"}`;let y="";const v=c.value||"未指定";switch(c.condition){case"exact":y=`exact ${v}`;break;case"regex":y=`regex ${v}`;break;case"prefix":y=`prefix ${v}`;break;case"noempty":y="noempty";break;case"empty":y="empty";break;case"wildcard":y=`wildcard ${v}`;break;case"!=":y=`!= ${v}`;break;default:y=`${c.condition||"未知关系"} ${v}`}c.condition!=="empty"&&c.condition!=="noempty"&&!c.value?p.push(`${i} 未填写`):p.push(`${i} ${y}`)});else if(((_=t.scope)==null?void 0:_.type)==="addresses"&&((f=t.scope.addresses)!=null&&f.addressesStr)){const c=t.scope.addresses.condition==="="?"等于":"不等于";p.push(`地址 ${c} [${t.scope.addresses.addressesStr}]`)}return p.length===0?d+="任意请求":d+=p.join(" 且 "),d+=` 的实例,打上 ${t.tagName||"未指定"} 标签,划入 ${t.tagName||"未指定"} 的隔离环境`,d},s=be({ruleGranularity:"application",objectOfAction:"shop-user",enable:!0,faultTolerantProtection:!0,runtime:!0,priority:1,configVersion:""});M(s,t=>{const{enable:l,objectOfAction:d,runtime:p,ruleGranularity:o}=t;$.tagRule={...$.tagRule,enabled:l,key:d,runtime:p,scope:o}});const H=U([{label:"labels",value:"labels"}]),W=U([{label:"exact",value:"exact"},{label:"regex",value:"regex"},{label:"prefix",value:"prefix"},{label:"noempty",value:"noempty"},{label:"empty",value:"empty"},{label:"wildcard",value:"wildcard"}]),Q=U([{label:"=",value:"="},{label:"!=",value:"!="}]),X=U([{title:"键",dataIndex:"myKey",key:"myKey"},{title:"关系",dataIndex:"condition",key:"condition"},{title:"值",dataIndex:"value",key:"value"},{title:"操作",dataIndex:"operation",key:"operation"}]),r=U([]);M(r,t=>{console.log(t);const l=[];t.forEach(d=>{const{tagName:p,scope:o}=d,h=o.labels,_={name:p,match:[]};h&&h.length>0&&h.forEach(f=>{_.match.push({key:f.myKey,value:{[f.condition]:f.value}})}),l.push(_)}),$.tagRule={...$.tagRule,tags:l},console.log("watch tagList",$.tagRule)},{deep:!0});const Z=(t,l)=>{if(r.value[t].scope.labels.length===1){r.value[t].scope.type="addresses";return}r.value[t].scope.labels.splice(l,1)},I=t=>{r.value[t].scope.labels.push({myKey:"",condition:"exact",value:""})},ee=()=>{r.value.push({tagName:"",scope:{type:"labels",labels:[{myKey:"",condition:"",value:""}],addresses:{condition:"",addressesStr:""}}})},ae=t=>{r.value.splice(t,1)},F=async()=>{var l;const t=await Oe((l=z.params)==null?void 0:l.ruleName);if(t.code===200){const{configVersion:d,enabled:p,key:o,runtime:h,scope:_,tags:f}=t==null?void 0:t.data;s.configVersion=d,s.enable=p,s.runtime=h,s.ruleGranularity=_,s.objectOfAction=o,r.value=[],f.forEach((c,i)=>{r.value.push({tagName:c.name,scope:{type:"labels",labels:[],addresses:{condition:"=",addressesStr:""}}});const{match:y}=c;let v=[];y.forEach((k,m)=>{v.push({myKey:k.key,condition:Object.keys(k.value)[0],value:k.value[Object.keys(k.value)[0]]})}),r.value[i]&&r.value[i].scope&&(r.value[i].scope.labels=v)})}},te=async()=>{var i;const{ruleGranularity:t,objectOfAction:l,enable:d,faultTolerantProtection:p,runtime:o,priority:h,configVersion:_}=s,f={configVersion:_,scope:t,key:l,enabled:d,runtime:o,tags:[]};r.value.forEach((y,v)=>{const k={name:y.tagName,match:[]};y.scope.labels.forEach((m,N)=>{const S={key:m.myKey,value:{}};S.value[m.condition]=m.value,k.match.push(S)}),f.tags.push(k)}),(await Te((i=z.params)==null?void 0:i.ruleName,f)).code===200&&(await F(),we.success("修改成功"))};return(t,l)=>{const d=u("a-button"),p=u("a-flex"),o=u("a-form-item"),h=u("a-switch"),_=u("a-col"),f=u("a-input"),c=u("a-input-number"),i=u("a-row"),y=u("a-form"),v=u("a-card"),k=u("a-tooltip"),m=u("a-space"),N=u("a-radio-group"),S=u("a-tag"),J=u("a-select"),le=u("a-table"),oe=u("a-textarea"),V=u("a-descriptions-item"),ne=u("a-descriptions"),se=u("a-affix");return g(),Y("div",Ue,[e(p,{style:{width:"100%"}},{default:a(()=>[e(_,{span:j.value?24-G.value:24,class:"left"},{default:a(()=>[e(v,null,{default:a(()=>[e(m,{style:{width:"100%"},direction:"vertical",size:"middle"},{default:a(()=>[e(i,null,{default:a(()=>[e(p,{justify:"end",style:{width:"100%"}},{default:a(()=>[e(d,{type:"text",style:{color:"#0a90d5"},onClick:l[0]||(l[0]=n=>j.value=!j.value)},{default:a(()=>[b(" 字段说明 "),j.value?(g(),w(A(me),{key:1})):(g(),w(A(he),{key:0}))]),_:1})]),_:1}),e(v,{title:"基础信息",style:{width:"100%"},class:"_detail"},{default:a(()=>[e(y,{layout:"horizontal"},{default:a(()=>[e(i,{style:{width:"100%"}},{default:a(()=>[e(_,{span:12},{default:a(()=>[e(o,{label:"规则粒度",required:""},{default:a(()=>[b(" 应用")]),_:1}),e(o,{label:"容错保护"},{default:a(()=>[e(h,{checked:s.faultTolerantProtection,"onUpdate:checked":l[1]||(l[1]=n=>s.faultTolerantProtection=n),"checked-children":"开","un-checked-children":"关"},null,8,["checked"])]),_:1}),e(o,{label:"运行时生效"},{default:a(()=>[e(h,{checked:s.runtime,"onUpdate:checked":l[2]||(l[2]=n=>s.runtime=n),"checked-children":"开","un-checked-children":"关"},null,8,["checked"])]),_:1})]),_:1}),e(_,{span:12},{default:a(()=>[e(o,{label:"作用对象",required:""},{default:a(()=>[e(f,{disabled:"",value:s.objectOfAction,"onUpdate:value":l[3]||(l[3]=n=>s.objectOfAction=n),style:{width:"200px"}},null,8,["value"])]),_:1}),e(o,{label:"立即启用"},{default:a(()=>[e(h,{checked:s.enable,"onUpdate:checked":l[4]||(l[4]=n=>s.enable=n),"checked-children":"开","un-checked-children":"关"},null,8,["checked"])]),_:1}),e(o,{label:"优先级"},{default:a(()=>[e(c,{min:"1",value:s.priority,"onUpdate:value":l[5]||(l[5]=n=>s.priority=n)},null,8,["value"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),e(v,{title:"标签列表",style:{width:"100%"},class:"_detail"},{default:a(()=>[(g(!0),Y(ke,null,ge(r.value,(n,R)=>(g(),w(v,{key:R},{title:a(()=>[e(m,{align:"center"},{default:a(()=>[x("div",null,"路由【"+B(R+1)+"】",1),e(k,null,{title:a(()=>[b(B(q(n,s.objectOfAction)),1)]),default:a(()=>[x("div",je,B(q(n,s.objectOfAction)),1)]),_:2},1024)]),_:2},1024)]),default:a(()=>[e(y,{layout:"horizontal"},{default:a(()=>[e(m,{style:{width:"100%"},direction:"vertical",size:"large"},{default:a(()=>[e(p,{justify:"end"},{default:a(()=>[e(A(P),{onClick:O=>ae(R),class:"action-icon",icon:"tdesign:delete"},null,8,["onClick"])]),_:2},1024),e(o,{label:"标签名",required:""},{default:a(()=>[e(f,{placeholder:"隔离环境名",value:n.tagName,"onUpdate:value":O=>n.tagName=O},null,8,["value","onUpdate:value"])]),_:2},1024),e(o,{label:"作用范围",required:""},{default:a(()=>[e(v,null,{default:a(()=>[e(m,{style:{width:"100%"},direction:"vertical"},{default:a(()=>[e(o,{label:"匹配条件类型"},{default:a(()=>[e(N,{value:n.scope.type,"onUpdate:value":O=>n.scope.type=O,options:H.value},null,8,["value","onUpdate:value","options"])]),_:2},1024),e(m,{align:"start",style:{width:"100%"},direction:"horizontal"},{default:a(()=>{var O;return[e(S,{bordered:!1,color:"processing"},{default:a(()=>[b(B(n.scope.type),1)]),_:2},1024),n.scope.type==="labels"?(g(),w(le,{key:0,pagination:!1,columns:X.value,"data-source":(O=n.scope)==null?void 0:O.labels},{bodyCell:a(({column:C,record:E,text:Be,index:ce})=>[C.key==="myKey"?(g(),w(f,{key:0,placeholder:"label key",value:E.myKey,"onUpdate:value":T=>E.myKey=T},null,8,["value","onUpdate:value"])):L("",!0),C.key==="condition"?(g(),w(J,{key:1,value:E.condition,"onUpdate:value":T=>E.condition=T,style:{width:"120px"},options:W.value},null,8,["value","onUpdate:value","options"])):L("",!0),C.key==="value"?(g(),w(f,{key:2,placeholder:"label value",value:E.value,"onUpdate:value":T=>E.value=T},null,8,["value","onUpdate:value"])):C.key==="operation"?(g(),w(m,{key:3,align:"center"},{default:a(()=>[e(A(P),{icon:"tdesign:remove",class:"action-icon",onClick:T=>Z(R,ce)},null,8,["onClick"]),e(A(P),{class:"action-icon",icon:"tdesign:add",onClick:T=>I(R)},null,8,["onClick"])]),_:2},1024)):L("",!0)]),_:2},1032,["columns","data-source"])):(g(),w(m,{key:1,align:"start"},{default:a(()=>[e(J,{style:{width:"120px"},value:n.scope.addresses.condition,"onUpdate:value":C=>n.scope.addresses.condition=C,options:Q.value},null,8,["value","onUpdate:value","options"]),e(oe,{style:{width:"500px"},value:n.scope.addresses.addressesStr,"onUpdate:value":C=>n.scope.addresses.addressesStr=C,placeholder:'地址列表,如有多个用","隔开'},null,8,["value","onUpdate:value"])]),_:2},1024))]}),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:1}),e(d,{onClick:ee,type:"primary"},{default:a(()=>[b(" 增加标签")]),_:1})]),_:1})]),_:1})]),_:1},8,["span"]),e(_,{span:j.value?G.value:0,class:"right"},{default:a(()=>[j.value?(g(),w(v,{key:0,class:"sliderBox"},{default:a(()=>[x("div",null,[e(ne,{title:"字段说明",column:1},{default:a(()=>[e(V,{label:"key"},{default:a(()=>[b(" 作用对象"),Ee,b(" 可能的值:Dubbo应用名或者服务名 ")]),_:1}),e(V,{label:"scope"},{default:a(()=>[b(" 规则粒度"),Ke,b(" 可能的值:application, service ")]),_:1}),e(V,{label:"force"},{default:a(()=>[b(" 容错保护"),Ne,b(" 可能的值:true, false"),Re,b(" 描述:如果为true,则路由筛选后若没有可用的地址则会直接报异常;如果为false,则会从可用地址中选择完成RPC调用 ")]),_:1}),e(V,{label:"runtime"},{default:a(()=>[b(" 运行时生效"),Ae,b(" 可能的值:true, false"),De,b(" 描述:如果为true,则该rule下的所有路由将会实时生效;若为false,则只有在启动时才会生效 ")]),_:1})]),_:1})])]),_:1})):L("",!0)]),_:1},8,["span"])]),_:1}),e(se,{"offset-bottom":10},{default:a(()=>[x("div",Se,[e(m,{align:"center",size:"large"},{default:a(()=>[e(d,{type:"primary",onClick:te},{default:a(()=>[b(" 确认")]),_:1}),e(d,null,{default:a(()=>[b(" 取消")]),_:1})]),_:1})])]),_:1})])}}}),qe=$e(Ve,[["__scopeId","data-v-5efc185c"]]);export{qe as default}; +import{u as ie}from"./index-Y8bti_iA.js";import{d as ue,y as de,z as re,u as pe,D as _e,H as fe,k as ye,a as ve,B as U,r as be,F as M,c as Y,b as e,w as a,e as u,o as g,f as b,J as w,n as A,aa as he,ab as me,L as ke,M as ge,j as x,t as B,I as P,T as L,m as we,p as xe,h as Ce,_ as $e}from"./index-VXjVsiiO.js";import{e as Oe,h as Te}from"./traffic-W0fp5Gf-.js";import"./request-Cs8TyifY.js";const K=D=>(xe("data-v-5efc185c"),D=D(),Ce(),D),Ue={class:"__container_tagRule_detail"},je={style:{"max-width":"400px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},Ee=K(()=>x("br",null,null,-1)),Ke=K(()=>x("br",null,null,-1)),Ne=K(()=>x("br",null,null,-1)),Re=K(()=>x("br",null,null,-1)),Ae=K(()=>x("br",null,null,-1)),De=K(()=>x("br",null,null,-1)),Se={class:"bottom-action-footer"},Ve=ue({__name:"updateByFormView",setup(D){const $=de(re.PROVIDE_INJECT_KEY);pe(),_e(async()=>{if(fe.isNil($.tagRule))await F();else{const{enabled:t=!0,key:l,scope:d,runtime:p=!0,tags:o}=$.tagRule;s.enable=t,s.objectOfAction=l,s.ruleGranularity=d,s.runtime=p,console.log("tags",o),o&&o.length&&o.forEach((h,_)=>{r.value.push({tagName:h.name,scope:{type:"labels",labels:[],addresses:{condition:"=",addressesStr:""}}});const{match:f}=h;let c=[];f.forEach((i,y)=>{c.push({myKey:i.key,condition:Object.keys(i.value)[0],value:i.value[Object.keys(i.value)[0]]})}),r.value[_]&&r.value[_].scope&&(r.value[_].scope.labels=c)})}}),ye();const z=ve(),j=U(!1),G=U(8);ie().toClipboard;const q=(t,l)=>{var o,h,_,f;let d=`对于应用 ${l||"未指定"},将满足 `;const p=[];if(((o=t.scope)==null?void 0:o.type)==="labels"&&((h=t.scope.labels)==null?void 0:h.length)>0)t.scope.labels.forEach(c=>{var k,m;let i="";if(c.myKey==="method")i="请求方法";else if((k=c.myKey)!=null&&k.startsWith("args[")){const N=(m=c.myKey.match(/\[(\d+)\]/))==null?void 0:m[1];N!==void 0?i=`第 ${parseInt(N)+1} 个参数`:i=`标签 ${c.myKey||"未指定"}`}else i=`标签 ${c.myKey||"未指定"}`;let y="";const v=c.value||"未指定";switch(c.condition){case"exact":y=`exact ${v}`;break;case"regex":y=`regex ${v}`;break;case"prefix":y=`prefix ${v}`;break;case"noempty":y="noempty";break;case"empty":y="empty";break;case"wildcard":y=`wildcard ${v}`;break;case"!=":y=`!= ${v}`;break;default:y=`${c.condition||"未知关系"} ${v}`}c.condition!=="empty"&&c.condition!=="noempty"&&!c.value?p.push(`${i} 未填写`):p.push(`${i} ${y}`)});else if(((_=t.scope)==null?void 0:_.type)==="addresses"&&((f=t.scope.addresses)!=null&&f.addressesStr)){const c=t.scope.addresses.condition==="="?"等于":"不等于";p.push(`地址 ${c} [${t.scope.addresses.addressesStr}]`)}return p.length===0?d+="任意请求":d+=p.join(" 且 "),d+=` 的实例,打上 ${t.tagName||"未指定"} 标签,划入 ${t.tagName||"未指定"} 的隔离环境`,d},s=be({ruleGranularity:"application",objectOfAction:"shop-user",enable:!0,faultTolerantProtection:!0,runtime:!0,priority:1,configVersion:""});M(s,t=>{const{enable:l,objectOfAction:d,runtime:p,ruleGranularity:o}=t;$.tagRule={...$.tagRule,enabled:l,key:d,runtime:p,scope:o}});const H=U([{label:"labels",value:"labels"}]),W=U([{label:"exact",value:"exact"},{label:"regex",value:"regex"},{label:"prefix",value:"prefix"},{label:"noempty",value:"noempty"},{label:"empty",value:"empty"},{label:"wildcard",value:"wildcard"}]),Q=U([{label:"=",value:"="},{label:"!=",value:"!="}]),X=U([{title:"键",dataIndex:"myKey",key:"myKey"},{title:"关系",dataIndex:"condition",key:"condition"},{title:"值",dataIndex:"value",key:"value"},{title:"操作",dataIndex:"operation",key:"operation"}]),r=U([]);M(r,t=>{console.log(t);const l=[];t.forEach(d=>{const{tagName:p,scope:o}=d,h=o.labels,_={name:p,match:[]};h&&h.length>0&&h.forEach(f=>{_.match.push({key:f.myKey,value:{[f.condition]:f.value}})}),l.push(_)}),$.tagRule={...$.tagRule,tags:l},console.log("watch tagList",$.tagRule)},{deep:!0});const Z=(t,l)=>{if(r.value[t].scope.labels.length===1){r.value[t].scope.type="addresses";return}r.value[t].scope.labels.splice(l,1)},I=t=>{r.value[t].scope.labels.push({myKey:"",condition:"exact",value:""})},ee=()=>{r.value.push({tagName:"",scope:{type:"labels",labels:[{myKey:"",condition:"",value:""}],addresses:{condition:"",addressesStr:""}}})},ae=t=>{r.value.splice(t,1)},F=async()=>{var l;const t=await Oe((l=z.params)==null?void 0:l.ruleName);if(t.code===200){const{configVersion:d,enabled:p,key:o,runtime:h,scope:_,tags:f}=t==null?void 0:t.data;s.configVersion=d,s.enable=p,s.runtime=h,s.ruleGranularity=_,s.objectOfAction=o,r.value=[],f.forEach((c,i)=>{r.value.push({tagName:c.name,scope:{type:"labels",labels:[],addresses:{condition:"=",addressesStr:""}}});const{match:y}=c;let v=[];y.forEach((k,m)=>{v.push({myKey:k.key,condition:Object.keys(k.value)[0],value:k.value[Object.keys(k.value)[0]]})}),r.value[i]&&r.value[i].scope&&(r.value[i].scope.labels=v)})}},te=async()=>{var i;const{ruleGranularity:t,objectOfAction:l,enable:d,faultTolerantProtection:p,runtime:o,priority:h,configVersion:_}=s,f={configVersion:_,scope:t,key:l,enabled:d,runtime:o,tags:[]};r.value.forEach((y,v)=>{const k={name:y.tagName,match:[]};y.scope.labels.forEach((m,N)=>{const S={key:m.myKey,value:{}};S.value[m.condition]=m.value,k.match.push(S)}),f.tags.push(k)}),(await Te((i=z.params)==null?void 0:i.ruleName,f)).code===200&&(await F(),we.success("修改成功"))};return(t,l)=>{const d=u("a-button"),p=u("a-flex"),o=u("a-form-item"),h=u("a-switch"),_=u("a-col"),f=u("a-input"),c=u("a-input-number"),i=u("a-row"),y=u("a-form"),v=u("a-card"),k=u("a-tooltip"),m=u("a-space"),N=u("a-radio-group"),S=u("a-tag"),J=u("a-select"),le=u("a-table"),oe=u("a-textarea"),V=u("a-descriptions-item"),ne=u("a-descriptions"),se=u("a-affix");return g(),Y("div",Ue,[e(p,{style:{width:"100%"}},{default:a(()=>[e(_,{span:j.value?24-G.value:24,class:"left"},{default:a(()=>[e(v,null,{default:a(()=>[e(m,{style:{width:"100%"},direction:"vertical",size:"middle"},{default:a(()=>[e(i,null,{default:a(()=>[e(p,{justify:"end",style:{width:"100%"}},{default:a(()=>[e(d,{type:"text",style:{color:"#0a90d5"},onClick:l[0]||(l[0]=n=>j.value=!j.value)},{default:a(()=>[b(" 字段说明 "),j.value?(g(),w(A(me),{key:1})):(g(),w(A(he),{key:0}))]),_:1})]),_:1}),e(v,{title:"基础信息",style:{width:"100%"},class:"_detail"},{default:a(()=>[e(y,{layout:"horizontal"},{default:a(()=>[e(i,{style:{width:"100%"}},{default:a(()=>[e(_,{span:12},{default:a(()=>[e(o,{label:"规则粒度",required:""},{default:a(()=>[b(" 应用")]),_:1}),e(o,{label:"容错保护"},{default:a(()=>[e(h,{checked:s.faultTolerantProtection,"onUpdate:checked":l[1]||(l[1]=n=>s.faultTolerantProtection=n),"checked-children":"开","un-checked-children":"关"},null,8,["checked"])]),_:1}),e(o,{label:"运行时生效"},{default:a(()=>[e(h,{checked:s.runtime,"onUpdate:checked":l[2]||(l[2]=n=>s.runtime=n),"checked-children":"开","un-checked-children":"关"},null,8,["checked"])]),_:1})]),_:1}),e(_,{span:12},{default:a(()=>[e(o,{label:"作用对象",required:""},{default:a(()=>[e(f,{disabled:"",value:s.objectOfAction,"onUpdate:value":l[3]||(l[3]=n=>s.objectOfAction=n),style:{width:"200px"}},null,8,["value"])]),_:1}),e(o,{label:"立即启用"},{default:a(()=>[e(h,{checked:s.enable,"onUpdate:checked":l[4]||(l[4]=n=>s.enable=n),"checked-children":"开","un-checked-children":"关"},null,8,["checked"])]),_:1}),e(o,{label:"优先级"},{default:a(()=>[e(c,{min:"1",value:s.priority,"onUpdate:value":l[5]||(l[5]=n=>s.priority=n)},null,8,["value"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),e(v,{title:"标签列表",style:{width:"100%"},class:"_detail"},{default:a(()=>[(g(!0),Y(ke,null,ge(r.value,(n,R)=>(g(),w(v,{key:R},{title:a(()=>[e(m,{align:"center"},{default:a(()=>[x("div",null,"路由【"+B(R+1)+"】",1),e(k,null,{title:a(()=>[b(B(q(n,s.objectOfAction)),1)]),default:a(()=>[x("div",je,B(q(n,s.objectOfAction)),1)]),_:2},1024)]),_:2},1024)]),default:a(()=>[e(y,{layout:"horizontal"},{default:a(()=>[e(m,{style:{width:"100%"},direction:"vertical",size:"large"},{default:a(()=>[e(p,{justify:"end"},{default:a(()=>[e(A(P),{onClick:O=>ae(R),class:"action-icon",icon:"tdesign:delete"},null,8,["onClick"])]),_:2},1024),e(o,{label:"标签名",required:""},{default:a(()=>[e(f,{placeholder:"隔离环境名",value:n.tagName,"onUpdate:value":O=>n.tagName=O},null,8,["value","onUpdate:value"])]),_:2},1024),e(o,{label:"作用范围",required:""},{default:a(()=>[e(v,null,{default:a(()=>[e(m,{style:{width:"100%"},direction:"vertical"},{default:a(()=>[e(o,{label:"匹配条件类型"},{default:a(()=>[e(N,{value:n.scope.type,"onUpdate:value":O=>n.scope.type=O,options:H.value},null,8,["value","onUpdate:value","options"])]),_:2},1024),e(m,{align:"start",style:{width:"100%"},direction:"horizontal"},{default:a(()=>{var O;return[e(S,{bordered:!1,color:"processing"},{default:a(()=>[b(B(n.scope.type),1)]),_:2},1024),n.scope.type==="labels"?(g(),w(le,{key:0,pagination:!1,columns:X.value,"data-source":(O=n.scope)==null?void 0:O.labels},{bodyCell:a(({column:C,record:E,text:Be,index:ce})=>[C.key==="myKey"?(g(),w(f,{key:0,placeholder:"label key",value:E.myKey,"onUpdate:value":T=>E.myKey=T},null,8,["value","onUpdate:value"])):L("",!0),C.key==="condition"?(g(),w(J,{key:1,value:E.condition,"onUpdate:value":T=>E.condition=T,style:{width:"120px"},options:W.value},null,8,["value","onUpdate:value","options"])):L("",!0),C.key==="value"?(g(),w(f,{key:2,placeholder:"label value",value:E.value,"onUpdate:value":T=>E.value=T},null,8,["value","onUpdate:value"])):C.key==="operation"?(g(),w(m,{key:3,align:"center"},{default:a(()=>[e(A(P),{icon:"tdesign:remove",class:"action-icon",onClick:T=>Z(R,ce)},null,8,["onClick"]),e(A(P),{class:"action-icon",icon:"tdesign:add",onClick:T=>I(R)},null,8,["onClick"])]),_:2},1024)):L("",!0)]),_:2},1032,["columns","data-source"])):(g(),w(m,{key:1,align:"start"},{default:a(()=>[e(J,{style:{width:"120px"},value:n.scope.addresses.condition,"onUpdate:value":C=>n.scope.addresses.condition=C,options:Q.value},null,8,["value","onUpdate:value","options"]),e(oe,{style:{width:"500px"},value:n.scope.addresses.addressesStr,"onUpdate:value":C=>n.scope.addresses.addressesStr=C,placeholder:'地址列表,如有多个用","隔开'},null,8,["value","onUpdate:value"])]),_:2},1024))]}),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:1}),e(d,{onClick:ee,type:"primary"},{default:a(()=>[b(" 增加标签")]),_:1})]),_:1})]),_:1})]),_:1},8,["span"]),e(_,{span:j.value?G.value:0,class:"right"},{default:a(()=>[j.value?(g(),w(v,{key:0,class:"sliderBox"},{default:a(()=>[x("div",null,[e(ne,{title:"字段说明",column:1},{default:a(()=>[e(V,{label:"key"},{default:a(()=>[b(" 作用对象"),Ee,b(" 可能的值:Dubbo应用名或者服务名 ")]),_:1}),e(V,{label:"scope"},{default:a(()=>[b(" 规则粒度"),Ke,b(" 可能的值:application, service ")]),_:1}),e(V,{label:"force"},{default:a(()=>[b(" 容错保护"),Ne,b(" 可能的值:true, false"),Re,b(" 描述:如果为true,则路由筛选后若没有可用的地址则会直接报异常;如果为false,则会从可用地址中选择完成RPC调用 ")]),_:1}),e(V,{label:"runtime"},{default:a(()=>[b(" 运行时生效"),Ae,b(" 可能的值:true, false"),De,b(" 描述:如果为true,则该rule下的所有路由将会实时生效;若为false,则只有在启动时才会生效 ")]),_:1})]),_:1})])]),_:1})):L("",!0)]),_:1},8,["span"])]),_:1}),e(se,{"offset-bottom":10},{default:a(()=>[x("div",Se,[e(m,{align:"center",size:"large"},{default:a(()=>[e(d,{type:"primary",onClick:te},{default:a(()=>[b(" 确认")]),_:1}),e(d,null,{default:a(()=>[b(" 取消")]),_:1})]),_:1})])]),_:1})])}}}),qe=$e(Ve,[["__scopeId","data-v-5efc185c"]]);export{qe as default}; diff --git a/app/dubbo-ui/dist/admin/assets/updateByFormView-ySWJqpjX.js b/app/dubbo-ui/dist/admin/assets/updateByFormView-uGRMm5vo.js similarity index 99% rename from app/dubbo-ui/dist/admin/assets/updateByFormView-ySWJqpjX.js rename to app/dubbo-ui/dist/admin/assets/updateByFormView-uGRMm5vo.js index dcc7fcc0..30132e1e 100644 --- a/app/dubbo-ui/dist/admin/assets/updateByFormView-ySWJqpjX.js +++ b/app/dubbo-ui/dist/admin/assets/updateByFormView-uGRMm5vo.js @@ -1 +1 @@ -import{u as Ue}from"./index-HdnVQEsT.js";import{d as De,y as Re,z as Ke,D as qe,H as Oe,k as je,a as Ee,B as W,r as Se,F as se,c as L,b as t,w as l,e as O,o as h,f as C,J as b,n as E,aa as Ae,ab as me,T as j,L as J,M as X,j as B,t as S,I as A,m as Ve,p as ze,h as Be,_ as Ge}from"./index-3zDsduUv.js";import{g as Pe,u as Ne}from"./traffic-dHGZ6qwp.js";import"./request-3an337VF.js";const x=Y=>(ze("data-v-03458e68"),Y=Y(),Be(),Y),We={class:"__container_routingRule_detail"},Fe={style:{"max-width":"400px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},Le=x(()=>B("br",null,null,-1)),xe=x(()=>B("br",null,null,-1)),Je=x(()=>B("br",null,null,-1)),Ye=x(()=>B("br",null,null,-1)),He=x(()=>B("br",null,null,-1)),Qe=x(()=>B("br",null,null,-1)),Xe=De({__name:"updateByFormView",setup(Y){const P=Re(Ke.PROVIDE_INJECT_KEY);qe(async()=>{if(Oe.isNil(P.conditionRule))await ae();else{const{enabled:s=!0,key:e,scope:i,runtime:f=!0,conditions:M}=P.conditionRule;console.log("[ TAB_STATE.conditionRule ] >",P.conditionRule),_.enable=s,_.objectOfAction=e,_.ruleGranularity=i,_.runtime=f,M&&M.length&&M.forEach((d,n)=>{var v,R;const k=d.split("=>"),o=(v=k[0])==null?void 0:v.trim(),T=(R=k[1])==null?void 0:R.trim();c.value[n].requestMatch=te(o,n),c.value[n].routeDistribute=le(T,n)})}we()}),je();const H=Ee(),F=W(!1),Z=W(8);Ue().toClipboard;const _=Se({version:"",ruleGranularity:"",objectOfAction:"",enable:!0,faultTolerantProtection:!1,runtime:!0,priority:null,group:""});se(_,s=>{const{ruleGranularity:e,enable:i=!0,runtime:f=!0,objectOfAction:M}=s;P.conditionRule={...P.conditionRule,enabled:i,key:M,runtime:f,scope:e}});const oe=W([{label:"host",value:"host"},{label:"application",value:"application"},{label:"method",value:"method"},{label:"arguments",value:"arguments"},{label:"attachments",value:"attachments"},{label:"其他",value:"other"}]),ie=W([{label:"host",value:"host"},{label:"其他",value:"other"}]),G=W([{label:"=",value:"="},{label:"!=",value:"!="}]),ue=W([{label:"应用",value:"application"},{label:"服务",value:"service"}]),c=W([{selectedMatchConditionTypes:[],requestMatch:[],selectedRouteDistributeMatchTypes:[],routeDistribute:[{type:"host",condition:"=",value:"127.0.0.1"},{type:"other",list:[{myKey:"key",condition:"=",value:"value"}]}]}]);se(c,s=>{P.conditionRule={...P.conditionRule,conditions:ne()}},{deep:!0});const ce=()=>{c.value.push({selectedMatchConditionTypes:[],requestMatch:[],selectedRouteDistributeMatchTypes:[],routeDistribute:[{type:"host",condition:"=",value:"127.0.0.1"},{type:"other",list:[{myKey:"key",condition:"=",value:"value"}]}]})},de=s=>{c.value.splice(s,1)},re=s=>{c.value[s].requestMatch=[],c.value[s].selectedMatchConditionTypes=[]},pe=s=>{c.value[s].requestMatch=[{type:"host",condition:"",value:""},{type:"application",condition:"",value:""},{type:"method",condition:"",value:""},{type:"arguments",list:[{index:0,condition:"",value:""}]},{type:"attachments",list:[{myKey:"key",condition:"",value:""}]},{type:"other",list:[{myKey:"key",condition:"",value:""}]}]},Q=(s,e)=>{c.value[e].selectedMatchConditionTypes=c.value[e].selectedMatchConditionTypes.filter(i=>i!==s)},ve=(s,e)=>{c.value[e].selectedRouteDistributeMatchTypes=c.value[e].selectedRouteDistributeMatchTypes.filter(i=>i!==s)},ye=[{dataIndex:"index",key:"index",title:"参数索引"},{dataIndex:"condition",key:"condition",title:"关系"},{dataIndex:"value",key:"value",title:"值"},{dataIndex:"operation",key:"operation",title:"操作"}],he=(s,e)=>{c.value[s].requestMatch[e].list.push({index:0,condition:"=",value:""})},fe=(s,e,i)=>{c.value[s].requestMatch[e].list.length===1&&(c.value[s].selectedMatchConditionTypes=c.value[s].selectedMatchConditionTypes.filter(f=>f!=="arguments")),c.value[s].requestMatch[e].list.splice(i,1)},_e=[{dataIndex:"myKey",key:"myKey",title:"键"},{dataIndex:"condition",key:"condition",title:"关系"},{dataIndex:"value",key:"value",title:"值"},{dataIndex:"operation",key:"operation",title:"操作"}],ke=(s,e)=>{c.value[s].requestMatch[e].list.push({key:"key",condition:"=",value:""})},be=(s,e,i)=>{c.value[s].requestMatch[e].list.length===1&&(c.value[s].selectedMatchConditionTypes=c.value[s].selectedMatchConditionTypes.filter(f=>f!=="attachments")),c.value[s].requestMatch[e].list.splice(i,1)},I=[{dataIndex:"myKey",key:"myKey",title:"键"},{dataIndex:"condition",key:"condition",title:"关系"},{dataIndex:"value",key:"value",title:"值"},{dataIndex:"operation",key:"operation",title:"操作"}],ge=(s,e)=>{c.value[s].requestMatch[e].list.push({myKey:"",condition:"=",value:""})},Ce=(s,e,i)=>{if(c.value[s].requestMatch[e].list.length===1){c.value[s].selectedMatchConditionTypes=c.value[s].selectedMatchConditionTypes.filter(f=>f!=="other");return}c.value[s].requestMatch[e].list.splice(i,1)},Me=(s,e)=>{c.value[s].routeDistribute[e].list.push({myKey:"",condition:"=",value:""})},Te=(s,e,i)=>{if(c.value[s].routeDistribute[e].list.length===1){c.value[s].selectedRouteDistributeMatchTypes=c.value[s].selectedRouteDistributeMatchTypes.filter(f=>f!=="other");return}c.value[s].routeDistribute[e].list.splice(i,1)},ee=s=>{var v,R;const e=c.value[s],{ruleGranularity:i,objectOfAction:f}=_;let d=`对于${i==="service"?"服务":"应用"}【${f||"未指定"}】`,n=[];(v=e.selectedMatchConditionTypes)==null||v.forEach($=>{var V,N,p,g;const w=(V=e.requestMatch)==null?void 0:V.find(a=>a.type===$);if(!w)return;let y="";const q=w.condition==="="?"等于":w.condition==="!="?"不等于":w.condition||"",m=w.value||"未指定";switch($){case"host":y=`请求来源主机 ${q} ${m}`;break;case"application":y=`请求来源应用 ${q} ${m}`;break;case"method":y=`请求方法 ${q} ${m}`;break;case"arguments":const a=(N=w.list)==null?void 0:N.map(u=>{const z=u.condition==="="?"等于":u.condition==="!="?"不等于":u.condition||"",K=u.value!==void 0&&u.value!==""?u.value:"未指定";return`参数[${u.index}] ${z} ${K}`}).filter(Boolean);(a==null?void 0:a.length)>0&&(y=a.join(" 且 "));break;case"attachments":const U=(p=w.list)==null?void 0:p.map(u=>{const z=u.condition==="="?"等于":u.condition==="!="?"不等于":u.condition||"",K=u.value!==void 0&&u.value!==""?u.value:"未指定";return`附件[${u.myKey||"未指定"}] ${z} ${K}`}).filter(Boolean);(U==null?void 0:U.length)>0&&(y=U.join(" 且 "));break;case"other":const r=(g=w.list)==null?void 0:g.map(u=>{const z=u.condition==="="?"等于":u.condition==="!="?"不等于":u.condition||"",K=u.value!==void 0&&u.value!==""?u.value:"未指定";return`自定义匹配[${u.myKey||"未指定"}] ${z} ${K}`}).filter(Boolean);(r==null?void 0:r.length)>0&&(y=r.join(" 且 "));break}y&&(($==="host"||$==="application"||$==="method")&&!w.value?n.push(`${$==="host"?"请求来源主机":$==="application"?"请求来源应用":"请求方法"} 未填写`):n.push(y))});const k=n.length>0?n.join(" 且 "):"任意请求";let o=[];(R=e.selectedRouteDistributeMatchTypes)==null||R.forEach($=>{var V,N;const w=(V=e.routeDistribute)==null?void 0:V.find(p=>p.type===$);if(!w)return;let y="";const q=w.condition==="="?"等于":w.condition==="!="?"不等于":w.condition||"",m=w.value||"未指定";switch($){case"host":y=`目标主机 ${q} ${m}`;break;case"other":const p=(N=w.list)==null?void 0:N.map(g=>{const a=g.condition==="="?"等于":g.condition==="!="?"不等于":g.condition||"",U=g.value!==void 0&&g.value!==""?g.value:"未指定";return`目标标签[${g.myKey||"未指定"}] ${a} ${U}`}).filter(Boolean);(p==null?void 0:p.length)>0&&(y=p.join(" 且 "));break}y&&($==="host"&&!w.value?o.push("目标主机 未填写"):o.push(y))});const T=o.length>0?`满足 【${o.join(" 且 ")}】`:"默认路由规则";return`${d},将满足 【${k}】 条件的请求,转发到 ${T} 的实例。`};function te(s,e){const i=[],f=s.split(" & ");return[{type:"host",condition:"",value:""},{type:"application",condition:"",value:""},{type:"method",condition:"",value:""},{type:"arguments",list:[]},{type:"attachments",list:[]},{type:"other",list:[]}].forEach(d=>i.push({...d})),f.forEach(d=>{if(d=d.trim(),d.startsWith("host")){c.value[e].selectedMatchConditionTypes.push("host");const n=d.match(/^host(!=|=)(.+)/);if(n){const k=n[1],o=n[2].trim(),T=i.find(v=>v.type==="host");T.condition=k,T.value=o}}else if(d.startsWith("application")){c.value[e].selectedMatchConditionTypes.push("application");const n=d.match(/^application(!=|=)(.+)/);if(n){const k=n[1],o=n[2].trim(),T=i.find(v=>v.type==="application");T.condition=k,T.value=o}}else if(d.startsWith("method")){c.value[e].selectedMatchConditionTypes.push("method");const n=d.match(/^method(!=|=)(.+)/);if(n){const k=n[1],o=n[2].trim(),T=i.find(v=>v.type==="method");T.condition=k,T.value=o}}else if(d.startsWith("arguments")){!c.value[e].selectedMatchConditionTypes.includes("arguments")&&c.value[e].selectedMatchConditionTypes.push("arguments");const n=d.match(/^arguments\[(\d+)\](!=|=)(.+)/);if(n){const k=parseInt(n[1],10),o=n[2],T=n[3].trim();i.find(R=>R.type==="arguments").list.push({index:k,condition:o,value:T})}}else if(d.startsWith("attachments")){!c.value[e].selectedMatchConditionTypes.includes("attachments")&&c.value[e].selectedMatchConditionTypes.push("attachments");const n=d.match(/^attachments\[(.+)\](!=|=)(.+)/);if(n){const k=n[1].trim(),o=n[2],T=n[3].trim();i.find(R=>R.type==="attachments").list.push({myKey:k,condition:o,value:T})}}else{const n=d.match(/^([^!=]+)(!?=)(.+)$/);if(n){!c.value[e].selectedMatchConditionTypes.includes("other")&&c.value[e].selectedMatchConditionTypes.push("other");const k=i.find(o=>o.type==="other");k&&k.list.push({myKey:n[1].trim(),condition:n[2],value:n[3].trim()})}}}),i}function le(s,e){const i=[],f=s==null?void 0:s.split(" & ");return[{type:"host",condition:"",value:""},{type:"other",list:[]}].forEach(d=>i.push({...d})),f!=null&&f.length&&f.forEach(d=>{if(d=d.trim(),d.startsWith("host")){c.value[e].selectedRouteDistributeMatchTypes.push("host");const n=d.match(/^host(!=|=)(.+)/);if(n){const k=n[1],o=n[2].trim(),T=i.find(v=>v.type==="host");T.condition=k,T.value=o}}else{const n=d.match(/^([^!=]+)(!?=)(.+)$/);if(n){!c.value[e].selectedRouteDistributeMatchTypes.includes("other")&&c.value[e].selectedRouteDistributeMatchTypes.push("other");const k=i.find(o=>o.type==="other");k&&k.list.push({myKey:n[1].trim(),condition:n[2],value:n[3].trim()})}}}),i}async function ae(){var e;let s=await Pe((e=H.params)==null?void 0:e.ruleName);if((s==null?void 0:s.code)===200){console.log("res",s.data);const{conditions:i,configVersion:f,enabled:M,force:d,key:n,runtime:k,scope:o}=s==null?void 0:s.data;_.ruleGranularity=o,_.objectOfAction=n,_.enable=M,_.faultTolerantProtection=d,_.runtime=k,_.configVersion=f,f=="v3.0"&&i.forEach((T,v)=>{var y,q;const R=T.split("=>"),$=(y=R[0])==null?void 0:y.trim(),w=(q=R[1])==null?void 0:q.trim();c.value[v].requestMatch=te($,v),c.value[v].routeDistribute=le(w,v)})}}function ne(){let s=[],e="",i="";return c.value.forEach((f,M)=>{f.selectedMatchConditionTypes.forEach((n,k)=>{f.requestMatch.forEach((o,T)=>{if(n==(o==null?void 0:o.type))switch(o==null?void 0:o.type){case"arguments":o.list.forEach((v,R)=>{e.length>0&&(e+=" & "),e+=`${n}[${v.index}]${v.condition}${v.value}`});break;case"attachments":o.list.forEach((v,R)=>{e.length>0&&(e+=" & "),e+=`${n}[${v.myKey}]${v.condition}${v.value}`});break;case"other":o.list.forEach((v,R)=>{e.length>0&&(e+=" & "),e+=`${v.myKey}${v.condition}${v.value}`});break;default:e.length>0&&(e+=" & "),e+=`${o.type}${o.condition}${o.value}`}})}),f.selectedRouteDistributeMatchTypes.forEach((n,k)=>{f.routeDistribute.forEach((o,T)=>{if(n==(o==null?void 0:o.type))switch(o==null?void 0:o.type){case"other":o==null||o.list.forEach((v,R)=>{i.length>0&&(i+=" & "),i+=`${v.myKey}${v.condition}${v.value}`});break;default:i.length>0&&(i+=" & "),i+=`${o.type}${o.condition}${o.value}`}})});let d="";e.length>0&&i.length>0?d=`${e} => ${i}`:e.length>0&&i.length==0&&(d=`${e}`),s.push(d)}),s}const $e=async()=>{const{ruleName:s}=H.params,{version:e,ruleGranularity:i,objectOfAction:f,enable:M,faultTolerantProtection:d,runtime:n}=_,k={configVersion:"v3.0",scope:i,key:f,enabled:M,force:d,runtime:n,conditions:ne()},o=await Ne(s,k);(o==null?void 0:o.code)===200&&(await ae(),Ve.success("修改成功"))},we=()=>{var e;const s=(e=H.params)==null?void 0:e.ruleName;if(s&&_.ruleGranularity==="service"){const i=s==null?void 0:s.split(":");_.version=i[1],_.group=i[2].split(".")[0]}};return(s,e)=>{const i=O("a-button"),f=O("a-flex"),M=O("a-select"),d=O("a-form-item"),n=O("a-input"),k=O("a-switch"),o=O("a-col"),T=O("a-input-number"),v=O("a-row"),R=O("a-form"),$=O("a-card"),w=O("a-tooltip"),y=O("a-space"),q=O("a-tag"),m=O("a-table"),V=O("a-descriptions-item"),N=O("a-descriptions");return h(),L("div",We,[t(f,{style:{width:"100%"}},{default:l(()=>[t(o,{span:F.value?24-Z.value:24,class:"left"},{default:l(()=>[t($,null,{default:l(()=>[t(y,{style:{width:"100%"},direction:"vertical",size:"middle"},{default:l(()=>[t(v,null,{default:l(()=>[t(f,{justify:"end",style:{width:"100%"}},{default:l(()=>[t(i,{type:"text",style:{color:"#0a90d5"},onClick:e[0]||(e[0]=p=>F.value=!F.value)},{default:l(()=>[C(" 字段说明 "),F.value?(h(),b(E(me),{key:1})):(h(),b(E(Ae),{key:0}))]),_:1})]),_:1}),t($,{title:"基础信息",style:{width:"100%"},class:"_detail"},{default:l(()=>[t(R,{layout:"horizontal"},{default:l(()=>[t(v,{style:{width:"100%"}},{default:l(()=>[t(o,{span:12},{default:l(()=>[t(d,{label:"规则粒度",required:""},{default:l(()=>[t(M,{disabled:"",value:_.ruleGranularity,"onUpdate:value":e[1]||(e[1]=p=>_.ruleGranularity=p),style:{width:"120px"},options:ue.value},null,8,["value","options"])]),_:1}),_.ruleGranularity==="service"?(h(),b(d,{key:0,label:"版本",required:""},{default:l(()=>[t(n,{value:_.version,"onUpdate:value":e[2]||(e[2]=p=>_.version=p),style:{width:"300px"},disabled:""},null,8,["value"])]),_:1})):j("",!0),t(d,{label:"容错保护"},{default:l(()=>[t(k,{checked:_.faultTolerantProtection,"onUpdate:checked":e[3]||(e[3]=p=>_.faultTolerantProtection=p),"checked-children":"开","un-checked-children":"关"},null,8,["checked"])]),_:1}),t(d,{label:"运行时生效"},{default:l(()=>[t(k,{checked:_.runtime,"onUpdate:checked":e[4]||(e[4]=p=>_.runtime=p),"checked-children":"开","un-checked-children":"关"},null,8,["checked"])]),_:1})]),_:1}),t(o,{span:12},{default:l(()=>[t(d,{label:"作用对象",required:""},{default:l(()=>[t(n,{disabled:"",value:_.objectOfAction,"onUpdate:value":e[5]||(e[5]=p=>_.objectOfAction=p),style:{width:"300px"}},null,8,["value"])]),_:1}),_.ruleGranularity==="service"?(h(),b(d,{key:0,label:"分组",required:""},{default:l(()=>[t(n,{value:_.group,"onUpdate:value":e[6]||(e[6]=p=>_.group=p),style:{width:"300px"},disabled:""},null,8,["value"])]),_:1})):j("",!0),t(d,{label:"立即启用"},{default:l(()=>[t(k,{checked:_.enable,"onUpdate:checked":e[7]||(e[7]=p=>_.enable=p),"checked-children":"开","un-checked-children":"关"},null,8,["checked"])]),_:1}),t(d,{label:"优先级"},{default:l(()=>[t(T,{value:_.priority,"onUpdate:value":e[8]||(e[8]=p=>_.priority=p),min:"1"},null,8,["value"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),t($,{title:"路由列表",style:{width:"100%"},class:"_detail"},{default:l(()=>[(h(!0),L(J,null,X(c.value,(p,g)=>(h(),b($,null,{title:l(()=>[t(f,{justify:"space-between"},{default:l(()=>[t(y,{align:"center"},{default:l(()=>[B("div",null,"路由【"+S(g+1)+"】",1),t(w,null,{title:l(()=>[C(S(ee(g)),1)]),default:l(()=>[B("div",Fe,S(ee(g)),1)]),_:2},1024)]),_:2},1024),t(E(A),{onClick:a=>de(g),class:"action-icon",icon:"tdesign:delete"},null,8,["onClick"])]),_:2},1024)]),default:l(()=>[t(R,{layout:"horizontal"},{default:l(()=>[t(y,{style:{width:"100%"},direction:"vertical",size:"large"},{default:l(()=>[t(d,{label:"请求匹配"},{default:l(()=>[p.requestMatch.length>0?(h(),b($,{key:0},{default:l(()=>[t(y,{style:{width:"100%"},direction:"vertical",size:"small"},{default:l(()=>[t(f,{align:"center",justify:"space-between"},{default:l(()=>[t(d,{label:"匹配条件类型"},{default:l(()=>[t(M,{value:p.selectedMatchConditionTypes,"onUpdate:value":a=>p.selectedMatchConditionTypes=a,options:oe.value,mode:"multiple",style:{"min-width":"200px"}},null,8,["value","onUpdate:value","options"])]),_:2},1024),t(E(A),{onClick:a=>re(g),class:"action-icon",icon:"tdesign:delete"},null,8,["onClick"])]),_:2},1024),(h(!0),L(J,null,X(p.requestMatch,(a,U)=>(h(),L(J,null,[p.selectedMatchConditionTypes.includes("host")&&a.type==="host"?(h(),b(y,{key:0,size:"large",align:"center"},{default:l(()=>[t(q,{class:"match-condition-type-label",bordered:!1,color:"processing"},{default:l(()=>[C(S(a==null?void 0:a.type),1)]),_:2},1024),t(M,{value:a.condition,"onUpdate:value":r=>a.condition=r,style:{"min-width":"120px"},options:G.value},null,8,["value","onUpdate:value","options"]),t(n,{value:a.value,"onUpdate:value":r=>a.value=r,placeholder:"请求来源ip"},null,8,["value","onUpdate:value"]),t(E(A),{onClick:r=>Q(a==null?void 0:a.type,g),class:"action-icon",icon:"tdesign:delete"},null,8,["onClick"])]),_:2},1024)):j("",!0),p.selectedMatchConditionTypes.includes("application")&&a.type==="application"?(h(),b(y,{key:1,size:"large",align:"center"},{default:l(()=>[t(q,{class:"match-condition-type-label",bordered:!1,color:"processing"},{default:l(()=>[C(S(a==null?void 0:a.type),1)]),_:2},1024),t(M,{value:a.condition,"onUpdate:value":r=>a.condition=r,style:{"min-width":"120px"},options:G.value},null,8,["value","onUpdate:value","options"]),t(n,{value:a.value,"onUpdate:value":r=>a.value=r,placeholder:"请求来源应用名"},null,8,["value","onUpdate:value"]),t(E(A),{onClick:r=>Q(a==null?void 0:a.type,g),class:"action-icon",icon:"tdesign:delete"},null,8,["onClick"])]),_:2},1024)):j("",!0),p.selectedMatchConditionTypes.includes("method")&&a.type==="method"?(h(),b(y,{key:2,size:"large",align:"center"},{default:l(()=>[t(q,{class:"match-condition-type-label",bordered:!1,color:"processing"},{default:l(()=>[C(S(a==null?void 0:a.type),1)]),_:2},1024),t(M,{value:a.condition,"onUpdate:value":r=>a.condition=r,style:{"min-width":"120px"},options:G.value},null,8,["value","onUpdate:value","options"]),t(n,{value:a.value,"onUpdate:value":r=>a.value=r,placeholder:"方法值"},null,8,["value","onUpdate:value"]),t(E(A),{onClick:r=>Q(a==null?void 0:a.type,g),class:"action-icon",icon:"tdesign:delete"},null,8,["onClick"])]),_:2},1024)):j("",!0),p.selectedMatchConditionTypes.includes("arguments")&&a.type==="arguments"?(h(),b(y,{key:3,style:{width:"100%"},size:"large",align:"start"},{default:l(()=>[t(q,{class:"match-condition-type-label",bordered:!1,color:"processing"},{default:l(()=>[C(S(a==null?void 0:a.type),1)]),_:2},1024),t(y,{direction:"vertical"},{default:l(()=>[t(i,{type:"primary",onClick:r=>he(g,U)},{default:l(()=>[C(" 添加argument ")]),_:2},1032,["onClick"]),t(m,{pagination:!1,columns:ye,"data-source":p.requestMatch[U].list},{bodyCell:l(({column:r,record:u,text:z,index:K})=>[r.key==="index"?(h(),b(n,{key:0,value:u.index,"onUpdate:value":D=>u.index=D,placeholder:"index"},null,8,["value","onUpdate:value"])):r.key==="condition"?(h(),b(M,{key:1,value:u.condition,"onUpdate:value":D=>u.condition=D,options:G.value},null,8,["value","onUpdate:value","options"])):r.key==="value"?(h(),b(n,{key:2,value:u.value,"onUpdate:value":D=>u.value=D,placeholder:"value"},null,8,["value","onUpdate:value"])):r.key==="operation"?(h(),b(y,{key:3,align:"center"},{default:l(()=>[t(E(A),{onClick:D=>fe(g,U,K),icon:"tdesign:remove",class:"action-icon"},null,8,["onClick"])]),_:2},1024)):j("",!0)]),_:2},1032,["data-source"])]),_:2},1024)]),_:2},1024)):j("",!0),p.selectedMatchConditionTypes.includes("attachments")&&a.type==="attachments"?(h(),b(y,{key:4,style:{width:"100%"},size:"large",align:"start"},{default:l(()=>[t(q,{class:"match-condition-type-label",bordered:!1,color:"processing"},{default:l(()=>[C(S(a==null?void 0:a.type),1)]),_:2},1024),t(y,{direction:"vertical"},{default:l(()=>[t(i,{type:"primary",onClick:r=>ke(g,U)},{default:l(()=>[C(" 添加attachment ")]),_:2},1032,["onClick"]),t(m,{pagination:!1,columns:_e,"data-source":p.requestMatch[U].list},{bodyCell:l(({column:r,record:u,text:z,index:K})=>[r.key==="myKey"?(h(),b(n,{key:0,value:u.myKey,"onUpdate:value":D=>u.myKey=D,placeholder:"key"},null,8,["value","onUpdate:value"])):r.key==="condition"?(h(),b(M,{key:1,value:u.condition,"onUpdate:value":D=>u.condition=D,options:G.value},null,8,["value","onUpdate:value","options"])):r.key==="value"?(h(),b(n,{key:2,value:u.value,"onUpdate:value":D=>u.value=D,placeholder:"value"},null,8,["value","onUpdate:value"])):r.key==="operation"?(h(),b(y,{key:3,align:"center"},{default:l(()=>[t(E(A),{onClick:D=>be(g,U,K),icon:"tdesign:remove",class:"action-icon"},null,8,["onClick"])]),_:2},1024)):j("",!0)]),_:2},1032,["data-source"])]),_:2},1024)]),_:2},1024)):j("",!0),p.selectedMatchConditionTypes.includes("other")&&a.type==="other"?(h(),b(y,{key:5,style:{width:"100%"},size:"large",align:"start"},{default:l(()=>[t(q,{class:"match-condition-type-label",bordered:!1,color:"processing"},{default:l(()=>[C(S((a==null?void 0:a.type)=="other"?"其他":a==null?void 0:a.type),1)]),_:2},1024),t(y,{direction:"vertical"},{default:l(()=>[t(i,{type:"primary",onClick:r=>ge(g,U)},{default:l(()=>[C(" 添加other ")]),_:2},1032,["onClick"]),t(m,{pagination:!1,columns:I,"data-source":p.requestMatch[U].list},{bodyCell:l(({column:r,record:u,text:z})=>[r.key==="myKey"?(h(),b(n,{key:0,value:u.myKey,"onUpdate:value":K=>u.myKey=K,placeholder:"key"},null,8,["value","onUpdate:value"])):r.key==="condition"?(h(),b(M,{key:1,value:u.condition,"onUpdate:value":K=>u.condition=K,options:G.value},null,8,["value","onUpdate:value","options"])):r.key==="value"?(h(),b(n,{key:2,value:u.value,"onUpdate:value":K=>u.value=K,placeholder:"value"},null,8,["value","onUpdate:value"])):r.key==="operation"?(h(),b(y,{key:3,align:"center"},{default:l(()=>[t(E(A),{onClick:K=>Ce(g,U,u.index),icon:"tdesign:remove",class:"action-icon"},null,8,["onClick"])]),_:2},1024)):j("",!0)]),_:2},1032,["data-source"])]),_:2},1024)]),_:2},1024)):j("",!0)],64))),256))]),_:2},1024)]),_:2},1024)):(h(),b(i,{key:1,onClick:a=>pe(g),type:"dashed",size:"large"},{icon:l(()=>[t(E(A),{icon:"tdesign:add"})]),default:l(()=>[C(" 增加匹配条件 ")]),_:2},1032,["onClick"]))]),_:2},1024),t(d,{label:"路由分发",required:""},{default:l(()=>[t($,null,{default:l(()=>[t(y,{style:{width:"100%"},direction:"vertical",size:"small"},{default:l(()=>[t(f,null,{default:l(()=>[t(d,{label:"匹配条件类型"},{default:l(()=>[t(M,{value:p.selectedRouteDistributeMatchTypes,"onUpdate:value":a=>p.selectedRouteDistributeMatchTypes=a,options:ie.value,mode:"multiple",style:{"min-width":"200px"}},null,8,["value","onUpdate:value","options"])]),_:2},1024)]),_:2},1024),(h(!0),L(J,null,X(p.routeDistribute,(a,U)=>(h(),L(J,{key:U},[p.selectedRouteDistributeMatchTypes.includes("host")&&a.type==="host"?(h(),b(y,{key:0,size:"large",align:"center"},{default:l(()=>[t(q,{class:"match-condition-type-label",bordered:!1,color:"processing"},{default:l(()=>[C(S(a==null?void 0:a.type),1)]),_:2},1024),t(M,{value:a.condition,"onUpdate:value":r=>a.condition=r,style:{"min-width":"120px"},options:G.value},null,8,["value","onUpdate:value","options"]),t(n,{value:a.value,"onUpdate:value":r=>a.value=r,placeholder:"请求来源ip"},null,8,["value","onUpdate:value"]),t(E(A),{onClick:r=>ve(a==null?void 0:a.type,g),class:"action-icon",icon:"tdesign:delete"},null,8,["onClick"])]),_:2},1024)):j("",!0),p.selectedRouteDistributeMatchTypes.includes("other")&&a.type==="other"?(h(),b(y,{key:1,style:{width:"100%"},size:"large",align:"start"},{default:l(()=>[t(q,{class:"match-condition-type-label",bordered:!1,color:"processing"},{default:l(()=>[C(S((a==null?void 0:a.type)=="other"?"其他":a==null?void 0:a.type),1)]),_:2},1024),t(y,{direction:"vertical"},{default:l(()=>[t(i,{type:"primary",onClick:r=>Me(g,U)},{default:l(()=>[C(" 添加其他 ")]),_:2},1032,["onClick"]),t(m,{pagination:!1,columns:I,"data-source":p.routeDistribute[U].list},{bodyCell:l(({column:r,record:u,text:z,index:K})=>[r.key==="myKey"?(h(),b(n,{key:0,value:u.myKey,"onUpdate:value":D=>u.myKey=D,placeholder:"key"},null,8,["value","onUpdate:value"])):r.key==="condition"?(h(),b(M,{key:1,value:u.condition,"onUpdate:value":D=>u.condition=D,options:G.value},null,8,["value","onUpdate:value","options"])):r.key==="value"?(h(),b(n,{key:2,value:u.value,"onUpdate:value":D=>u.value=D,placeholder:"value"},null,8,["value","onUpdate:value"])):r.key==="operation"?(h(),b(y,{key:3,align:"center"},{default:l(()=>[t(E(A),{onClick:D=>Te(g,U,K),icon:"tdesign:remove",class:"action-icon"},null,8,["onClick"])]),_:2},1024)):j("",!0)]),_:2},1032,["data-source"])]),_:2},1024)]),_:2},1024)):j("",!0)],64))),128))]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024))),256))]),_:1}),t(i,{onClick:ce,type:"primary"},{default:l(()=>[C(" 增加路由")]),_:1})]),_:1})]),_:1})]),_:1},8,["span"]),t(o,{span:F.value?Z.value:0,class:"right"},{default:l(()=>[F.value?(h(),b($,{key:0,class:"sliderBox"},{default:l(()=>[B("div",null,[t(N,{title:"字段说明",column:1},{default:l(()=>[t(V,{label:"key"},{default:l(()=>[C(" 作用对象"),Le,C(" 可能的值:Dubbo应用名或者服务名 ")]),_:1}),t(V,{label:"scope"},{default:l(()=>[C(" 规则粒度"),xe,C(" 可能的值:application, service ")]),_:1}),t(V,{label:"force"},{default:l(()=>[C(" 容错保护"),Je,C(" 可能的值:true, false"),Ye,C(" 描述:如果为true,则路由筛选后若没有可用的地址则会直接报异常;如果为false,则会从可用地址中选择完成RPC调用 ")]),_:1}),t(V,{label:"runtime"},{default:l(()=>[C(" 运行时生效"),He,C(" 可能的值:true, false"),Qe,C(" 描述:如果为true,则该rule下的所有路由将会实时生效;若为false,则只有在启动时才会生效 ")]),_:1})]),_:1})])]),_:1})):j("",!0)]),_:1},8,["span"])]),_:1}),t($,{class:"footer"},{default:l(()=>[t(f,null,{default:l(()=>[t(i,{type:"primary",onClick:$e},{default:l(()=>[C("确认")]),_:1}),t(i,{style:{"margin-left":"30px"},onClick:e[9]||(e[9]=p=>console.log(c.value))},{default:l(()=>[C(" 取消")]),_:1})]),_:1})]),_:1})])}}}),lt=Ge(Xe,[["__scopeId","data-v-03458e68"]]);export{lt as default}; +import{u as Ue}from"./index-Y8bti_iA.js";import{d as De,y as Re,z as Ke,D as qe,H as Oe,k as je,a as Ee,B as W,r as Se,F as se,c as L,b as t,w as l,e as O,o as h,f as C,J as b,n as E,aa as Ae,ab as me,T as j,L as J,M as X,j as B,t as S,I as A,m as Ve,p as ze,h as Be,_ as Ge}from"./index-VXjVsiiO.js";import{g as Pe,u as Ne}from"./traffic-W0fp5Gf-.js";import"./request-Cs8TyifY.js";const x=Y=>(ze("data-v-03458e68"),Y=Y(),Be(),Y),We={class:"__container_routingRule_detail"},Fe={style:{"max-width":"400px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},Le=x(()=>B("br",null,null,-1)),xe=x(()=>B("br",null,null,-1)),Je=x(()=>B("br",null,null,-1)),Ye=x(()=>B("br",null,null,-1)),He=x(()=>B("br",null,null,-1)),Qe=x(()=>B("br",null,null,-1)),Xe=De({__name:"updateByFormView",setup(Y){const P=Re(Ke.PROVIDE_INJECT_KEY);qe(async()=>{if(Oe.isNil(P.conditionRule))await ae();else{const{enabled:s=!0,key:e,scope:i,runtime:f=!0,conditions:M}=P.conditionRule;console.log("[ TAB_STATE.conditionRule ] >",P.conditionRule),_.enable=s,_.objectOfAction=e,_.ruleGranularity=i,_.runtime=f,M&&M.length&&M.forEach((d,n)=>{var v,R;const k=d.split("=>"),o=(v=k[0])==null?void 0:v.trim(),T=(R=k[1])==null?void 0:R.trim();c.value[n].requestMatch=te(o,n),c.value[n].routeDistribute=le(T,n)})}we()}),je();const H=Ee(),F=W(!1),Z=W(8);Ue().toClipboard;const _=Se({version:"",ruleGranularity:"",objectOfAction:"",enable:!0,faultTolerantProtection:!1,runtime:!0,priority:null,group:""});se(_,s=>{const{ruleGranularity:e,enable:i=!0,runtime:f=!0,objectOfAction:M}=s;P.conditionRule={...P.conditionRule,enabled:i,key:M,runtime:f,scope:e}});const oe=W([{label:"host",value:"host"},{label:"application",value:"application"},{label:"method",value:"method"},{label:"arguments",value:"arguments"},{label:"attachments",value:"attachments"},{label:"其他",value:"other"}]),ie=W([{label:"host",value:"host"},{label:"其他",value:"other"}]),G=W([{label:"=",value:"="},{label:"!=",value:"!="}]),ue=W([{label:"应用",value:"application"},{label:"服务",value:"service"}]),c=W([{selectedMatchConditionTypes:[],requestMatch:[],selectedRouteDistributeMatchTypes:[],routeDistribute:[{type:"host",condition:"=",value:"127.0.0.1"},{type:"other",list:[{myKey:"key",condition:"=",value:"value"}]}]}]);se(c,s=>{P.conditionRule={...P.conditionRule,conditions:ne()}},{deep:!0});const ce=()=>{c.value.push({selectedMatchConditionTypes:[],requestMatch:[],selectedRouteDistributeMatchTypes:[],routeDistribute:[{type:"host",condition:"=",value:"127.0.0.1"},{type:"other",list:[{myKey:"key",condition:"=",value:"value"}]}]})},de=s=>{c.value.splice(s,1)},re=s=>{c.value[s].requestMatch=[],c.value[s].selectedMatchConditionTypes=[]},pe=s=>{c.value[s].requestMatch=[{type:"host",condition:"",value:""},{type:"application",condition:"",value:""},{type:"method",condition:"",value:""},{type:"arguments",list:[{index:0,condition:"",value:""}]},{type:"attachments",list:[{myKey:"key",condition:"",value:""}]},{type:"other",list:[{myKey:"key",condition:"",value:""}]}]},Q=(s,e)=>{c.value[e].selectedMatchConditionTypes=c.value[e].selectedMatchConditionTypes.filter(i=>i!==s)},ve=(s,e)=>{c.value[e].selectedRouteDistributeMatchTypes=c.value[e].selectedRouteDistributeMatchTypes.filter(i=>i!==s)},ye=[{dataIndex:"index",key:"index",title:"参数索引"},{dataIndex:"condition",key:"condition",title:"关系"},{dataIndex:"value",key:"value",title:"值"},{dataIndex:"operation",key:"operation",title:"操作"}],he=(s,e)=>{c.value[s].requestMatch[e].list.push({index:0,condition:"=",value:""})},fe=(s,e,i)=>{c.value[s].requestMatch[e].list.length===1&&(c.value[s].selectedMatchConditionTypes=c.value[s].selectedMatchConditionTypes.filter(f=>f!=="arguments")),c.value[s].requestMatch[e].list.splice(i,1)},_e=[{dataIndex:"myKey",key:"myKey",title:"键"},{dataIndex:"condition",key:"condition",title:"关系"},{dataIndex:"value",key:"value",title:"值"},{dataIndex:"operation",key:"operation",title:"操作"}],ke=(s,e)=>{c.value[s].requestMatch[e].list.push({key:"key",condition:"=",value:""})},be=(s,e,i)=>{c.value[s].requestMatch[e].list.length===1&&(c.value[s].selectedMatchConditionTypes=c.value[s].selectedMatchConditionTypes.filter(f=>f!=="attachments")),c.value[s].requestMatch[e].list.splice(i,1)},I=[{dataIndex:"myKey",key:"myKey",title:"键"},{dataIndex:"condition",key:"condition",title:"关系"},{dataIndex:"value",key:"value",title:"值"},{dataIndex:"operation",key:"operation",title:"操作"}],ge=(s,e)=>{c.value[s].requestMatch[e].list.push({myKey:"",condition:"=",value:""})},Ce=(s,e,i)=>{if(c.value[s].requestMatch[e].list.length===1){c.value[s].selectedMatchConditionTypes=c.value[s].selectedMatchConditionTypes.filter(f=>f!=="other");return}c.value[s].requestMatch[e].list.splice(i,1)},Me=(s,e)=>{c.value[s].routeDistribute[e].list.push({myKey:"",condition:"=",value:""})},Te=(s,e,i)=>{if(c.value[s].routeDistribute[e].list.length===1){c.value[s].selectedRouteDistributeMatchTypes=c.value[s].selectedRouteDistributeMatchTypes.filter(f=>f!=="other");return}c.value[s].routeDistribute[e].list.splice(i,1)},ee=s=>{var v,R;const e=c.value[s],{ruleGranularity:i,objectOfAction:f}=_;let d=`对于${i==="service"?"服务":"应用"}【${f||"未指定"}】`,n=[];(v=e.selectedMatchConditionTypes)==null||v.forEach($=>{var V,N,p,g;const w=(V=e.requestMatch)==null?void 0:V.find(a=>a.type===$);if(!w)return;let y="";const q=w.condition==="="?"等于":w.condition==="!="?"不等于":w.condition||"",m=w.value||"未指定";switch($){case"host":y=`请求来源主机 ${q} ${m}`;break;case"application":y=`请求来源应用 ${q} ${m}`;break;case"method":y=`请求方法 ${q} ${m}`;break;case"arguments":const a=(N=w.list)==null?void 0:N.map(u=>{const z=u.condition==="="?"等于":u.condition==="!="?"不等于":u.condition||"",K=u.value!==void 0&&u.value!==""?u.value:"未指定";return`参数[${u.index}] ${z} ${K}`}).filter(Boolean);(a==null?void 0:a.length)>0&&(y=a.join(" 且 "));break;case"attachments":const U=(p=w.list)==null?void 0:p.map(u=>{const z=u.condition==="="?"等于":u.condition==="!="?"不等于":u.condition||"",K=u.value!==void 0&&u.value!==""?u.value:"未指定";return`附件[${u.myKey||"未指定"}] ${z} ${K}`}).filter(Boolean);(U==null?void 0:U.length)>0&&(y=U.join(" 且 "));break;case"other":const r=(g=w.list)==null?void 0:g.map(u=>{const z=u.condition==="="?"等于":u.condition==="!="?"不等于":u.condition||"",K=u.value!==void 0&&u.value!==""?u.value:"未指定";return`自定义匹配[${u.myKey||"未指定"}] ${z} ${K}`}).filter(Boolean);(r==null?void 0:r.length)>0&&(y=r.join(" 且 "));break}y&&(($==="host"||$==="application"||$==="method")&&!w.value?n.push(`${$==="host"?"请求来源主机":$==="application"?"请求来源应用":"请求方法"} 未填写`):n.push(y))});const k=n.length>0?n.join(" 且 "):"任意请求";let o=[];(R=e.selectedRouteDistributeMatchTypes)==null||R.forEach($=>{var V,N;const w=(V=e.routeDistribute)==null?void 0:V.find(p=>p.type===$);if(!w)return;let y="";const q=w.condition==="="?"等于":w.condition==="!="?"不等于":w.condition||"",m=w.value||"未指定";switch($){case"host":y=`目标主机 ${q} ${m}`;break;case"other":const p=(N=w.list)==null?void 0:N.map(g=>{const a=g.condition==="="?"等于":g.condition==="!="?"不等于":g.condition||"",U=g.value!==void 0&&g.value!==""?g.value:"未指定";return`目标标签[${g.myKey||"未指定"}] ${a} ${U}`}).filter(Boolean);(p==null?void 0:p.length)>0&&(y=p.join(" 且 "));break}y&&($==="host"&&!w.value?o.push("目标主机 未填写"):o.push(y))});const T=o.length>0?`满足 【${o.join(" 且 ")}】`:"默认路由规则";return`${d},将满足 【${k}】 条件的请求,转发到 ${T} 的实例。`};function te(s,e){const i=[],f=s.split(" & ");return[{type:"host",condition:"",value:""},{type:"application",condition:"",value:""},{type:"method",condition:"",value:""},{type:"arguments",list:[]},{type:"attachments",list:[]},{type:"other",list:[]}].forEach(d=>i.push({...d})),f.forEach(d=>{if(d=d.trim(),d.startsWith("host")){c.value[e].selectedMatchConditionTypes.push("host");const n=d.match(/^host(!=|=)(.+)/);if(n){const k=n[1],o=n[2].trim(),T=i.find(v=>v.type==="host");T.condition=k,T.value=o}}else if(d.startsWith("application")){c.value[e].selectedMatchConditionTypes.push("application");const n=d.match(/^application(!=|=)(.+)/);if(n){const k=n[1],o=n[2].trim(),T=i.find(v=>v.type==="application");T.condition=k,T.value=o}}else if(d.startsWith("method")){c.value[e].selectedMatchConditionTypes.push("method");const n=d.match(/^method(!=|=)(.+)/);if(n){const k=n[1],o=n[2].trim(),T=i.find(v=>v.type==="method");T.condition=k,T.value=o}}else if(d.startsWith("arguments")){!c.value[e].selectedMatchConditionTypes.includes("arguments")&&c.value[e].selectedMatchConditionTypes.push("arguments");const n=d.match(/^arguments\[(\d+)\](!=|=)(.+)/);if(n){const k=parseInt(n[1],10),o=n[2],T=n[3].trim();i.find(R=>R.type==="arguments").list.push({index:k,condition:o,value:T})}}else if(d.startsWith("attachments")){!c.value[e].selectedMatchConditionTypes.includes("attachments")&&c.value[e].selectedMatchConditionTypes.push("attachments");const n=d.match(/^attachments\[(.+)\](!=|=)(.+)/);if(n){const k=n[1].trim(),o=n[2],T=n[3].trim();i.find(R=>R.type==="attachments").list.push({myKey:k,condition:o,value:T})}}else{const n=d.match(/^([^!=]+)(!?=)(.+)$/);if(n){!c.value[e].selectedMatchConditionTypes.includes("other")&&c.value[e].selectedMatchConditionTypes.push("other");const k=i.find(o=>o.type==="other");k&&k.list.push({myKey:n[1].trim(),condition:n[2],value:n[3].trim()})}}}),i}function le(s,e){const i=[],f=s==null?void 0:s.split(" & ");return[{type:"host",condition:"",value:""},{type:"other",list:[]}].forEach(d=>i.push({...d})),f!=null&&f.length&&f.forEach(d=>{if(d=d.trim(),d.startsWith("host")){c.value[e].selectedRouteDistributeMatchTypes.push("host");const n=d.match(/^host(!=|=)(.+)/);if(n){const k=n[1],o=n[2].trim(),T=i.find(v=>v.type==="host");T.condition=k,T.value=o}}else{const n=d.match(/^([^!=]+)(!?=)(.+)$/);if(n){!c.value[e].selectedRouteDistributeMatchTypes.includes("other")&&c.value[e].selectedRouteDistributeMatchTypes.push("other");const k=i.find(o=>o.type==="other");k&&k.list.push({myKey:n[1].trim(),condition:n[2],value:n[3].trim()})}}}),i}async function ae(){var e;let s=await Pe((e=H.params)==null?void 0:e.ruleName);if((s==null?void 0:s.code)===200){console.log("res",s.data);const{conditions:i,configVersion:f,enabled:M,force:d,key:n,runtime:k,scope:o}=s==null?void 0:s.data;_.ruleGranularity=o,_.objectOfAction=n,_.enable=M,_.faultTolerantProtection=d,_.runtime=k,_.configVersion=f,f=="v3.0"&&i.forEach((T,v)=>{var y,q;const R=T.split("=>"),$=(y=R[0])==null?void 0:y.trim(),w=(q=R[1])==null?void 0:q.trim();c.value[v].requestMatch=te($,v),c.value[v].routeDistribute=le(w,v)})}}function ne(){let s=[],e="",i="";return c.value.forEach((f,M)=>{f.selectedMatchConditionTypes.forEach((n,k)=>{f.requestMatch.forEach((o,T)=>{if(n==(o==null?void 0:o.type))switch(o==null?void 0:o.type){case"arguments":o.list.forEach((v,R)=>{e.length>0&&(e+=" & "),e+=`${n}[${v.index}]${v.condition}${v.value}`});break;case"attachments":o.list.forEach((v,R)=>{e.length>0&&(e+=" & "),e+=`${n}[${v.myKey}]${v.condition}${v.value}`});break;case"other":o.list.forEach((v,R)=>{e.length>0&&(e+=" & "),e+=`${v.myKey}${v.condition}${v.value}`});break;default:e.length>0&&(e+=" & "),e+=`${o.type}${o.condition}${o.value}`}})}),f.selectedRouteDistributeMatchTypes.forEach((n,k)=>{f.routeDistribute.forEach((o,T)=>{if(n==(o==null?void 0:o.type))switch(o==null?void 0:o.type){case"other":o==null||o.list.forEach((v,R)=>{i.length>0&&(i+=" & "),i+=`${v.myKey}${v.condition}${v.value}`});break;default:i.length>0&&(i+=" & "),i+=`${o.type}${o.condition}${o.value}`}})});let d="";e.length>0&&i.length>0?d=`${e} => ${i}`:e.length>0&&i.length==0&&(d=`${e}`),s.push(d)}),s}const $e=async()=>{const{ruleName:s}=H.params,{version:e,ruleGranularity:i,objectOfAction:f,enable:M,faultTolerantProtection:d,runtime:n}=_,k={configVersion:"v3.0",scope:i,key:f,enabled:M,force:d,runtime:n,conditions:ne()},o=await Ne(s,k);(o==null?void 0:o.code)===200&&(await ae(),Ve.success("修改成功"))},we=()=>{var e;const s=(e=H.params)==null?void 0:e.ruleName;if(s&&_.ruleGranularity==="service"){const i=s==null?void 0:s.split(":");_.version=i[1],_.group=i[2].split(".")[0]}};return(s,e)=>{const i=O("a-button"),f=O("a-flex"),M=O("a-select"),d=O("a-form-item"),n=O("a-input"),k=O("a-switch"),o=O("a-col"),T=O("a-input-number"),v=O("a-row"),R=O("a-form"),$=O("a-card"),w=O("a-tooltip"),y=O("a-space"),q=O("a-tag"),m=O("a-table"),V=O("a-descriptions-item"),N=O("a-descriptions");return h(),L("div",We,[t(f,{style:{width:"100%"}},{default:l(()=>[t(o,{span:F.value?24-Z.value:24,class:"left"},{default:l(()=>[t($,null,{default:l(()=>[t(y,{style:{width:"100%"},direction:"vertical",size:"middle"},{default:l(()=>[t(v,null,{default:l(()=>[t(f,{justify:"end",style:{width:"100%"}},{default:l(()=>[t(i,{type:"text",style:{color:"#0a90d5"},onClick:e[0]||(e[0]=p=>F.value=!F.value)},{default:l(()=>[C(" 字段说明 "),F.value?(h(),b(E(me),{key:1})):(h(),b(E(Ae),{key:0}))]),_:1})]),_:1}),t($,{title:"基础信息",style:{width:"100%"},class:"_detail"},{default:l(()=>[t(R,{layout:"horizontal"},{default:l(()=>[t(v,{style:{width:"100%"}},{default:l(()=>[t(o,{span:12},{default:l(()=>[t(d,{label:"规则粒度",required:""},{default:l(()=>[t(M,{disabled:"",value:_.ruleGranularity,"onUpdate:value":e[1]||(e[1]=p=>_.ruleGranularity=p),style:{width:"120px"},options:ue.value},null,8,["value","options"])]),_:1}),_.ruleGranularity==="service"?(h(),b(d,{key:0,label:"版本",required:""},{default:l(()=>[t(n,{value:_.version,"onUpdate:value":e[2]||(e[2]=p=>_.version=p),style:{width:"300px"},disabled:""},null,8,["value"])]),_:1})):j("",!0),t(d,{label:"容错保护"},{default:l(()=>[t(k,{checked:_.faultTolerantProtection,"onUpdate:checked":e[3]||(e[3]=p=>_.faultTolerantProtection=p),"checked-children":"开","un-checked-children":"关"},null,8,["checked"])]),_:1}),t(d,{label:"运行时生效"},{default:l(()=>[t(k,{checked:_.runtime,"onUpdate:checked":e[4]||(e[4]=p=>_.runtime=p),"checked-children":"开","un-checked-children":"关"},null,8,["checked"])]),_:1})]),_:1}),t(o,{span:12},{default:l(()=>[t(d,{label:"作用对象",required:""},{default:l(()=>[t(n,{disabled:"",value:_.objectOfAction,"onUpdate:value":e[5]||(e[5]=p=>_.objectOfAction=p),style:{width:"300px"}},null,8,["value"])]),_:1}),_.ruleGranularity==="service"?(h(),b(d,{key:0,label:"分组",required:""},{default:l(()=>[t(n,{value:_.group,"onUpdate:value":e[6]||(e[6]=p=>_.group=p),style:{width:"300px"},disabled:""},null,8,["value"])]),_:1})):j("",!0),t(d,{label:"立即启用"},{default:l(()=>[t(k,{checked:_.enable,"onUpdate:checked":e[7]||(e[7]=p=>_.enable=p),"checked-children":"开","un-checked-children":"关"},null,8,["checked"])]),_:1}),t(d,{label:"优先级"},{default:l(()=>[t(T,{value:_.priority,"onUpdate:value":e[8]||(e[8]=p=>_.priority=p),min:"1"},null,8,["value"])]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})]),_:1}),t($,{title:"路由列表",style:{width:"100%"},class:"_detail"},{default:l(()=>[(h(!0),L(J,null,X(c.value,(p,g)=>(h(),b($,null,{title:l(()=>[t(f,{justify:"space-between"},{default:l(()=>[t(y,{align:"center"},{default:l(()=>[B("div",null,"路由【"+S(g+1)+"】",1),t(w,null,{title:l(()=>[C(S(ee(g)),1)]),default:l(()=>[B("div",Fe,S(ee(g)),1)]),_:2},1024)]),_:2},1024),t(E(A),{onClick:a=>de(g),class:"action-icon",icon:"tdesign:delete"},null,8,["onClick"])]),_:2},1024)]),default:l(()=>[t(R,{layout:"horizontal"},{default:l(()=>[t(y,{style:{width:"100%"},direction:"vertical",size:"large"},{default:l(()=>[t(d,{label:"请求匹配"},{default:l(()=>[p.requestMatch.length>0?(h(),b($,{key:0},{default:l(()=>[t(y,{style:{width:"100%"},direction:"vertical",size:"small"},{default:l(()=>[t(f,{align:"center",justify:"space-between"},{default:l(()=>[t(d,{label:"匹配条件类型"},{default:l(()=>[t(M,{value:p.selectedMatchConditionTypes,"onUpdate:value":a=>p.selectedMatchConditionTypes=a,options:oe.value,mode:"multiple",style:{"min-width":"200px"}},null,8,["value","onUpdate:value","options"])]),_:2},1024),t(E(A),{onClick:a=>re(g),class:"action-icon",icon:"tdesign:delete"},null,8,["onClick"])]),_:2},1024),(h(!0),L(J,null,X(p.requestMatch,(a,U)=>(h(),L(J,null,[p.selectedMatchConditionTypes.includes("host")&&a.type==="host"?(h(),b(y,{key:0,size:"large",align:"center"},{default:l(()=>[t(q,{class:"match-condition-type-label",bordered:!1,color:"processing"},{default:l(()=>[C(S(a==null?void 0:a.type),1)]),_:2},1024),t(M,{value:a.condition,"onUpdate:value":r=>a.condition=r,style:{"min-width":"120px"},options:G.value},null,8,["value","onUpdate:value","options"]),t(n,{value:a.value,"onUpdate:value":r=>a.value=r,placeholder:"请求来源ip"},null,8,["value","onUpdate:value"]),t(E(A),{onClick:r=>Q(a==null?void 0:a.type,g),class:"action-icon",icon:"tdesign:delete"},null,8,["onClick"])]),_:2},1024)):j("",!0),p.selectedMatchConditionTypes.includes("application")&&a.type==="application"?(h(),b(y,{key:1,size:"large",align:"center"},{default:l(()=>[t(q,{class:"match-condition-type-label",bordered:!1,color:"processing"},{default:l(()=>[C(S(a==null?void 0:a.type),1)]),_:2},1024),t(M,{value:a.condition,"onUpdate:value":r=>a.condition=r,style:{"min-width":"120px"},options:G.value},null,8,["value","onUpdate:value","options"]),t(n,{value:a.value,"onUpdate:value":r=>a.value=r,placeholder:"请求来源应用名"},null,8,["value","onUpdate:value"]),t(E(A),{onClick:r=>Q(a==null?void 0:a.type,g),class:"action-icon",icon:"tdesign:delete"},null,8,["onClick"])]),_:2},1024)):j("",!0),p.selectedMatchConditionTypes.includes("method")&&a.type==="method"?(h(),b(y,{key:2,size:"large",align:"center"},{default:l(()=>[t(q,{class:"match-condition-type-label",bordered:!1,color:"processing"},{default:l(()=>[C(S(a==null?void 0:a.type),1)]),_:2},1024),t(M,{value:a.condition,"onUpdate:value":r=>a.condition=r,style:{"min-width":"120px"},options:G.value},null,8,["value","onUpdate:value","options"]),t(n,{value:a.value,"onUpdate:value":r=>a.value=r,placeholder:"方法值"},null,8,["value","onUpdate:value"]),t(E(A),{onClick:r=>Q(a==null?void 0:a.type,g),class:"action-icon",icon:"tdesign:delete"},null,8,["onClick"])]),_:2},1024)):j("",!0),p.selectedMatchConditionTypes.includes("arguments")&&a.type==="arguments"?(h(),b(y,{key:3,style:{width:"100%"},size:"large",align:"start"},{default:l(()=>[t(q,{class:"match-condition-type-label",bordered:!1,color:"processing"},{default:l(()=>[C(S(a==null?void 0:a.type),1)]),_:2},1024),t(y,{direction:"vertical"},{default:l(()=>[t(i,{type:"primary",onClick:r=>he(g,U)},{default:l(()=>[C(" 添加argument ")]),_:2},1032,["onClick"]),t(m,{pagination:!1,columns:ye,"data-source":p.requestMatch[U].list},{bodyCell:l(({column:r,record:u,text:z,index:K})=>[r.key==="index"?(h(),b(n,{key:0,value:u.index,"onUpdate:value":D=>u.index=D,placeholder:"index"},null,8,["value","onUpdate:value"])):r.key==="condition"?(h(),b(M,{key:1,value:u.condition,"onUpdate:value":D=>u.condition=D,options:G.value},null,8,["value","onUpdate:value","options"])):r.key==="value"?(h(),b(n,{key:2,value:u.value,"onUpdate:value":D=>u.value=D,placeholder:"value"},null,8,["value","onUpdate:value"])):r.key==="operation"?(h(),b(y,{key:3,align:"center"},{default:l(()=>[t(E(A),{onClick:D=>fe(g,U,K),icon:"tdesign:remove",class:"action-icon"},null,8,["onClick"])]),_:2},1024)):j("",!0)]),_:2},1032,["data-source"])]),_:2},1024)]),_:2},1024)):j("",!0),p.selectedMatchConditionTypes.includes("attachments")&&a.type==="attachments"?(h(),b(y,{key:4,style:{width:"100%"},size:"large",align:"start"},{default:l(()=>[t(q,{class:"match-condition-type-label",bordered:!1,color:"processing"},{default:l(()=>[C(S(a==null?void 0:a.type),1)]),_:2},1024),t(y,{direction:"vertical"},{default:l(()=>[t(i,{type:"primary",onClick:r=>ke(g,U)},{default:l(()=>[C(" 添加attachment ")]),_:2},1032,["onClick"]),t(m,{pagination:!1,columns:_e,"data-source":p.requestMatch[U].list},{bodyCell:l(({column:r,record:u,text:z,index:K})=>[r.key==="myKey"?(h(),b(n,{key:0,value:u.myKey,"onUpdate:value":D=>u.myKey=D,placeholder:"key"},null,8,["value","onUpdate:value"])):r.key==="condition"?(h(),b(M,{key:1,value:u.condition,"onUpdate:value":D=>u.condition=D,options:G.value},null,8,["value","onUpdate:value","options"])):r.key==="value"?(h(),b(n,{key:2,value:u.value,"onUpdate:value":D=>u.value=D,placeholder:"value"},null,8,["value","onUpdate:value"])):r.key==="operation"?(h(),b(y,{key:3,align:"center"},{default:l(()=>[t(E(A),{onClick:D=>be(g,U,K),icon:"tdesign:remove",class:"action-icon"},null,8,["onClick"])]),_:2},1024)):j("",!0)]),_:2},1032,["data-source"])]),_:2},1024)]),_:2},1024)):j("",!0),p.selectedMatchConditionTypes.includes("other")&&a.type==="other"?(h(),b(y,{key:5,style:{width:"100%"},size:"large",align:"start"},{default:l(()=>[t(q,{class:"match-condition-type-label",bordered:!1,color:"processing"},{default:l(()=>[C(S((a==null?void 0:a.type)=="other"?"其他":a==null?void 0:a.type),1)]),_:2},1024),t(y,{direction:"vertical"},{default:l(()=>[t(i,{type:"primary",onClick:r=>ge(g,U)},{default:l(()=>[C(" 添加other ")]),_:2},1032,["onClick"]),t(m,{pagination:!1,columns:I,"data-source":p.requestMatch[U].list},{bodyCell:l(({column:r,record:u,text:z})=>[r.key==="myKey"?(h(),b(n,{key:0,value:u.myKey,"onUpdate:value":K=>u.myKey=K,placeholder:"key"},null,8,["value","onUpdate:value"])):r.key==="condition"?(h(),b(M,{key:1,value:u.condition,"onUpdate:value":K=>u.condition=K,options:G.value},null,8,["value","onUpdate:value","options"])):r.key==="value"?(h(),b(n,{key:2,value:u.value,"onUpdate:value":K=>u.value=K,placeholder:"value"},null,8,["value","onUpdate:value"])):r.key==="operation"?(h(),b(y,{key:3,align:"center"},{default:l(()=>[t(E(A),{onClick:K=>Ce(g,U,u.index),icon:"tdesign:remove",class:"action-icon"},null,8,["onClick"])]),_:2},1024)):j("",!0)]),_:2},1032,["data-source"])]),_:2},1024)]),_:2},1024)):j("",!0)],64))),256))]),_:2},1024)]),_:2},1024)):(h(),b(i,{key:1,onClick:a=>pe(g),type:"dashed",size:"large"},{icon:l(()=>[t(E(A),{icon:"tdesign:add"})]),default:l(()=>[C(" 增加匹配条件 ")]),_:2},1032,["onClick"]))]),_:2},1024),t(d,{label:"路由分发",required:""},{default:l(()=>[t($,null,{default:l(()=>[t(y,{style:{width:"100%"},direction:"vertical",size:"small"},{default:l(()=>[t(f,null,{default:l(()=>[t(d,{label:"匹配条件类型"},{default:l(()=>[t(M,{value:p.selectedRouteDistributeMatchTypes,"onUpdate:value":a=>p.selectedRouteDistributeMatchTypes=a,options:ie.value,mode:"multiple",style:{"min-width":"200px"}},null,8,["value","onUpdate:value","options"])]),_:2},1024)]),_:2},1024),(h(!0),L(J,null,X(p.routeDistribute,(a,U)=>(h(),L(J,{key:U},[p.selectedRouteDistributeMatchTypes.includes("host")&&a.type==="host"?(h(),b(y,{key:0,size:"large",align:"center"},{default:l(()=>[t(q,{class:"match-condition-type-label",bordered:!1,color:"processing"},{default:l(()=>[C(S(a==null?void 0:a.type),1)]),_:2},1024),t(M,{value:a.condition,"onUpdate:value":r=>a.condition=r,style:{"min-width":"120px"},options:G.value},null,8,["value","onUpdate:value","options"]),t(n,{value:a.value,"onUpdate:value":r=>a.value=r,placeholder:"请求来源ip"},null,8,["value","onUpdate:value"]),t(E(A),{onClick:r=>ve(a==null?void 0:a.type,g),class:"action-icon",icon:"tdesign:delete"},null,8,["onClick"])]),_:2},1024)):j("",!0),p.selectedRouteDistributeMatchTypes.includes("other")&&a.type==="other"?(h(),b(y,{key:1,style:{width:"100%"},size:"large",align:"start"},{default:l(()=>[t(q,{class:"match-condition-type-label",bordered:!1,color:"processing"},{default:l(()=>[C(S((a==null?void 0:a.type)=="other"?"其他":a==null?void 0:a.type),1)]),_:2},1024),t(y,{direction:"vertical"},{default:l(()=>[t(i,{type:"primary",onClick:r=>Me(g,U)},{default:l(()=>[C(" 添加其他 ")]),_:2},1032,["onClick"]),t(m,{pagination:!1,columns:I,"data-source":p.routeDistribute[U].list},{bodyCell:l(({column:r,record:u,text:z,index:K})=>[r.key==="myKey"?(h(),b(n,{key:0,value:u.myKey,"onUpdate:value":D=>u.myKey=D,placeholder:"key"},null,8,["value","onUpdate:value"])):r.key==="condition"?(h(),b(M,{key:1,value:u.condition,"onUpdate:value":D=>u.condition=D,options:G.value},null,8,["value","onUpdate:value","options"])):r.key==="value"?(h(),b(n,{key:2,value:u.value,"onUpdate:value":D=>u.value=D,placeholder:"value"},null,8,["value","onUpdate:value"])):r.key==="operation"?(h(),b(y,{key:3,align:"center"},{default:l(()=>[t(E(A),{onClick:D=>Te(g,U,K),icon:"tdesign:remove",class:"action-icon"},null,8,["onClick"])]),_:2},1024)):j("",!0)]),_:2},1032,["data-source"])]),_:2},1024)]),_:2},1024)):j("",!0)],64))),128))]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024))),256))]),_:1}),t(i,{onClick:ce,type:"primary"},{default:l(()=>[C(" 增加路由")]),_:1})]),_:1})]),_:1})]),_:1},8,["span"]),t(o,{span:F.value?Z.value:0,class:"right"},{default:l(()=>[F.value?(h(),b($,{key:0,class:"sliderBox"},{default:l(()=>[B("div",null,[t(N,{title:"字段说明",column:1},{default:l(()=>[t(V,{label:"key"},{default:l(()=>[C(" 作用对象"),Le,C(" 可能的值:Dubbo应用名或者服务名 ")]),_:1}),t(V,{label:"scope"},{default:l(()=>[C(" 规则粒度"),xe,C(" 可能的值:application, service ")]),_:1}),t(V,{label:"force"},{default:l(()=>[C(" 容错保护"),Je,C(" 可能的值:true, false"),Ye,C(" 描述:如果为true,则路由筛选后若没有可用的地址则会直接报异常;如果为false,则会从可用地址中选择完成RPC调用 ")]),_:1}),t(V,{label:"runtime"},{default:l(()=>[C(" 运行时生效"),He,C(" 可能的值:true, false"),Qe,C(" 描述:如果为true,则该rule下的所有路由将会实时生效;若为false,则只有在启动时才会生效 ")]),_:1})]),_:1})])]),_:1})):j("",!0)]),_:1},8,["span"])]),_:1}),t($,{class:"footer"},{default:l(()=>[t(f,null,{default:l(()=>[t(i,{type:"primary",onClick:$e},{default:l(()=>[C("确认")]),_:1}),t(i,{style:{"margin-left":"30px"},onClick:e[9]||(e[9]=p=>console.log(c.value))},{default:l(()=>[C(" 取消")]),_:1})]),_:1})]),_:1})])}}}),lt=Ge(Xe,[["__scopeId","data-v-03458e68"]]);export{lt as default}; diff --git a/app/dubbo-ui/dist/admin/assets/updateByYAMLView-X3vjkbCV.js b/app/dubbo-ui/dist/admin/assets/updateByYAMLView-7gcgx026.js similarity index 94% rename from app/dubbo-ui/dist/admin/assets/updateByYAMLView-X3vjkbCV.js rename to app/dubbo-ui/dist/admin/assets/updateByYAMLView-7gcgx026.js index 9996862e..2da53d55 100644 --- a/app/dubbo-ui/dist/admin/assets/updateByYAMLView-X3vjkbCV.js +++ b/app/dubbo-ui/dist/admin/assets/updateByYAMLView-7gcgx026.js @@ -1,4 +1,4 @@ -import{y as p,_ as N}from"./js-yaml-eElisXzH.js";import{e as A,h as O}from"./traffic-dHGZ6qwp.js";import{d as P,y as S,z as Y,a as L,u as M,B as f,D as J,H as j,J as m,w as e,e as n,o as v,b as a,f as t,n as T,aa as z,ab as K,j as o,T as $,m as H,p as U,h as q,_ as F}from"./index-3zDsduUv.js";import"./request-3an337VF.js";const _=i=>(U("data-v-50bea4cb"),i=i(),q(),i),G={class:"editorBox"},Q={class:"bottom-action-footer"},W=_(()=>o("br",null,null,-1)),X=_(()=>o("br",null,null,-1)),Z=_(()=>o("br",null,null,-1)),ee=_(()=>o("br",null,null,-1)),ae=_(()=>o("br",null,null,-1)),te=_(()=>o("br",null,null,-1)),le=P({__name:"updateByYAMLView",setup(i){const b=S(Y.PROVIDE_INJECT_KEY),g=L();M();const w=f(!1),c=f(!1),y=f(8);J(()=>{if(j.isNil(b.tagRule))u.value="",h();else{const l=b.tagRule;u.value=p.dump(l)}});const C=l=>{b.tagRule=p.load(u.value)},u=f(`configVersion: v3.0 +import{y as p,_ as N}from"./js-yaml-EQlPfOK8.js";import{e as A,h as O}from"./traffic-W0fp5Gf-.js";import{d as P,y as S,z as Y,a as L,u as M,B as f,D as J,H as j,J as m,w as e,e as n,o as v,b as a,f as t,n as T,aa as z,ab as K,j as o,T as $,m as H,p as U,h as q,_ as F}from"./index-VXjVsiiO.js";import"./request-Cs8TyifY.js";const _=i=>(U("data-v-50bea4cb"),i=i(),q(),i),G={class:"editorBox"},Q={class:"bottom-action-footer"},W=_(()=>o("br",null,null,-1)),X=_(()=>o("br",null,null,-1)),Z=_(()=>o("br",null,null,-1)),ee=_(()=>o("br",null,null,-1)),ae=_(()=>o("br",null,null,-1)),te=_(()=>o("br",null,null,-1)),le=P({__name:"updateByYAMLView",setup(i){const b=S(Y.PROVIDE_INJECT_KEY),g=L();M();const w=f(!1),c=f(!1),y=f(8);J(()=>{if(j.isNil(b.tagRule))u.value="",h();else{const l=b.tagRule;u.value=p.dump(l)}});const C=l=>{b.tagRule=p.load(u.value)},u=f(`configVersion: v3.0 force: true enabled: true key: shop-detail diff --git a/app/dubbo-ui/dist/admin/assets/updateByYAMLView--nyJvxZJ.js b/app/dubbo-ui/dist/admin/assets/updateByYAMLView-zhO2idIo.js similarity index 95% rename from app/dubbo-ui/dist/admin/assets/updateByYAMLView--nyJvxZJ.js rename to app/dubbo-ui/dist/admin/assets/updateByYAMLView-zhO2idIo.js index 58a68e2d..82c1b14f 100644 --- a/app/dubbo-ui/dist/admin/assets/updateByYAMLView--nyJvxZJ.js +++ b/app/dubbo-ui/dist/admin/assets/updateByYAMLView-zhO2idIo.js @@ -1,4 +1,4 @@ -import{y as f,_ as A}from"./js-yaml-eElisXzH.js";import{g as T,u as S}from"./traffic-dHGZ6qwp.js";import{d as O,y as P,z as Y,a as L,B as g,D as M,H as J,J as h,w as e,e as u,o as v,b as a,f as s,n as I,aa as j,ab as z,j as n,T as K,m as $,p as H,h as U,_ as q}from"./index-3zDsduUv.js";import"./request-3an337VF.js";const d=_=>(H("data-v-f0b8727f"),_=_(),U(),_),F={class:"editorBox"},G={class:"bottom-action-footer"},Q=d(()=>n("br",null,null,-1)),W=d(()=>n("br",null,null,-1)),X=d(()=>n("br",null,null,-1)),Z=d(()=>n("br",null,null,-1)),ee=d(()=>n("br",null,null,-1)),te=d(()=>n("br",null,null,-1)),ae=O({__name:"updateByYAMLView",setup(_){const b=P(Y.PROVIDE_INJECT_KEY),y=L(),B=g(!1),i=g(!1),V=g(8),r=g(`conditions: +import{y as f,_ as A}from"./js-yaml-EQlPfOK8.js";import{g as T,u as S}from"./traffic-W0fp5Gf-.js";import{d as O,y as P,z as Y,a as L,B as g,D as M,H as J,J as h,w as e,e as u,o as v,b as a,f as s,n as I,aa as j,ab as z,j as n,T as K,m as $,p as H,h as U,_ as q}from"./index-VXjVsiiO.js";import"./request-Cs8TyifY.js";const d=_=>(H("data-v-f0b8727f"),_=_(),U(),_),F={class:"editorBox"},G={class:"bottom-action-footer"},Q=d(()=>n("br",null,null,-1)),W=d(()=>n("br",null,null,-1)),X=d(()=>n("br",null,null,-1)),Z=d(()=>n("br",null,null,-1)),ee=d(()=>n("br",null,null,-1)),te=d(()=>n("br",null,null,-1)),ae=O({__name:"updateByYAMLView",setup(_){const b=P(Y.PROVIDE_INJECT_KEY),y=L(),B=g(!1),i=g(!1),V=g(8),r=g(`conditions: - from: match: >- method=string & arguments[method]=string & diff --git a/app/dubbo-ui/dist/admin/assets/xml-PQ1W1vQC.js b/app/dubbo-ui/dist/admin/assets/xml-wTy26N4g.js similarity index 97% rename from app/dubbo-ui/dist/admin/assets/xml-PQ1W1vQC.js rename to app/dubbo-ui/dist/admin/assets/xml-wTy26N4g.js index 694c8b81..954eaefe 100644 --- a/app/dubbo-ui/dist/admin/assets/xml-PQ1W1vQC.js +++ b/app/dubbo-ui/dist/admin/assets/xml-wTy26N4g.js @@ -1,4 +1,4 @@ -import{m}from"./js-yaml-eElisXzH.js";import"./index-3zDsduUv.js";/*!----------------------------------------------------------------------------- +import{m}from"./js-yaml-EQlPfOK8.js";import"./index-VXjVsiiO.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license diff --git a/app/dubbo-ui/dist/admin/assets/yaml-QORSracL.js b/app/dubbo-ui/dist/admin/assets/yaml-erqTPgu9.js similarity index 97% rename from app/dubbo-ui/dist/admin/assets/yaml-QORSracL.js rename to app/dubbo-ui/dist/admin/assets/yaml-erqTPgu9.js index 3da2222f..19b82395 100644 --- a/app/dubbo-ui/dist/admin/assets/yaml-QORSracL.js +++ b/app/dubbo-ui/dist/admin/assets/yaml-erqTPgu9.js @@ -1,4 +1,4 @@ -import{m as i}from"./js-yaml-eElisXzH.js";import"./index-3zDsduUv.js";/*!----------------------------------------------------------------------------- +import{m as i}from"./js-yaml-EQlPfOK8.js";import"./index-VXjVsiiO.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1) * Released under the MIT license diff --git a/app/dubbo-ui/dist/admin/index.html b/app/dubbo-ui/dist/admin/index.html index bf3cd2e0..ecacd372 100644 --- a/app/dubbo-ui/dist/admin/index.html +++ b/app/dubbo-ui/dist/admin/index.html @@ -21,7 +21,7 @@ Dubbo Admin - + diff --git a/ui-vue3/src/base/http/request.ts b/ui-vue3/src/base/http/request.ts index a6b25709..da67cdc2 100644 --- a/ui-vue3/src/base/http/request.ts +++ b/ui-vue3/src/base/http/request.ts @@ -94,6 +94,7 @@ response.use( router.push({ path: `/login?redirect=${encodeURIComponent(redirectPath)}` }) } } catch (e) { + console.error('Router push failed during 401 redirect:', e) if (!window.location.pathname.startsWith('/login')) { window.location.href = `/login?redirect=${encodeURIComponent(window.location.pathname)}` } From 2f623443a4a4bfe23ed96745736836f118b40a08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8A=B3=E8=B5=84=E8=9C=80=E9=81=93=E5=B1=B1?= <1493170339@qq.com> Date: Mon, 22 Dec 2025 23:25:26 +0800 Subject: [PATCH 6/9] docs: Only supports exact matching; remove the "prefix search" function from the placeholder (background word) --- ui-vue3/src/base/i18n/en.ts | 7 +++++ ui-vue3/src/base/i18n/zh.ts | 5 ++-- .../resources/services/tabs/distribution.vue | 28 ++++--------------- 3 files changed, 16 insertions(+), 24 deletions(-) diff --git a/ui-vue3/src/base/i18n/en.ts b/ui-vue3/src/base/i18n/en.ts index 6b52d88d..2cc075ee 100644 --- a/ui-vue3/src/base/i18n/en.ts +++ b/ui-vue3/src/base/i18n/en.ts @@ -368,6 +368,13 @@ const words: I18nType = { placeholders: { searchService: 'Search by service name' }, + placeholder: { + searchService: 'Search by service name', + typeAppName: 'Enter application name', + typeDefault: 'Please enter', + typeRoutingRules: 'Search routing rules', + searchAppNameOrIP: 'Search application, IP' + }, methods: 'Methods', testModule: { searchServiceHint: diff --git a/ui-vue3/src/base/i18n/zh.ts b/ui-vue3/src/base/i18n/zh.ts index b5968662..45a1e988 100644 --- a/ui-vue3/src/base/i18n/zh.ts +++ b/ui-vue3/src/base/i18n/zh.ts @@ -478,9 +478,10 @@ const words: I18nType = { globalSearchTip: '搜索ip,应用,实例,服务', placeholder: { - typeAppName: '请输入应用名,支持前缀搜索', + typeAppName: '请输入应用名', typeDefault: '请输入', - typeRoutingRules: '搜索路由规则,支持前缀过滤' + typeRoutingRules: '搜索路由规则', + searchAppNameOrIP: '搜索应用,ip' }, none: '无', details: '详情', diff --git a/ui-vue3/src/views/resources/services/tabs/distribution.vue b/ui-vue3/src/views/resources/services/tabs/distribution.vue index 0d10a015..8f3793cf 100644 --- a/ui-vue3/src/views/resources/services/tabs/distribution.vue +++ b/ui-vue3/src/views/resources/services/tabs/distribution.vue @@ -22,29 +22,16 @@ 生产者 消费者 - + - +